diff --git a/playbooks/legacy/announce-release/post.yaml b/playbooks/legacy/announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/announce-release/run.yaml b/playbooks/legacy/announce-release/run.yaml new file mode 100644 index 00000000..512d5e7f --- /dev/null +++ b/playbooks/legacy/announce-release/run.yaml @@ -0,0 +1,96 @@ +- hosts: all + name: Autoconverted job legacy-announce-release from old job {name}-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-func-centos-7/post.yaml b/playbooks/legacy/ansible-func-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ansible-func-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ansible-func-centos-7/run.yaml b/playbooks/legacy/ansible-func-centos-7/run.yaml new file mode 100644 index 00000000..2de9245d --- /dev/null +++ b/playbooks/legacy/ansible-func-centos-7/run.yaml @@ -0,0 +1,89 @@ +- hosts: all + name: Autoconverted job legacy-ansible-func-centos-7 from old job gate-{name}-ansible-func-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-func-fedora-26/post.yaml b/playbooks/legacy/ansible-func-fedora-26/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ansible-func-fedora-26/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ansible-func-fedora-26/run.yaml b/playbooks/legacy/ansible-func-fedora-26/run.yaml new file mode 100644 index 00000000..74e9489d --- /dev/null +++ b/playbooks/legacy/ansible-func-fedora-26/run.yaml @@ -0,0 +1,89 @@ +- hosts: all + name: Autoconverted job legacy-ansible-func-fedora-26 from old job gate-{name}-ansible-func-fedora-26 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-func-opensuse-423/post.yaml b/playbooks/legacy/ansible-func-opensuse-423/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ansible-func-opensuse-423/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ansible-func-opensuse-423/run.yaml b/playbooks/legacy/ansible-func-opensuse-423/run.yaml new file mode 100644 index 00000000..e1bd5f94 --- /dev/null +++ b/playbooks/legacy/ansible-func-opensuse-423/run.yaml @@ -0,0 +1,89 @@ +- hosts: all + name: Autoconverted job legacy-ansible-func-opensuse-423 from old job gate-{name}-ansible-func-opensuse-423 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-func-ubuntu-trusty/post.yaml b/playbooks/legacy/ansible-func-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ansible-func-ubuntu-trusty/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ansible-func-ubuntu-trusty/run.yaml b/playbooks/legacy/ansible-func-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..773f0906 --- /dev/null +++ b/playbooks/legacy/ansible-func-ubuntu-trusty/run.yaml @@ -0,0 +1,89 @@ +- hosts: all + name: Autoconverted job legacy-ansible-func-ubuntu-trusty from old job gate-{name}-ansible-func-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-func/post.yaml b/playbooks/legacy/ansible-func/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ansible-func/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ansible-func/run.yaml b/playbooks/legacy/ansible-func/run.yaml new file mode 100644 index 00000000..3c653ec9 --- /dev/null +++ b/playbooks/legacy/ansible-func/run.yaml @@ -0,0 +1,89 @@ +- hosts: all + name: Autoconverted job legacy-ansible-func from old job gate-{name}-ansible-func-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-hardening-announce-release/post.yaml b/playbooks/legacy/ansible-hardening-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/ansible-hardening-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ansible-hardening-announce-release/run.yaml b/playbooks/legacy/ansible-hardening-announce-release/run.yaml new file mode 100644 index 00000000..2c256fe5 --- /dev/null +++ b/playbooks/legacy/ansible-hardening-announce-release/run.yaml @@ -0,0 +1,96 @@ +- hosts: all + name: Autoconverted job legacy-ansible-hardening-announce-release from old job ansible-hardening-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-hardening-ansible-func-debian-jessie/post.yaml b/playbooks/legacy/ansible-hardening-ansible-func-debian-jessie/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ansible-hardening-ansible-func-debian-jessie/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ansible-hardening-ansible-func-debian-jessie/run.yaml b/playbooks/legacy/ansible-hardening-ansible-func-debian-jessie/run.yaml new file mode 100644 index 00000000..987e8dd5 --- /dev/null +++ b/playbooks/legacy/ansible-hardening-ansible-func-debian-jessie/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-ansible-hardening-ansible-func-debian-jessie from + old job gate-ansible-hardening-ansible-func-debian-jessie + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-hardening-ansible-func-fedora-26/post.yaml b/playbooks/legacy/ansible-hardening-ansible-func-fedora-26/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ansible-hardening-ansible-func-fedora-26/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ansible-hardening-ansible-func-fedora-26/run.yaml b/playbooks/legacy/ansible-hardening-ansible-func-fedora-26/run.yaml new file mode 100644 index 00000000..d5d70351 --- /dev/null +++ b/playbooks/legacy/ansible-hardening-ansible-func-fedora-26/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-ansible-hardening-ansible-func-fedora-26 from old + job gate-ansible-hardening-ansible-func-fedora-26 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-hardening-ansible-func_rhel6-ubuntu-trusty/post.yaml b/playbooks/legacy/ansible-hardening-ansible-func_rhel6-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ansible-hardening-ansible-func_rhel6-ubuntu-trusty/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ansible-hardening-ansible-func_rhel6-ubuntu-trusty/run.yaml b/playbooks/legacy/ansible-hardening-ansible-func_rhel6-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..5d7a76ac --- /dev/null +++ b/playbooks/legacy/ansible-hardening-ansible-func_rhel6-ubuntu-trusty/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-ansible-hardening-ansible-func_rhel6-ubuntu-trusty + from old job gate-ansible-hardening-ansible-func_rhel6-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func_rhel6" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func_rhel6 + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ansible-lint/run.yaml b/playbooks/legacy/ansible-lint/run.yaml new file mode 100644 index 00000000..c84570a1 --- /dev/null +++ b/playbooks/legacy/ansible-lint/run.yaml @@ -0,0 +1,77 @@ +- hosts: all + name: Autoconverted job legacy-ansible-lint from old job gate-{name}-ansible-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo -H pip install -U ansible + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo -H pip install ansible-lint + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd tests + ansible-playbook --syntax-check -i inventory test.yml -e rolename=$(basename $(dirname $(pwd))) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ansible-lint **/*.yml + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/aodh-dsvm-functional-hbase/post.yaml b/playbooks/legacy/aodh-dsvm-functional-hbase/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/aodh-dsvm-functional-hbase/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/aodh-dsvm-functional-hbase/run.yaml b/playbooks/legacy/aodh-dsvm-functional-hbase/run.yaml new file mode 100644 index 00000000..a0ff7fbc --- /dev/null +++ b/playbooks/legacy/aodh-dsvm-functional-hbase/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-aodh-dsvm-functional-hbase from old job gate-aodh-dsvm-functional-hbase-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin aodh git://git.openstack.org/openstack/aodh + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export PROJECTS="openstack/aodh $PROJECTS" + + function gate_hook { + cd /opt/stack/new/aodh/devstack/gate + ./gate_hook.sh hbase + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/aodh/aodh/tests/functional/hooks + ./post_test_hook.sh hbase + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/aodh-dsvm-functional-mongodb/post.yaml b/playbooks/legacy/aodh-dsvm-functional-mongodb/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/aodh-dsvm-functional-mongodb/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/aodh-dsvm-functional-mongodb/run.yaml b/playbooks/legacy/aodh-dsvm-functional-mongodb/run.yaml new file mode 100644 index 00000000..0420743f --- /dev/null +++ b/playbooks/legacy/aodh-dsvm-functional-mongodb/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-aodh-dsvm-functional-mongodb from old job gate-aodh-dsvm-functional-mongodb-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin aodh git://git.openstack.org/openstack/aodh + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export PROJECTS="openstack/aodh $PROJECTS" + + function gate_hook { + cd /opt/stack/new/aodh/devstack/gate + ./gate_hook.sh mongodb + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/aodh/aodh/tests/functional/hooks + ./post_test_hook.sh mongodb + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/aodh-dsvm-functional-mysql/post.yaml b/playbooks/legacy/aodh-dsvm-functional-mysql/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/aodh-dsvm-functional-mysql/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/aodh-dsvm-functional-mysql/run.yaml b/playbooks/legacy/aodh-dsvm-functional-mysql/run.yaml new file mode 100644 index 00000000..d8cd437c --- /dev/null +++ b/playbooks/legacy/aodh-dsvm-functional-mysql/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-aodh-dsvm-functional-mysql from old job gate-aodh-dsvm-functional-mysql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin aodh git://git.openstack.org/openstack/aodh + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export PROJECTS="openstack/aodh $PROJECTS" + + function gate_hook { + cd /opt/stack/new/aodh/devstack/gate + ./gate_hook.sh mysql + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/aodh/aodh/tests/functional/hooks + ./post_test_hook.sh mysql + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/aodh-dsvm-functional-postgresql/post.yaml b/playbooks/legacy/aodh-dsvm-functional-postgresql/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/aodh-dsvm-functional-postgresql/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/aodh-dsvm-functional-postgresql/run.yaml b/playbooks/legacy/aodh-dsvm-functional-postgresql/run.yaml new file mode 100644 index 00000000..c391299d --- /dev/null +++ b/playbooks/legacy/aodh-dsvm-functional-postgresql/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-aodh-dsvm-functional-postgresql from old job gate-aodh-dsvm-functional-postgresql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin aodh git://git.openstack.org/openstack/aodh + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export PROJECTS="openstack/aodh $PROJECTS" + + function gate_hook { + cd /opt/stack/new/aodh/devstack/gate + ./gate_hook.sh postgresql + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/aodh/aodh/tests/functional/hooks + ./post_test_hook.sh postgresql + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/post.yaml b/playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/run.yaml b/playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/run.yaml new file mode 100644 index 00000000..8e781114 --- /dev/null +++ b/playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-aodh-dsvm-tempest-plugin-hbase from old job gate-aodh-dsvm-tempest-plugin-hbase-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin aodh git://git.openstack.org/openstack/aodh + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^aodh\." + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export PROJECTS="openstack/aodh $PROJECTS" + export AODH_BACKEND=hbase + if [ "hbase" = "postgresql" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + if [ "x" = "x-neutron" ] ; then + export DEVSTACK_GATE_NEUTRON=1 + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/post.yaml b/playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/run.yaml b/playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/run.yaml new file mode 100644 index 00000000..89406116 --- /dev/null +++ b/playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-aodh-dsvm-tempest-plugin-mongodb from old job gate-aodh-dsvm-tempest-plugin-mongodb-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin aodh git://git.openstack.org/openstack/aodh + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^aodh\." + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export PROJECTS="openstack/aodh $PROJECTS" + export AODH_BACKEND=mongodb + if [ "mongodb" = "postgresql" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + if [ "x" = "x-neutron" ] ; then + export DEVSTACK_GATE_NEUTRON=1 + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/post.yaml b/playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/run.yaml b/playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/run.yaml new file mode 100644 index 00000000..452cfd3e --- /dev/null +++ b/playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-aodh-dsvm-tempest-plugin-mysql from old job gate-aodh-dsvm-tempest-plugin-mysql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin aodh git://git.openstack.org/openstack/aodh + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^aodh\." + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export PROJECTS="openstack/aodh $PROJECTS" + export AODH_BACKEND=mysql + if [ "mysql" = "postgresql" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + if [ "x" = "x-neutron" ] ; then + export DEVSTACK_GATE_NEUTRON=1 + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/aodh-dsvm-tempest-plugin-postgresql/post.yaml b/playbooks/legacy/aodh-dsvm-tempest-plugin-postgresql/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/aodh-dsvm-tempest-plugin-postgresql/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/aodh-dsvm-tempest-plugin-postgresql/run.yaml b/playbooks/legacy/aodh-dsvm-tempest-plugin-postgresql/run.yaml new file mode 100644 index 00000000..7fd5e928 --- /dev/null +++ b/playbooks/legacy/aodh-dsvm-tempest-plugin-postgresql/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-aodh-dsvm-tempest-plugin-postgresql from old job + gate-aodh-dsvm-tempest-plugin-postgresql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin aodh git://git.openstack.org/openstack/aodh + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^aodh\." + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export PROJECTS="openstack/aodh $PROJECTS" + export AODH_BACKEND=postgresql + if [ "postgresql" = "postgresql" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + if [ "x" = "x-neutron" ] ; then + export DEVSTACK_GATE_NEUTRON=1 + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/api-guide/post.yaml b/playbooks/legacy/api-guide/post.yaml new file mode 100644 index 00000000..8f84cf81 --- /dev/null +++ b/playbooks/legacy/api-guide/post.yaml @@ -0,0 +1,75 @@ +- hosts: all + tasks: + + - name: Copy files from api-guide/build/html/ on node + synchronize: + src: api-guide/build/html/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/api-guide/run.yaml b/playbooks/legacy/api-guide/run.yaml new file mode 100644 index 00000000..4afb297a --- /dev/null +++ b/playbooks/legacy/api-guide/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-api-guide from old job gate-{name}-api-guide + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh api-guide + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/api-ref/post.yaml b/playbooks/legacy/api-ref/post.yaml new file mode 100644 index 00000000..75275036 --- /dev/null +++ b/playbooks/legacy/api-ref/post.yaml @@ -0,0 +1,75 @@ +- hosts: all + tasks: + + - name: Copy files from api-ref/build/html/ on node + synchronize: + src: api-ref/build/html/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/api-ref/run.yaml b/playbooks/legacy/api-ref/run.yaml new file mode 100644 index 00000000..b29a149e --- /dev/null +++ b/playbooks/legacy/api-ref/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-api-ref from old job gate-{name}-api-ref + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh api-ref + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/api-site-propose-translation-update/post.yaml b/playbooks/legacy/api-site-propose-translation-update/post.yaml new file mode 100644 index 00000000..3a9a82f1 --- /dev/null +++ b/playbooks/legacy/api-site-propose-translation-update/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/api-site-propose-translation-update/run.yaml b/playbooks/legacy/api-site-propose-translation-update/run.yaml new file mode 100644 index 00000000..b1e39e18 --- /dev/null +++ b/playbooks/legacy/api-site-propose-translation-update/run.yaml @@ -0,0 +1,66 @@ +- hosts: all + name: Autoconverted job legacy-api-site-propose-translation-update from old job + api-site-propose-translation-update + tasks: + + - shell: + cmd: | + cd / + rm -rf `dirname $WORKSPACE`/* + mkdir $WORKSPACE + cd $WORKSPACE + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export BRANCH=master + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/propose_translation_update.sh $ZUUL_SHORT_PROJECT_NAME master {name}-propose-translation-update{suffix} + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/api-site-tox-doc-publish-checklang/post.yaml b/playbooks/legacy/api-site-tox-doc-publish-checklang/post.yaml new file mode 100644 index 00000000..5a81ee20 --- /dev/null +++ b/playbooks/legacy/api-site-tox-doc-publish-checklang/post.yaml @@ -0,0 +1,23 @@ +- hosts: all + tasks: + + - name: Copy files from publish-docs/ on node + synchronize: + src: publish-docs/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/build-*.log.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/api-site-tox-doc-publish-checklang/run.yaml b/playbooks/legacy/api-site-tox-doc-publish-checklang/run.yaml new file mode 100644 index 00000000..fb1f9b23 --- /dev/null +++ b/playbooks/legacy/api-site-tox-doc-publish-checklang/run.yaml @@ -0,0 +1,68 @@ +- hosts: all + name: Autoconverted job legacy-api-site-tox-doc-publish-checklang from old job gate-api-site-tox-doc-publish-checklang + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh checklang + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/api-site-upstream-translation-update/post.yaml b/playbooks/legacy/api-site-upstream-translation-update/post.yaml new file mode 100644 index 00000000..52a9f8fb --- /dev/null +++ b/playbooks/legacy/api-site-upstream-translation-update/post.yaml @@ -0,0 +1,99 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/translation-source/**/*.pot + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/api-site-upstream-translation-update/run.yaml b/playbooks/legacy/api-site-upstream-translation-update/run.yaml new file mode 100644 index 00000000..f6a42f3b --- /dev/null +++ b/playbooks/legacy/api-site-upstream-translation-update/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-api-site-upstream-translation-update from old job + api-site-upstream-translation-update + tasks: + + - shell: + cmd: | + cd / + rm -rf `dirname $WORKSPACE`/* + mkdir $WORKSPACE + cd $WORKSPACE + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/upstream_translation_update.sh $ZUUL_SHORT_PROJECT_NAME {name}-upstream-translation-update + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/app-catalog-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/app-catalog-nodejs4-npm-run-lint/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/app-catalog-nodejs4-npm-run-lint/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/app-catalog-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/app-catalog-nodejs4-npm-run-lint/run.yaml new file mode 100644 index 00000000..0e6d0258 --- /dev/null +++ b/playbooks/legacy/app-catalog-nodejs4-npm-run-lint/run.yaml @@ -0,0 +1,133 @@ +- hosts: all + name: Autoconverted job legacy-app-catalog-nodejs4-npm-run-lint from old job gate-app-catalog-nodejs4-npm-run-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )lint($| ) ]]; then + npm lint --verbose + else + npm run lint --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/app-catalog-ui-dsvm-integration/post.yaml b/playbooks/legacy/app-catalog-ui-dsvm-integration/post.yaml new file mode 100644 index 00000000..c3ff34a4 --- /dev/null +++ b/playbooks/legacy/app-catalog-ui-dsvm-integration/post.yaml @@ -0,0 +1,93 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/screenshots' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/integration_tests_screenshots/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/app-catalog-ui-dsvm-integration/run.yaml b/playbooks/legacy/app-catalog-ui-dsvm-integration/run.yaml new file mode 100644 index 00000000..33797565 --- /dev/null +++ b/playbooks/legacy/app-catalog-ui-dsvm-integration/run.yaml @@ -0,0 +1,71 @@ +- hosts: all + name: Autoconverted job legacy-app-catalog-ui-dsvm-integration from old job gate-app-catalog-ui-dsvm-integration + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin app-catalog-ui https://git.openstack.org/openstack/app-catalog-ui + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + + # Enable App Catalog Horizon plugin + export PROJECTS="openstack/app-catalog-ui $PROJECTS" + + function pre_test_hook { + $BASE/new/app-catalog-ui/tools/gate/integration/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + $BASE/new/app-catalog-ui/tools/gate/integration/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/app-catalog-ui-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/app-catalog-ui-nodejs4-npm-run-lint/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/app-catalog-ui-nodejs4-npm-run-lint/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/app-catalog-ui-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/app-catalog-ui-nodejs4-npm-run-lint/run.yaml new file mode 100644 index 00000000..1874649b --- /dev/null +++ b/playbooks/legacy/app-catalog-ui-nodejs4-npm-run-lint/run.yaml @@ -0,0 +1,134 @@ +- hosts: all + name: Autoconverted job legacy-app-catalog-ui-nodejs4-npm-run-lint from old job + gate-app-catalog-ui-nodejs4-npm-run-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )lint($| ) ]]; then + npm lint --verbose + else + npm run lint --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ara-integration-openstack-ansible-func-centos-7/post.yaml b/playbooks/legacy/ara-integration-openstack-ansible-func-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ara-integration-openstack-ansible-func-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ara-integration-openstack-ansible-func-centos-7/run.yaml b/playbooks/legacy/ara-integration-openstack-ansible-func-centos-7/run.yaml new file mode 100644 index 00000000..e29bbdeb --- /dev/null +++ b/playbooks/legacy/ara-integration-openstack-ansible-func-centos-7/run.yaml @@ -0,0 +1,71 @@ +- hosts: all + name: Autoconverted job legacy-ara-integration-openstack-ansible-func-centos-7 from + old job gate-ara-integration-openstack-ansible-func-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + rm -f $CLONEMAP + rm -rf $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/openstack-ansible-tests + dest: . + - name: openstack/requirements + dest: $REQS_DIR + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git git://git.openstack.org \ + openstack/openstack-ansible-tests \ + openstack/requirements + cp $REQS_DIR/upper-constraints.txt ./ + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + if [[ -e /usr/bin/yum ]] && [[ -x /usr/bin/yum-config-manager ]]; then + sudo yum-config-manager --disable \* + sudo yum-config-manager --enable base + sudo yum-config-manager --enable epel + sudo yum-config-manager --enable updates + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + if [[ -e /usr/bin/yum ]] && [[ -x /usr/bin/yum-config-manager ]]; then + sudo yum-config-manager --disable epel + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + /usr/local/jenkins/slave_scripts/run-tox.sh functional + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ara-integration-openstack-ansible-func/post.yaml b/playbooks/legacy/ara-integration-openstack-ansible-func/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ara-integration-openstack-ansible-func/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ara-integration-openstack-ansible-func/run.yaml b/playbooks/legacy/ara-integration-openstack-ansible-func/run.yaml new file mode 100644 index 00000000..8dd46105 --- /dev/null +++ b/playbooks/legacy/ara-integration-openstack-ansible-func/run.yaml @@ -0,0 +1,71 @@ +- hosts: all + name: Autoconverted job legacy-ara-integration-openstack-ansible-func from old job + gate-ara-integration-openstack-ansible-func-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + rm -f $CLONEMAP + rm -rf $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/openstack-ansible-tests + dest: . + - name: openstack/requirements + dest: $REQS_DIR + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git git://git.openstack.org \ + openstack/openstack-ansible-tests \ + openstack/requirements + cp $REQS_DIR/upper-constraints.txt ./ + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + if [[ -e /usr/bin/yum ]] && [[ -x /usr/bin/yum-config-manager ]]; then + sudo yum-config-manager --disable \* + sudo yum-config-manager --enable base + sudo yum-config-manager --enable epel + sudo yum-config-manager --enable updates + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + if [[ -e /usr/bin/yum ]] && [[ -x /usr/bin/yum-config-manager ]]; then + sudo yum-config-manager --disable epel + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + /usr/local/jenkins/slave_scripts/run-tox.sh functional + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ara-integration-py27-2.2.3.0-centos-7/post.yaml b/playbooks/legacy/ara-integration-py27-2.2.3.0-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ara-integration-py27-2.2.3.0-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ara-integration-py27-2.2.3.0-centos-7/run.yaml b/playbooks/legacy/ara-integration-py27-2.2.3.0-centos-7/run.yaml new file mode 100644 index 00000000..df005776 --- /dev/null +++ b/playbooks/legacy/ara-integration-py27-2.2.3.0-centos-7/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-ara-integration-py27-2.2.3.0-centos-7 from old job + gate-ara-integration-py27-2.2.3.0-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ./run_tests.sh --python py27 --ansible 2.2.3.0 + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ara-integration-py27-devel-centos-7/post.yaml b/playbooks/legacy/ara-integration-py27-devel-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ara-integration-py27-devel-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ara-integration-py27-devel-centos-7/run.yaml b/playbooks/legacy/ara-integration-py27-devel-centos-7/run.yaml new file mode 100644 index 00000000..a6765f62 --- /dev/null +++ b/playbooks/legacy/ara-integration-py27-devel-centos-7/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-ara-integration-py27-devel-centos-7 from old job + gate-ara-integration-py27-devel-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ./run_tests.sh --python py27 --ansible devel + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ara-integration-py27-latest-centos-7/post.yaml b/playbooks/legacy/ara-integration-py27-latest-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ara-integration-py27-latest-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ara-integration-py27-latest-centos-7/run.yaml b/playbooks/legacy/ara-integration-py27-latest-centos-7/run.yaml new file mode 100644 index 00000000..cd0d33de --- /dev/null +++ b/playbooks/legacy/ara-integration-py27-latest-centos-7/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-ara-integration-py27-latest-centos-7 from old job + gate-ara-integration-py27-latest-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ./run_tests.sh --python py27 --ansible latest + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ara-integration-py35-devel-fedora-26/post.yaml b/playbooks/legacy/ara-integration-py35-devel-fedora-26/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ara-integration-py35-devel-fedora-26/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ara-integration-py35-devel-fedora-26/run.yaml b/playbooks/legacy/ara-integration-py35-devel-fedora-26/run.yaml new file mode 100644 index 00000000..1dda0e4c --- /dev/null +++ b/playbooks/legacy/ara-integration-py35-devel-fedora-26/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-ara-integration-py35-devel-fedora-26 from old job + gate-ara-integration-py35-devel-fedora-26-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ./run_tests.sh --python py35 --ansible devel + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ara-integration-py35-devel/post.yaml b/playbooks/legacy/ara-integration-py35-devel/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ara-integration-py35-devel/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ara-integration-py35-devel/run.yaml b/playbooks/legacy/ara-integration-py35-devel/run.yaml new file mode 100644 index 00000000..9742264f --- /dev/null +++ b/playbooks/legacy/ara-integration-py35-devel/run.yaml @@ -0,0 +1,43 @@ +- hosts: all + name: Autoconverted job legacy-ara-integration-py35-devel from old job gate-ara-integration-py35-devel-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ./run_tests.sh --python py35 --ansible devel + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ara-integration-py35-latest-fedora-26/post.yaml b/playbooks/legacy/ara-integration-py35-latest-fedora-26/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ara-integration-py35-latest-fedora-26/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ara-integration-py35-latest-fedora-26/run.yaml b/playbooks/legacy/ara-integration-py35-latest-fedora-26/run.yaml new file mode 100644 index 00000000..010f32c5 --- /dev/null +++ b/playbooks/legacy/ara-integration-py35-latest-fedora-26/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-ara-integration-py35-latest-fedora-26 from old job + gate-ara-integration-py35-latest-fedora-26 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ./run_tests.sh --python py35 --ansible latest + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ara-integration-py35-latest/post.yaml b/playbooks/legacy/ara-integration-py35-latest/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ara-integration-py35-latest/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ara-integration-py35-latest/run.yaml b/playbooks/legacy/ara-integration-py35-latest/run.yaml new file mode 100644 index 00000000..77c4e8bd --- /dev/null +++ b/playbooks/legacy/ara-integration-py35-latest/run.yaml @@ -0,0 +1,43 @@ +- hosts: all + name: Autoconverted job legacy-ara-integration-py35-latest from old job gate-ara-integration-py35-latest-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ./run_tests.sh --python py35 --ansible latest + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/astara-appliance-buildimage/post.yaml b/playbooks/legacy/astara-appliance-buildimage/post.yaml new file mode 100644 index 00000000..0fb1647c --- /dev/null +++ b/playbooks/legacy/astara-appliance-buildimage/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/astara_appliance*.qcow2 + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/astara-appliance-buildimage/run.yaml b/playbooks/legacy/astara-appliance-buildimage/run.yaml new file mode 100644 index 00000000..7ba41c6d --- /dev/null +++ b/playbooks/legacy/astara-appliance-buildimage/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-astara-appliance-buildimage from old job astara-appliance-buildimage-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y qemu kpartx debootstrap + sudo -H pip install dib-utils + sudo -H pip install diskimage-builder + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tox -e build_image + if [[ "$ZUUL_REFNAME" =~ "stable" ]]; then + branch="$(echo $ZUUL_REFNAME | cut -d/ -f2)" + branch_tag="_$branch" + else + branch_tag="" + fi + mv build/astara_appliance*.qcow2 $WORKSPACE/astara_appliance$branch_tag.qcow2 + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-barbican/run.yaml b/playbooks/legacy/bandit-integration-barbican/run.yaml new file mode 100644 index 00000000..3095997e --- /dev/null +++ b/playbooks/legacy/bandit-integration-barbican/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-bandit-integration-barbican from old job gate-bandit-integration-barbican + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bandit \ + openstack/barbican + + cd $WORKSPACE/openstack/bandit + + tox -e integration openstack barbican \ + $WORKSPACE/openstack/barbican + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-glance/run.yaml b/playbooks/legacy/bandit-integration-glance/run.yaml new file mode 100644 index 00000000..9aaf06fc --- /dev/null +++ b/playbooks/legacy/bandit-integration-glance/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-bandit-integration-glance from old job gate-bandit-integration-glance + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bandit \ + openstack/glance + + cd $WORKSPACE/openstack/bandit + + tox -e integration openstack glance \ + $WORKSPACE/openstack/glance + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-glance_store/run.yaml b/playbooks/legacy/bandit-integration-glance_store/run.yaml new file mode 100644 index 00000000..13e16007 --- /dev/null +++ b/playbooks/legacy/bandit-integration-glance_store/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-bandit-integration-glance_store from old job gate-bandit-integration-glance_store + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bandit \ + openstack/glance_store + + cd $WORKSPACE/openstack/bandit + + tox -e integration openstack glance_store \ + $WORKSPACE/openstack/glance_store + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-keystone/run.yaml b/playbooks/legacy/bandit-integration-keystone/run.yaml new file mode 100644 index 00000000..01449362 --- /dev/null +++ b/playbooks/legacy/bandit-integration-keystone/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-bandit-integration-keystone from old job gate-bandit-integration-keystone + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bandit \ + openstack/keystone + + cd $WORKSPACE/openstack/bandit + + tox -e integration openstack keystone \ + $WORKSPACE/openstack/keystone + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-keystonemiddleware/run.yaml b/playbooks/legacy/bandit-integration-keystonemiddleware/run.yaml new file mode 100644 index 00000000..dcd8d034 --- /dev/null +++ b/playbooks/legacy/bandit-integration-keystonemiddleware/run.yaml @@ -0,0 +1,27 @@ +- hosts: all + name: Autoconverted job legacy-bandit-integration-keystonemiddleware from old job + gate-bandit-integration-keystonemiddleware + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bandit \ + openstack/keystonemiddleware + + cd $WORKSPACE/openstack/bandit + + tox -e integration openstack keystonemiddleware \ + $WORKSPACE/openstack/keystonemiddleware + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-magnum/run.yaml b/playbooks/legacy/bandit-integration-magnum/run.yaml new file mode 100644 index 00000000..9770f23c --- /dev/null +++ b/playbooks/legacy/bandit-integration-magnum/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-bandit-integration-magnum from old job gate-bandit-integration-magnum + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bandit \ + openstack/magnum + + cd $WORKSPACE/openstack/bandit + + tox -e integration openstack magnum \ + $WORKSPACE/openstack/magnum + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-oslo.config/run.yaml b/playbooks/legacy/bandit-integration-oslo.config/run.yaml new file mode 100644 index 00000000..762de40c --- /dev/null +++ b/playbooks/legacy/bandit-integration-oslo.config/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-bandit-integration-oslo.config from old job gate-bandit-integration-oslo.config + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bandit \ + openstack/oslo.config + + cd $WORKSPACE/openstack/bandit + + tox -e integration openstack oslo.config \ + $WORKSPACE/openstack/oslo.config + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-oslo.log/run.yaml b/playbooks/legacy/bandit-integration-oslo.log/run.yaml new file mode 100644 index 00000000..d47e518b --- /dev/null +++ b/playbooks/legacy/bandit-integration-oslo.log/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-bandit-integration-oslo.log from old job gate-bandit-integration-oslo.log + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bandit \ + openstack/oslo.log + + cd $WORKSPACE/openstack/bandit + + tox -e integration openstack oslo.log \ + $WORKSPACE/openstack/oslo.log + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-oslo.service/run.yaml b/playbooks/legacy/bandit-integration-oslo.service/run.yaml new file mode 100644 index 00000000..f69facd3 --- /dev/null +++ b/playbooks/legacy/bandit-integration-oslo.service/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-bandit-integration-oslo.service from old job gate-bandit-integration-oslo.service + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bandit \ + openstack/oslo.service + + cd $WORKSPACE/openstack/bandit + + tox -e integration openstack oslo.service \ + $WORKSPACE/openstack/oslo.service + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-oslo.utils/run.yaml b/playbooks/legacy/bandit-integration-oslo.utils/run.yaml new file mode 100644 index 00000000..c4192da1 --- /dev/null +++ b/playbooks/legacy/bandit-integration-oslo.utils/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-bandit-integration-oslo.utils from old job gate-bandit-integration-oslo.utils + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bandit \ + openstack/oslo.utils + + cd $WORKSPACE/openstack/bandit + + tox -e integration openstack oslo.utils \ + $WORKSPACE/openstack/oslo.utils + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-oslo.vmware/run.yaml b/playbooks/legacy/bandit-integration-oslo.vmware/run.yaml new file mode 100644 index 00000000..a1b09205 --- /dev/null +++ b/playbooks/legacy/bandit-integration-oslo.vmware/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-bandit-integration-oslo.vmware from old job gate-bandit-integration-oslo.vmware + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bandit \ + openstack/oslo.vmware + + cd $WORKSPACE/openstack/bandit + + tox -e integration openstack oslo.vmware \ + $WORKSPACE/openstack/oslo.vmware + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-python-keystoneclient/run.yaml b/playbooks/legacy/bandit-integration-python-keystoneclient/run.yaml new file mode 100644 index 00000000..71d92ba6 --- /dev/null +++ b/playbooks/legacy/bandit-integration-python-keystoneclient/run.yaml @@ -0,0 +1,27 @@ +- hosts: all + name: Autoconverted job legacy-bandit-integration-python-keystoneclient from old + job gate-bandit-integration-python-keystoneclient + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bandit \ + openstack/python-keystoneclient + + cd $WORKSPACE/openstack/bandit + + tox -e integration openstack python-keystoneclient \ + $WORKSPACE/openstack/python-keystoneclient + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-python-magnumclient/run.yaml b/playbooks/legacy/bandit-integration-python-magnumclient/run.yaml new file mode 100644 index 00000000..bad3db90 --- /dev/null +++ b/playbooks/legacy/bandit-integration-python-magnumclient/run.yaml @@ -0,0 +1,27 @@ +- hosts: all + name: Autoconverted job legacy-bandit-integration-python-magnumclient from old job + gate-bandit-integration-python-magnumclient + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bandit \ + openstack/python-magnumclient + + cd $WORKSPACE/openstack/bandit + + tox -e integration openstack python-magnumclient \ + $WORKSPACE/openstack/python-magnumclient + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bandit-integration-sahara/run.yaml b/playbooks/legacy/bandit-integration-sahara/run.yaml new file mode 100644 index 00000000..980b90f8 --- /dev/null +++ b/playbooks/legacy/bandit-integration-sahara/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-bandit-integration-sahara from old job gate-bandit-integration-sahara + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bandit \ + openstack/sahara + + cd $WORKSPACE/openstack/bandit + + tox -e integration openstack sahara \ + $WORKSPACE/openstack/sahara + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-dogtag-devstack-fedora-26/post.yaml b/playbooks/legacy/barbican-dogtag-devstack-fedora-26/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/barbican-dogtag-devstack-fedora-26/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/barbican-dogtag-devstack-fedora-26/run.yaml b/playbooks/legacy/barbican-dogtag-devstack-fedora-26/run.yaml new file mode 100644 index 00000000..fbdd82d9 --- /dev/null +++ b/playbooks/legacy/barbican-dogtag-devstack-fedora-26/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-barbican-dogtag-devstack-fedora-26 from old job gate-barbican-dogtag-devstack-fedora-26-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export ENABLED_SERVICES='barbican-dogtag,tempest,keystone' + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican git://git.openstack.org/openstack/barbican" + if [ "" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + function gate_hook { + $BASE/new/barbican/devstack/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/barbican/functionaltests + ./post_test_hook.sh 'dogtag' + } + export -f post_test_hook + + if [ "" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-dogtag-dsvm-functional-fedora-26/post.yaml b/playbooks/legacy/barbican-dogtag-dsvm-functional-fedora-26/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/barbican-dogtag-dsvm-functional-fedora-26/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/barbican-dogtag-dsvm-functional-fedora-26/run.yaml b/playbooks/legacy/barbican-dogtag-dsvm-functional-fedora-26/run.yaml new file mode 100644 index 00000000..03b609f2 --- /dev/null +++ b/playbooks/legacy/barbican-dogtag-dsvm-functional-fedora-26/run.yaml @@ -0,0 +1,67 @@ +- hosts: all + name: Autoconverted job legacy-barbican-dogtag-dsvm-functional-fedora-26 from old + job gate-barbican-dogtag-dsvm-functional-fedora-26 + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin barbican git://git.openstack.org/openstack/barbican + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export OVERRIDE_ENABLED_SERVICES='barbican-dogtag,tempest,rabbit,mysql,key' + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + + if [ "" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + function gate_hook { + $BASE/new/barbican/devstack/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/barbican/functionaltests + ./post_test_hook.sh 'dogtag' + } + export -f post_test_hook + + if [ "" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-kmip-dsvm-functional/post.yaml b/playbooks/legacy/barbican-kmip-dsvm-functional/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/barbican-kmip-dsvm-functional/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/barbican-kmip-dsvm-functional/run.yaml b/playbooks/legacy/barbican-kmip-dsvm-functional/run.yaml new file mode 100644 index 00000000..18bb45d4 --- /dev/null +++ b/playbooks/legacy/barbican-kmip-dsvm-functional/run.yaml @@ -0,0 +1,66 @@ +- hosts: all + name: Autoconverted job legacy-barbican-kmip-dsvm-functional from old job gate-barbican-kmip-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin barbican git://git.openstack.org/openstack/barbican + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export OVERRIDE_ENABLED_SERVICES='barbican-pykmip,pykmip-server,tempest,rabbit,mysql,key' + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + + if [ "" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + function gate_hook { + $BASE/new/barbican/devstack/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/barbican/functionaltests + ./post_test_hook.sh 'kmip' + } + export -f post_test_hook + + if [ "" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-devstack-postgres/post.yaml b/playbooks/legacy/barbican-simple-crypto-devstack-postgres/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-devstack-postgres/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/barbican-simple-crypto-devstack-postgres/run.yaml b/playbooks/legacy/barbican-simple-crypto-devstack-postgres/run.yaml new file mode 100644 index 00000000..70301db4 --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-devstack-postgres/run.yaml @@ -0,0 +1,59 @@ +- hosts: all + name: Autoconverted job legacy-barbican-simple-crypto-devstack-postgres from old + job gate-barbican-simple-crypto-devstack-postgres-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export ENABLED_SERVICES='tempest,keystone' + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican git://git.openstack.org/openstack/barbican" + if [ "-postgres" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + function gate_hook { + $BASE/new/barbican/devstack/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/barbican/functionaltests + ./post_test_hook.sh 'simple-crypto' + } + export -f post_test_hook + + if [ "-postgres" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-devstack/post.yaml b/playbooks/legacy/barbican-simple-crypto-devstack/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-devstack/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/barbican-simple-crypto-devstack/run.yaml b/playbooks/legacy/barbican-simple-crypto-devstack/run.yaml new file mode 100644 index 00000000..2317764f --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-devstack/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-barbican-simple-crypto-devstack from old job gate-barbican-simple-crypto-devstack-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export ENABLED_SERVICES='tempest,keystone' + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican git://git.openstack.org/openstack/barbican" + if [ "" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + function gate_hook { + $BASE/new/barbican/devstack/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/barbican/functionaltests + ./post_test_hook.sh 'simple-crypto' + } + export -f post_test_hook + + if [ "" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-functional-postgres/post.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-functional-postgres/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-functional-postgres/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-functional-postgres/run.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-functional-postgres/run.yaml new file mode 100644 index 00000000..a6ca718c --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-functional-postgres/run.yaml @@ -0,0 +1,67 @@ +- hosts: all + name: Autoconverted job legacy-barbican-simple-crypto-dsvm-functional-postgres from + old job gate-barbican-simple-crypto-dsvm-functional-postgres-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin barbican git://git.openstack.org/openstack/barbican + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export OVERRIDE_ENABLED_SERVICES='tempest,rabbit,mysql,key' + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + + if [ "-postgres" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + function gate_hook { + $BASE/new/barbican/devstack/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/barbican/functionaltests + ./post_test_hook.sh 'simple-crypto' + } + export -f post_test_hook + + if [ "-postgres" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-functional-py35/post.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-functional-py35/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-functional-py35/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-functional-py35/run.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-functional-py35/run.yaml new file mode 100644 index 00000000..a02d3093 --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-functional-py35/run.yaml @@ -0,0 +1,67 @@ +- hosts: all + name: Autoconverted job legacy-barbican-simple-crypto-dsvm-functional-py35 from + old job gate-barbican-simple-crypto-dsvm-functional-py35-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin barbican git://git.openstack.org/openstack/barbican + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export OVERRIDE_ENABLED_SERVICES='tempest,rabbit,mysql,key' + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + + if [ "-py35" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + function gate_hook { + $BASE/new/barbican/devstack/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/barbican/functionaltests + ./post_test_hook.sh 'simple-crypto' + } + export -f post_test_hook + + if [ "-py35" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-functional/post.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-functional/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-functional/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-functional/run.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-functional/run.yaml new file mode 100644 index 00000000..4333e509 --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-functional/run.yaml @@ -0,0 +1,67 @@ +- hosts: all + name: Autoconverted job legacy-barbican-simple-crypto-dsvm-functional from old job + gate-barbican-simple-crypto-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin barbican git://git.openstack.org/openstack/barbican + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export OVERRIDE_ENABLED_SERVICES='tempest,rabbit,mysql,key' + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + + if [ "" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + function gate_hook { + $BASE/new/barbican/devstack/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/barbican/functionaltests + ./post_test_hook.sh 'simple-crypto' + } + export -f post_test_hook + + if [ "" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-castellan-from-git/post.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-castellan-from-git/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-castellan-from-git/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-castellan-from-git/run.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-castellan-from-git/run.yaml new file mode 100644 index 00000000..6504e3f1 --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-castellan-from-git/run.yaml @@ -0,0 +1,66 @@ +- hosts: all + name: Autoconverted job legacy-barbican-simple-crypto-dsvm-tempest-castellan-from-git + from old job gate-barbican-simple-crypto-dsvm-tempest-castellan-from-git-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX=barbican + export KEEP_LOCALRC=1 + + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican git://git.openstack.org/openstack/barbican" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export TEMPEST_PLUGINS='/opt/stack/new/barbican-tempest-plugin'" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Add configuration values for enabling security features in local.conf + function pre_test_hook { + if [ -f $BASE/new/barbican-tempest-plugin/tools/pre_test_hook.sh ] ; then + . $BASE/new/barbican-tempest-plugin/tools/pre_test_hook.sh + fi + } + export -f pre_test_hook + + if [ "-castellan-from-git" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + elif [ "-castellan-from-git" == "-castellan-from-git" ] ; then + export DEVSTACK_PROJECT_FROM_GIT="castellan" + elif [ "-castellan-from-git" == "-cursive" ] ; then + export DEVSTACK_PROJECT_FROM_GIT="cursive" + elif [ "-castellan-from-git" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-cursive/post.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-cursive/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-cursive/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-cursive/run.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-cursive/run.yaml new file mode 100644 index 00000000..d651a000 --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-cursive/run.yaml @@ -0,0 +1,66 @@ +- hosts: all + name: Autoconverted job legacy-barbican-simple-crypto-dsvm-tempest-cursive from + old job gate-barbican-simple-crypto-dsvm-tempest-cursive-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX=barbican + export KEEP_LOCALRC=1 + + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican git://git.openstack.org/openstack/barbican" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export TEMPEST_PLUGINS='/opt/stack/new/barbican-tempest-plugin'" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Add configuration values for enabling security features in local.conf + function pre_test_hook { + if [ -f $BASE/new/barbican-tempest-plugin/tools/pre_test_hook.sh ] ; then + . $BASE/new/barbican-tempest-plugin/tools/pre_test_hook.sh + fi + } + export -f pre_test_hook + + if [ "-cursive" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + elif [ "-cursive" == "-castellan-from-git" ] ; then + export DEVSTACK_PROJECT_FROM_GIT="castellan" + elif [ "-cursive" == "-cursive" ] ; then + export DEVSTACK_PROJECT_FROM_GIT="cursive" + elif [ "-cursive" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-glance/post.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-glance/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-glance/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-glance/run.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-glance/run.yaml new file mode 100644 index 00000000..222c9cbe --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-glance/run.yaml @@ -0,0 +1,66 @@ +- hosts: all + name: Autoconverted job legacy-barbican-simple-crypto-dsvm-tempest-glance from old + job gate-barbican-simple-crypto-dsvm-tempest-glance-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX=barbican + export KEEP_LOCALRC=1 + + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican git://git.openstack.org/openstack/barbican" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export TEMPEST_PLUGINS='/opt/stack/new/barbican-tempest-plugin'" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Add configuration values for enabling security features in local.conf + function pre_test_hook { + if [ -f $BASE/new/barbican-tempest-plugin/tools/pre_test_hook.sh ] ; then + . $BASE/new/barbican-tempest-plugin/tools/pre_test_hook.sh + fi + } + export -f pre_test_hook + + if [ "-glance" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + elif [ "-glance" == "-castellan-from-git" ] ; then + export DEVSTACK_PROJECT_FROM_GIT="castellan" + elif [ "-glance" == "-cursive" ] ; then + export DEVSTACK_PROJECT_FROM_GIT="cursive" + elif [ "-glance" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-nova/post.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-nova/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-nova/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-nova/run.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-nova/run.yaml new file mode 100644 index 00000000..ed354c9d --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-nova/run.yaml @@ -0,0 +1,66 @@ +- hosts: all + name: Autoconverted job legacy-barbican-simple-crypto-dsvm-tempest-nova from old + job gate-barbican-simple-crypto-dsvm-tempest-nova-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX=barbican + export KEEP_LOCALRC=1 + + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican git://git.openstack.org/openstack/barbican" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export TEMPEST_PLUGINS='/opt/stack/new/barbican-tempest-plugin'" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Add configuration values for enabling security features in local.conf + function pre_test_hook { + if [ -f $BASE/new/barbican-tempest-plugin/tools/pre_test_hook.sh ] ; then + . $BASE/new/barbican-tempest-plugin/tools/pre_test_hook.sh + fi + } + export -f pre_test_hook + + if [ "-nova" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + elif [ "-nova" == "-castellan-from-git" ] ; then + export DEVSTACK_PROJECT_FROM_GIT="castellan" + elif [ "-nova" == "-cursive" ] ; then + export DEVSTACK_PROJECT_FROM_GIT="cursive" + elif [ "-nova" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-py35/post.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-py35/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-py35/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-py35/run.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-py35/run.yaml new file mode 100644 index 00000000..b32c9437 --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest-py35/run.yaml @@ -0,0 +1,66 @@ +- hosts: all + name: Autoconverted job legacy-barbican-simple-crypto-dsvm-tempest-py35 from old + job gate-barbican-simple-crypto-dsvm-tempest-py35-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX=barbican + export KEEP_LOCALRC=1 + + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican git://git.openstack.org/openstack/barbican" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export TEMPEST_PLUGINS='/opt/stack/new/barbican-tempest-plugin'" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Add configuration values for enabling security features in local.conf + function pre_test_hook { + if [ -f $BASE/new/barbican-tempest-plugin/tools/pre_test_hook.sh ] ; then + . $BASE/new/barbican-tempest-plugin/tools/pre_test_hook.sh + fi + } + export -f pre_test_hook + + if [ "-py35" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + elif [ "-py35" == "-castellan-from-git" ] ; then + export DEVSTACK_PROJECT_FROM_GIT="castellan" + elif [ "-py35" == "-cursive" ] ; then + export DEVSTACK_PROJECT_FROM_GIT="cursive" + elif [ "-py35" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest/post.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/barbican-simple-crypto-dsvm-tempest/run.yaml b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest/run.yaml new file mode 100644 index 00000000..2f1ceeff --- /dev/null +++ b/playbooks/legacy/barbican-simple-crypto-dsvm-tempest/run.yaml @@ -0,0 +1,66 @@ +- hosts: all + name: Autoconverted job legacy-barbican-simple-crypto-dsvm-tempest from old job + gate-barbican-simple-crypto-dsvm-tempest-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX=barbican + export KEEP_LOCALRC=1 + + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican git://git.openstack.org/openstack/barbican" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export TEMPEST_PLUGINS='/opt/stack/new/barbican-tempest-plugin'" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Add configuration values for enabling security features in local.conf + function pre_test_hook { + if [ -f $BASE/new/barbican-tempest-plugin/tools/pre_test_hook.sh ] ; then + . $BASE/new/barbican-tempest-plugin/tools/pre_test_hook.sh + fi + } + export -f pre_test_hook + + if [ "" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + elif [ "" == "-castellan-from-git" ] ; then + export DEVSTACK_PROJECT_FROM_GIT="castellan" + elif [ "" == "-cursive" ] ; then + export DEVSTACK_PROJECT_FROM_GIT="cursive" + elif [ "" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bashate-devstack/run.yaml b/playbooks/legacy/bashate-devstack/run.yaml new file mode 100644 index 00000000..6919c8f2 --- /dev/null +++ b/playbooks/legacy/bashate-devstack/run.yaml @@ -0,0 +1,32 @@ +- hosts: all + name: Autoconverted job legacy-bashate-devstack from old job gate-bashate-devstack + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-dev/bashate \ + openstack-dev/devstack \ + openstack-infra/devstack-gate + + export BASHATE_INSTALL_PATH=$WORKSPACE/openstack-dev/bashate + + pushd openstack-dev/devstack + tox -e bashate + popd + + pushd openstack-infra/devstack-gate + tox -e bashate + popd + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bashate-python36-fedora-26/post.yaml b/playbooks/legacy/bashate-python36-fedora-26/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/bashate-python36-fedora-26/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/bashate-python36-fedora-26/run.yaml b/playbooks/legacy/bashate-python36-fedora-26/run.yaml new file mode 100644 index 00000000..543cfc0c --- /dev/null +++ b/playbooks/legacy/bashate-python36-fedora-26/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-bashate-python36-fedora-26 from old job gate-bashate-python36-fedora-26-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py36 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/beaker-localhost-rake/post.yaml b/playbooks/legacy/beaker-localhost-rake/post.yaml new file mode 100644 index 00000000..71985a79 --- /dev/null +++ b/playbooks/legacy/beaker-localhost-rake/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/coverage/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/beaker-localhost-rake/run.yaml b/playbooks/legacy/beaker-localhost-rake/run.yaml new file mode 100644 index 00000000..c2712878 --- /dev/null +++ b/playbooks/legacy/beaker-localhost-rake/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-beaker-localhost-rake from old job gate-beaker-localhost-rake + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + bundle install + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + mkdir -p .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + bundle exec rake + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/beaker-nodepool-rake/post.yaml b/playbooks/legacy/beaker-nodepool-rake/post.yaml new file mode 100644 index 00000000..71985a79 --- /dev/null +++ b/playbooks/legacy/beaker-nodepool-rake/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/coverage/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/beaker-nodepool-rake/run.yaml b/playbooks/legacy/beaker-nodepool-rake/run.yaml new file mode 100644 index 00000000..19372d78 --- /dev/null +++ b/playbooks/legacy/beaker-nodepool-rake/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-beaker-nodepool-rake from old job gate-beaker-nodepool-rake + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + bundle install + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + mkdir -p .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + bundle exec rake + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-dhcp-centos-7/post.yaml b/playbooks/legacy/bifrost-integration-dhcp-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dhcp-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/bifrost-integration-dhcp-centos-7/run.yaml b/playbooks/legacy/bifrost-integration-dhcp-centos-7/run.yaml new file mode 100644 index 00000000..bb23a5d3 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dhcp-centos-7/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-bifrost-integration-dhcp-centos-7 from old job gate-bifrost-integration-dhcp-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bifrost \ + openstack/diskimage-builder \ + openstack/ironic \ + openstack/python-ironicclient \ + openstack-infra/shade \ + openstack/ironic-inspector \ + openstack/python-ironic-inspector-client \ + openstack/requirements + export GIT_BASE=$(pwd) + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + cd openstack/bifrost + scripts/test-bifrost-inventory-dhcp.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/post.yaml b/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/run.yaml b/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/run.yaml new file mode 100644 index 00000000..89bbcadf --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dhcp-opensuse-423/run.yaml @@ -0,0 +1,66 @@ +- hosts: all + name: Autoconverted job legacy-bifrost-integration-dhcp-opensuse-423 from old job + gate-bifrost-integration-dhcp-opensuse-423-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bifrost \ + openstack/diskimage-builder \ + openstack/ironic \ + openstack/python-ironicclient \ + openstack-infra/shade \ + openstack/ironic-inspector \ + openstack/python-ironic-inspector-client \ + openstack/requirements + export GIT_BASE=$(pwd) + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + cd openstack/bifrost + scripts/test-bifrost-inventory-dhcp.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-dhcp/post.yaml b/playbooks/legacy/bifrost-integration-dhcp/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dhcp/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/bifrost-integration-dhcp/run.yaml b/playbooks/legacy/bifrost-integration-dhcp/run.yaml new file mode 100644 index 00000000..057c5a00 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dhcp/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-bifrost-integration-dhcp from old job gate-bifrost-integration-dhcp-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bifrost \ + openstack/diskimage-builder \ + openstack/ironic \ + openstack/python-ironicclient \ + openstack-infra/shade \ + openstack/ironic-inspector \ + openstack/python-ironic-inspector-client \ + openstack/requirements + export GIT_BASE=$(pwd) + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + cd openstack/bifrost + scripts/test-bifrost-inventory-dhcp.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/post.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/run.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/run.yaml new file mode 100644 index 00000000..fd3a7aec --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/run.yaml @@ -0,0 +1,66 @@ +- hosts: all + name: Autoconverted job legacy-bifrost-integration-dibipa-debian-centos-7 from old + job gate-bifrost-integration-dibipa-debian-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bifrost \ + openstack/diskimage-builder \ + openstack/ironic \ + openstack/python-ironicclient \ + openstack-infra/shade \ + openstack/ironic-inspector \ + openstack/python-ironic-inspector-client \ + openstack/requirements + export GIT_BASE=$(pwd) + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + cd openstack/bifrost + scripts/test-bifrost-build-images.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/post.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/run.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/run.yaml new file mode 100644 index 00000000..d02ced5c --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/run.yaml @@ -0,0 +1,66 @@ +- hosts: all + name: Autoconverted job legacy-bifrost-integration-dibipa-debian-opensuse-423 from + old job gate-bifrost-integration-dibipa-debian-opensuse-423-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bifrost \ + openstack/diskimage-builder \ + openstack/ironic \ + openstack/python-ironicclient \ + openstack-infra/shade \ + openstack/ironic-inspector \ + openstack/python-ironic-inspector-client \ + openstack/requirements + export GIT_BASE=$(pwd) + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + cd openstack/bifrost + scripts/test-bifrost-build-images.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-dibipa-debian/post.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dibipa-debian/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/bifrost-integration-dibipa-debian/run.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian/run.yaml new file mode 100644 index 00000000..9f412071 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-dibipa-debian/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-bifrost-integration-dibipa-debian from old job gate-bifrost-integration-dibipa-debian-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bifrost \ + openstack/diskimage-builder \ + openstack/ironic \ + openstack/python-ironicclient \ + openstack-infra/shade \ + openstack/ironic-inspector \ + openstack/python-ironic-inspector-client \ + openstack/requirements + export GIT_BASE=$(pwd) + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + cd openstack/bifrost + scripts/test-bifrost-build-images.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-tinyipa-centos-7/post.yaml b/playbooks/legacy/bifrost-integration-tinyipa-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-tinyipa-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/bifrost-integration-tinyipa-centos-7/run.yaml b/playbooks/legacy/bifrost-integration-tinyipa-centos-7/run.yaml new file mode 100644 index 00000000..52f0582d --- /dev/null +++ b/playbooks/legacy/bifrost-integration-tinyipa-centos-7/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-bifrost-integration-tinyipa-centos-7 from old job + gate-bifrost-integration-tinyipa-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bifrost \ + openstack/ironic \ + openstack/python-ironicclient \ + openstack-infra/shade \ + openstack/ironic-inspector \ + openstack/python-ironic-inspector-client \ + openstack/requirements + export GIT_BASE=$(pwd) + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + cd openstack/bifrost + scripts/test-bifrost.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/post.yaml b/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/run.yaml b/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/run.yaml new file mode 100644 index 00000000..79770855 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-bifrost-integration-tinyipa-opensuse-423 from old + job gate-bifrost-integration-tinyipa-opensuse-423 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bifrost \ + openstack/ironic \ + openstack/python-ironicclient \ + openstack-infra/shade \ + openstack/ironic-inspector \ + openstack/python-ironic-inspector-client \ + openstack/requirements + export GIT_BASE=$(pwd) + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + cd openstack/bifrost + scripts/test-bifrost.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bifrost-integration-tinyipa/post.yaml b/playbooks/legacy/bifrost-integration-tinyipa/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-tinyipa/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/bifrost-integration-tinyipa/run.yaml b/playbooks/legacy/bifrost-integration-tinyipa/run.yaml new file mode 100644 index 00000000..95913125 --- /dev/null +++ b/playbooks/legacy/bifrost-integration-tinyipa/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-bifrost-integration-tinyipa from old job gate-bifrost-integration-tinyipa-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/bifrost \ + openstack/ironic \ + openstack/python-ironicclient \ + openstack-infra/shade \ + openstack/ironic-inspector \ + openstack/python-ironic-inspector-client \ + openstack/requirements + export GIT_BASE=$(pwd) + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + cd openstack/bifrost + scripts/test-bifrost.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bindep-fallback-centos-7/post.yaml b/playbooks/legacy/bindep-fallback-centos-7/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/bindep-fallback-centos-7/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/bindep-fallback-centos-7/run.yaml b/playbooks/legacy/bindep-fallback-centos-7/run.yaml new file mode 100644 index 00000000..18ef1fbb --- /dev/null +++ b/playbooks/legacy/bindep-fallback-centos-7/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-bindep-fallback-centos-7 from old job gate-{name}-bindep-fallback-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # use the fallback list instead of existing bindep.txt + export PACKAGES=/usr/local/jenkins/common_data/bindep-fallback.txt + if [ "$ZUUL_PROJECT" == "openstack-infra/bindep" ] ; then + # if testing a change to bindep, use its entrypoint + virtualenv bindep-env + bindep-env/bin/pip install -U . + export BINDEP=bindep-env/bin/bindep + elif [ "$ZUUL_PROJECT" == "openstack-infra/project-config" ] ; then + # if testing a change to project-config, use its fallback list + export PACKAGES=jenkins/data/bindep-fallback.txt + fi + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bindep-fallback-debian-jessie/post.yaml b/playbooks/legacy/bindep-fallback-debian-jessie/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/bindep-fallback-debian-jessie/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/bindep-fallback-debian-jessie/run.yaml b/playbooks/legacy/bindep-fallback-debian-jessie/run.yaml new file mode 100644 index 00000000..b8a1c1ef --- /dev/null +++ b/playbooks/legacy/bindep-fallback-debian-jessie/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-bindep-fallback-debian-jessie from old job gate-{name}-bindep-fallback-debian-jessie + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # use the fallback list instead of existing bindep.txt + export PACKAGES=/usr/local/jenkins/common_data/bindep-fallback.txt + if [ "$ZUUL_PROJECT" == "openstack-infra/bindep" ] ; then + # if testing a change to bindep, use its entrypoint + virtualenv bindep-env + bindep-env/bin/pip install -U . + export BINDEP=bindep-env/bin/bindep + elif [ "$ZUUL_PROJECT" == "openstack-infra/project-config" ] ; then + # if testing a change to project-config, use its fallback list + export PACKAGES=jenkins/data/bindep-fallback.txt + fi + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bindep-fallback-fedora-26/post.yaml b/playbooks/legacy/bindep-fallback-fedora-26/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/bindep-fallback-fedora-26/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/bindep-fallback-fedora-26/run.yaml b/playbooks/legacy/bindep-fallback-fedora-26/run.yaml new file mode 100644 index 00000000..511f75ad --- /dev/null +++ b/playbooks/legacy/bindep-fallback-fedora-26/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-bindep-fallback-fedora-26 from old job gate-{name}-bindep-fallback-fedora-26 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # use the fallback list instead of existing bindep.txt + export PACKAGES=/usr/local/jenkins/common_data/bindep-fallback.txt + if [ "$ZUUL_PROJECT" == "openstack-infra/bindep" ] ; then + # if testing a change to bindep, use its entrypoint + virtualenv bindep-env + bindep-env/bin/pip install -U . + export BINDEP=bindep-env/bin/bindep + elif [ "$ZUUL_PROJECT" == "openstack-infra/project-config" ] ; then + # if testing a change to project-config, use its fallback list + export PACKAGES=jenkins/data/bindep-fallback.txt + fi + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bindep-fallback-opensuse-423/post.yaml b/playbooks/legacy/bindep-fallback-opensuse-423/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/bindep-fallback-opensuse-423/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/bindep-fallback-opensuse-423/run.yaml b/playbooks/legacy/bindep-fallback-opensuse-423/run.yaml new file mode 100644 index 00000000..daee353e --- /dev/null +++ b/playbooks/legacy/bindep-fallback-opensuse-423/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-bindep-fallback-opensuse-423 from old job gate-{name}-bindep-fallback-opensuse-423 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # use the fallback list instead of existing bindep.txt + export PACKAGES=/usr/local/jenkins/common_data/bindep-fallback.txt + if [ "$ZUUL_PROJECT" == "openstack-infra/bindep" ] ; then + # if testing a change to bindep, use its entrypoint + virtualenv bindep-env + bindep-env/bin/pip install -U . + export BINDEP=bindep-env/bin/bindep + elif [ "$ZUUL_PROJECT" == "openstack-infra/project-config" ] ; then + # if testing a change to project-config, use its fallback list + export PACKAGES=jenkins/data/bindep-fallback.txt + fi + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bindep-fallback-ubuntu-trusty/post.yaml b/playbooks/legacy/bindep-fallback-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/bindep-fallback-ubuntu-trusty/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/bindep-fallback-ubuntu-trusty/run.yaml b/playbooks/legacy/bindep-fallback-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..808e88d6 --- /dev/null +++ b/playbooks/legacy/bindep-fallback-ubuntu-trusty/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-bindep-fallback-ubuntu-trusty from old job gate-{name}-bindep-fallback-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # use the fallback list instead of existing bindep.txt + export PACKAGES=/usr/local/jenkins/common_data/bindep-fallback.txt + if [ "$ZUUL_PROJECT" == "openstack-infra/bindep" ] ; then + # if testing a change to bindep, use its entrypoint + virtualenv bindep-env + bindep-env/bin/pip install -U . + export BINDEP=bindep-env/bin/bindep + elif [ "$ZUUL_PROJECT" == "openstack-infra/project-config" ] ; then + # if testing a change to project-config, use its fallback list + export PACKAGES=jenkins/data/bindep-fallback.txt + fi + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/bindep-fallback/post.yaml b/playbooks/legacy/bindep-fallback/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/bindep-fallback/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/bindep-fallback/run.yaml b/playbooks/legacy/bindep-fallback/run.yaml new file mode 100644 index 00000000..b2188442 --- /dev/null +++ b/playbooks/legacy/bindep-fallback/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-bindep-fallback from old job gate-{name}-bindep-fallback-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # use the fallback list instead of existing bindep.txt + export PACKAGES=/usr/local/jenkins/common_data/bindep-fallback.txt + if [ "$ZUUL_PROJECT" == "openstack-infra/bindep" ] ; then + # if testing a change to bindep, use its entrypoint + virtualenv bindep-env + bindep-env/bin/pip install -U . + export BINDEP=bindep-env/bin/bindep + elif [ "$ZUUL_PROJECT" == "openstack-infra/project-config" ] ; then + # if testing a change to project-config, use its fallback list + export PACKAGES=jenkins/data/bindep-fallback.txt + fi + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/blazar-dashboard-releasenotes/post.yaml b/playbooks/legacy/blazar-dashboard-releasenotes/post.yaml new file mode 100644 index 00000000..c86f36f5 --- /dev/null +++ b/playbooks/legacy/blazar-dashboard-releasenotes/post.yaml @@ -0,0 +1,10 @@ +- hosts: all + tasks: + + - name: Copy files from releasenotes/build/html/ on node + synchronize: + src: releasenotes/build/html/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true diff --git a/playbooks/legacy/blazar-dashboard-releasenotes/run.yaml b/playbooks/legacy/blazar-dashboard-releasenotes/run.yaml new file mode 100644 index 00000000..19f07980 --- /dev/null +++ b/playbooks/legacy/blazar-dashboard-releasenotes/run.yaml @@ -0,0 +1,192 @@ +- hosts: all + name: Autoconverted job legacy-blazar-dashboard-releasenotes from old job gate-blazar-dashboard-releasenotes + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + # + # Licensed under the Apache License, Version 2.0 (the "License"); you may + # not use this file except in compliance with the License. You may obtain + # a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + # License for the specific language governing permissions and limitations + # under the License. + + DOCNAME=releasenotes + DIRECTORY=releasenotes + + script_path=/usr/local/jenkins/slave_scripts + + # Mapping of language codes to language names + declare -A LANG_NAME=( + ["de"]="German" + ["en_AU"]="English (Australian)" + ["en_GB"]="English (United Kingdom)" + ["es"]="Spanish" + ["fr"]="French" + ["id"]="Indonesian" + ["it"]="Italian" + ["ja"]="Japanese" + ["ko_KR"]="Korean (South Korea)" + ["pt_BR"]="Portuguese (Brazil)" + ["ru"]="Russian" + ["tr_TR"]="Turkish (Turkey)" + ["zh_CN"]="Chinese (China)" + ) + + # This file always exists in OpenStack CI jobs, check for it so that + # it can be used manually as well. + if [ -e "$(pwd)/upper-constraints.txt" ]; then + export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt + fi + + if [ ! -e ${DIRECTORY}/source/locale/ ]; then + echo "No translations found, only building normal release notes" + $script_path/run-tox.sh releasenotes + exit 0 + fi + + # Check that locale_dirs is really set, otherwise translations + # will not work. + if ! grep -q -E '^locale_dirs *=' $DIRECTORY/source/conf.py; then + echo "Translations exist and locale_dirs missing in source/conf.py" + exit 1 + fi + + + REFERENCES=`mktemp` + trap "rm -f -- '$REFERENCES'" EXIT + + # Extract translations + tox -e venv -- sphinx-build -b gettext \ + -d ${DIRECTORY}/build/doctrees.gettext \ + ${DIRECTORY}/source/ \ + ${DIRECTORY}/source/locale/ + + # Add links for translations to index file + cat <> ${REFERENCES} + + Translated Release Notes + ======================== + + EOF + + # Check all language translation resources + for locale in `find ${DIRECTORY}/source/locale/ -maxdepth 1 -type d` ; do + # Skip if it is not a valid language translation resource. + if [ ! -e ${locale}/LC_MESSAGES/${DOCNAME}.po ]; then + continue + fi + language=$(basename $locale) + + echo "Building $language translation" + + # Prepare all translation resources + for pot in ${DIRECTORY}/source/locale/*.pot ; do + # Get filename + resname=$(basename ${pot} .pot) + + # Merge all translation resources. Note this is done the same + # way as done in common_translation_update.sh where we merge + # all strings together in a single file. + msgmerge --silent -o \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.po \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po \ + ${pot} + # Compile all translation resources + msgfmt -o \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.mo \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.po + done + + # Build translated document + tox -e venv -- sphinx-build -b html -D language=${language} \ + -d "${DIRECTORY}/build/doctrees.${language}" \ + ${DIRECTORY}/source/ ${DIRECTORY}/build/html/${language} + + # Reference translated document from index file + if [ ${LANG_NAME["${language}"]+_} ] ; then + name=${LANG_NAME["${language}"]} + name+=" (${language})" + echo "* \`$name <${language}/index.html>\`__" >> ${REFERENCES} + else + echo "* \`${language} <${language}/index.html>\`__" >> ${REFERENCES} + fi + + # Remove newly created files + git clean -f -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/*.po + git clean -f -x -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/*.mo + # revert changes to po file + git reset -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po + git checkout -- ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po + done + + # Now append our references to the index file. We cannot do this + # earlier since the sphinx commands will read this file. + cat ${REFERENCES} >> ${DIRECTORY}/source/index.rst + + # Remove newly created pot files + rm -f ${DIRECTORY}/source/locale/*.pot + + # Now build releasenotes with reference to translations + $script_path/run-tox.sh releasenotes + + # Revert any changes to the index file. + git checkout -- ${DIRECTORY}/source/index.rst + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/blazar-devstack-dsvm/post.yaml b/playbooks/legacy/blazar-devstack-dsvm/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/blazar-devstack-dsvm/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/blazar-devstack-dsvm/run.yaml b/playbooks/legacy/blazar-devstack-dsvm/run.yaml new file mode 100644 index 00000000..ff989b0a --- /dev/null +++ b/playbooks/legacy/blazar-devstack-dsvm/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-blazar-devstack-dsvm from old job gate-blazar-devstack-dsvm + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin blazar git://git.openstack.org/openstack/blazar + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export ENABLED_SERVICES=blazar,blazar-a,blazar-m,tempest + export PROJECTS="openstack/blazar $PROJECTS" + export PROJECTS="openstack/blazar-nova $PROJECTS" + export PROJECTS="openstack/python-blazarclient $PROJECTS" + + # Construct a regex to limiting scope of tempest + r="^(?:tempest\.cli\.simple_read_only\.test_.*reservation.*)" + r="$r|^(?:tempest\.scenario\.test_.*reservation.*)" + export DEVSTACK_GATE_TEMPEST_REGEX="$r" + + function pre_test_hook { + # Install blazar tempest integration + BLAZAR_TEMPEST_DIR=/opt/stack/new/blazar/contrib/tempest + # Copying Tempest test suites + # This will be removed once blazar tempest starts to use TempestPlugin + if [ -e $BLAZAR_TEMPEST_DIR ] ; then + TEMPEST_DIR=${TEMPEST_DIR:-/opt/stack/new/tempest} + cp -R $BLAZAR_TEMPEST_DIR/tempest/* $TEMPEST_DIR/tempest + fi + } + export -f pre_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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/blazar-pylint/post.yaml b/playbooks/legacy/blazar-pylint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/blazar-pylint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/blazar-pylint/run.yaml b/playbooks/legacy/blazar-pylint/run.yaml new file mode 100644 index 00000000..0d7043e1 --- /dev/null +++ b/playbooks/legacy/blazar-pylint/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-blazar-pylint from old job gate-blazar-pylint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/blazar-releasenotes/post.yaml b/playbooks/legacy/blazar-releasenotes/post.yaml new file mode 100644 index 00000000..c86f36f5 --- /dev/null +++ b/playbooks/legacy/blazar-releasenotes/post.yaml @@ -0,0 +1,10 @@ +- hosts: all + tasks: + + - name: Copy files from releasenotes/build/html/ on node + synchronize: + src: releasenotes/build/html/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true diff --git a/playbooks/legacy/blazar-releasenotes/run.yaml b/playbooks/legacy/blazar-releasenotes/run.yaml new file mode 100644 index 00000000..c8c9d801 --- /dev/null +++ b/playbooks/legacy/blazar-releasenotes/run.yaml @@ -0,0 +1,192 @@ +- hosts: all + name: Autoconverted job legacy-blazar-releasenotes from old job gate-blazar-releasenotes + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + # + # Licensed under the Apache License, Version 2.0 (the "License"); you may + # not use this file except in compliance with the License. You may obtain + # a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + # License for the specific language governing permissions and limitations + # under the License. + + DOCNAME=releasenotes + DIRECTORY=releasenotes + + script_path=/usr/local/jenkins/slave_scripts + + # Mapping of language codes to language names + declare -A LANG_NAME=( + ["de"]="German" + ["en_AU"]="English (Australian)" + ["en_GB"]="English (United Kingdom)" + ["es"]="Spanish" + ["fr"]="French" + ["id"]="Indonesian" + ["it"]="Italian" + ["ja"]="Japanese" + ["ko_KR"]="Korean (South Korea)" + ["pt_BR"]="Portuguese (Brazil)" + ["ru"]="Russian" + ["tr_TR"]="Turkish (Turkey)" + ["zh_CN"]="Chinese (China)" + ) + + # This file always exists in OpenStack CI jobs, check for it so that + # it can be used manually as well. + if [ -e "$(pwd)/upper-constraints.txt" ]; then + export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt + fi + + if [ ! -e ${DIRECTORY}/source/locale/ ]; then + echo "No translations found, only building normal release notes" + $script_path/run-tox.sh releasenotes + exit 0 + fi + + # Check that locale_dirs is really set, otherwise translations + # will not work. + if ! grep -q -E '^locale_dirs *=' $DIRECTORY/source/conf.py; then + echo "Translations exist and locale_dirs missing in source/conf.py" + exit 1 + fi + + + REFERENCES=`mktemp` + trap "rm -f -- '$REFERENCES'" EXIT + + # Extract translations + tox -e venv -- sphinx-build -b gettext \ + -d ${DIRECTORY}/build/doctrees.gettext \ + ${DIRECTORY}/source/ \ + ${DIRECTORY}/source/locale/ + + # Add links for translations to index file + cat <> ${REFERENCES} + + Translated Release Notes + ======================== + + EOF + + # Check all language translation resources + for locale in `find ${DIRECTORY}/source/locale/ -maxdepth 1 -type d` ; do + # Skip if it is not a valid language translation resource. + if [ ! -e ${locale}/LC_MESSAGES/${DOCNAME}.po ]; then + continue + fi + language=$(basename $locale) + + echo "Building $language translation" + + # Prepare all translation resources + for pot in ${DIRECTORY}/source/locale/*.pot ; do + # Get filename + resname=$(basename ${pot} .pot) + + # Merge all translation resources. Note this is done the same + # way as done in common_translation_update.sh where we merge + # all strings together in a single file. + msgmerge --silent -o \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.po \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po \ + ${pot} + # Compile all translation resources + msgfmt -o \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.mo \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.po + done + + # Build translated document + tox -e venv -- sphinx-build -b html -D language=${language} \ + -d "${DIRECTORY}/build/doctrees.${language}" \ + ${DIRECTORY}/source/ ${DIRECTORY}/build/html/${language} + + # Reference translated document from index file + if [ ${LANG_NAME["${language}"]+_} ] ; then + name=${LANG_NAME["${language}"]} + name+=" (${language})" + echo "* \`$name <${language}/index.html>\`__" >> ${REFERENCES} + else + echo "* \`${language} <${language}/index.html>\`__" >> ${REFERENCES} + fi + + # Remove newly created files + git clean -f -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/*.po + git clean -f -x -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/*.mo + # revert changes to po file + git reset -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po + git checkout -- ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po + done + + # Now append our references to the index file. We cannot do this + # earlier since the sphinx commands will read this file. + cat ${REFERENCES} >> ${DIRECTORY}/source/index.rst + + # Remove newly created pot files + rm -f ${DIRECTORY}/source/locale/*.pot + + # Now build releasenotes with reference to translations + $script_path/run-tox.sh releasenotes + + # Revert any changes to the index file. + git checkout -- ${DIRECTORY}/source/index.rst + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/brick-cinderclient-ext-dsvm-functional/post.yaml b/playbooks/legacy/brick-cinderclient-ext-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/brick-cinderclient-ext-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/brick-cinderclient-ext-dsvm-functional/run.yaml b/playbooks/legacy/brick-cinderclient-ext-dsvm-functional/run.yaml new file mode 100644 index 00000000..cacaf3f5 --- /dev/null +++ b/playbooks/legacy/brick-cinderclient-ext-dsvm-functional/run.yaml @@ -0,0 +1,41 @@ +- hosts: all + name: Autoconverted job legacy-brick-cinderclient-ext-dsvm-functional from old job + gate-brick-cinderclient-ext-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=python-brick-cinderclient-ext + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook { + # Configure and run functional tests + $BASE/new/python-brick-cinderclient-ext/brick_cinderclient_ext/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/castellan-dsvm-functional/post.yaml b/playbooks/legacy/castellan-dsvm-functional/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/castellan-dsvm-functional/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/castellan-dsvm-functional/run.yaml b/playbooks/legacy/castellan-dsvm-functional/run.yaml new file mode 100644 index 00000000..70d53a69 --- /dev/null +++ b/playbooks/legacy/castellan-dsvm-functional/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-castellan-dsvm-functional from old job gate-castellan-dsvm-functional + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin barbican git://git.openstack.org/openstack/barbican + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export ENABLED_SERVICES=tempest,keystone + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT="python-barbicanclient,castellan" + + function gate_hook { + $BASE/new/castellan/castellan/tests/contrib/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + $BASE/new/castellan/castellan/tests/contrib/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometer-dsvm-functional-mongodb/post.yaml b/playbooks/legacy/ceilometer-dsvm-functional-mongodb/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/ceilometer-dsvm-functional-mongodb/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ceilometer-dsvm-functional-mongodb/run.yaml b/playbooks/legacy/ceilometer-dsvm-functional-mongodb/run.yaml new file mode 100644 index 00000000..1788a6b3 --- /dev/null +++ b/playbooks/legacy/ceilometer-dsvm-functional-mongodb/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-ceilometer-dsvm-functional-mongodb from old job gate-ceilometer-dsvm-functional-mongodb-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_CEILOMETER_BACKEND=mongodb + export DEVSTACK_LOCAL_CONFIG="enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [ "mongodb" = "postgresql" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + if [ "" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + function post_test_hook { + # Configure and run functional tests + $BASE/new/ceilometer/ceilometer/tests/functional/hooks/post_test_hook.sh "mongodb" + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometer-dsvm-functional-mysql/post.yaml b/playbooks/legacy/ceilometer-dsvm-functional-mysql/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/ceilometer-dsvm-functional-mysql/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ceilometer-dsvm-functional-mysql/run.yaml b/playbooks/legacy/ceilometer-dsvm-functional-mysql/run.yaml new file mode 100644 index 00000000..0a4aacfc --- /dev/null +++ b/playbooks/legacy/ceilometer-dsvm-functional-mysql/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-ceilometer-dsvm-functional-mysql from old job gate-ceilometer-dsvm-functional-mysql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_CEILOMETER_BACKEND=mysql + export DEVSTACK_LOCAL_CONFIG="enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [ "mysql" = "postgresql" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + if [ "" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + function post_test_hook { + # Configure and run functional tests + $BASE/new/ceilometer/ceilometer/tests/functional/hooks/post_test_hook.sh "mysql" + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-es/post.yaml b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-es/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-es/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-es/run.yaml b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-es/run.yaml new file mode 100644 index 00000000..be569105 --- /dev/null +++ b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-es/run.yaml @@ -0,0 +1,43 @@ +- hosts: all + name: Autoconverted job legacy-ceilometer-dsvm-tempest-plugin-es from old job gate-ceilometer-dsvm-tempest-plugin-es-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^ceilometer\." + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_CEILOMETER_BACKEND=es + export DEVSTACK_LOCAL_CONFIG="enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "es" = "postgresql" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + if [ "" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only/post.yaml b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only/run.yaml b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only/run.yaml new file mode 100644 index 00000000..ec591102 --- /dev/null +++ b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only + from old job gate-ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^ceilometer\." + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_CEILOMETER_BACKEND=mongodb + export DEVSTACK_LOCAL_CONFIG="enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "mongodb" = "postgresql" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + if [ "-identity-v3-only" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb/post.yaml b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb/run.yaml b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb/run.yaml new file mode 100644 index 00000000..c0713cea --- /dev/null +++ b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-ceilometer-dsvm-tempest-plugin-mongodb from old job + gate-ceilometer-dsvm-tempest-plugin-mongodb-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^ceilometer\." + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_CEILOMETER_BACKEND=mongodb + export DEVSTACK_LOCAL_CONFIG="enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "mongodb" = "postgresql" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + if [ "" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mysql/post.yaml b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mysql/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mysql/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mysql/run.yaml b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mysql/run.yaml new file mode 100644 index 00000000..cea205c3 --- /dev/null +++ b/playbooks/legacy/ceilometer-dsvm-tempest-plugin-mysql/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-ceilometer-dsvm-tempest-plugin-mysql from old job + gate-ceilometer-dsvm-tempest-plugin-mysql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^ceilometer\." + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_CEILOMETER_BACKEND=mysql + export DEVSTACK_LOCAL_CONFIG="enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "mysql" = "postgresql" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + if [ "" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometer-tox-py27-mongodb/post.yaml b/playbooks/legacy/ceilometer-tox-py27-mongodb/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/ceilometer-tox-py27-mongodb/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ceilometer-tox-py27-mongodb/run.yaml b/playbooks/legacy/ceilometer-tox-py27-mongodb/run.yaml new file mode 100644 index 00000000..feaea689 --- /dev/null +++ b/playbooks/legacy/ceilometer-tox-py27-mongodb/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-ceilometer-tox-py27-mongodb from old job gate-ceilometer-tox-py27-mongodb-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-mongodb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometer-tox-py27-mysql/post.yaml b/playbooks/legacy/ceilometer-tox-py27-mysql/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/ceilometer-tox-py27-mysql/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ceilometer-tox-py27-mysql/run.yaml b/playbooks/legacy/ceilometer-tox-py27-mysql/run.yaml new file mode 100644 index 00000000..ee0eb679 --- /dev/null +++ b/playbooks/legacy/ceilometer-tox-py27-mysql/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-ceilometer-tox-py27-mysql from old job gate-ceilometer-tox-py27-mysql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-mysql + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometer-tox-py27-postgresql/post.yaml b/playbooks/legacy/ceilometer-tox-py27-postgresql/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/ceilometer-tox-py27-postgresql/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ceilometer-tox-py27-postgresql/run.yaml b/playbooks/legacy/ceilometer-tox-py27-postgresql/run.yaml new file mode 100644 index 00000000..30827a13 --- /dev/null +++ b/playbooks/legacy/ceilometer-tox-py27-postgresql/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-ceilometer-tox-py27-postgresql from old job gate-ceilometer-tox-py27-postgresql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-postgresql + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometerclient-dsvm-functional-identity-v3-only/post.yaml b/playbooks/legacy/ceilometerclient-dsvm-functional-identity-v3-only/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/ceilometerclient-dsvm-functional-identity-v3-only/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ceilometerclient-dsvm-functional-identity-v3-only/run.yaml b/playbooks/legacy/ceilometerclient-dsvm-functional-identity-v3-only/run.yaml new file mode 100644 index 00000000..33b608e5 --- /dev/null +++ b/playbooks/legacy/ceilometerclient-dsvm-functional-identity-v3-only/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-ceilometerclient-dsvm-functional-identity-v3-only + from old job gate-ceilometerclient-dsvm-functional-identity-v3-only-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=python-ceilometerclient + export DEVSTACK_LOCAL_CONFIG="enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export PROJECTS="openstack/aodh $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "-identity-v3-only" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + function post_test_hook { + # Configure and run functional tests + $BASE/new/python-ceilometerclient/ceilometerclient/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ceilometerclient-dsvm-functional/post.yaml b/playbooks/legacy/ceilometerclient-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/ceilometerclient-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ceilometerclient-dsvm-functional/run.yaml b/playbooks/legacy/ceilometerclient-dsvm-functional/run.yaml new file mode 100644 index 00000000..71b04128 --- /dev/null +++ b/playbooks/legacy/ceilometerclient-dsvm-functional/run.yaml @@ -0,0 +1,46 @@ +- hosts: all + name: Autoconverted job legacy-ceilometerclient-dsvm-functional from old job gate-ceilometerclient-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=python-ceilometerclient + export DEVSTACK_LOCAL_CONFIG="enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export PROJECTS="openstack/aodh $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + function post_test_hook { + # Configure and run functional tests + $BASE/new/python-ceilometerclient/ceilometerclient/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/check-osc-plugins/run.yaml b/playbooks/legacy/check-osc-plugins/run.yaml new file mode 100644 index 00000000..d6587832 --- /dev/null +++ b/playbooks/legacy/check-osc-plugins/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-check-osc-plugins from old job check-osc-plugins + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/check-osc-plugins.sh + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/chef-rake-integration-centos-7/post.yaml b/playbooks/legacy/chef-rake-integration-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/chef-rake-integration-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/chef-rake-integration-centos-7/run.yaml b/playbooks/legacy/chef-rake-integration-centos-7/run.yaml new file mode 100644 index 00000000..b8182186 --- /dev/null +++ b/playbooks/legacy/chef-rake-integration-centos-7/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-chef-rake-integration-centos-7 from old job gate-{name}-chef-rake-integration-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + ./bootstrap.sh allinone + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + chef exec rake integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/chef-rake-integration-multinode/post.yaml b/playbooks/legacy/chef-rake-integration-multinode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/chef-rake-integration-multinode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/chef-rake-integration-multinode/run.yaml b/playbooks/legacy/chef-rake-integration-multinode/run.yaml new file mode 100644 index 00000000..adf376ce --- /dev/null +++ b/playbooks/legacy/chef-rake-integration-multinode/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-chef-rake-integration-multinode from old job gate-{name}-chef-rake-integration-multinode-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + ./bootstrap.sh multinode + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + chef exec rake integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/chef-rake-integration/post.yaml b/playbooks/legacy/chef-rake-integration/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/chef-rake-integration/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/chef-rake-integration/run.yaml b/playbooks/legacy/chef-rake-integration/run.yaml new file mode 100644 index 00000000..9ef02008 --- /dev/null +++ b/playbooks/legacy/chef-rake-integration/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-chef-rake-integration from old job gate-{name}-chef-rake-integration-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + ./bootstrap.sh allinone + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + chef exec rake integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/chef-rake/run.yaml b/playbooks/legacy/chef-rake/run.yaml new file mode 100644 index 00000000..c1ab355d --- /dev/null +++ b/playbooks/legacy/chef-rake/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-chef-rake from old job gate-{name}-chef-rake + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + ./bootstrap.sh allinone + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + chef exec rake + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cinder-pylint/post.yaml b/playbooks/legacy/cinder-pylint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cinder-pylint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cinder-pylint/run.yaml b/playbooks/legacy/cinder-pylint/run.yaml new file mode 100644 index 00000000..7b57444a --- /dev/null +++ b/playbooks/legacy/cinder-pylint/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-cinder-pylint from old job gate-cinder-pylint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cinder-tox-bandit-baseline/post.yaml b/playbooks/legacy/cinder-tox-bandit-baseline/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cinder-tox-bandit-baseline/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cinder-tox-bandit-baseline/run.yaml b/playbooks/legacy/cinder-tox-bandit-baseline/run.yaml new file mode 100644 index 00000000..a1da260f --- /dev/null +++ b/playbooks/legacy/cinder-tox-bandit-baseline/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cinder-tox-bandit-baseline from old job gate-cinder-tox-bandit-baseline-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh bandit-baseline + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cinder-tox-compliance/post.yaml b/playbooks/legacy/cinder-tox-compliance/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cinder-tox-compliance/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cinder-tox-compliance/run.yaml b/playbooks/legacy/cinder-tox-compliance/run.yaml new file mode 100644 index 00000000..b869258e --- /dev/null +++ b/playbooks/legacy/cinder-tox-compliance/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cinder-tox-compliance from old job gate-cinder-tox-compliance-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh compliance + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cinder-tox-functional/post.yaml b/playbooks/legacy/cinder-tox-functional/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cinder-tox-functional/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cinder-tox-functional/run.yaml b/playbooks/legacy/cinder-tox-functional/run.yaml new file mode 100644 index 00000000..9512a57b --- /dev/null +++ b/playbooks/legacy/cinder-tox-functional/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cinder-tox-functional from old job gate-cinder-tox-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/post.yaml b/playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/run.yaml b/playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/run.yaml new file mode 100644 index 00000000..e41b7af3 --- /dev/null +++ b/playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-cinderclient-dsvm-functional-identity-v3-only from + old job gate-cinderclient-dsvm-functional-identity-v3-only-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=python-cinderclient + export DEVSTACK_LOCAL_CONFIG="VOLUME_BACKING_FILE_SIZE=16G" + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "-identity-v3-only" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + function post_test_hook { + # Configure and run functional tests + $BASE/new/python-cinderclient/cinderclient/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cinderclient-dsvm-functional/post.yaml b/playbooks/legacy/cinderclient-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/cinderclient-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cinderclient-dsvm-functional/run.yaml b/playbooks/legacy/cinderclient-dsvm-functional/run.yaml new file mode 100644 index 00000000..b2c75aad --- /dev/null +++ b/playbooks/legacy/cinderclient-dsvm-functional/run.yaml @@ -0,0 +1,43 @@ +- hosts: all + name: Autoconverted job legacy-cinderclient-dsvm-functional from old job gate-cinderclient-dsvm-functional-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=python-cinderclient + export DEVSTACK_LOCAL_CONFIG="VOLUME_BACKING_FILE_SIZE=16G" + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + function post_test_hook { + # Configure and run functional tests + $BASE/new/python-cinderclient/cinderclient/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cl-openstack-client-run-tests/run.yaml b/playbooks/legacy/cl-openstack-client-run-tests/run.yaml new file mode 100644 index 00000000..d555ceec --- /dev/null +++ b/playbooks/legacy/cl-openstack-client-run-tests/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-cl-openstack-client-run-tests from old job gate-cl-openstack-client-run-tests + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: ./run-tests.sh + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cliff-tox-neutronclient-tip/post.yaml b/playbooks/legacy/cliff-tox-neutronclient-tip/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cliff-tox-neutronclient-tip/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cliff-tox-neutronclient-tip/run.yaml b/playbooks/legacy/cliff-tox-neutronclient-tip/run.yaml new file mode 100644 index 00000000..4d216da1 --- /dev/null +++ b/playbooks/legacy/cliff-tox-neutronclient-tip/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cliff-tox-neutronclient-tip from old job gate-cliff-tox-neutronclient-tip-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh neutronclient-tip + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cliff-tox-openstackclient-tip/post.yaml b/playbooks/legacy/cliff-tox-openstackclient-tip/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cliff-tox-openstackclient-tip/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cliff-tox-openstackclient-tip/run.yaml b/playbooks/legacy/cliff-tox-openstackclient-tip/run.yaml new file mode 100644 index 00000000..2b10bd2e --- /dev/null +++ b/playbooks/legacy/cliff-tox-openstackclient-tip/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cliff-tox-openstackclient-tip from old job gate-cliff-tox-openstackclient-tip-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh openstackclient-tip + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cloudkitty-dsvm-install/post.yaml b/playbooks/legacy/cloudkitty-dsvm-install/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/cloudkitty-dsvm-install/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cloudkitty-dsvm-install/run.yaml b/playbooks/legacy/cloudkitty-dsvm-install/run.yaml new file mode 100644 index 00000000..80853205 --- /dev/null +++ b/playbooks/legacy/cloudkitty-dsvm-install/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-cloudkitty-dsvm-install from old job gate-cloudkitty-dsvm-install-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer + enable_plugin cloudkitty git://git.openstack.org/openstack/cloudkitty master + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export PROJECTS="openstack/cloudkitty $PROJECTS" + export PROJECTS="openstack/python-cloudkittyclient $PROJECTS" + export PROJECTS="openstack/cloudkitty-dashboard $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/congress-dsvm-api-mysql/post.yaml b/playbooks/legacy/congress-dsvm-api-mysql/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/congress-dsvm-api-mysql/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/congress-dsvm-api-mysql/run.yaml b/playbooks/legacy/congress-dsvm-api-mysql/run.yaml new file mode 100644 index 00000000..2f6bf88f --- /dev/null +++ b/playbooks/legacy/congress-dsvm-api-mysql/run.yaml @@ -0,0 +1,77 @@ +- hosts: all + name: Autoconverted job legacy-congress-dsvm-api-mysql from old job gate-congress-dsvm-api-mysql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer + enable_plugin heat git://git.openstack.org/openstack/heat + enable_plugin congress git://git.openstack.org/openstack/congress + enable_plugin murano git://git.openstack.org/openstack/murano + enable_plugin aodh git://git.openstack.org/openstack/aodh + enable_plugin designate git://git.openstack.org/openstack/designate + enable_plugin neutron https://git.openstack.org/openstack/neutron + # To deploy congress as multi-process (api, pe, datasources) + CONGRESS_MULTIPROCESS_DEPLOYMENT=True + CONGRESS_EXPOSE_ENCRYPTION_KEY_FOR_TEST=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=s-proxy,s-object,s-container,s-account, + ENABLED_SERVICES+=h-eng,h-api,h-api-cfn,h-api-cw, + ENABLED_SERVICES+=q-qos + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX="congress_tempest_tests" + export DEVSTACK_GATE_NEUTRON=1 + export PROJECTS="openstack/congress $PROJECTS" + export PROJECTS="openstack/congress-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-congressclient + export PROJECTS="openstack/murano $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/murano-dashboard $PROJECTS" + export PROJECTS="openstack/python-muranoclient $PROJECTS" + export PROJECTS="openstack/python-aodhclient $PROJECTS" + export PROJECTS="openstack/designate $PROJECTS" + export PROJECTS="openstack/designate-tempest-plugin $PROJECTS" + + export ENABLED_SERVICES + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "mysql" = "postgresql" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/congress-dsvm-api-postgresql/post.yaml b/playbooks/legacy/congress-dsvm-api-postgresql/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/congress-dsvm-api-postgresql/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/congress-dsvm-api-postgresql/run.yaml b/playbooks/legacy/congress-dsvm-api-postgresql/run.yaml new file mode 100644 index 00000000..6eeb473a --- /dev/null +++ b/playbooks/legacy/congress-dsvm-api-postgresql/run.yaml @@ -0,0 +1,77 @@ +- hosts: all + name: Autoconverted job legacy-congress-dsvm-api-postgresql from old job gate-congress-dsvm-api-postgresql-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer + enable_plugin heat git://git.openstack.org/openstack/heat + enable_plugin congress git://git.openstack.org/openstack/congress + enable_plugin murano git://git.openstack.org/openstack/murano + enable_plugin aodh git://git.openstack.org/openstack/aodh + enable_plugin designate git://git.openstack.org/openstack/designate + enable_plugin neutron https://git.openstack.org/openstack/neutron + # To deploy congress as multi-process (api, pe, datasources) + CONGRESS_MULTIPROCESS_DEPLOYMENT=True + CONGRESS_EXPOSE_ENCRYPTION_KEY_FOR_TEST=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=s-proxy,s-object,s-container,s-account, + ENABLED_SERVICES+=h-eng,h-api,h-api-cfn,h-api-cw, + ENABLED_SERVICES+=q-qos + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX="congress_tempest_tests" + export DEVSTACK_GATE_NEUTRON=1 + export PROJECTS="openstack/congress $PROJECTS" + export PROJECTS="openstack/congress-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-congressclient + export PROJECTS="openstack/murano $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/murano-dashboard $PROJECTS" + export PROJECTS="openstack/python-muranoclient $PROJECTS" + export PROJECTS="openstack/python-aodhclient $PROJECTS" + export PROJECTS="openstack/designate $PROJECTS" + export PROJECTS="openstack/designate-tempest-plugin $PROJECTS" + + export ENABLED_SERVICES + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "postgresql" = "postgresql" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/congress-dsvm-py35-api-mysql/post.yaml b/playbooks/legacy/congress-dsvm-py35-api-mysql/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/congress-dsvm-py35-api-mysql/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/congress-dsvm-py35-api-mysql/run.yaml b/playbooks/legacy/congress-dsvm-py35-api-mysql/run.yaml new file mode 100644 index 00000000..9a809b37 --- /dev/null +++ b/playbooks/legacy/congress-dsvm-py35-api-mysql/run.yaml @@ -0,0 +1,85 @@ +- hosts: all + name: Autoconverted job legacy-congress-dsvm-py35-api-mysql from old job gate-congress-dsvm-py35-api-mysql-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + # swift is not ready for python3 yet + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + # without Swift, c-bak cannot run (in the Gate at least) + disable_service c-bak + # disable all plug-ins for now except congress + # enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer + # enable_plugin heat git://git.openstack.org/openstack/heat + enable_plugin congress git://git.openstack.org/openstack/congress + # enable_plugin murano git://git.openstack.org/openstack/murano + # enable_plugin aodh git://git.openstack.org/openstack/aodh + # enable_plugin designate git://git.openstack.org/openstack/designate + # To deploy congress as multi-process (api, pe, datasources) + CONGRESS_MULTIPROCESS_DEPLOYMENT=True + CONGRESS_EXPOSE_ENCRYPTION_KEY_FOR_TEST=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + # swift is not ready for python3 yet + # ENABLED_SERVICES=s-proxy,s-object,s-container,s-account, + # ENABLED_SERVICES+=h-eng,h-api,h-api-cfn,h-api-cw + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX="congress_tempest_tests" + export DEVSTACK_GATE_NEUTRON=1 + export PROJECTS="openstack/congress $PROJECTS" + export PROJECTS="openstack/congress-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-congressclient + export PROJECTS="openstack/murano $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/murano-dashboard $PROJECTS" + export PROJECTS="openstack/python-muranoclient $PROJECTS" + export PROJECTS="openstack/python-aodhclient $PROJECTS" + export PROJECTS="openstack/designate $PROJECTS" + export PROJECTS="openstack/designate-tempest-plugin $PROJECTS" + + export ENABLED_SERVICES + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "mysql" = "postgresql" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/congress-pe-replicated-mysql/post.yaml b/playbooks/legacy/congress-pe-replicated-mysql/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/congress-pe-replicated-mysql/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/congress-pe-replicated-mysql/run.yaml b/playbooks/legacy/congress-pe-replicated-mysql/run.yaml new file mode 100644 index 00000000..87f86686 --- /dev/null +++ b/playbooks/legacy/congress-pe-replicated-mysql/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-congress-pe-replicated-mysql from old job gate-congress-pe-replicated-mysql-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer + enable_plugin heat git://git.openstack.org/openstack/heat + enable_plugin congress git://git.openstack.org/openstack/congress + enable_plugin aodh git://git.openstack.org/openstack/aodh + enable_plugin designate git://git.openstack.org/openstack/designate + enable_plugin neutron https://git.openstack.org/openstack/neutron + CONGRESS_REPLICATED=True + CONGRESS_MULTIPROCESS_DEPLOYMENT=True + CONGRESS_EXPOSE_ENCRYPTION_KEY_FOR_TEST=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=s-proxy,s-object,s-container,s-account, + ENABLED_SERVICES+=h-eng,h-api,h-api-cfn,h-api-cw, + ENABLED_SERVICES+=q-qos + + export ENABLED_SERVICES + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX="congress_tempest_tests" + export DEVSTACK_GATE_NEUTRON=1 + export PROJECTS="openstack/congress $PROJECTS" + export PROJECTS="openstack/congress-dashboard $PROJECTS" + export PROJECTS="openstack/python-aodhclient $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/designate $PROJECTS" + export PROJECTS="openstack/designate-tempest-plugin $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-congressclient + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "mysql" = "postgresql" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/congress-pe-replicated-postgresql/post.yaml b/playbooks/legacy/congress-pe-replicated-postgresql/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/congress-pe-replicated-postgresql/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/congress-pe-replicated-postgresql/run.yaml b/playbooks/legacy/congress-pe-replicated-postgresql/run.yaml new file mode 100644 index 00000000..e6c486bf --- /dev/null +++ b/playbooks/legacy/congress-pe-replicated-postgresql/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-congress-pe-replicated-postgresql from old job gate-congress-pe-replicated-postgresql-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer + enable_plugin heat git://git.openstack.org/openstack/heat + enable_plugin congress git://git.openstack.org/openstack/congress + enable_plugin aodh git://git.openstack.org/openstack/aodh + enable_plugin designate git://git.openstack.org/openstack/designate + enable_plugin neutron https://git.openstack.org/openstack/neutron + CONGRESS_REPLICATED=True + CONGRESS_MULTIPROCESS_DEPLOYMENT=True + CONGRESS_EXPOSE_ENCRYPTION_KEY_FOR_TEST=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=s-proxy,s-object,s-container,s-account, + ENABLED_SERVICES+=h-eng,h-api,h-api-cfn,h-api-cw, + ENABLED_SERVICES+=q-qos + + export ENABLED_SERVICES + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX="congress_tempest_tests" + export DEVSTACK_GATE_NEUTRON=1 + export PROJECTS="openstack/congress $PROJECTS" + export PROJECTS="openstack/congress-dashboard $PROJECTS" + export PROJECTS="openstack/python-aodhclient $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/designate $PROJECTS" + export PROJECTS="openstack/designate-tempest-plugin $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-congressclient + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "postgresql" = "postgresql" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/craton-dashboard-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/craton-dashboard-nodejs4-npm-run-lint/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/craton-dashboard-nodejs4-npm-run-lint/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/craton-dashboard-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/craton-dashboard-nodejs4-npm-run-lint/run.yaml new file mode 100644 index 00000000..d7f6f821 --- /dev/null +++ b/playbooks/legacy/craton-dashboard-nodejs4-npm-run-lint/run.yaml @@ -0,0 +1,134 @@ +- hosts: all + name: Autoconverted job legacy-craton-dashboard-nodejs4-npm-run-lint from old job + gate-craton-dashboard-nodejs4-npm-run-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )lint($| ) ]]; then + npm lint --verbose + else + npm run lint --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/craton-dashboard-nodejs4-npm-run-test/post.yaml b/playbooks/legacy/craton-dashboard-nodejs4-npm-run-test/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/craton-dashboard-nodejs4-npm-run-test/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/craton-dashboard-nodejs4-npm-run-test/run.yaml b/playbooks/legacy/craton-dashboard-nodejs4-npm-run-test/run.yaml new file mode 100644 index 00000000..4668fa95 --- /dev/null +++ b/playbooks/legacy/craton-dashboard-nodejs4-npm-run-test/run.yaml @@ -0,0 +1,134 @@ +- hosts: all + name: Autoconverted job legacy-craton-dashboard-nodejs4-npm-run-test from old job + gate-craton-dashboard-nodejs4-npm-run-test + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )test($| ) ]]; then + npm test --verbose + else + npm run test --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/craton-dashboard-tox-py27dj110/post.yaml b/playbooks/legacy/craton-dashboard-tox-py27dj110/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/craton-dashboard-tox-py27dj110/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/craton-dashboard-tox-py27dj110/run.yaml b/playbooks/legacy/craton-dashboard-tox-py27dj110/run.yaml new file mode 100644 index 00000000..df60512b --- /dev/null +++ b/playbooks/legacy/craton-dashboard-tox-py27dj110/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-craton-dashboard-tox-py27dj110 from old job gate-craton-dashboard-tox-py27dj110-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj110 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/craton-dashboard-tox-py27dj19/post.yaml b/playbooks/legacy/craton-dashboard-tox-py27dj19/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/craton-dashboard-tox-py27dj19/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/craton-dashboard-tox-py27dj19/run.yaml b/playbooks/legacy/craton-dashboard-tox-py27dj19/run.yaml new file mode 100644 index 00000000..f7d4f07e --- /dev/null +++ b/playbooks/legacy/craton-dashboard-tox-py27dj19/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-craton-dashboard-tox-py27dj19 from old job gate-craton-dashboard-tox-py27dj19-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj19 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/craton-tox-functional/post.yaml b/playbooks/legacy/craton-tox-functional/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/craton-tox-functional/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/craton-tox-functional/run.yaml b/playbooks/legacy/craton-tox-functional/run.yaml new file mode 100644 index 00000000..c61e3eb9 --- /dev/null +++ b/playbooks/legacy/craton-tox-functional/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-craton-tox-functional from old job gate-craton-tox-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-cinder-python27/post.yaml b/playbooks/legacy/cross-cinder-python27/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cross-cinder-python27/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cross-cinder-python27/run.yaml b/playbooks/legacy/cross-cinder-python27/run.yaml new file mode 100644 index 00000000..8d075941 --- /dev/null +++ b/playbooks/legacy/cross-cinder-python27/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cross-cinder-python27 from old job gate-cross-cinder-python27-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-cinder-python35/post.yaml b/playbooks/legacy/cross-cinder-python35/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cross-cinder-python35/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cross-cinder-python35/run.yaml b/playbooks/legacy/cross-cinder-python35/run.yaml new file mode 100644 index 00000000..1277e31c --- /dev/null +++ b/playbooks/legacy/cross-cinder-python35/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cross-cinder-python35 from old job gate-cross-cinder-python35 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-glance-python27/post.yaml b/playbooks/legacy/cross-glance-python27/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cross-glance-python27/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cross-glance-python27/run.yaml b/playbooks/legacy/cross-glance-python27/run.yaml new file mode 100644 index 00000000..060105b8 --- /dev/null +++ b/playbooks/legacy/cross-glance-python27/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cross-glance-python27 from old job gate-cross-glance-python27-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-glance-python35/post.yaml b/playbooks/legacy/cross-glance-python35/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cross-glance-python35/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cross-glance-python35/run.yaml b/playbooks/legacy/cross-glance-python35/run.yaml new file mode 100644 index 00000000..2bb9b6fe --- /dev/null +++ b/playbooks/legacy/cross-glance-python35/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cross-glance-python35 from old job gate-cross-glance-python35 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-horizon-python27/post.yaml b/playbooks/legacy/cross-horizon-python27/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cross-horizon-python27/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cross-horizon-python27/run.yaml b/playbooks/legacy/cross-horizon-python27/run.yaml new file mode 100644 index 00000000..30cfd4ee --- /dev/null +++ b/playbooks/legacy/cross-horizon-python27/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cross-horizon-python27 from old job gate-cross-horizon-python27-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-horizon-python35/post.yaml b/playbooks/legacy/cross-horizon-python35/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cross-horizon-python35/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cross-horizon-python35/run.yaml b/playbooks/legacy/cross-horizon-python35/run.yaml new file mode 100644 index 00000000..63ac2c37 --- /dev/null +++ b/playbooks/legacy/cross-horizon-python35/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cross-horizon-python35 from old job gate-cross-horizon-python35 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-keystone-python27/post.yaml b/playbooks/legacy/cross-keystone-python27/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cross-keystone-python27/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cross-keystone-python27/run.yaml b/playbooks/legacy/cross-keystone-python27/run.yaml new file mode 100644 index 00000000..db4066f7 --- /dev/null +++ b/playbooks/legacy/cross-keystone-python27/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cross-keystone-python27 from old job gate-cross-keystone-python27-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-keystone-python35/post.yaml b/playbooks/legacy/cross-keystone-python35/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cross-keystone-python35/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cross-keystone-python35/run.yaml b/playbooks/legacy/cross-keystone-python35/run.yaml new file mode 100644 index 00000000..7fb94b89 --- /dev/null +++ b/playbooks/legacy/cross-keystone-python35/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cross-keystone-python35 from old job gate-cross-keystone-python35 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-networking-midonet-python35/post.yaml b/playbooks/legacy/cross-networking-midonet-python35/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cross-networking-midonet-python35/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cross-networking-midonet-python35/run.yaml b/playbooks/legacy/cross-networking-midonet-python35/run.yaml new file mode 100644 index 00000000..e92185fd --- /dev/null +++ b/playbooks/legacy/cross-networking-midonet-python35/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cross-networking-midonet-python35 from old job gate-cross-networking-midonet-python35 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-neutron-python27/post.yaml b/playbooks/legacy/cross-neutron-python27/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cross-neutron-python27/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cross-neutron-python27/run.yaml b/playbooks/legacy/cross-neutron-python27/run.yaml new file mode 100644 index 00000000..ff2d7f77 --- /dev/null +++ b/playbooks/legacy/cross-neutron-python27/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cross-neutron-python27 from old job gate-cross-neutron-python27-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-neutron-python35/post.yaml b/playbooks/legacy/cross-neutron-python35/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cross-neutron-python35/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cross-neutron-python35/run.yaml b/playbooks/legacy/cross-neutron-python35/run.yaml new file mode 100644 index 00000000..630e56e8 --- /dev/null +++ b/playbooks/legacy/cross-neutron-python35/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cross-neutron-python35 from old job gate-cross-neutron-python35 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-nova-func/post.yaml b/playbooks/legacy/cross-nova-func/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cross-nova-func/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cross-nova-func/run.yaml b/playbooks/legacy/cross-nova-func/run.yaml new file mode 100644 index 00000000..4bc22d7f --- /dev/null +++ b/playbooks/legacy/cross-nova-func/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cross-nova-func from old job gate-cross-nova-func-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-nova-python27/post.yaml b/playbooks/legacy/cross-nova-python27/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cross-nova-python27/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cross-nova-python27/run.yaml b/playbooks/legacy/cross-nova-python27/run.yaml new file mode 100644 index 00000000..bdd4c8ec --- /dev/null +++ b/playbooks/legacy/cross-nova-python27/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cross-nova-python27 from old job gate-cross-nova-python27-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-nova-python35/post.yaml b/playbooks/legacy/cross-nova-python35/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cross-nova-python35/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cross-nova-python35/run.yaml b/playbooks/legacy/cross-nova-python35/run.yaml new file mode 100644 index 00000000..e99c282a --- /dev/null +++ b/playbooks/legacy/cross-nova-python35/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cross-nova-python35 from old job gate-cross-nova-python35 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-swift-python27/post.yaml b/playbooks/legacy/cross-swift-python27/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cross-swift-python27/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cross-swift-python27/run.yaml b/playbooks/legacy/cross-swift-python27/run.yaml new file mode 100644 index 00000000..5392aafe --- /dev/null +++ b/playbooks/legacy/cross-swift-python27/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cross-swift-python27 from old job gate-cross-swift-python27-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cross-swift-python35/post.yaml b/playbooks/legacy/cross-swift-python35/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/cross-swift-python35/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cross-swift-python35/run.yaml b/playbooks/legacy/cross-swift-python35/run.yaml new file mode 100644 index 00000000..7eade863 --- /dev/null +++ b/playbooks/legacy/cross-swift-python35/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-cross-swift-python35 from old job gate-cross-swift-python35 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cue-integration-dsvm-rabbitmq/post.yaml b/playbooks/legacy/cue-integration-dsvm-rabbitmq/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/cue-integration-dsvm-rabbitmq/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cue-integration-dsvm-rabbitmq/run.yaml b/playbooks/legacy/cue-integration-dsvm-rabbitmq/run.yaml new file mode 100644 index 00000000..54a7a341 --- /dev/null +++ b/playbooks/legacy/cue-integration-dsvm-rabbitmq/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-cue-integration-dsvm-rabbitmq from old job gate-cue-integration-dsvm-rabbitmq-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin cue git://git.openstack.org/openstack/cue + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export PROJECTS="openstack/cue openstack/python-cueclient openstack/cue-dashboard $PROJECTS" + + function gate_hook { + cd /opt/stack/new/cue/tests + ./gate_hook.sh rabbitmq + } + export -f gate_hook + + function pre_test_hook { + cd /opt/stack/new/cue/tests + ./pre_test_hook.sh rabbitmq + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/cue/tests + ./post_test_hook.sh rabbitmq + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/cyborg-devstack/post.yaml b/playbooks/legacy/cyborg-devstack/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/cyborg-devstack/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/cyborg-devstack/run.yaml b/playbooks/legacy/cyborg-devstack/run.yaml new file mode 100644 index 00000000..614f74e0 --- /dev/null +++ b/playbooks/legacy/cyborg-devstack/run.yaml @@ -0,0 +1,46 @@ +- hosts: all + name: Autoconverted job legacy-cyborg-devstack from old job gate-cyborg-devstack-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin cyborg git://git.openstack.org/openstack/cyborg + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/cyborg $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dashboard-dsvm-selenium-package/post.yaml b/playbooks/legacy/dashboard-dsvm-selenium-package/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/dashboard-dsvm-selenium-package/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dashboard-dsvm-selenium-package/run.yaml b/playbooks/legacy/dashboard-dsvm-selenium-package/run.yaml new file mode 100644 index 00000000..db1f7528 --- /dev/null +++ b/playbooks/legacy/dashboard-dsvm-selenium-package/run.yaml @@ -0,0 +1,59 @@ +- hosts: all + name: Autoconverted job legacy-dashboard-dsvm-selenium-package from old job gate-dashboard-dsvm-selenium-package-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin murano git://git.openstack.org/openstack/murano + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_NEUTRON=1 + + export PROJECTS="openstack/murano $PROJECTS" + export PROJECTS="openstack/murano-dashboard $PROJECTS" + export PROJECTS="openstack/python-muranoclient $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook { + source $BASE/new/murano-dashboard/muranodashboard/tests/contrib/post_test_hook_experimental.sh \ + package + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/deploy-guide/post.yaml b/playbooks/legacy/deploy-guide/post.yaml new file mode 100644 index 00000000..9e5adeec --- /dev/null +++ b/playbooks/legacy/deploy-guide/post.yaml @@ -0,0 +1,10 @@ +- hosts: all + tasks: + + - name: Copy files from deploy-guide/build/html/ on node + synchronize: + src: deploy-guide/build/html/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true diff --git a/playbooks/legacy/deploy-guide/run.yaml b/playbooks/legacy/deploy-guide/run.yaml new file mode 100644 index 00000000..f4e6f2a0 --- /dev/null +++ b/playbooks/legacy/deploy-guide/run.yaml @@ -0,0 +1,122 @@ +- hosts: all + name: Autoconverted job legacy-deploy-guide from old job gate-{name}-deploy-guide + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + VENV="deploy-guide" + GUIDEDIR="deploy-guide" + + #!/bin/bash -xe + + # This script is used to publish project-specific deploy-guide and + # install-guide documents to the proper place. Master will be + # published to a draft directory, stable/X will be published to the X + # directory. For example stable/newton documents will life in the + # newton directory. + + # You need to pass in the following variables: + # VENV - virtual env to use + # GUIDEDIR - directory for building + + if [ -z "$VENV" ] ; then + echo "The variable VENV is not set." + exit 1 + fi + if [ -z "$GUIDEDIR" ] ; then + echo "The variable GUIDEDIR is not set." + exit 1 + fi + + export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt + + tox -e $VENV + + [ -e .tox/$VENV/bin/pbr ] && freezecmd=pbr || freezecmd=pip + + echo "Begin pbr freeze output from test virtualenv:" + echo "======================================================================" + .tox/${VENV}/bin/${freezecmd} freeze + echo "======================================================================" + + MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID Revision: $ZUUL_NEWREV" + echo $MARKER_TEXT > $GUIDEDIR/build/html/.root-marker + + if [ -z "$ZUUL_REFNAME" ]; then + TARGET="" + # Leave documents where they are + elif [ "$ZUUL_REFNAME" == "master" ] ; then + TARGET=draft + elif echo $ZUUL_REFNAME | grep stable/ >/dev/null ; then + # Put stable release changes in dir named after stable release under the + # build dir. When Jenkins copies these files they will be accessible under + # the developer docs root using the name of the stable release. + TARGET=$(echo $ZUUL_REFNAME | sed 's/stable.//') + else + # Put other branch changes in dir named after branch under the + # build dir. When Jenkins copies these files they will be + # accessible under the developer docs root using the branch name. + # EG: feature/foo or milestone-proposed + TARGET=$ZUUL_REFNAME + fi + + if [ ! -z $TARGET ] ; then + # Move the docs into subdir based on branch + TOP=`dirname $TARGET` + mv $GUIDEDIR/build/html $GUIDEDIR/build/tmp + mkdir -p $GUIDEDIR/build/html/$TOP + mv $GUIDEDIR/build/tmp $GUIDEDIR/build/html/$TARGET + fi + + exit + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/designate-dashboard-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/designate-dashboard-nodejs4-npm-run-lint/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/designate-dashboard-nodejs4-npm-run-lint/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/designate-dashboard-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/designate-dashboard-nodejs4-npm-run-lint/run.yaml new file mode 100644 index 00000000..98a84f3d --- /dev/null +++ b/playbooks/legacy/designate-dashboard-nodejs4-npm-run-lint/run.yaml @@ -0,0 +1,134 @@ +- hosts: all + name: Autoconverted job legacy-designate-dashboard-nodejs4-npm-run-lint from old + job gate-designate-dashboard-nodejs4-npm-run-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )lint($| ) ]]; then + npm lint --verbose + else + npm run lint --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/designate-dashboard-nodejs4-npm-run-test/post.yaml b/playbooks/legacy/designate-dashboard-nodejs4-npm-run-test/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/designate-dashboard-nodejs4-npm-run-test/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/designate-dashboard-nodejs4-npm-run-test/run.yaml b/playbooks/legacy/designate-dashboard-nodejs4-npm-run-test/run.yaml new file mode 100644 index 00000000..6ec7190c --- /dev/null +++ b/playbooks/legacy/designate-dashboard-nodejs4-npm-run-test/run.yaml @@ -0,0 +1,134 @@ +- hosts: all + name: Autoconverted job legacy-designate-dashboard-nodejs4-npm-run-test from old + job gate-designate-dashboard-nodejs4-npm-run-test + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )test($| ) ]]; then + npm test --verbose + else + npm run test --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/devstack-dsvm-py35-updown/post.yaml b/playbooks/legacy/devstack-dsvm-py35-updown/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/devstack-dsvm-py35-updown/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/devstack-dsvm-py35-updown/run.yaml b/playbooks/legacy/devstack-dsvm-py35-updown/run.yaml new file mode 100644 index 00000000..c4b97c71 --- /dev/null +++ b/playbooks/legacy/devstack-dsvm-py35-updown/run.yaml @@ -0,0 +1,61 @@ +- hosts: all + name: Autoconverted job legacy-devstack-dsvm-py35-updown from old job gate-devstack-dsvm-py35-updown-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + # swift is not ready for python3 yet + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_SAHARA=1 + export DEVSTACK_GATE_TLSPROXY=1 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # ensure that the unstack.sh and clean.sh scripts run + # without errors, so that we can + function post_test_hook { + cd /opt/stack/new/devstack + ./gate/updown.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/devstack-dsvm-py36-updown-fedora-26/post.yaml b/playbooks/legacy/devstack-dsvm-py36-updown-fedora-26/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/devstack-dsvm-py36-updown-fedora-26/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/devstack-dsvm-py36-updown-fedora-26/run.yaml b/playbooks/legacy/devstack-dsvm-py36-updown-fedora-26/run.yaml new file mode 100644 index 00000000..30a2ff3d --- /dev/null +++ b/playbooks/legacy/devstack-dsvm-py36-updown-fedora-26/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-devstack-dsvm-py36-updown-fedora-26 from old job + gate-devstack-dsvm-py36-updown-fedora-26-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + # swift is not ready for python3 yet + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_SAHARA=1 + export DEVSTACK_GATE_TLSPROXY=1 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # ensure that the unstack.sh and clean.sh scripts run + # without errors, so that we can + function post_test_hook { + cd /opt/stack/new/devstack + ./gate/updown.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/devstack-dsvm-updown/post.yaml b/playbooks/legacy/devstack-dsvm-updown/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/devstack-dsvm-updown/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/devstack-dsvm-updown/run.yaml b/playbooks/legacy/devstack-dsvm-updown/run.yaml new file mode 100644 index 00000000..08253479 --- /dev/null +++ b/playbooks/legacy/devstack-dsvm-updown/run.yaml @@ -0,0 +1,43 @@ +- hosts: all + name: Autoconverted job legacy-devstack-dsvm-updown from old job gate-devstack-dsvm-updown-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_SAHARA=1 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # ensure that the unstack.sh and clean.sh scripts run + # without errors, so that we can + function post_test_hook { + cd /opt/stack/new/devstack + ./gate/updown.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/devstack-gate-tox-py3-run-tests/post.yaml b/playbooks/legacy/devstack-gate-tox-py3-run-tests/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/devstack-gate-tox-py3-run-tests/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/devstack-gate-tox-py3-run-tests/run.yaml b/playbooks/legacy/devstack-gate-tox-py3-run-tests/run.yaml new file mode 100644 index 00000000..e2c680ae --- /dev/null +++ b/playbooks/legacy/devstack-gate-tox-py3-run-tests/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-devstack-gate-tox-py3-run-tests from old job gate-devstack-gate-tox-py3-run-tests-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py3-run-tests + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/devstack-gate-tox-run-tests/post.yaml b/playbooks/legacy/devstack-gate-tox-run-tests/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/devstack-gate-tox-run-tests/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/devstack-gate-tox-run-tests/run.yaml b/playbooks/legacy/devstack-gate-tox-run-tests/run.yaml new file mode 100644 index 00000000..a24acd5a --- /dev/null +++ b/playbooks/legacy/devstack-gate-tox-run-tests/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-devstack-gate-tox-run-tests from old job gate-devstack-gate-tox-run-tests-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh run-tests + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/devstack-plugin-container-dsvm/post.yaml b/playbooks/legacy/devstack-plugin-container-dsvm/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/devstack-plugin-container-dsvm/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/devstack-plugin-container-dsvm/run.yaml b/playbooks/legacy/devstack-plugin-container-dsvm/run.yaml new file mode 100644 index 00000000..7ba33158 --- /dev/null +++ b/playbooks/legacy/devstack-plugin-container-dsvm/run.yaml @@ -0,0 +1,61 @@ +- hosts: all + name: Autoconverted job legacy-devstack-plugin-container-dsvm from old job gate-devstack-plugin-container-dsvm-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin devstack-plugin-container git://git.openstack.org/openstack/devstack-plugin-container + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + bash -xe $BASE/new/devstack-plugin-container/contrib/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/devstack-plugin-container/contrib/post_test_hook.sh fullstack + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/devstack-unit-tests/run.yaml b/playbooks/legacy/devstack-unit-tests/run.yaml new file mode 100644 index 00000000..77da45dc --- /dev/null +++ b/playbooks/legacy/devstack-unit-tests/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-devstack-unit-tests from old job gate-devstack-unit-tests + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # This installs packages from "general" that might be + # required for unit tests + # Note that we have toset the safe IP addr range to avoid + # conflicts with cloud networks that result in job failures. + echo "IPV4_ADDRS_SAFE_TO_USE=10.1.0.0/20" >> localrc + ./tools/install_prereqs.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dg-hooks-dsvm/post.yaml b/playbooks/legacy/dg-hooks-dsvm/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dg-hooks-dsvm/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dg-hooks-dsvm/run.yaml b/playbooks/legacy/dg-hooks-dsvm/run.yaml new file mode 100644 index 00000000..98b0974d --- /dev/null +++ b/playbooks/legacy/dg-hooks-dsvm/run.yaml @@ -0,0 +1,45 @@ +- hosts: all + name: Autoconverted job legacy-dg-hooks-dsvm from old job gate-dg-hooks-dsvm + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + # place calls for all hooks in here + function pre_test_hook { + echo "I am totally an awesome pre_test_hook" + } + export -f pre_test_hook + + function gate_hook { + echo "I am totally an awesome gate_hook" + } + export -f gate_hook + + function post_test_hook { + echo "I am totally an awesome post_test_hook" + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/run.yaml new file mode 100644 index 00000000..f10c9060 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/run.yaml @@ -0,0 +1,71 @@ +- hosts: all + name: Autoconverted job legacy-dib-dsvm-functests-python2-centos-7-extras from old + job gate-dib-dsvm-functests-python2-centos-7-extras-nv + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + cd ~ + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/diskimage-builder \ + openstack/requirements + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd ~/openstack/diskimage-builder + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # + # We do things that might exceed the default 2GiB tmpfs, and + # use the larger mounted space. + cd ~ + sudo mkdir /opt/dib_cache + sudo chown jenkins:jenkins /opt/dib_cache + export DIB_NO_TMPFS=1 + export TMPDIR=/opt/dib_cache + + virtualenv -p python2 env + + export UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt + sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE + ./env/bin/pip install $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE + + # TODO(pabelanger): Remove once we migrated to bindep + ./openstack/diskimage-builder/tests/install_test_deps.sh + + # This sets up some repo files pointing to the infra mirrors + # which are used during test runs + ./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh + + # UPPER_CONSTRAINTS_FILE is causing side effects when doing image + # build, unset it + unset UPPER_CONSTRAINTS_FILE + + # activate the virtualenv so that any tools run by dib run + # using the python inside it + set +u + source ./env/bin/activate + set -u + ./openstack/diskimage-builder/tests/run_functests.sh gentoo/build-succeeds debian-minimal/stable-vm + + set +u + deactivate + set -u + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/run.yaml new file mode 100644 index 00000000..368ffc83 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/run.yaml @@ -0,0 +1,71 @@ +- hosts: all + name: Autoconverted job legacy-dib-dsvm-functests-python2-centos-7-image from old + job gate-dib-dsvm-functests-python2-centos-7-image-nv + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + cd ~ + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/diskimage-builder \ + openstack/requirements + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd ~/openstack/diskimage-builder + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # + # We do things that might exceed the default 2GiB tmpfs, and + # use the larger mounted space. + cd ~ + sudo mkdir /opt/dib_cache + sudo chown jenkins:jenkins /opt/dib_cache + export DIB_NO_TMPFS=1 + export TMPDIR=/opt/dib_cache + + virtualenv -p python2 env + + export UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt + sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE + ./env/bin/pip install $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE + + # TODO(pabelanger): Remove once we migrated to bindep + ./openstack/diskimage-builder/tests/install_test_deps.sh + + # This sets up some repo files pointing to the infra mirrors + # which are used during test runs + ./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh + + # UPPER_CONSTRAINTS_FILE is causing side effects when doing image + # build, unset it + unset UPPER_CONSTRAINTS_FILE + + # activate the virtualenv so that any tools run by dib run + # using the python inside it + set +u + source ./env/bin/activate + set -u + ./openstack/diskimage-builder/tests/run_functests.sh centos7/build-succeeds opensuse/build-succeeds opensuse/opensuse423-build-succeeds fedora/build-succeeds ubuntu/trusty-build-succeeds ubuntu/xenial-build-succeeds + + set +u + deactivate + set -u + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-centos-7/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dib-dsvm-functests-python2-centos-7/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-centos-7/run.yaml new file mode 100644 index 00000000..ed15d123 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-centos-7/run.yaml @@ -0,0 +1,45 @@ +- hosts: all + name: Autoconverted job legacy-dib-dsvm-functests-python2-centos-7 from old job + gate-dib-dsvm-functests-python2-centos-7 + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + cd ~ + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/diskimage-builder \ + openstack/requirements + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd ~/openstack/diskimage-builder + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: "set -u\nset -e\nset -x\n#\n# We do things that might exceed the default\ + \ 2GiB tmpfs, and\n# use the larger mounted space.\ncd ~\nsudo mkdir /opt/dib_cache\n\ + sudo chown jenkins:jenkins /opt/dib_cache\nexport DIB_NO_TMPFS=1\nexport\ + \ TMPDIR=/opt/dib_cache\n\nvirtualenv -p python2 env\n\nexport UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt\n\ + sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE\n./env/bin/pip install\ + \ $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE\n\n# TODO(pabelanger):\ + \ Remove once we migrated to bindep\n./openstack/diskimage-builder/tests/install_test_deps.sh\n\ + \n# This sets up some repo files pointing to the infra mirrors\n# which\ + \ are used during test runs\n./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh\n\ + \n# UPPER_CONSTRAINTS_FILE is causing side effects when doing image\n# build,\ + \ unset it\nunset UPPER_CONSTRAINTS_FILE\n\n# activate the virtualenv so\ + \ that any tools run by dib run\n# using the python inside it\nset +u\n\ + source ./env/bin/activate\nset -u\n./openstack/diskimage-builder/tests/run_functests.sh\ + \ \nset +u\ndeactivate\nset -u\n" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/run.yaml new file mode 100644 index 00000000..d6deec79 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/run.yaml @@ -0,0 +1,45 @@ +- hosts: all + name: Autoconverted job legacy-dib-dsvm-functests-python2-opensuse-423 from old + job gate-dib-dsvm-functests-python2-opensuse-423-nv + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + cd ~ + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/diskimage-builder \ + openstack/requirements + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd ~/openstack/diskimage-builder + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: "set -u\nset -e\nset -x\n#\n# We do things that might exceed the default\ + \ 2GiB tmpfs, and\n# use the larger mounted space.\ncd ~\nsudo mkdir /opt/dib_cache\n\ + sudo chown jenkins:jenkins /opt/dib_cache\nexport DIB_NO_TMPFS=1\nexport\ + \ TMPDIR=/opt/dib_cache\n\nvirtualenv -p python2 env\n\nexport UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt\n\ + sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE\n./env/bin/pip install\ + \ $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE\n\n# TODO(pabelanger):\ + \ Remove once we migrated to bindep\n./openstack/diskimage-builder/tests/install_test_deps.sh\n\ + \n# This sets up some repo files pointing to the infra mirrors\n# which\ + \ are used during test runs\n./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh\n\ + \n# UPPER_CONSTRAINTS_FILE is causing side effects when doing image\n# build,\ + \ unset it\nunset UPPER_CONSTRAINTS_FILE\n\n# activate the virtualenv so\ + \ that any tools run by dib run\n# using the python inside it\nset +u\n\ + source ./env/bin/activate\nset -u\n./openstack/diskimage-builder/tests/run_functests.sh\ + \ \nset +u\ndeactivate\nset -u\n" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/run.yaml new file mode 100644 index 00000000..15a8c10b --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/run.yaml @@ -0,0 +1,71 @@ +- hosts: all + name: Autoconverted job legacy-dib-dsvm-functests-python2-ubuntu-trusty-extras from + old job gate-dib-dsvm-functests-python2-ubuntu-trusty-extras-nv + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + cd ~ + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/diskimage-builder \ + openstack/requirements + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd ~/openstack/diskimage-builder + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # + # We do things that might exceed the default 2GiB tmpfs, and + # use the larger mounted space. + cd ~ + sudo mkdir /opt/dib_cache + sudo chown jenkins:jenkins /opt/dib_cache + export DIB_NO_TMPFS=1 + export TMPDIR=/opt/dib_cache + + virtualenv -p python2 env + + export UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt + sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE + ./env/bin/pip install $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE + + # TODO(pabelanger): Remove once we migrated to bindep + ./openstack/diskimage-builder/tests/install_test_deps.sh + + # This sets up some repo files pointing to the infra mirrors + # which are used during test runs + ./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh + + # UPPER_CONSTRAINTS_FILE is causing side effects when doing image + # build, unset it + unset UPPER_CONSTRAINTS_FILE + + # activate the virtualenv so that any tools run by dib run + # using the python inside it + set +u + source ./env/bin/activate + set -u + ./openstack/diskimage-builder/tests/run_functests.sh gentoo/build-succeeds debian-minimal/stable-vm + + set +u + deactivate + set -u + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/run.yaml new file mode 100644 index 00000000..0d395620 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/run.yaml @@ -0,0 +1,71 @@ +- hosts: all + name: Autoconverted job legacy-dib-dsvm-functests-python2-ubuntu-trusty-image from + old job gate-dib-dsvm-functests-python2-ubuntu-trusty-image-nv + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + cd ~ + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/diskimage-builder \ + openstack/requirements + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd ~/openstack/diskimage-builder + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # + # We do things that might exceed the default 2GiB tmpfs, and + # use the larger mounted space. + cd ~ + sudo mkdir /opt/dib_cache + sudo chown jenkins:jenkins /opt/dib_cache + export DIB_NO_TMPFS=1 + export TMPDIR=/opt/dib_cache + + virtualenv -p python2 env + + export UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt + sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE + ./env/bin/pip install $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE + + # TODO(pabelanger): Remove once we migrated to bindep + ./openstack/diskimage-builder/tests/install_test_deps.sh + + # This sets up some repo files pointing to the infra mirrors + # which are used during test runs + ./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh + + # UPPER_CONSTRAINTS_FILE is causing side effects when doing image + # build, unset it + unset UPPER_CONSTRAINTS_FILE + + # activate the virtualenv so that any tools run by dib run + # using the python inside it + set +u + source ./env/bin/activate + set -u + ./openstack/diskimage-builder/tests/run_functests.sh centos7/build-succeeds opensuse/build-succeeds opensuse/opensuse423-build-succeeds fedora/build-succeeds ubuntu/trusty-build-succeeds ubuntu/xenial-build-succeeds + + set +u + deactivate + set -u + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/post.yaml b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/run.yaml b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..8efcc9dc --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/run.yaml @@ -0,0 +1,45 @@ +- hosts: all + name: Autoconverted job legacy-dib-dsvm-functests-python2-ubuntu-trusty from old + job gate-dib-dsvm-functests-python2-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + cd ~ + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/diskimage-builder \ + openstack/requirements + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd ~/openstack/diskimage-builder + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: "set -u\nset -e\nset -x\n#\n# We do things that might exceed the default\ + \ 2GiB tmpfs, and\n# use the larger mounted space.\ncd ~\nsudo mkdir /opt/dib_cache\n\ + sudo chown jenkins:jenkins /opt/dib_cache\nexport DIB_NO_TMPFS=1\nexport\ + \ TMPDIR=/opt/dib_cache\n\nvirtualenv -p python2 env\n\nexport UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt\n\ + sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE\n./env/bin/pip install\ + \ $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE\n\n# TODO(pabelanger):\ + \ Remove once we migrated to bindep\n./openstack/diskimage-builder/tests/install_test_deps.sh\n\ + \n# This sets up some repo files pointing to the infra mirrors\n# which\ + \ are used during test runs\n./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh\n\ + \n# UPPER_CONSTRAINTS_FILE is causing side effects when doing image\n# build,\ + \ unset it\nunset UPPER_CONSTRAINTS_FILE\n\n# activate the virtualenv so\ + \ that any tools run by dib run\n# using the python inside it\nset +u\n\ + source ./env/bin/activate\nset -u\n./openstack/diskimage-builder/tests/run_functests.sh\ + \ \nset +u\ndeactivate\nset -u\n" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python3-extras/post.yaml b/playbooks/legacy/dib-dsvm-functests-python3-extras/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python3-extras/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dib-dsvm-functests-python3-extras/run.yaml b/playbooks/legacy/dib-dsvm-functests-python3-extras/run.yaml new file mode 100644 index 00000000..93d4d72d --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python3-extras/run.yaml @@ -0,0 +1,70 @@ +- hosts: all + name: Autoconverted job legacy-dib-dsvm-functests-python3-extras from old job gate-dib-dsvm-functests-python3-ubuntu-xenial-extras-nv + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + cd ~ + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/diskimage-builder \ + openstack/requirements + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd ~/openstack/diskimage-builder + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # + # We do things that might exceed the default 2GiB tmpfs, and + # use the larger mounted space. + cd ~ + sudo mkdir /opt/dib_cache + sudo chown jenkins:jenkins /opt/dib_cache + export DIB_NO_TMPFS=1 + export TMPDIR=/opt/dib_cache + + virtualenv -p python3 env + + export UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt + sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE + ./env/bin/pip install $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE + + # TODO(pabelanger): Remove once we migrated to bindep + ./openstack/diskimage-builder/tests/install_test_deps.sh + + # This sets up some repo files pointing to the infra mirrors + # which are used during test runs + ./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh + + # UPPER_CONSTRAINTS_FILE is causing side effects when doing image + # build, unset it + unset UPPER_CONSTRAINTS_FILE + + # activate the virtualenv so that any tools run by dib run + # using the python inside it + set +u + source ./env/bin/activate + set -u + ./openstack/diskimage-builder/tests/run_functests.sh gentoo/build-succeeds debian-minimal/stable-vm opensuse-minimal/opensuse423-build-succeeds + + set +u + deactivate + set -u + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python3-image/post.yaml b/playbooks/legacy/dib-dsvm-functests-python3-image/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python3-image/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dib-dsvm-functests-python3-image/run.yaml b/playbooks/legacy/dib-dsvm-functests-python3-image/run.yaml new file mode 100644 index 00000000..3bc1ab7c --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python3-image/run.yaml @@ -0,0 +1,70 @@ +- hosts: all + name: Autoconverted job legacy-dib-dsvm-functests-python3-image from old job gate-dib-dsvm-functests-python3-ubuntu-xenial-image-nv + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + cd ~ + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/diskimage-builder \ + openstack/requirements + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd ~/openstack/diskimage-builder + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # + # We do things that might exceed the default 2GiB tmpfs, and + # use the larger mounted space. + cd ~ + sudo mkdir /opt/dib_cache + sudo chown jenkins:jenkins /opt/dib_cache + export DIB_NO_TMPFS=1 + export TMPDIR=/opt/dib_cache + + virtualenv -p python3 env + + export UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt + sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE + ./env/bin/pip install $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE + + # TODO(pabelanger): Remove once we migrated to bindep + ./openstack/diskimage-builder/tests/install_test_deps.sh + + # This sets up some repo files pointing to the infra mirrors + # which are used during test runs + ./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh + + # UPPER_CONSTRAINTS_FILE is causing side effects when doing image + # build, unset it + unset UPPER_CONSTRAINTS_FILE + + # activate the virtualenv so that any tools run by dib run + # using the python inside it + set +u + source ./env/bin/activate + set -u + ./openstack/diskimage-builder/tests/run_functests.sh centos7/build-succeeds opensuse/build-succeeds opensuse/opensuse423-build-succeeds fedora/build-succeeds ubuntu/trusty-build-succeeds ubuntu/xenial-build-succeeds + + set +u + deactivate + set -u + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/post.yaml b/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/run.yaml b/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/run.yaml new file mode 100644 index 00000000..1729fbc1 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/run.yaml @@ -0,0 +1,45 @@ +- hosts: all + name: Autoconverted job legacy-dib-dsvm-functests-python3-opensuse-423 from old + job gate-dib-dsvm-functests-python3-opensuse-423-nv + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + cd ~ + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/diskimage-builder \ + openstack/requirements + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd ~/openstack/diskimage-builder + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: "set -u\nset -e\nset -x\n#\n# We do things that might exceed the default\ + \ 2GiB tmpfs, and\n# use the larger mounted space.\ncd ~\nsudo mkdir /opt/dib_cache\n\ + sudo chown jenkins:jenkins /opt/dib_cache\nexport DIB_NO_TMPFS=1\nexport\ + \ TMPDIR=/opt/dib_cache\n\nvirtualenv -p python3 env\n\nexport UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt\n\ + sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE\n./env/bin/pip install\ + \ $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE\n\n# TODO(pabelanger):\ + \ Remove once we migrated to bindep\n./openstack/diskimage-builder/tests/install_test_deps.sh\n\ + \n# This sets up some repo files pointing to the infra mirrors\n# which\ + \ are used during test runs\n./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh\n\ + \n# UPPER_CONSTRAINTS_FILE is causing side effects when doing image\n# build,\ + \ unset it\nunset UPPER_CONSTRAINTS_FILE\n\n# activate the virtualenv so\ + \ that any tools run by dib run\n# using the python inside it\nset +u\n\ + source ./env/bin/activate\nset -u\n./openstack/diskimage-builder/tests/run_functests.sh\ + \ \nset +u\ndeactivate\nset -u\n" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-dsvm-functests-python3/post.yaml b/playbooks/legacy/dib-dsvm-functests-python3/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python3/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dib-dsvm-functests-python3/run.yaml b/playbooks/legacy/dib-dsvm-functests-python3/run.yaml new file mode 100644 index 00000000..796314ba --- /dev/null +++ b/playbooks/legacy/dib-dsvm-functests-python3/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-dib-dsvm-functests-python3 from old job gate-dib-dsvm-functests-python3-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + cd ~ + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/diskimage-builder \ + openstack/requirements + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd ~/openstack/diskimage-builder + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: "set -u\nset -e\nset -x\n#\n# We do things that might exceed the default\ + \ 2GiB tmpfs, and\n# use the larger mounted space.\ncd ~\nsudo mkdir /opt/dib_cache\n\ + sudo chown jenkins:jenkins /opt/dib_cache\nexport DIB_NO_TMPFS=1\nexport\ + \ TMPDIR=/opt/dib_cache\n\nvirtualenv -p python3 env\n\nexport UPPER_CONSTRAINTS_FILE=$(pwd)/openstack/requirements/upper-constraints.txt\n\ + sed -i '/^diskimage-builder/d' $UPPER_CONSTRAINTS_FILE\n./env/bin/pip install\ + \ $(pwd)/openstack/diskimage-builder -c $UPPER_CONSTRAINTS_FILE\n\n# TODO(pabelanger):\ + \ Remove once we migrated to bindep\n./openstack/diskimage-builder/tests/install_test_deps.sh\n\ + \n# This sets up some repo files pointing to the infra mirrors\n# which\ + \ are used during test runs\n./openstack/diskimage-builder/contrib/setup-gate-mirrors.sh\n\ + \n# UPPER_CONSTRAINTS_FILE is causing side effects when doing image\n# build,\ + \ unset it\nunset UPPER_CONSTRAINTS_FILE\n\n# activate the virtualenv so\ + \ that any tools run by dib run\n# using the python inside it\nset +u\n\ + source ./env/bin/activate\nset -u\n./openstack/diskimage-builder/tests/run_functests.sh\ + \ \nset +u\ndeactivate\nset -u\n" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dib-utils-tox-func/post.yaml b/playbooks/legacy/dib-utils-tox-func/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/dib-utils-tox-func/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dib-utils-tox-func/run.yaml b/playbooks/legacy/dib-utils-tox-func/run.yaml new file mode 100644 index 00000000..2d4793ec --- /dev/null +++ b/playbooks/legacy/dib-utils-tox-func/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-dib-utils-tox-func from old job gate-dib-utils-tox-func-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh func + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/diskimage-builder-pylint/post.yaml b/playbooks/legacy/diskimage-builder-pylint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/diskimage-builder-pylint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/diskimage-builder-pylint/run.yaml b/playbooks/legacy/diskimage-builder-pylint/run.yaml new file mode 100644 index 00000000..37b1412d --- /dev/null +++ b/playbooks/legacy/diskimage-builder-pylint/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-diskimage-builder-pylint from old job gate-diskimage-builder-pylint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/django_openstack_auth-tox-py27dj110/post.yaml b/playbooks/legacy/django_openstack_auth-tox-py27dj110/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/django_openstack_auth-tox-py27dj110/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/django_openstack_auth-tox-py27dj110/run.yaml b/playbooks/legacy/django_openstack_auth-tox-py27dj110/run.yaml new file mode 100644 index 00000000..2e851ba9 --- /dev/null +++ b/playbooks/legacy/django_openstack_auth-tox-py27dj110/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-django_openstack_auth-tox-py27dj110 from old job + gate-django_openstack_auth-tox-py27dj110-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj110 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/django_openstack_auth-tox-py27dj18/post.yaml b/playbooks/legacy/django_openstack_auth-tox-py27dj18/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/django_openstack_auth-tox-py27dj18/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/django_openstack_auth-tox-py27dj18/run.yaml b/playbooks/legacy/django_openstack_auth-tox-py27dj18/run.yaml new file mode 100644 index 00000000..f34c12e7 --- /dev/null +++ b/playbooks/legacy/django_openstack_auth-tox-py27dj18/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-django_openstack_auth-tox-py27dj18 from old job gate-django_openstack_auth-tox-py27dj18-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj18 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/django_openstack_auth-tox-py27dj19/post.yaml b/playbooks/legacy/django_openstack_auth-tox-py27dj19/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/django_openstack_auth-tox-py27dj19/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/django_openstack_auth-tox-py27dj19/run.yaml b/playbooks/legacy/django_openstack_auth-tox-py27dj19/run.yaml new file mode 100644 index 00000000..8effd834 --- /dev/null +++ b/playbooks/legacy/django_openstack_auth-tox-py27dj19/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-django_openstack_auth-tox-py27dj19 from old job gate-django_openstack_auth-tox-py27dj19-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj19 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dox-buildimages/post.yaml b/playbooks/legacy/dox-buildimages/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/dox-buildimages/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dox-buildimages/run.yaml b/playbooks/legacy/dox-buildimages/run.yaml new file mode 100644 index 00000000..e77c644b --- /dev/null +++ b/playbooks/legacy/dox-buildimages/run.yaml @@ -0,0 +1,59 @@ +- hosts: all + name: Autoconverted job legacy-dox-buildimages from old job gate-dox-buildimages-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ./tools/tarball.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dragonflow-dsvm-fullstack-zmq/post.yaml b/playbooks/legacy/dragonflow-dsvm-fullstack-zmq/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/dragonflow-dsvm-fullstack-zmq/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dragonflow-dsvm-fullstack-zmq/run.yaml b/playbooks/legacy/dragonflow-dsvm-fullstack-zmq/run.yaml new file mode 100644 index 00000000..e6fef3e4 --- /dev/null +++ b/playbooks/legacy/dragonflow-dsvm-fullstack-zmq/run.yaml @@ -0,0 +1,68 @@ +- hosts: all + name: Autoconverted job legacy-dragonflow-dsvm-fullstack-zmq from old job gate-dragonflow-dsvm-fullstack-zmq-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin dragonflow git://git.openstack.org/openstack/dragonflow + enable_plugin neutron-dynamic-routing git://git.openstack.org/openstack/neutron-dynamic-routing + enable_plugin networking-sfc git://git.openstack.org/openstack/networking-sfc + DR_MODE=df-bgp + Q_ENABLE_DRAGONFLOW_LOCAL_CONTROLLER=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/dragonflow $PROJECTS" + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + export PROJECTS="openstack/networking-sfc $PROJECTS" + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/dragonflow/devstack/devstackgaterc-zmq + + function gate_hook { + bash -xe $BASE/new/dragonflow/dragonflow/tests/contrib/gate_hook.sh fullstack + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/dragonflow/dragonflow/tests/contrib/post_test_hook.sh fullstack + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dragonflow-dsvm-fullstack/post.yaml b/playbooks/legacy/dragonflow-dsvm-fullstack/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/dragonflow-dsvm-fullstack/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dragonflow-dsvm-fullstack/run.yaml b/playbooks/legacy/dragonflow-dsvm-fullstack/run.yaml new file mode 100644 index 00000000..b6fad5ea --- /dev/null +++ b/playbooks/legacy/dragonflow-dsvm-fullstack/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-dragonflow-dsvm-fullstack from old job gate-dragonflow-dsvm-fullstack-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin dragonflow git://git.openstack.org/openstack/dragonflow + Q_ENABLE_DRAGONFLOW_LOCAL_CONTROLLER=True + # Add bgp project to fullstack gate job. + enable_plugin neutron-dynamic-routing git://git.openstack.org/openstack/neutron-dynamic-routing + DR_MODE=df-bgp + # Add networking-sfc + enable_plugin networking-sfc git://git.openstack.org/openstack/networking-sfc + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/dragonflow $PROJECTS" + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + export PROJECTS="openstack/networking-sfc $PROJECTS" + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/dragonflow/devstack/devstackgaterc + + function gate_hook { + bash -xe $BASE/new/dragonflow/dragonflow/tests/contrib/gate_hook.sh fullstack + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/dragonflow/dragonflow/tests/contrib/post_test_hook.sh fullstack + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dragonflow-dsvm-rally/post.yaml b/playbooks/legacy/dragonflow-dsvm-rally/post.yaml new file mode 100644 index 00000000..86dc5ca5 --- /dev/null +++ b/playbooks/legacy/dragonflow-dsvm-rally/post.yaml @@ -0,0 +1,106 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dragonflow-dsvm-rally/run.yaml b/playbooks/legacy/dragonflow-dsvm-rally/run.yaml new file mode 100644 index 00000000..e416c17f --- /dev/null +++ b/playbooks/legacy/dragonflow-dsvm-rally/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-dragonflow-dsvm-rally from old job gate-dragonflow-dsvm-rally-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin dragonflow git://git.openstack.org/openstack/dragonflow + Q_ENABLE_DRAGONFLOW_LOCAL_CONTROLLER=True + enable_plugin rally git://git.openstack.org/openstack/rally + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export RALLY_SCENARIO=dragonflow + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/dragonflow $PROJECTS" + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/dragonflow/devstack/devstackgaterc + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-ansible-func-centos-7/post.yaml b/playbooks/legacy/dsvm-ansible-func-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dsvm-ansible-func-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-ansible-func-centos-7/run.yaml b/playbooks/legacy/dsvm-ansible-func-centos-7/run.yaml new file mode 100644 index 00000000..83c35d80 --- /dev/null +++ b/playbooks/legacy/dsvm-ansible-func-centos-7/run.yaml @@ -0,0 +1,78 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-ansible-func-centos-7 from old job gate-{name}-dsvm-ansible-func-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export PROJECTS="$ZUUL_PROJECT $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook { + $BASE/new/$ZUUL_SHORT_PROJECT_NAME/tests/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-ansible-func-ubuntu-trusty/post.yaml b/playbooks/legacy/dsvm-ansible-func-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dsvm-ansible-func-ubuntu-trusty/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-ansible-func-ubuntu-trusty/run.yaml b/playbooks/legacy/dsvm-ansible-func-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..f34a7b27 --- /dev/null +++ b/playbooks/legacy/dsvm-ansible-func-ubuntu-trusty/run.yaml @@ -0,0 +1,78 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-ansible-func-ubuntu-trusty from old job gate-{name}-dsvm-ansible-func-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export PROJECTS="$ZUUL_PROJECT $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook { + $BASE/new/$ZUUL_SHORT_PROJECT_NAME/tests/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin-centos-7/post.yaml b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin-centos-7/run.yaml b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin-centos-7/run.yaml new file mode 100644 index 00000000..15561e8e --- /dev/null +++ b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin-centos-7/run.yaml @@ -0,0 +1,70 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-collectd-ceilometer-plugin-bin-centos-7 from + old job gate-dsvm-collectd-ceilometer-plugin-bin-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin aodh git://git.openstack.org/openstack/aodh + enable_plugin gnocchi http://github.com/gnocchixyz/gnocchi.git + enable_plugin collectd-ceilometer-plugin git://git.openstack.org/openstack/collectd-ceilometer-plugin + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export BRANCH_OVERRIDE=default + export PYTHONUNBUFFERED=true + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # We need to add those projects into repository, they are not available by default + # and we are using all of them in our plugin + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/collectd-ceilometer-plugin $PROJECTS" + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/collectd-ceilometer-plugin/devstack/gate/pre_test_hook_bin.sh ] ; then + . $BASE/new/collectd-ceilometer-plugin/devstack/gate/pre_test_hook_bin.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/collectd-ceilometer-plugin/devstack/gate/post_test_hook_bin.sh ] ; then + . $BASE/new/collectd-ceilometer-plugin/devstack/gate/post_test_hook_bin.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/collectd-ceilometer-plugin/devstack/gate/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin/post.yaml b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin/run.yaml b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin/run.yaml new file mode 100644 index 00000000..e33772a0 --- /dev/null +++ b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin/run.yaml @@ -0,0 +1,70 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-collectd-ceilometer-plugin-bin from old job + gate-dsvm-collectd-ceilometer-plugin-bin-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin aodh git://git.openstack.org/openstack/aodh + enable_plugin gnocchi http://github.com/gnocchixyz/gnocchi.git + enable_plugin collectd-ceilometer-plugin git://git.openstack.org/openstack/collectd-ceilometer-plugin + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export BRANCH_OVERRIDE=default + export PYTHONUNBUFFERED=true + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # We need to add those projects into repository, they are not available by default + # and we are using all of them in our plugin + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/collectd-ceilometer-plugin $PROJECTS" + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/collectd-ceilometer-plugin/devstack/gate/pre_test_hook_bin.sh ] ; then + . $BASE/new/collectd-ceilometer-plugin/devstack/gate/pre_test_hook_bin.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/collectd-ceilometer-plugin/devstack/gate/post_test_hook_bin.sh ] ; then + . $BASE/new/collectd-ceilometer-plugin/devstack/gate/post_test_hook_bin.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/collectd-ceilometer-plugin/devstack/gate/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src-centos-7/post.yaml b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src-centos-7/run.yaml b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src-centos-7/run.yaml new file mode 100644 index 00000000..8712c73a --- /dev/null +++ b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src-centos-7/run.yaml @@ -0,0 +1,70 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-collectd-ceilometer-plugin-src-centos-7 from + old job gate-dsvm-collectd-ceilometer-plugin-src-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin aodh git://git.openstack.org/openstack/aodh + enable_plugin gnocchi http://github.com/gnocchixyz/gnocchi.git + enable_plugin collectd-ceilometer-plugin git://git.openstack.org/openstack/collectd-ceilometer-plugin + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export BRANCH_OVERRIDE=default + export PYTHONUNBUFFERED=true + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # We need to add those projects into repository, they are not available by default + # and we are using all of them in our plugin + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/collectd-ceilometer-plugin $PROJECTS" + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/collectd-ceilometer-plugin/devstack/gate/pre_test_hook_src.sh ] ; then + . $BASE/new/collectd-ceilometer-plugin/devstack/gate/pre_test_hook_src.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/collectd-ceilometer-plugin/devstack/gate/post_test_hook_src.sh ] ; then + . $BASE/new/collectd-ceilometer-plugin/devstack/gate/post_test_hook_src.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/collectd-ceilometer-plugin/devstack/gate/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src/post.yaml b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src/run.yaml b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src/run.yaml new file mode 100644 index 00000000..4f7f7c35 --- /dev/null +++ b/playbooks/legacy/dsvm-collectd-ceilometer-plugin-src/run.yaml @@ -0,0 +1,70 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-collectd-ceilometer-plugin-src from old job + gate-dsvm-collectd-ceilometer-plugin-src-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin aodh git://git.openstack.org/openstack/aodh + enable_plugin gnocchi http://github.com/gnocchixyz/gnocchi.git + enable_plugin collectd-ceilometer-plugin git://git.openstack.org/openstack/collectd-ceilometer-plugin + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export BRANCH_OVERRIDE=default + export PYTHONUNBUFFERED=true + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # We need to add those projects into repository, they are not available by default + # and we are using all of them in our plugin + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/collectd-ceilometer-plugin $PROJECTS" + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/collectd-ceilometer-plugin/devstack/gate/pre_test_hook_src.sh ] ; then + . $BASE/new/collectd-ceilometer-plugin/devstack/gate/pre_test_hook_src.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/collectd-ceilometer-plugin/devstack/gate/post_test_hook_src.sh ] ; then + . $BASE/new/collectd-ceilometer-plugin/devstack/gate/post_test_hook_src.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/collectd-ceilometer-plugin/devstack/gate/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-murano-apps-refstackclient-unittest/post.yaml b/playbooks/legacy/dsvm-murano-apps-refstackclient-unittest/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/dsvm-murano-apps-refstackclient-unittest/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-murano-apps-refstackclient-unittest/run.yaml b/playbooks/legacy/dsvm-murano-apps-refstackclient-unittest/run.yaml new file mode 100644 index 00000000..5c7d963e --- /dev/null +++ b/playbooks/legacy/dsvm-murano-apps-refstackclient-unittest/run.yaml @@ -0,0 +1,83 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-murano-apps-refstackclient-unittest from old + job gate-dsvm-murano-apps-refstackclient-unittest-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin murano git://git.openstack.org/openstack/murano + disable_service heat h-api h-api-cfn h-api-cw h-eng + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export KEYSTONE_USE_MOD_WSGI=False + # Allow tempest to use site-packages with plugins + export PROJECTS="openstack/murano $PROJECTS" + export PROJECTS="openstack/python-muranoclient $PROJECTS" + export PROJECTS="openstack/murano-dashboard $PROJECTS" + function post_test_hook { + # Configure and run functional tests + . /opt/stack/new/devstack/openrc admin admin + cd ${WORKSPACE} + tox -ve refstackclient-unittest + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-networking-odl-fullstack-carbon-snapshot/post.yaml b/playbooks/legacy/dsvm-networking-odl-fullstack-carbon-snapshot/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/dsvm-networking-odl-fullstack-carbon-snapshot/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-networking-odl-fullstack-carbon-snapshot/run.yaml b/playbooks/legacy/dsvm-networking-odl-fullstack-carbon-snapshot/run.yaml new file mode 100644 index 00000000..c5da7159 --- /dev/null +++ b/playbooks/legacy/dsvm-networking-odl-fullstack-carbon-snapshot/run.yaml @@ -0,0 +1,80 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-networking-odl-fullstack-carbon-snapshot from + old job gate-dsvm-networking-odl-fullstack-carbon-snapshot + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-odl git://git.openstack.org/openstack/networking-odl + # Fullstack test cases now assumes ODL available at this IP + HOST_IP=127.0.0.1 + UNSTACK_KEEP_ODL=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + # Fullstack pre_test.sh will need to sudo + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/networking-odl $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + # specify ODL release to use + export ODL_RELEASE_BASE=carbon-snapshot + + function pre_test_hook { + . $BASE/new/networking-odl/devstack/pre_test_hook.sh + } + export -f pre_test_hook + + function gate_hook { + bash -xe $BASE/new/networking-odl/networking_odl/tests/contrib/gate_hook.sh dsvm-fullstack + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/networking-odl/networking_odl/tests/contrib/post_test_hook.sh dsvm-fullstack + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-odl/devstack/devstackgaterc + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-networking-odl-fullstack-nitrogen-snapshot/post.yaml b/playbooks/legacy/dsvm-networking-odl-fullstack-nitrogen-snapshot/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/dsvm-networking-odl-fullstack-nitrogen-snapshot/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-networking-odl-fullstack-nitrogen-snapshot/run.yaml b/playbooks/legacy/dsvm-networking-odl-fullstack-nitrogen-snapshot/run.yaml new file mode 100644 index 00000000..6734b1da --- /dev/null +++ b/playbooks/legacy/dsvm-networking-odl-fullstack-nitrogen-snapshot/run.yaml @@ -0,0 +1,80 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-networking-odl-fullstack-nitrogen-snapshot from + old job gate-dsvm-networking-odl-fullstack-nitrogen-snapshot + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-odl git://git.openstack.org/openstack/networking-odl + # Fullstack test cases now assumes ODL available at this IP + HOST_IP=127.0.0.1 + UNSTACK_KEEP_ODL=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + # Fullstack pre_test.sh will need to sudo + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/networking-odl $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + # specify ODL release to use + export ODL_RELEASE_BASE=nitrogen-snapshot + + function pre_test_hook { + . $BASE/new/networking-odl/devstack/pre_test_hook.sh + } + export -f pre_test_hook + + function gate_hook { + bash -xe $BASE/new/networking-odl/networking_odl/tests/contrib/gate_hook.sh dsvm-fullstack + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/networking-odl/networking_odl/tests/contrib/post_test_hook.sh dsvm-fullstack + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-odl/devstack/devstackgaterc + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-networking-odl-functional-carbon-snapshot/post.yaml b/playbooks/legacy/dsvm-networking-odl-functional-carbon-snapshot/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/dsvm-networking-odl-functional-carbon-snapshot/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-networking-odl-functional-carbon-snapshot/run.yaml b/playbooks/legacy/dsvm-networking-odl-functional-carbon-snapshot/run.yaml new file mode 100644 index 00000000..24c00614 --- /dev/null +++ b/playbooks/legacy/dsvm-networking-odl-functional-carbon-snapshot/run.yaml @@ -0,0 +1,80 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-networking-odl-functional-carbon-snapshot from + old job gate-dsvm-networking-odl-functional-carbon-snapshot + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-odl git://git.openstack.org/openstack/networking-odl + # Fullstack test cases now assumes ODL available at this IP + HOST_IP=127.0.0.1 + UNSTACK_KEEP_ODL=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + # Fullstack pre_test.sh will need to sudo + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/networking-odl $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + # specify ODL release to use + export ODL_RELEASE_BASE=carbon-snapshot + + function pre_test_hook { + . $BASE/new/networking-odl/devstack/pre_test_hook.sh + } + export -f pre_test_hook + + function gate_hook { + bash -xe $BASE/new/networking-odl/networking_odl/tests/contrib/gate_hook.sh dsvm-functional + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/networking-odl/networking_odl/tests/contrib/post_test_hook.sh dsvm-functional + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-odl/devstack/devstackgaterc + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-networking-odl-functional-nitrogen-snapshot/post.yaml b/playbooks/legacy/dsvm-networking-odl-functional-nitrogen-snapshot/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/dsvm-networking-odl-functional-nitrogen-snapshot/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-networking-odl-functional-nitrogen-snapshot/run.yaml b/playbooks/legacy/dsvm-networking-odl-functional-nitrogen-snapshot/run.yaml new file mode 100644 index 00000000..38ab640e --- /dev/null +++ b/playbooks/legacy/dsvm-networking-odl-functional-nitrogen-snapshot/run.yaml @@ -0,0 +1,80 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-networking-odl-functional-nitrogen-snapshot + from old job gate-dsvm-networking-odl-functional-nitrogen-snapshot + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-odl git://git.openstack.org/openstack/networking-odl + # Fullstack test cases now assumes ODL available at this IP + HOST_IP=127.0.0.1 + UNSTACK_KEEP_ODL=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + # Fullstack pre_test.sh will need to sudo + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/networking-odl $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + # specify ODL release to use + export ODL_RELEASE_BASE=nitrogen-snapshot + + function pre_test_hook { + . $BASE/new/networking-odl/devstack/pre_test_hook.sh + } + export -f pre_test_hook + + function gate_hook { + bash -xe $BASE/new/networking-odl/networking_odl/tests/contrib/gate_hook.sh dsvm-functional + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/networking-odl/networking_odl/tests/contrib/post_test_hook.sh dsvm-functional + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-odl/devstack/devstackgaterc + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool-debian-src/post.yaml b/playbooks/legacy/dsvm-nodepool-debian-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool-debian-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-nodepool-debian-src/run.yaml b/playbooks/legacy/dsvm-nodepool-debian-src/run.yaml new file mode 100644 index 00000000..a30e40fc --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool-debian-src/run.yaml @@ -0,0 +1,114 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-nodepool-debian-src from old job gate-dsvm-nodepool-debian-src-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + # Disable tempest as nodepool is talking to the cloud not tempest. + export DEVSTACK_GATE_TEMPEST=0 + # Use neutron as the public clouds in use are neutron based. + export DEVSTACK_GATE_NEUTRON=1 + # The nodepool process needs sudo rights in order to + # perform dib image builds + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + # Disable services we do not need for nodepool + export DEVSTACK_LOCAL_CONFIG="disable_service horizon" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-anotification" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service cinder" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-bak" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-sch" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-vol" + + if [ "" == "-py35" ]; then + export DEVSTACK_GATE_USE_PYTHON3=True + + # swift is not ready for python3 yet + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add the + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack-infra/nodepool $PROJECTS" + # note the actual url here is somewhat irrelevant because it + # caches in nodepool, however make it a valid url for + # documentation purposes. + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin nodepool git://git.openstack.org/openstack-infra/nodepool" + export DEVSTACK_PROJECT_FROM_GIT="diskimage-builder" + export DEVSTACK_PROJECT_FROM_GIT+=",glean" + export DEVSTACK_PROJECT_FROM_GIT+=",shade" + + # Start with all images disabled. + export NODEPOOL_PAUSE_CENTOS_7_DIB=true + export NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=true + export NODEPOOL_PAUSE_FEDORA_26_DIB=true + export NODEPOOL_PAUSE_OPENSUSE_423_DIB=true + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=true + export NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=true + + if [ "-debian" == "" ] ; then + # dsvm-nodepool-src + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=false + elif [ "-debian" == "-debian" ] ; then + # dsvm-nodepool-debian-src + export NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=false + elif [ "-debian" == "-opensuse" ] ; then + # dsvm-nodepool-opensuse-src + export NODEPOOL_PAUSE_OPENSUSE_423_DIB=false + elif [ "-debian" == "-redhat" ] ; then + # dsvm-nodepool-redhat-src + export NODEPOOL_PAUSE_CENTOS_7_DIB=false + export NODEPOOL_PAUSE_FEDORA_26_DIB=false + elif [ "-debian" == "-ubuntu" ] ; then + # dsvm-nodepool-ubuntu-src + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=false + export NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=false + fi + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_CENTOS_7_DIB=$NODEPOOL_PAUSE_CENTOS_7_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=$NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_FEDORA_26_DIB=$NODEPOOL_PAUSE_FEDORA_26_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_OPENSUSE_423_DIB=$NODEPOOL_PAUSE_OPENSUSE_423_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=$NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=$NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB" + + function post_test_hook { + /opt/stack/new/nodepool/tools/check_devstack_plugin.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool-opensuse-src/post.yaml b/playbooks/legacy/dsvm-nodepool-opensuse-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool-opensuse-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-nodepool-opensuse-src/run.yaml b/playbooks/legacy/dsvm-nodepool-opensuse-src/run.yaml new file mode 100644 index 00000000..181be19f --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool-opensuse-src/run.yaml @@ -0,0 +1,114 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-nodepool-opensuse-src from old job gate-dsvm-nodepool-opensuse-src + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + # Disable tempest as nodepool is talking to the cloud not tempest. + export DEVSTACK_GATE_TEMPEST=0 + # Use neutron as the public clouds in use are neutron based. + export DEVSTACK_GATE_NEUTRON=1 + # The nodepool process needs sudo rights in order to + # perform dib image builds + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + # Disable services we do not need for nodepool + export DEVSTACK_LOCAL_CONFIG="disable_service horizon" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-anotification" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service cinder" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-bak" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-sch" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-vol" + + if [ "" == "-py35" ]; then + export DEVSTACK_GATE_USE_PYTHON3=True + + # swift is not ready for python3 yet + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add the + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack-infra/nodepool $PROJECTS" + # note the actual url here is somewhat irrelevant because it + # caches in nodepool, however make it a valid url for + # documentation purposes. + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin nodepool git://git.openstack.org/openstack-infra/nodepool" + export DEVSTACK_PROJECT_FROM_GIT="diskimage-builder" + export DEVSTACK_PROJECT_FROM_GIT+=",glean" + export DEVSTACK_PROJECT_FROM_GIT+=",shade" + + # Start with all images disabled. + export NODEPOOL_PAUSE_CENTOS_7_DIB=true + export NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=true + export NODEPOOL_PAUSE_FEDORA_26_DIB=true + export NODEPOOL_PAUSE_OPENSUSE_423_DIB=true + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=true + export NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=true + + if [ "-opensuse" == "" ] ; then + # dsvm-nodepool-src + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=false + elif [ "-opensuse" == "-debian" ] ; then + # dsvm-nodepool-debian-src + export NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=false + elif [ "-opensuse" == "-opensuse" ] ; then + # dsvm-nodepool-opensuse-src + export NODEPOOL_PAUSE_OPENSUSE_423_DIB=false + elif [ "-opensuse" == "-redhat" ] ; then + # dsvm-nodepool-redhat-src + export NODEPOOL_PAUSE_CENTOS_7_DIB=false + export NODEPOOL_PAUSE_FEDORA_26_DIB=false + elif [ "-opensuse" == "-ubuntu" ] ; then + # dsvm-nodepool-ubuntu-src + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=false + export NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=false + fi + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_CENTOS_7_DIB=$NODEPOOL_PAUSE_CENTOS_7_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=$NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_FEDORA_26_DIB=$NODEPOOL_PAUSE_FEDORA_26_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_OPENSUSE_423_DIB=$NODEPOOL_PAUSE_OPENSUSE_423_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=$NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=$NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB" + + function post_test_hook { + /opt/stack/new/nodepool/tools/check_devstack_plugin.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool-py35-src/post.yaml b/playbooks/legacy/dsvm-nodepool-py35-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool-py35-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-nodepool-py35-src/run.yaml b/playbooks/legacy/dsvm-nodepool-py35-src/run.yaml new file mode 100644 index 00000000..1e50c7c5 --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool-py35-src/run.yaml @@ -0,0 +1,114 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-nodepool-py35-src from old job gate-dsvm-nodepool-py35-src-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + # Disable tempest as nodepool is talking to the cloud not tempest. + export DEVSTACK_GATE_TEMPEST=0 + # Use neutron as the public clouds in use are neutron based. + export DEVSTACK_GATE_NEUTRON=1 + # The nodepool process needs sudo rights in order to + # perform dib image builds + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + # Disable services we do not need for nodepool + export DEVSTACK_LOCAL_CONFIG="disable_service horizon" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-anotification" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service cinder" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-bak" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-sch" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-vol" + + if [ "-py35" == "-py35" ]; then + export DEVSTACK_GATE_USE_PYTHON3=True + + # swift is not ready for python3 yet + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add the + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack-infra/nodepool $PROJECTS" + # note the actual url here is somewhat irrelevant because it + # caches in nodepool, however make it a valid url for + # documentation purposes. + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin nodepool git://git.openstack.org/openstack-infra/nodepool" + export DEVSTACK_PROJECT_FROM_GIT="diskimage-builder" + export DEVSTACK_PROJECT_FROM_GIT+=",glean" + export DEVSTACK_PROJECT_FROM_GIT+=",shade" + + # Start with all images disabled. + export NODEPOOL_PAUSE_CENTOS_7_DIB=true + export NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=true + export NODEPOOL_PAUSE_FEDORA_26_DIB=true + export NODEPOOL_PAUSE_OPENSUSE_423_DIB=true + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=true + export NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=true + + if [ "" == "" ] ; then + # dsvm-nodepool-src + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=false + elif [ "" == "-debian" ] ; then + # dsvm-nodepool-debian-src + export NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=false + elif [ "" == "-opensuse" ] ; then + # dsvm-nodepool-opensuse-src + export NODEPOOL_PAUSE_OPENSUSE_423_DIB=false + elif [ "" == "-redhat" ] ; then + # dsvm-nodepool-redhat-src + export NODEPOOL_PAUSE_CENTOS_7_DIB=false + export NODEPOOL_PAUSE_FEDORA_26_DIB=false + elif [ "" == "-ubuntu" ] ; then + # dsvm-nodepool-ubuntu-src + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=false + export NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=false + fi + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_CENTOS_7_DIB=$NODEPOOL_PAUSE_CENTOS_7_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=$NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_FEDORA_26_DIB=$NODEPOOL_PAUSE_FEDORA_26_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_OPENSUSE_423_DIB=$NODEPOOL_PAUSE_OPENSUSE_423_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=$NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=$NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB" + + function post_test_hook { + /opt/stack/new/nodepool/tools/check_devstack_plugin.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool-py35/post.yaml b/playbooks/legacy/dsvm-nodepool-py35/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool-py35/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-nodepool-py35/run.yaml b/playbooks/legacy/dsvm-nodepool-py35/run.yaml new file mode 100644 index 00000000..da211380 --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool-py35/run.yaml @@ -0,0 +1,78 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-nodepool-py35 from old job gate-dsvm-nodepool-py35-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + # Disable tempest as nodepool is talking to the cloud not tempest. + export DEVSTACK_GATE_TEMPEST=0 + # Use neutron as the public clouds in use are neutron based. + export DEVSTACK_GATE_NEUTRON=1 + # The nodepool process needs sudo rights in order to + # perform dib image builds + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + # Disable services we do not need for nodepool + export DEVSTACK_LOCAL_CONFIG="disable_service horizon" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-anotification" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service cinder" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-bak" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-sch" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-vol" + + if [ "-py35" == "-py35" ]; then + export DEVSTACK_GATE_USE_PYTHON3=True + + # swift is not ready for python3 yet + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add the + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack-infra/nodepool $PROJECTS" + # note the actual url here is somewhat irrelevant because it + # caches in nodepool, however make it a valid url for + # documentation purposes. + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin nodepool git://git.openstack.org/openstack-infra/nodepool" + + function post_test_hook { + /opt/stack/new/nodepool/tools/check_devstack_plugin.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool-redhat-src/post.yaml b/playbooks/legacy/dsvm-nodepool-redhat-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool-redhat-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-nodepool-redhat-src/run.yaml b/playbooks/legacy/dsvm-nodepool-redhat-src/run.yaml new file mode 100644 index 00000000..93c05044 --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool-redhat-src/run.yaml @@ -0,0 +1,114 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-nodepool-redhat-src from old job gate-dsvm-nodepool-redhat-src + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + # Disable tempest as nodepool is talking to the cloud not tempest. + export DEVSTACK_GATE_TEMPEST=0 + # Use neutron as the public clouds in use are neutron based. + export DEVSTACK_GATE_NEUTRON=1 + # The nodepool process needs sudo rights in order to + # perform dib image builds + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + # Disable services we do not need for nodepool + export DEVSTACK_LOCAL_CONFIG="disable_service horizon" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-anotification" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service cinder" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-bak" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-sch" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-vol" + + if [ "" == "-py35" ]; then + export DEVSTACK_GATE_USE_PYTHON3=True + + # swift is not ready for python3 yet + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add the + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack-infra/nodepool $PROJECTS" + # note the actual url here is somewhat irrelevant because it + # caches in nodepool, however make it a valid url for + # documentation purposes. + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin nodepool git://git.openstack.org/openstack-infra/nodepool" + export DEVSTACK_PROJECT_FROM_GIT="diskimage-builder" + export DEVSTACK_PROJECT_FROM_GIT+=",glean" + export DEVSTACK_PROJECT_FROM_GIT+=",shade" + + # Start with all images disabled. + export NODEPOOL_PAUSE_CENTOS_7_DIB=true + export NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=true + export NODEPOOL_PAUSE_FEDORA_26_DIB=true + export NODEPOOL_PAUSE_OPENSUSE_423_DIB=true + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=true + export NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=true + + if [ "-redhat" == "" ] ; then + # dsvm-nodepool-src + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=false + elif [ "-redhat" == "-debian" ] ; then + # dsvm-nodepool-debian-src + export NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=false + elif [ "-redhat" == "-opensuse" ] ; then + # dsvm-nodepool-opensuse-src + export NODEPOOL_PAUSE_OPENSUSE_423_DIB=false + elif [ "-redhat" == "-redhat" ] ; then + # dsvm-nodepool-redhat-src + export NODEPOOL_PAUSE_CENTOS_7_DIB=false + export NODEPOOL_PAUSE_FEDORA_26_DIB=false + elif [ "-redhat" == "-ubuntu" ] ; then + # dsvm-nodepool-ubuntu-src + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=false + export NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=false + fi + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_CENTOS_7_DIB=$NODEPOOL_PAUSE_CENTOS_7_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=$NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_FEDORA_26_DIB=$NODEPOOL_PAUSE_FEDORA_26_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_OPENSUSE_423_DIB=$NODEPOOL_PAUSE_OPENSUSE_423_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=$NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=$NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB" + + function post_test_hook { + /opt/stack/new/nodepool/tools/check_devstack_plugin.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool-src-old/post.yaml b/playbooks/legacy/dsvm-nodepool-src-old/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool-src-old/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-nodepool-src-old/run.yaml b/playbooks/legacy/dsvm-nodepool-src-old/run.yaml new file mode 100644 index 00000000..354c7c7e --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool-src-old/run.yaml @@ -0,0 +1,114 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-nodepool-src-old from old job gate-dsvm-nodepool-src-old-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + # Disable tempest as nodepool is talking to the cloud not tempest. + export DEVSTACK_GATE_TEMPEST=0 + # Use neutron as the public clouds in use are neutron based. + export DEVSTACK_GATE_NEUTRON=1 + # The nodepool process needs sudo rights in order to + # perform dib image builds + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + # Disable services we do not need for nodepool + export DEVSTACK_LOCAL_CONFIG="disable_service horizon" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-anotification" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service cinder" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-bak" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-sch" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-vol" + + if [ "" == "-py35" ]; then + export DEVSTACK_GATE_USE_PYTHON3=True + + # swift is not ready for python3 yet + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + export BRANCH_OVERRIDE=0.2.0 + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add the + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack-infra/nodepool $PROJECTS" + # note the actual url here is somewhat irrelevant because it + # caches in nodepool, however make it a valid url for + # documentation purposes. + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin nodepool git://git.openstack.org/openstack-infra/nodepool" + export DEVSTACK_PROJECT_FROM_GIT="diskimage-builder" + export DEVSTACK_PROJECT_FROM_GIT+=",glean" + export DEVSTACK_PROJECT_FROM_GIT+=",shade" + + # Start with all images disabled. + export NODEPOOL_PAUSE_CENTOS_7_DIB=true + export NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=true + export NODEPOOL_PAUSE_FEDORA_26_DIB=true + export NODEPOOL_PAUSE_OPENSUSE_423_DIB=true + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=true + export NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=true + + if [ "" == "" ] ; then + # dsvm-nodepool-src + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=false + elif [ "" == "-debian" ] ; then + # dsvm-nodepool-debian-src + export NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=false + elif [ "" == "-opensuse" ] ; then + # dsvm-nodepool-opensuse-src + export NODEPOOL_PAUSE_OPENSUSE_423_DIB=false + elif [ "" == "-redhat" ] ; then + # dsvm-nodepool-redhat-src + export NODEPOOL_PAUSE_CENTOS_7_DIB=false + export NODEPOOL_PAUSE_FEDORA_26_DIB=false + elif [ "" == "-ubuntu" ] ; then + # dsvm-nodepool-ubuntu-src + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=false + export NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=false + fi + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_CENTOS_7_DIB=$NODEPOOL_PAUSE_CENTOS_7_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=$NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_FEDORA_26_DIB=$NODEPOOL_PAUSE_FEDORA_26_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_OPENSUSE_423_DIB=$NODEPOOL_PAUSE_OPENSUSE_423_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=$NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=$NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB" + + function post_test_hook { + /opt/stack/new/nodepool/tools/check_devstack_plugin.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool-src-zuulv3/post.yaml b/playbooks/legacy/dsvm-nodepool-src-zuulv3/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool-src-zuulv3/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-nodepool-src-zuulv3/run.yaml b/playbooks/legacy/dsvm-nodepool-src-zuulv3/run.yaml new file mode 100644 index 00000000..cfa27bea --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool-src-zuulv3/run.yaml @@ -0,0 +1,114 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-nodepool-src-zuulv3 from old job gate-dsvm-nodepool-src-zuulv3 + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + # Disable tempest as nodepool is talking to the cloud not tempest. + export DEVSTACK_GATE_TEMPEST=0 + # Use neutron as the public clouds in use are neutron based. + export DEVSTACK_GATE_NEUTRON=1 + # The nodepool process needs sudo rights in order to + # perform dib image builds + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + # Disable services we do not need for nodepool + export DEVSTACK_LOCAL_CONFIG="disable_service horizon" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-anotification" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service cinder" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-bak" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-sch" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-vol" + + if [ "" == "-py35" ]; then + export DEVSTACK_GATE_USE_PYTHON3=True + + # swift is not ready for python3 yet + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + export BRANCH_OVERRIDE=feature/zuulv3 + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add the + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack-infra/nodepool $PROJECTS" + # note the actual url here is somewhat irrelevant because it + # caches in nodepool, however make it a valid url for + # documentation purposes. + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin nodepool git://git.openstack.org/openstack-infra/nodepool" + export DEVSTACK_PROJECT_FROM_GIT="diskimage-builder" + export DEVSTACK_PROJECT_FROM_GIT+=",glean" + export DEVSTACK_PROJECT_FROM_GIT+=",shade" + + # Start with all images disabled. + export NODEPOOL_PAUSE_CENTOS_7_DIB=true + export NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=true + export NODEPOOL_PAUSE_FEDORA_26_DIB=true + export NODEPOOL_PAUSE_OPENSUSE_423_DIB=true + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=true + export NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=true + + if [ "" == "" ] ; then + # dsvm-nodepool-src + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=false + elif [ "" == "-debian" ] ; then + # dsvm-nodepool-debian-src + export NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=false + elif [ "" == "-opensuse" ] ; then + # dsvm-nodepool-opensuse-src + export NODEPOOL_PAUSE_OPENSUSE_423_DIB=false + elif [ "" == "-redhat" ] ; then + # dsvm-nodepool-redhat-src + export NODEPOOL_PAUSE_CENTOS_7_DIB=false + export NODEPOOL_PAUSE_FEDORA_26_DIB=false + elif [ "" == "-ubuntu" ] ; then + # dsvm-nodepool-ubuntu-src + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=false + export NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=false + fi + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_CENTOS_7_DIB=$NODEPOOL_PAUSE_CENTOS_7_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=$NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_FEDORA_26_DIB=$NODEPOOL_PAUSE_FEDORA_26_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_OPENSUSE_423_DIB=$NODEPOOL_PAUSE_OPENSUSE_423_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=$NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=$NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB" + + function post_test_hook { + /opt/stack/new/nodepool/tools/check_devstack_plugin.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool-src/post.yaml b/playbooks/legacy/dsvm-nodepool-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-nodepool-src/run.yaml b/playbooks/legacy/dsvm-nodepool-src/run.yaml new file mode 100644 index 00000000..0df3c7cf --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool-src/run.yaml @@ -0,0 +1,114 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-nodepool-src from old job gate-dsvm-nodepool-src-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + # Disable tempest as nodepool is talking to the cloud not tempest. + export DEVSTACK_GATE_TEMPEST=0 + # Use neutron as the public clouds in use are neutron based. + export DEVSTACK_GATE_NEUTRON=1 + # The nodepool process needs sudo rights in order to + # perform dib image builds + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + # Disable services we do not need for nodepool + export DEVSTACK_LOCAL_CONFIG="disable_service horizon" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-anotification" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service cinder" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-bak" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-sch" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-vol" + + if [ "" == "-py35" ]; then + export DEVSTACK_GATE_USE_PYTHON3=True + + # swift is not ready for python3 yet + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add the + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack-infra/nodepool $PROJECTS" + # note the actual url here is somewhat irrelevant because it + # caches in nodepool, however make it a valid url for + # documentation purposes. + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin nodepool git://git.openstack.org/openstack-infra/nodepool" + export DEVSTACK_PROJECT_FROM_GIT="diskimage-builder" + export DEVSTACK_PROJECT_FROM_GIT+=",glean" + export DEVSTACK_PROJECT_FROM_GIT+=",shade" + + # Start with all images disabled. + export NODEPOOL_PAUSE_CENTOS_7_DIB=true + export NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=true + export NODEPOOL_PAUSE_FEDORA_26_DIB=true + export NODEPOOL_PAUSE_OPENSUSE_423_DIB=true + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=true + export NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=true + + if [ "" == "" ] ; then + # dsvm-nodepool-src + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=false + elif [ "" == "-debian" ] ; then + # dsvm-nodepool-debian-src + export NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=false + elif [ "" == "-opensuse" ] ; then + # dsvm-nodepool-opensuse-src + export NODEPOOL_PAUSE_OPENSUSE_423_DIB=false + elif [ "" == "-redhat" ] ; then + # dsvm-nodepool-redhat-src + export NODEPOOL_PAUSE_CENTOS_7_DIB=false + export NODEPOOL_PAUSE_FEDORA_26_DIB=false + elif [ "" == "-ubuntu" ] ; then + # dsvm-nodepool-ubuntu-src + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=false + export NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=false + fi + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_CENTOS_7_DIB=$NODEPOOL_PAUSE_CENTOS_7_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=$NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_FEDORA_26_DIB=$NODEPOOL_PAUSE_FEDORA_26_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_OPENSUSE_423_DIB=$NODEPOOL_PAUSE_OPENSUSE_423_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=$NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=$NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB" + + function post_test_hook { + /opt/stack/new/nodepool/tools/check_devstack_plugin.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool-ubuntu-src/post.yaml b/playbooks/legacy/dsvm-nodepool-ubuntu-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool-ubuntu-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-nodepool-ubuntu-src/run.yaml b/playbooks/legacy/dsvm-nodepool-ubuntu-src/run.yaml new file mode 100644 index 00000000..63f415f1 --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool-ubuntu-src/run.yaml @@ -0,0 +1,114 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-nodepool-ubuntu-src from old job gate-dsvm-nodepool-ubuntu-src + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + # Disable tempest as nodepool is talking to the cloud not tempest. + export DEVSTACK_GATE_TEMPEST=0 + # Use neutron as the public clouds in use are neutron based. + export DEVSTACK_GATE_NEUTRON=1 + # The nodepool process needs sudo rights in order to + # perform dib image builds + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + # Disable services we do not need for nodepool + export DEVSTACK_LOCAL_CONFIG="disable_service horizon" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-anotification" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service cinder" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-bak" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-sch" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-vol" + + if [ "" == "-py35" ]; then + export DEVSTACK_GATE_USE_PYTHON3=True + + # swift is not ready for python3 yet + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add the + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack-infra/nodepool $PROJECTS" + # note the actual url here is somewhat irrelevant because it + # caches in nodepool, however make it a valid url for + # documentation purposes. + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin nodepool git://git.openstack.org/openstack-infra/nodepool" + export DEVSTACK_PROJECT_FROM_GIT="diskimage-builder" + export DEVSTACK_PROJECT_FROM_GIT+=",glean" + export DEVSTACK_PROJECT_FROM_GIT+=",shade" + + # Start with all images disabled. + export NODEPOOL_PAUSE_CENTOS_7_DIB=true + export NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=true + export NODEPOOL_PAUSE_FEDORA_26_DIB=true + export NODEPOOL_PAUSE_OPENSUSE_423_DIB=true + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=true + export NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=true + + if [ "-ubuntu" == "" ] ; then + # dsvm-nodepool-src + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=false + elif [ "-ubuntu" == "-debian" ] ; then + # dsvm-nodepool-debian-src + export NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=false + elif [ "-ubuntu" == "-opensuse" ] ; then + # dsvm-nodepool-opensuse-src + export NODEPOOL_PAUSE_OPENSUSE_423_DIB=false + elif [ "-ubuntu" == "-redhat" ] ; then + # dsvm-nodepool-redhat-src + export NODEPOOL_PAUSE_CENTOS_7_DIB=false + export NODEPOOL_PAUSE_FEDORA_26_DIB=false + elif [ "-ubuntu" == "-ubuntu" ] ; then + # dsvm-nodepool-ubuntu-src + export NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=false + export NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=false + fi + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_CENTOS_7_DIB=$NODEPOOL_PAUSE_CENTOS_7_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB=$NODEPOOL_PAUSE_DEBIAN_JESSIE_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_FEDORA_26_DIB=$NODEPOOL_PAUSE_FEDORA_26_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_OPENSUSE_423_DIB=$NODEPOOL_PAUSE_OPENSUSE_423_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB=$NODEPOOL_PAUSE_UBUNTU_TRUSTY_DIB" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB=$NODEPOOL_PAUSE_UBUNTU_XENIAL_DIB" + + function post_test_hook { + /opt/stack/new/nodepool/tools/check_devstack_plugin.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-nodepool/post.yaml b/playbooks/legacy/dsvm-nodepool/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-nodepool/run.yaml b/playbooks/legacy/dsvm-nodepool/run.yaml new file mode 100644 index 00000000..c4f80146 --- /dev/null +++ b/playbooks/legacy/dsvm-nodepool/run.yaml @@ -0,0 +1,78 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-nodepool from old job gate-dsvm-nodepool-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + # Disable tempest as nodepool is talking to the cloud not tempest. + export DEVSTACK_GATE_TEMPEST=0 + # Use neutron as the public clouds in use are neutron based. + export DEVSTACK_GATE_NEUTRON=1 + # The nodepool process needs sudo rights in order to + # perform dib image builds + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + # Disable services we do not need for nodepool + export DEVSTACK_LOCAL_CONFIG="disable_service horizon" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-anotification" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service cinder" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-bak" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-sch" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service c-vol" + + if [ "" == "-py35" ]; then + export DEVSTACK_GATE_USE_PYTHON3=True + + # swift is not ready for python3 yet + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add the + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack-infra/nodepool $PROJECTS" + # note the actual url here is somewhat irrelevant because it + # caches in nodepool, however make it a valid url for + # documentation purposes. + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin nodepool git://git.openstack.org/openstack-infra/nodepool" + + function post_test_hook { + /opt/stack/new/nodepool/tools/check_devstack_plugin.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/dsvm-os-loganalyze/post.yaml b/playbooks/legacy/dsvm-os-loganalyze/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/dsvm-os-loganalyze/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/dsvm-os-loganalyze/run.yaml b/playbooks/legacy/dsvm-os-loganalyze/run.yaml new file mode 100644 index 00000000..da0031cc --- /dev/null +++ b/playbooks/legacy/dsvm-os-loganalyze/run.yaml @@ -0,0 +1,67 @@ +- hosts: all + name: Autoconverted job legacy-dsvm-os-loganalyze from old job gate-dsvm-os-loganalyze-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin devstack-plugin-os-loganalyze git://git.openstack.org/openstack-infra/os-loganalyze + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export ENABLED_SERVICES=os-loganalyze + export PROJECTS="openstack-infra/os-loganalyze $PROJECTS" + + function post_test_hook { + # Copy the tempest output to the os-loganalyze DocumentRoot + sudo cp -r logs/* /var/www/logs/ + # Grab normally marked up file + wget --header="Accept: text/html" http://localhost:8080/tempest.txt.gz + # Check display level options are available + if ! grep -q "" tempest.txt.gz; then + return 1 + fi + if ! grep -q "DEBUG |" tempest.txt.gz; then + return 1 + fi + # Check when fetching as plain, options are missing + wget http://localhost:8080/tempest.txt.gz + if grep -q "" tempest.txt.gz; then + return 1 + fi + if grep -q "DEBUG |" tempest.txt.gz; then + return 1 + fi + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ec2-api-functional-neutron-dsvm-full/post.yaml b/playbooks/legacy/ec2-api-functional-neutron-dsvm-full/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ec2-api-functional-neutron-dsvm-full/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ec2-api-functional-neutron-dsvm-full/run.yaml b/playbooks/legacy/ec2-api-functional-neutron-dsvm-full/run.yaml new file mode 100644 index 00000000..a0e1aa64 --- /dev/null +++ b/playbooks/legacy/ec2-api-functional-neutron-dsvm-full/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-ec2-api-functional-neutron-dsvm-full from old job + ec2-api-functional-neutron-dsvm-full-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin ec2-api git://git.openstack.org/openstack/ec2-api + RUN_LONG_TESTS=1 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + + export PROJECTS="openstack/ec2-api $PROJECTS" + export PROJECTS="openstack/swift3 $PROJECTS" + export ENABLED_SERVICES+=,swift3 + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/ec2-api/ + ./ec2api/tests/contrib/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ec2-api-rally-dsvm-fakevirt/post.yaml b/playbooks/legacy/ec2-api-rally-dsvm-fakevirt/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/ec2-api-rally-dsvm-fakevirt/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ec2-api-rally-dsvm-fakevirt/run.yaml b/playbooks/legacy/ec2-api-rally-dsvm-fakevirt/run.yaml new file mode 100644 index 00000000..84d89fce --- /dev/null +++ b/playbooks/legacy/ec2-api-rally-dsvm-fakevirt/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-ec2-api-rally-dsvm-fakevirt from old job ec2-api-rally-dsvm-fakevirt-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin ec2-api git://git.openstack.org/openstack/ec2-api + enable_plugin rally git://git.openstack.org/openstack/rally + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ec2-api $PROJECTS" + export PROJECTS="openstack/rally $PROJECTS" + export DEVSTACK_GATE_VIRT_DRIVER=fake + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + + export RALLY_SCENARIO=ec2-api-fakevirt + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + function post_test_hook { + # run needed preparation steps for third-party project + if [ -f $BASE/new/ec2-api/rally-scenarios/post_test_hook.sh ] ; then + $BASE/new/ec2-api/rally-scenarios/post_test_hook.sh + fi + $BASE/new/rally/tests/ci/rally-gate.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/elastic-recheck-docs/run.yaml b/playbooks/legacy/elastic-recheck-docs/run.yaml new file mode 100644 index 00000000..8d3ce626 --- /dev/null +++ b/playbooks/legacy/elastic-recheck-docs/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-elastic-recheck-docs from old job elastic-recheck-docs + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/elastic-recheck-tox-queries/post.yaml b/playbooks/legacy/elastic-recheck-tox-queries/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/elastic-recheck-tox-queries/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/elastic-recheck-tox-queries/run.yaml b/playbooks/legacy/elastic-recheck-tox-queries/run.yaml new file mode 100644 index 00000000..f958aacb --- /dev/null +++ b/playbooks/legacy/elastic-recheck-tox-queries/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-elastic-recheck-tox-queries from old job gate-elastic-recheck-tox-queries-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh queries + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/freezer-api-pylint/post.yaml b/playbooks/legacy/freezer-api-pylint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/freezer-api-pylint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/freezer-api-pylint/run.yaml b/playbooks/legacy/freezer-api-pylint/run.yaml new file mode 100644 index 00000000..ff0c44d8 --- /dev/null +++ b/playbooks/legacy/freezer-api-pylint/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-freezer-api-pylint from old job gate-freezer-api-pylint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/freezer-dr-pylint/post.yaml b/playbooks/legacy/freezer-dr-pylint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/freezer-dr-pylint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/freezer-dr-pylint/run.yaml b/playbooks/legacy/freezer-dr-pylint/run.yaml new file mode 100644 index 00000000..6093b4b8 --- /dev/null +++ b/playbooks/legacy/freezer-dr-pylint/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-freezer-dr-pylint from old job gate-freezer-dr-pylint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/freezer-pylint/post.yaml b/playbooks/legacy/freezer-pylint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/freezer-pylint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/freezer-pylint/run.yaml b/playbooks/legacy/freezer-pylint/run.yaml new file mode 100644 index 00000000..04e6ae65 --- /dev/null +++ b/playbooks/legacy/freezer-pylint/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-freezer-pylint from old job gate-freezer-pylint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/freezer-web-ui-pylint/post.yaml b/playbooks/legacy/freezer-web-ui-pylint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/freezer-web-ui-pylint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/freezer-web-ui-pylint/run.yaml b/playbooks/legacy/freezer-web-ui-pylint/run.yaml new file mode 100644 index 00000000..471c3127 --- /dev/null +++ b/playbooks/legacy/freezer-web-ui-pylint/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-freezer-web-ui-pylint from old job gate-freezer-web-ui-pylint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-astute-puppet-unit-3.8-centos-7/run.yaml b/playbooks/legacy/fuel-astute-puppet-unit-3.8-centos-7/run.yaml new file mode 100644 index 00000000..db8339a4 --- /dev/null +++ b/playbooks/legacy/fuel-astute-puppet-unit-3.8-centos-7/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-fuel-astute-puppet-unit-3.8-centos-7 from old job + gate-fuel-astute-puppet-unit-3.8-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ "3.8" != "latest" ]; then + export PUPPET_GEM_VERSION='~> 3.8.0' + fi + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-ccp-validate/run.yaml b/playbooks/legacy/fuel-ccp-validate/run.yaml new file mode 100644 index 00000000..1af0b276 --- /dev/null +++ b/playbooks/legacy/fuel-ccp-validate/run.yaml @@ -0,0 +1,37 @@ +- hosts: all + name: Autoconverted job legacy-fuel-ccp-validate from old job gate-fuel-ccp-validate + tasks: + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd "$WORKSPACE" + cat > clonemap.yaml << EOF + clonemap: + - name: openstack/fuel-ccp + dest: fuel-ccp + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/fuel-ccp + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd "$WORKSPACE/fuel-ccp/tools/gate" + ./run.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-devops-pylint-ubuntu-trusty/post.yaml b/playbooks/legacy/fuel-devops-pylint-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/fuel-devops-pylint-ubuntu-trusty/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/fuel-devops-pylint-ubuntu-trusty/run.yaml b/playbooks/legacy/fuel-devops-pylint-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..667a066f --- /dev/null +++ b/playbooks/legacy/fuel-devops-pylint-ubuntu-trusty/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-fuel-devops-pylint-ubuntu-trusty from old job gate-fuel-devops-pylint-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-devops-pylint/post.yaml b/playbooks/legacy/fuel-devops-pylint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/fuel-devops-pylint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/fuel-devops-pylint/run.yaml b/playbooks/legacy/fuel-devops-pylint/run.yaml new file mode 100644 index 00000000..d391f539 --- /dev/null +++ b/playbooks/legacy/fuel-devops-pylint/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-fuel-devops-pylint from old job gate-fuel-devops-pylint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-library-puppet-lint/run.yaml b/playbooks/legacy/fuel-library-puppet-lint/run.yaml new file mode 100644 index 00000000..607ae9df --- /dev/null +++ b/playbooks/legacy/fuel-library-puppet-lint/run.yaml @@ -0,0 +1,92 @@ +- hosts: all + name: Autoconverted job legacy-fuel-library-puppet-lint from old job gate-fuel-library-puppet-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -f Modulefile -o -f metadata.json ]; then + if [ -f Modulefile ]; then + MODULE=$(awk '/^name/ {print $NF}' Modulefile |tr -d \"\') + elif [ -f metadata.json ]; then + MODULE=$(python -c 'import json;print json.load(open("metadata.json"))["name"]') + fi + if [ -z "$MODULE" ]; then + echo "Module name not defined in Modulefile or metadata.json" + else + mkdir -p "$MODULE" + rsync -a --exclude="$MODULE" --exclude ".*" . "$MODULE" + cd "$MODULE" + fi + fi + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + if [ -f Gemfile ]; then + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --without system_tests + $GEM_HOME/bin/bundle exec rake lint 2>&1 + else + gem install rake -n ./.bundled_gems/ + gem install puppet-lint + gem install puppetlabs_spec_helper + ./.bundled_gems/rake lint 2>&1 + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-library-puppet-unit-3.8-centos-7/run.yaml b/playbooks/legacy/fuel-library-puppet-unit-3.8-centos-7/run.yaml new file mode 100644 index 00000000..b6540b62 --- /dev/null +++ b/playbooks/legacy/fuel-library-puppet-unit-3.8-centos-7/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-fuel-library-puppet-unit-3.8-centos-7 from old job + gate-fuel-library-puppet-unit-3.8-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ "3.8" != "latest" ]; then + export PUPPET_GEM_VERSION='~> 3.8.0' + fi + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-library-puppet-unit-4.5-centos-7/run.yaml b/playbooks/legacy/fuel-library-puppet-unit-4.5-centos-7/run.yaml new file mode 100644 index 00000000..877076f4 --- /dev/null +++ b/playbooks/legacy/fuel-library-puppet-unit-4.5-centos-7/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-fuel-library-puppet-unit-4.5-centos-7 from old job + gate-fuel-library-puppet-unit-4.5-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ "4.5" != "latest" ]; then + export PUPPET_GEM_VERSION='~> 4.5.0' + fi + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-nailgun-agent-puppet-unit-3.8-centos-7/run.yaml b/playbooks/legacy/fuel-nailgun-agent-puppet-unit-3.8-centos-7/run.yaml new file mode 100644 index 00000000..bb62bca9 --- /dev/null +++ b/playbooks/legacy/fuel-nailgun-agent-puppet-unit-3.8-centos-7/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-fuel-nailgun-agent-puppet-unit-3.8-centos-7 from + old job gate-fuel-nailgun-agent-puppet-unit-3.8-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ "3.8" != "latest" ]; then + export PUPPET_GEM_VERSION='~> 3.8.0' + fi + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-octane-puppet-lint/run.yaml b/playbooks/legacy/fuel-octane-puppet-lint/run.yaml new file mode 100644 index 00000000..e02b1e1d --- /dev/null +++ b/playbooks/legacy/fuel-octane-puppet-lint/run.yaml @@ -0,0 +1,92 @@ +- hosts: all + name: Autoconverted job legacy-fuel-octane-puppet-lint from old job gate-fuel-octane-puppet-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -f Modulefile -o -f metadata.json ]; then + if [ -f Modulefile ]; then + MODULE=$(awk '/^name/ {print $NF}' Modulefile |tr -d \"\') + elif [ -f metadata.json ]; then + MODULE=$(python -c 'import json;print json.load(open("metadata.json"))["name"]') + fi + if [ -z "$MODULE" ]; then + echo "Module name not defined in Modulefile or metadata.json" + else + mkdir -p "$MODULE" + rsync -a --exclude="$MODULE" --exclude ".*" . "$MODULE" + cd "$MODULE" + fi + fi + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + if [ -f Gemfile ]; then + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --without system_tests + $GEM_HOME/bin/bundle exec rake lint 2>&1 + else + gem install rake -n ./.bundled_gems/ + gem install puppet-lint + gem install puppetlabs_spec_helper + ./.bundled_gems/rake lint 2>&1 + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-qa-pylint-ubuntu-trusty/post.yaml b/playbooks/legacy/fuel-qa-pylint-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/fuel-qa-pylint-ubuntu-trusty/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/fuel-qa-pylint-ubuntu-trusty/run.yaml b/playbooks/legacy/fuel-qa-pylint-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..97491d92 --- /dev/null +++ b/playbooks/legacy/fuel-qa-pylint-ubuntu-trusty/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-fuel-qa-pylint-ubuntu-trusty from old job gate-fuel-qa-pylint-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-qa-pylint/post.yaml b/playbooks/legacy/fuel-qa-pylint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/fuel-qa-pylint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/fuel-qa-pylint/run.yaml b/playbooks/legacy/fuel-qa-pylint/run.yaml new file mode 100644 index 00000000..65851bff --- /dev/null +++ b/playbooks/legacy/fuel-qa-pylint/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-fuel-qa-pylint from old job gate-fuel-qa-pylint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuel-ui-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/fuel-ui-nodejs4-npm-run-lint/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/fuel-ui-nodejs4-npm-run-lint/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/fuel-ui-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/fuel-ui-nodejs4-npm-run-lint/run.yaml new file mode 100644 index 00000000..f6947383 --- /dev/null +++ b/playbooks/legacy/fuel-ui-nodejs4-npm-run-lint/run.yaml @@ -0,0 +1,133 @@ +- hosts: all + name: Autoconverted job legacy-fuel-ui-nodejs4-npm-run-lint from old job gate-fuel-ui-nodejs4-npm-run-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )lint($| ) ]]; then + npm lint --verbose + else + npm run lint --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-astara-appliance-src/post.yaml b/playbooks/legacy/functional-dsvm-astara-appliance-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-astara-appliance-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/functional-dsvm-astara-appliance-src/run.yaml b/playbooks/legacy/functional-dsvm-astara-appliance-src/run.yaml new file mode 100644 index 00000000..1566e0c5 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-astara-appliance-src/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-functional-dsvm-astara-appliance-src from old job + gate-functional-dsvm-astara-appliance-src-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/astara $PROJECTS" + export PROJECTS="openstack/astara-neutron $PROJECTS" + export PROJECTS="openstack/astara-appliance $PROJECTS" + export PROJECTS="openstack/astara-horizon $PROJECTS" + + export DEVSTACK_LOCAL_CONFIG="enable_plugin astara https://git.openstack.org/openstack/astara" + + export BUILD_APPLIANCE=1 + if [ "$BUILD_APPLIANCE" == "1" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"BUILD_ASTARA_APPLIANCE_IMAGE=True" + fi + + if [ "$DEVSTACK_GATE_TEMPEST" == "0" ]; then + function post_test_hook { + source $BASE/new/devstack/openrc admin admin + cd /opt/stack/new/astara + sudo -H -E -u stack ./tools/run_functional.sh + } + export -f post_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-astara/post.yaml b/playbooks/legacy/functional-dsvm-astara/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-astara/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/functional-dsvm-astara/run.yaml b/playbooks/legacy/functional-dsvm-astara/run.yaml new file mode 100644 index 00000000..19272c4a --- /dev/null +++ b/playbooks/legacy/functional-dsvm-astara/run.yaml @@ -0,0 +1,57 @@ +- hosts: all + name: Autoconverted job legacy-functional-dsvm-astara from old job gate-functional-dsvm-astara-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/astara $PROJECTS" + export PROJECTS="openstack/astara-neutron $PROJECTS" + export PROJECTS="openstack/astara-appliance $PROJECTS" + export PROJECTS="openstack/astara-horizon $PROJECTS" + + export DEVSTACK_LOCAL_CONFIG="enable_plugin astara https://git.openstack.org/openstack/astara" + + export BUILD_APPLIANCE=0 + if [ "$BUILD_APPLIANCE" == "1" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"BUILD_ASTARA_APPLIANCE_IMAGE=True" + fi + + if [ "$DEVSTACK_GATE_TEMPEST" == "0" ]; then + function post_test_hook { + source $BASE/new/devstack/openrc admin admin + cd /opt/stack/new/astara + sudo -H -E -u stack ./tools/run_functional.sh + } + export -f post_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-api/post.yaml b/playbooks/legacy/functional-dsvm-magnum-api/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-api/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/functional-dsvm-magnum-api/run.yaml b/playbooks/legacy/functional-dsvm-magnum-api/run.yaml new file mode 100644 index 00000000..954aa101 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-api/run.yaml @@ -0,0 +1,102 @@ +- hosts: all + name: Autoconverted job legacy-functional-dsvm-magnum-api from old job gate-functional-dsvm-magnum-api-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + if [ "1" -eq 1 ] ; then + export DEVSTACK_GATE_NEUTRON=1 + fi + + export DEVSTACK_GATE_TEMPEST=1 + if [ "0" -eq 0 ] ; then + # Do not run any tempest tests + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + fi + + if [ "default" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + if [ "0" -eq 1 ] ; then + export DEVSTACK_GATE_TOPOLOGY="multinode" + export DEVSTACK_SUBNODE_CONFIG+=$'\n'"disable_service tempest" + fi + + if [ "0" -eq 1 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + if [ "0" -eq 1 ] ; then + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export MAGNUM_GATE_SPECIAL="-ironic" + fi + + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service horizon" + else + export DEVSTACK_GATE_HORIZON=1 + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + fi + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/gate_hook.sh api $MAGNUM_GATE_SPECIAL + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/post_test_hook.sh api $MAGNUM_GATE_SPECIAL + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-dcos/post.yaml b/playbooks/legacy/functional-dsvm-magnum-dcos/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-dcos/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/functional-dsvm-magnum-dcos/run.yaml b/playbooks/legacy/functional-dsvm-magnum-dcos/run.yaml new file mode 100644 index 00000000..8f00dbac --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-dcos/run.yaml @@ -0,0 +1,102 @@ +- hosts: all + name: Autoconverted job legacy-functional-dsvm-magnum-dcos from old job gate-functional-dsvm-magnum-dcos-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + if [ "1" -eq 1 ] ; then + export DEVSTACK_GATE_NEUTRON=1 + fi + + export DEVSTACK_GATE_TEMPEST=1 + if [ "0" -eq 0 ] ; then + # Do not run any tempest tests + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + fi + + if [ "default" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + if [ "0" -eq 1 ] ; then + export DEVSTACK_GATE_TOPOLOGY="multinode" + export DEVSTACK_SUBNODE_CONFIG+=$'\n'"disable_service tempest" + fi + + if [ "0" -eq 1 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + if [ "0" -eq 1 ] ; then + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export MAGNUM_GATE_SPECIAL="-ironic" + fi + + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service horizon" + else + export DEVSTACK_GATE_HORIZON=1 + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + fi + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/gate_hook.sh dcos $MAGNUM_GATE_SPECIAL + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/post_test_hook.sh dcos $MAGNUM_GATE_SPECIAL + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-k8s-ironic/post.yaml b/playbooks/legacy/functional-dsvm-magnum-k8s-ironic/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-k8s-ironic/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/functional-dsvm-magnum-k8s-ironic/run.yaml b/playbooks/legacy/functional-dsvm-magnum-k8s-ironic/run.yaml new file mode 100644 index 00000000..4a3f4e62 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-k8s-ironic/run.yaml @@ -0,0 +1,102 @@ +- hosts: all + name: Autoconverted job legacy-functional-dsvm-magnum-k8s-ironic from old job gate-functional-dsvm-magnum-k8s-ironic-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + if [ "1" -eq 1 ] ; then + export DEVSTACK_GATE_NEUTRON=1 + fi + + export DEVSTACK_GATE_TEMPEST=1 + if [ "0" -eq 0 ] ; then + # Do not run any tempest tests + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + fi + + if [ "default" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + if [ "0" -eq 1 ] ; then + export DEVSTACK_GATE_TOPOLOGY="multinode" + export DEVSTACK_SUBNODE_CONFIG+=$'\n'"disable_service tempest" + fi + + if [ "0" -eq 1 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + if [ "1" -eq 1 ] ; then + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export MAGNUM_GATE_SPECIAL="-ironic" + fi + + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service horizon" + else + export DEVSTACK_GATE_HORIZON=1 + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + fi + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/gate_hook.sh k8s $MAGNUM_GATE_SPECIAL + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/post_test_hook.sh k8s $MAGNUM_GATE_SPECIAL + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-k8s-multinode/post.yaml b/playbooks/legacy/functional-dsvm-magnum-k8s-multinode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-k8s-multinode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/functional-dsvm-magnum-k8s-multinode/run.yaml b/playbooks/legacy/functional-dsvm-magnum-k8s-multinode/run.yaml new file mode 100644 index 00000000..2e8c5760 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-k8s-multinode/run.yaml @@ -0,0 +1,103 @@ +- hosts: all + name: Autoconverted job legacy-functional-dsvm-magnum-k8s-multinode from old job + gate-functional-dsvm-magnum-k8s-multinode-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + if [ "1" -eq 1 ] ; then + export DEVSTACK_GATE_NEUTRON=1 + fi + + export DEVSTACK_GATE_TEMPEST=1 + if [ "0" -eq 0 ] ; then + # Do not run any tempest tests + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + fi + + if [ "default" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + if [ "1" -eq 1 ] ; then + export DEVSTACK_GATE_TOPOLOGY="multinode" + export DEVSTACK_SUBNODE_CONFIG+=$'\n'"disable_service tempest" + fi + + if [ "0" -eq 1 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + if [ "0" -eq 1 ] ; then + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export MAGNUM_GATE_SPECIAL="-ironic" + fi + + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service horizon" + else + export DEVSTACK_GATE_HORIZON=1 + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + fi + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/gate_hook.sh k8s $MAGNUM_GATE_SPECIAL + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/post_test_hook.sh k8s $MAGNUM_GATE_SPECIAL + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-k8s/post.yaml b/playbooks/legacy/functional-dsvm-magnum-k8s/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-k8s/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/functional-dsvm-magnum-k8s/run.yaml b/playbooks/legacy/functional-dsvm-magnum-k8s/run.yaml new file mode 100644 index 00000000..e90c7127 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-k8s/run.yaml @@ -0,0 +1,102 @@ +- hosts: all + name: Autoconverted job legacy-functional-dsvm-magnum-k8s from old job gate-functional-dsvm-magnum-k8s-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + if [ "1" -eq 1 ] ; then + export DEVSTACK_GATE_NEUTRON=1 + fi + + export DEVSTACK_GATE_TEMPEST=1 + if [ "0" -eq 0 ] ; then + # Do not run any tempest tests + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + fi + + if [ "default" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + if [ "0" -eq 1 ] ; then + export DEVSTACK_GATE_TOPOLOGY="multinode" + export DEVSTACK_SUBNODE_CONFIG+=$'\n'"disable_service tempest" + fi + + if [ "0" -eq 1 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + if [ "0" -eq 1 ] ; then + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export MAGNUM_GATE_SPECIAL="-ironic" + fi + + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service horizon" + else + export DEVSTACK_GATE_HORIZON=1 + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + fi + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/gate_hook.sh k8s $MAGNUM_GATE_SPECIAL + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/post_test_hook.sh k8s $MAGNUM_GATE_SPECIAL + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-mesos/post.yaml b/playbooks/legacy/functional-dsvm-magnum-mesos/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-mesos/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/functional-dsvm-magnum-mesos/run.yaml b/playbooks/legacy/functional-dsvm-magnum-mesos/run.yaml new file mode 100644 index 00000000..39cf0dae --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-mesos/run.yaml @@ -0,0 +1,102 @@ +- hosts: all + name: Autoconverted job legacy-functional-dsvm-magnum-mesos from old job gate-functional-dsvm-magnum-mesos-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + if [ "1" -eq 1 ] ; then + export DEVSTACK_GATE_NEUTRON=1 + fi + + export DEVSTACK_GATE_TEMPEST=1 + if [ "0" -eq 0 ] ; then + # Do not run any tempest tests + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + fi + + if [ "default" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + if [ "0" -eq 1 ] ; then + export DEVSTACK_GATE_TOPOLOGY="multinode" + export DEVSTACK_SUBNODE_CONFIG+=$'\n'"disable_service tempest" + fi + + if [ "0" -eq 1 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + if [ "0" -eq 1 ] ; then + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export MAGNUM_GATE_SPECIAL="-ironic" + fi + + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service horizon" + else + export DEVSTACK_GATE_HORIZON=1 + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + fi + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/gate_hook.sh mesos $MAGNUM_GATE_SPECIAL + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/post_test_hook.sh mesos $MAGNUM_GATE_SPECIAL + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-swarm-ironic/post.yaml b/playbooks/legacy/functional-dsvm-magnum-swarm-ironic/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-swarm-ironic/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/functional-dsvm-magnum-swarm-ironic/run.yaml b/playbooks/legacy/functional-dsvm-magnum-swarm-ironic/run.yaml new file mode 100644 index 00000000..389e4be9 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-swarm-ironic/run.yaml @@ -0,0 +1,103 @@ +- hosts: all + name: Autoconverted job legacy-functional-dsvm-magnum-swarm-ironic from old job + gate-functional-dsvm-magnum-swarm-ironic-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + if [ "1" -eq 1 ] ; then + export DEVSTACK_GATE_NEUTRON=1 + fi + + export DEVSTACK_GATE_TEMPEST=1 + if [ "0" -eq 0 ] ; then + # Do not run any tempest tests + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + fi + + if [ "default" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + if [ "0" -eq 1 ] ; then + export DEVSTACK_GATE_TOPOLOGY="multinode" + export DEVSTACK_SUBNODE_CONFIG+=$'\n'"disable_service tempest" + fi + + if [ "0" -eq 1 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + if [ "1" -eq 1 ] ; then + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export MAGNUM_GATE_SPECIAL="-ironic" + fi + + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service horizon" + else + export DEVSTACK_GATE_HORIZON=1 + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + fi + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/gate_hook.sh swarm $MAGNUM_GATE_SPECIAL + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/post_test_hook.sh swarm $MAGNUM_GATE_SPECIAL + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-swarm-mode/post.yaml b/playbooks/legacy/functional-dsvm-magnum-swarm-mode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-swarm-mode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/functional-dsvm-magnum-swarm-mode/run.yaml b/playbooks/legacy/functional-dsvm-magnum-swarm-mode/run.yaml new file mode 100644 index 00000000..db0d9794 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-swarm-mode/run.yaml @@ -0,0 +1,102 @@ +- hosts: all + name: Autoconverted job legacy-functional-dsvm-magnum-swarm-mode from old job gate-functional-dsvm-magnum-swarm-mode-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + if [ "1" -eq 1 ] ; then + export DEVSTACK_GATE_NEUTRON=1 + fi + + export DEVSTACK_GATE_TEMPEST=1 + if [ "0" -eq 0 ] ; then + # Do not run any tempest tests + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + fi + + if [ "default" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + if [ "0" -eq 1 ] ; then + export DEVSTACK_GATE_TOPOLOGY="multinode" + export DEVSTACK_SUBNODE_CONFIG+=$'\n'"disable_service tempest" + fi + + if [ "0" -eq 1 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + if [ "0" -eq 1 ] ; then + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export MAGNUM_GATE_SPECIAL="-ironic" + fi + + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service horizon" + else + export DEVSTACK_GATE_HORIZON=1 + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + fi + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/gate_hook.sh swarm-mode $MAGNUM_GATE_SPECIAL + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/post_test_hook.sh swarm-mode $MAGNUM_GATE_SPECIAL + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-swarm-multinode/post.yaml b/playbooks/legacy/functional-dsvm-magnum-swarm-multinode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-swarm-multinode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/functional-dsvm-magnum-swarm-multinode/run.yaml b/playbooks/legacy/functional-dsvm-magnum-swarm-multinode/run.yaml new file mode 100644 index 00000000..3233354b --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-swarm-multinode/run.yaml @@ -0,0 +1,103 @@ +- hosts: all + name: Autoconverted job legacy-functional-dsvm-magnum-swarm-multinode from old job + gate-functional-dsvm-magnum-swarm-multinode-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + if [ "1" -eq 1 ] ; then + export DEVSTACK_GATE_NEUTRON=1 + fi + + export DEVSTACK_GATE_TEMPEST=1 + if [ "0" -eq 0 ] ; then + # Do not run any tempest tests + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + fi + + if [ "default" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + if [ "1" -eq 1 ] ; then + export DEVSTACK_GATE_TOPOLOGY="multinode" + export DEVSTACK_SUBNODE_CONFIG+=$'\n'"disable_service tempest" + fi + + if [ "0" -eq 1 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + if [ "0" -eq 1 ] ; then + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export MAGNUM_GATE_SPECIAL="-ironic" + fi + + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service horizon" + else + export DEVSTACK_GATE_HORIZON=1 + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + fi + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/gate_hook.sh swarm $MAGNUM_GATE_SPECIAL + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/post_test_hook.sh swarm $MAGNUM_GATE_SPECIAL + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-dsvm-magnum-swarm/post.yaml b/playbooks/legacy/functional-dsvm-magnum-swarm/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-swarm/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/functional-dsvm-magnum-swarm/run.yaml b/playbooks/legacy/functional-dsvm-magnum-swarm/run.yaml new file mode 100644 index 00000000..7102a7bb --- /dev/null +++ b/playbooks/legacy/functional-dsvm-magnum-swarm/run.yaml @@ -0,0 +1,102 @@ +- hosts: all + name: Autoconverted job legacy-functional-dsvm-magnum-swarm from old job gate-functional-dsvm-magnum-swarm-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + if [ "1" -eq 1 ] ; then + export DEVSTACK_GATE_NEUTRON=1 + fi + + export DEVSTACK_GATE_TEMPEST=1 + if [ "0" -eq 0 ] ; then + # Do not run any tempest tests + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + fi + + if [ "default" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + if [ "0" -eq 1 ] ; then + export DEVSTACK_GATE_TOPOLOGY="multinode" + export DEVSTACK_SUBNODE_CONFIG+=$'\n'"disable_service tempest" + fi + + if [ "0" -eq 1 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + if [ "0" -eq 1 ] ; then + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export MAGNUM_GATE_SPECIAL="-ironic" + fi + + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service horizon" + else + export DEVSTACK_GATE_HORIZON=1 + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + if [ "0" -eq 0 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acentral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-acompute" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-evaluator" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-alarm-notifier" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service ceilometer-collector" + fi + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/gate_hook.sh swarm $MAGNUM_GATE_SPECIAL + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/magnum/ + ./magnum/tests/contrib/post_test_hook.sh swarm $MAGNUM_GATE_SPECIAL + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-neutron-dsvm-ec2api/post.yaml b/playbooks/legacy/functional-neutron-dsvm-ec2api/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/functional-neutron-dsvm-ec2api/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/functional-neutron-dsvm-ec2api/run.yaml b/playbooks/legacy/functional-neutron-dsvm-ec2api/run.yaml new file mode 100644 index 00000000..fe4c453b --- /dev/null +++ b/playbooks/legacy/functional-neutron-dsvm-ec2api/run.yaml @@ -0,0 +1,57 @@ +- hosts: all + name: Autoconverted job legacy-functional-neutron-dsvm-ec2api from old job gate-functional-neutron-dsvm-ec2api-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin ec2-api git://git.openstack.org/openstack/ec2-api + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export TEMPEST_CONCURRENCY=2 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/ec2-api $PROJECTS" + + if [ "neutron" = "neutron" ] ; then + export DEVSTACK_GATE_NEUTRON=1 + else + export DEVSTACK_GATE_NEUTRON=0 + fi + + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX="ec2api.tests.functional" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-neutron-dsvm-gceapi/post.yaml b/playbooks/legacy/functional-neutron-dsvm-gceapi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/functional-neutron-dsvm-gceapi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/functional-neutron-dsvm-gceapi/run.yaml b/playbooks/legacy/functional-neutron-dsvm-gceapi/run.yaml new file mode 100644 index 00000000..d99d0f33 --- /dev/null +++ b/playbooks/legacy/functional-neutron-dsvm-gceapi/run.yaml @@ -0,0 +1,61 @@ +- hosts: all + name: Autoconverted job legacy-functional-neutron-dsvm-gceapi from old job gate-functional-neutron-dsvm-gceapi-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin gce-api git://git.openstack.org/openstack/gce-api + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/gce-api $PROJECTS" + + if [ "neutron" = "neutron" ] ; then + export DEVSTACK_GATE_NEUTRON=1 + else + export DEVSTACK_GATE_NEUTRON=0 + fi + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/gce-api/ + ./gceapi/tests/contrib/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-nova-network-dsvm-ec2api/post.yaml b/playbooks/legacy/functional-nova-network-dsvm-ec2api/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/functional-nova-network-dsvm-ec2api/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/functional-nova-network-dsvm-ec2api/run.yaml b/playbooks/legacy/functional-nova-network-dsvm-ec2api/run.yaml new file mode 100644 index 00000000..d00bc55b --- /dev/null +++ b/playbooks/legacy/functional-nova-network-dsvm-ec2api/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-functional-nova-network-dsvm-ec2api from old job + gate-functional-nova-network-dsvm-ec2api-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin ec2-api git://git.openstack.org/openstack/ec2-api + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export TEMPEST_CONCURRENCY=2 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/ec2-api $PROJECTS" + + if [ "nova-network" = "neutron" ] ; then + export DEVSTACK_GATE_NEUTRON=1 + else + export DEVSTACK_GATE_NEUTRON=0 + fi + + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX="ec2api.tests.functional" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/functional-nova-network-dsvm-gceapi/post.yaml b/playbooks/legacy/functional-nova-network-dsvm-gceapi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/functional-nova-network-dsvm-gceapi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/functional-nova-network-dsvm-gceapi/run.yaml b/playbooks/legacy/functional-nova-network-dsvm-gceapi/run.yaml new file mode 100644 index 00000000..ddd01b17 --- /dev/null +++ b/playbooks/legacy/functional-nova-network-dsvm-gceapi/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-functional-nova-network-dsvm-gceapi from old job + gate-functional-nova-network-dsvm-gceapi-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin gce-api git://git.openstack.org/openstack/gce-api + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/gce-api $PROJECTS" + + if [ "nova-network" = "neutron" ] ; then + export DEVSTACK_GATE_NEUTRON=1 + else + export DEVSTACK_GATE_NEUTRON=0 + fi + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/gce-api/ + ./gceapi/tests/contrib/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuxi-dsvm-fullstack/post.yaml b/playbooks/legacy/fuxi-dsvm-fullstack/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/fuxi-dsvm-fullstack/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/fuxi-dsvm-fullstack/run.yaml b/playbooks/legacy/fuxi-dsvm-fullstack/run.yaml new file mode 100644 index 00000000..92639f47 --- /dev/null +++ b/playbooks/legacy/fuxi-dsvm-fullstack/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-fuxi-dsvm-fullstack from old job gate-fuxi-dsvm-fullstack + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin fuxi git://git.openstack.org/openstack/fuxi + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/fuxi $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + bash -xe $BASE/new/fuxi/fuxi/tests/contrib/gate_hook.sh fullstack + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/fuxi/fuxi/tests/contrib/post_test_hook.sh fullstack + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/fuxi-dsvm-py35-fullstack/post.yaml b/playbooks/legacy/fuxi-dsvm-py35-fullstack/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/fuxi-dsvm-py35-fullstack/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/fuxi-dsvm-py35-fullstack/run.yaml b/playbooks/legacy/fuxi-dsvm-py35-fullstack/run.yaml new file mode 100644 index 00000000..b6363ff9 --- /dev/null +++ b/playbooks/legacy/fuxi-dsvm-py35-fullstack/run.yaml @@ -0,0 +1,69 @@ +- hosts: all + name: Autoconverted job legacy-fuxi-dsvm-py35-fullstack from old job gate-fuxi-dsvm-py35-fullstack + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin fuxi git://git.openstack.org/openstack/fuxi + # swift is not ready for python3 yet + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/fuxi $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + bash -xe $BASE/new/fuxi/fuxi/tests/contrib/gate_hook.sh fullstack + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/fuxi/fuxi/tests/contrib/post_test_hook.sh fullstack + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gate-kolla-dsvm-build-centos-source-centos-7/post.yaml b/playbooks/legacy/gate-kolla-dsvm-build-centos-source-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/gate-kolla-dsvm-build-centos-source-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/gate-kolla-dsvm-build-centos-source-centos-7/run.yaml b/playbooks/legacy/gate-kolla-dsvm-build-centos-source-centos-7/run.yaml new file mode 100644 index 00000000..86a33639 --- /dev/null +++ b/playbooks/legacy/gate-kolla-dsvm-build-centos-source-centos-7/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-gate-kolla-dsvm-build-centos-source-centos-7 from + old job gate-kolla-dsvm-build-centos-source-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export ACTION=build + export BASE_DISTRO=centos + export INSTALL_TYPE=source + + tools/gate_run.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gate-kolla-dsvm-build-oraclelinux-source-centos-7/post.yaml b/playbooks/legacy/gate-kolla-dsvm-build-oraclelinux-source-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/gate-kolla-dsvm-build-oraclelinux-source-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/gate-kolla-dsvm-build-oraclelinux-source-centos-7/run.yaml b/playbooks/legacy/gate-kolla-dsvm-build-oraclelinux-source-centos-7/run.yaml new file mode 100644 index 00000000..a670d8b5 --- /dev/null +++ b/playbooks/legacy/gate-kolla-dsvm-build-oraclelinux-source-centos-7/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-gate-kolla-dsvm-build-oraclelinux-source-centos-7 + from old job gate-kolla-dsvm-build-oraclelinux-source-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export ACTION=build + export BASE_DISTRO=oraclelinux + export INSTALL_TYPE=source + + tools/gate_run.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gate-kolla-dsvm-build-ubuntu-source/post.yaml b/playbooks/legacy/gate-kolla-dsvm-build-ubuntu-source/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/gate-kolla-dsvm-build-ubuntu-source/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/gate-kolla-dsvm-build-ubuntu-source/run.yaml b/playbooks/legacy/gate-kolla-dsvm-build-ubuntu-source/run.yaml new file mode 100644 index 00000000..495f5ca9 --- /dev/null +++ b/playbooks/legacy/gate-kolla-dsvm-build-ubuntu-source/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-gate-kolla-dsvm-build-ubuntu-source from old job + gate-kolla-dsvm-build-ubuntu-source-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export ACTION=build + export BASE_DISTRO=ubuntu + export INSTALL_TYPE=source + + tools/gate_run.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gate-placement-api-ref/post.yaml b/playbooks/legacy/gate-placement-api-ref/post.yaml new file mode 100644 index 00000000..044cee8a --- /dev/null +++ b/playbooks/legacy/gate-placement-api-ref/post.yaml @@ -0,0 +1,75 @@ +- hosts: all + tasks: + + - name: Copy files from placement-api-ref/build/html/ on node + synchronize: + src: placement-api-ref/build/html/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/gate-placement-api-ref/run.yaml b/playbooks/legacy/gate-placement-api-ref/run.yaml new file mode 100644 index 00000000..f0ab63b4 --- /dev/null +++ b/playbooks/legacy/gate-placement-api-ref/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-gate-placement-api-ref from old job gate-placement-api-ref + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh placement-api-ref + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gate-training-labs-scripts/run.yaml b/playbooks/legacy/gate-training-labs-scripts/run.yaml new file mode 100644 index 00000000..9ef76116 --- /dev/null +++ b/playbooks/legacy/gate-training-labs-scripts/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-gate-training-labs-scripts from old job gate-training-labs-scripts-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: ./tools/generate-labs $ZUUL_REFNAME + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gearman-plugin-hpi-artifact/post.yaml b/playbooks/legacy/gearman-plugin-hpi-artifact/post.yaml new file mode 100644 index 00000000..e0ecb38f --- /dev/null +++ b/playbooks/legacy/gearman-plugin-hpi-artifact/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/$ZUUL_SHORT_PROJECT_NAME' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/target/$ZUUL_SHORT_PROJECT_NAME-*.hpi + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/gearman-plugin-hpi-artifact/run.yaml b/playbooks/legacy/gearman-plugin-hpi-artifact/run.yaml new file mode 100644 index 00000000..153526f4 --- /dev/null +++ b/playbooks/legacy/gearman-plugin-hpi-artifact/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-gearman-plugin-hpi-artifact from old job gearman-plugin-hpi-artifact + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + mvn clean package -B -Dproject-version=$PROJECT_VER + cp ./target/$ZUUL_SHORT_PROJECT_NAME.hpi ./target/$ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.hpi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gearman-plugin-jenkinsci-upload/run.yaml b/playbooks/legacy/gearman-plugin-jenkinsci-upload/run.yaml new file mode 100644 index 00000000..35b1bbaa --- /dev/null +++ b/playbooks/legacy/gearman-plugin-jenkinsci-upload/run.yaml @@ -0,0 +1,30 @@ +- hosts: all + name: Autoconverted job legacy-gearman-plugin-jenkinsci-upload from old job gearman-plugin-jenkinsci-upload + tasks: + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + TAG=`echo $ZUUL_REF | sed 's/^refs.tags.//'` + FILENAME_HPI="$ZUUL_SHORT_PROJECT_NAME-$TAG.hpi" + + # copy plugin artifacts from tarballs to local workspace + rm -rf *.hpi + curl -o $FILENAME_HPI http://tarballs.openstack.org/ci/$ZUUL_SHORT_PROJECT_NAME/$FILENAME_HPI + + # deploy to maven repository + FILENAME_POM="$ZUUL_SHORT_PROJECT_NAME-$TAG.pom" + /usr/local/jenkins/slave_scripts/jenkinsci-upload.sh $ZUUL_SHORT_PROJECT_NAME $TAG \ + $FILENAME_POM $FILENAME_HPI + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gearman-plugin-maven-build-ubuntu-trusty/run.yaml b/playbooks/legacy/gearman-plugin-maven-build-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..e6c40d18 --- /dev/null +++ b/playbooks/legacy/gearman-plugin-maven-build-ubuntu-trusty/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-gearman-plugin-maven-build-ubuntu-trusty from old + job gate-gearman-plugin-maven-build-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + mvn clean package -B -Dproject-version=$PROJECT_VER + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gerrit-buck/post.yaml b/playbooks/legacy/gerrit-buck/post.yaml new file mode 100644 index 00000000..2c87e5fb --- /dev/null +++ b/playbooks/legacy/gerrit-buck/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/test' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/gerrit/buck-out/gen/gerrit-*.war + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/gerrit-buck/run.yaml b/playbooks/legacy/gerrit-buck/run.yaml new file mode 100644 index 00000000..9a88bd85 --- /dev/null +++ b/playbooks/legacy/gerrit-buck/run.yaml @@ -0,0 +1,80 @@ +- hosts: all + name: Autoconverted job legacy-gerrit-buck from old job gate-gerrit-buck + tasks: + + - shell: + cmd: | + set -e + set -x + sudo bash -c "echo 'ant' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + sudo bash -c "echo 'ant-optional' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + sudo bash -c "echo 'default-jdk' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + sudo bash -c "echo 'asciidoc' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + sudo bash -c "echo 'nodejs' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [[ ! -d "buck" ]] + then + git clone https://gerrit.googlesource.com/buck + cd buck + ant + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack-infra/gerrit + dest: gerrit + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + git://git.openstack.org openstack-infra/gerrit + cd gerrit + # This is necessary to build the core plugins + git submodule init + git submodule update + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PATH=`pwd`/buck/bin:$PATH + cd gerrit + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + buck clean + buck test --all --exclude slow + buck build release + cp buck-out/gen/release/release.war buck-out/gen/gerrit-$PROJECT_VER.war + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gerrit-package-buck/post.yaml b/playbooks/legacy/gerrit-package-buck/post.yaml new file mode 100644 index 00000000..c6a7b427 --- /dev/null +++ b/playbooks/legacy/gerrit-package-buck/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/gerrit' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/gerrit/buck-out/gen/gerrit-*.war + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/gerrit-package-buck/run.yaml b/playbooks/legacy/gerrit-package-buck/run.yaml new file mode 100644 index 00000000..b0a870e4 --- /dev/null +++ b/playbooks/legacy/gerrit-package-buck/run.yaml @@ -0,0 +1,79 @@ +- hosts: all + name: Autoconverted job legacy-gerrit-package-buck from old job gerrit-package-buck + tasks: + + - shell: + cmd: | + set -e + set -x + sudo bash -c "echo 'ant' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + sudo bash -c "echo 'ant-optional' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + sudo bash -c "echo 'default-jdk' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + sudo bash -c "echo 'asciidoc' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + sudo bash -c "echo 'nodejs' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [[ ! -d "buck" ]] + then + git clone https://gerrit.googlesource.com/buck + cd buck + ant + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack-infra/gerrit + dest: gerrit + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + git://git.openstack.org openstack-infra/gerrit + cd gerrit + # This is necessary to build the core plugins + git submodule init + git submodule update + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PATH=`pwd`/buck/bin:$PATH + cd gerrit + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + buck clean + buck build release + cp buck-out/gen/release/release.war buck-out/gen/gerrit-$PROJECT_VER.war + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/gitdm/run.yaml b/playbooks/legacy/gitdm/run.yaml new file mode 100644 index 00000000..f1fae7c4 --- /dev/null +++ b/playbooks/legacy/gitdm/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-gitdm from old job gate-gitdm + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TEMPDIR=${TEMPDIR:-$(mktemp -d $(pwd)/dmtmp-XXXXXX)} + export GITBASE=${TEMPDIR}/git + export LP_STATS=n + bash ./do-it.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/glance-dsvm-grenade-multinode/post.yaml b/playbooks/legacy/glance-dsvm-grenade-multinode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/glance-dsvm-grenade-multinode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/glance-dsvm-grenade-multinode/run.yaml b/playbooks/legacy/glance-dsvm-grenade-multinode/run.yaml new file mode 100644 index 00000000..71516f14 --- /dev/null +++ b/playbooks/legacy/glance-dsvm-grenade-multinode/run.yaml @@ -0,0 +1,38 @@ +- hosts: all + name: Autoconverted job legacy-glance-dsvm-grenade-multinode from old job gate-glance-dsvm-grenade-multinode-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_GRENADE=pullup + export PROJECTS="openstack-dev/grenade $PROJECTS" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/glance_store-dsvm-functional-cinder/post.yaml b/playbooks/legacy/glance_store-dsvm-functional-cinder/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/glance_store-dsvm-functional-cinder/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/glance_store-dsvm-functional-cinder/run.yaml b/playbooks/legacy/glance_store-dsvm-functional-cinder/run.yaml new file mode 100644 index 00000000..bee6a001 --- /dev/null +++ b/playbooks/legacy/glance_store-dsvm-functional-cinder/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-glance_store-dsvm-functional-cinder from old job + gate-glance_store-dsvm-functional-cinder-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export ENABLED_SERVICES=g-api,n-api + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=glance_store + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + cd $BASE/new/glance_store/glance_store/tests/functional/hooks + ./gate_hook.sh cinder + } + export -f gate_hook + + function post_test_hook { + cd $BASE/new/glance_store/glance_store/tests/functional/hooks + ./post_test_hook.sh cinder + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/glance_store-dsvm-functional-filesystem/post.yaml b/playbooks/legacy/glance_store-dsvm-functional-filesystem/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/glance_store-dsvm-functional-filesystem/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/glance_store-dsvm-functional-filesystem/run.yaml b/playbooks/legacy/glance_store-dsvm-functional-filesystem/run.yaml new file mode 100644 index 00000000..e82bf8ce --- /dev/null +++ b/playbooks/legacy/glance_store-dsvm-functional-filesystem/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-glance_store-dsvm-functional-filesystem from old + job gate-glance_store-dsvm-functional-filesystem-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export ENABLED_SERVICES=g-api,n-api + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=glance_store + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + cd $BASE/new/glance_store/glance_store/tests/functional/hooks + ./gate_hook.sh filesystem + } + export -f gate_hook + + function post_test_hook { + cd $BASE/new/glance_store/glance_store/tests/functional/hooks + ./post_test_hook.sh filesystem + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/glance_store-dsvm-functional-swift/post.yaml b/playbooks/legacy/glance_store-dsvm-functional-swift/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/glance_store-dsvm-functional-swift/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/glance_store-dsvm-functional-swift/run.yaml b/playbooks/legacy/glance_store-dsvm-functional-swift/run.yaml new file mode 100644 index 00000000..14677d0b --- /dev/null +++ b/playbooks/legacy/glance_store-dsvm-functional-swift/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-glance_store-dsvm-functional-swift from old job gate-glance_store-dsvm-functional-swift-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export ENABLED_SERVICES=g-api,n-api + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=glance_store + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + cd $BASE/new/glance_store/glance_store/tests/functional/hooks + ./gate_hook.sh swift + } + export -f gate_hook + + function post_test_hook { + cd $BASE/new/glance_store/glance_store/tests/functional/hooks + ./post_test_hook.sh swift + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/glanceclient-dsvm-functional-identity-v3-only/post.yaml b/playbooks/legacy/glanceclient-dsvm-functional-identity-v3-only/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/glanceclient-dsvm-functional-identity-v3-only/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/glanceclient-dsvm-functional-identity-v3-only/run.yaml b/playbooks/legacy/glanceclient-dsvm-functional-identity-v3-only/run.yaml new file mode 100644 index 00000000..44574436 --- /dev/null +++ b/playbooks/legacy/glanceclient-dsvm-functional-identity-v3-only/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-glanceclient-dsvm-functional-identity-v3-only from + old job gate-glanceclient-dsvm-functional-identity-v3-only-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=python-glanceclient + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "-identity-v3-only" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG="ENABLE_IDENTITY_V2=False" + fi + + # TODO(rosmaita): remove when glanceclient tests no longer + # use the Images v1 API + export DEVSTACK_LOCAL_CONFIG+=$'\n'"GLANCE_V1_ENABLED=True" + + function post_test_hook { + # Configure and run functional tests + $BASE/new/python-glanceclient/glanceclient/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/glanceclient-dsvm-functional/post.yaml b/playbooks/legacy/glanceclient-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/glanceclient-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/glanceclient-dsvm-functional/run.yaml b/playbooks/legacy/glanceclient-dsvm-functional/run.yaml new file mode 100644 index 00000000..815decfa --- /dev/null +++ b/playbooks/legacy/glanceclient-dsvm-functional/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-glanceclient-dsvm-functional from old job gate-glanceclient-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=python-glanceclient + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG="ENABLE_IDENTITY_V2=False" + fi + + # TODO(rosmaita): remove when glanceclient tests no longer + # use the Images v1 API + export DEVSTACK_LOCAL_CONFIG+=$'\n'"GLANCE_V1_ENABLED=True" + + function post_test_hook { + # Configure and run functional tests + $BASE/new/python-glanceclient/glanceclient/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/glare-dsvm/post.yaml b/playbooks/legacy/glare-dsvm/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/glare-dsvm/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/glare-dsvm/run.yaml b/playbooks/legacy/glare-dsvm/run.yaml new file mode 100644 index 00000000..97a467db --- /dev/null +++ b/playbooks/legacy/glare-dsvm/run.yaml @@ -0,0 +1,57 @@ +- hosts: all + name: Autoconverted job legacy-glare-dsvm from old job gate-glare-dsvm-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin glare git://git.openstack.org/openstack/glare + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export PROJECTS="openstack/python-glareclient $PROJECTS" + export PROJECTS="openstack/glare $PROJECTS" + export ENABLED_SERVICES=tempest + export GLARE_CUSTOM_MODULES=glare.tests.sample_artifact + export GLARE_ENABLED_TYPES=heat_templates,heat_environments,murano_packages,tosca_templates,images,sample_artifact + function pre_test_hook { + source $BASE/new/glare/glare_tempest_plugin/contrib/pre_test_hook.sh + } + export -f pre_test_hook + function gate_hook { + source $BASE/new/glare/glare_tempest_plugin/contrib/gate_hook.sh + } + export -f gate_hook + function post_test_hook { + source $BASE/new/glare/glare_tempest_plugin/contrib/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/golang-fmt/run.yaml b/playbooks/legacy/golang-fmt/run.yaml new file mode 100644 index 00000000..be2714e2 --- /dev/null +++ b/playbooks/legacy/golang-fmt/run.yaml @@ -0,0 +1,59 @@ +- hosts: all + name: Autoconverted job legacy-golang-fmt from old job gate-{name}-golang-fmt-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + make env fmt + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/golang-unit/run.yaml b/playbooks/legacy/golang-unit/run.yaml new file mode 100644 index 00000000..d4e8ce57 --- /dev/null +++ b/playbooks/legacy/golang-unit/run.yaml @@ -0,0 +1,59 @@ +- hosts: all + name: Autoconverted job legacy-golang-unit from old job gate-{name}-golang-unit-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + make env test + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/governance-tox-validate/post.yaml b/playbooks/legacy/governance-tox-validate/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/governance-tox-validate/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/governance-tox-validate/run.yaml b/playbooks/legacy/governance-tox-validate/run.yaml new file mode 100644 index 00000000..0fc33ee4 --- /dev/null +++ b/playbooks/legacy/governance-tox-validate/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-governance-tox-validate from old job gate-governance-tox-validate-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh validate + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-barbican/post.yaml b/playbooks/legacy/grenade-dsvm-barbican/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-barbican/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-barbican/run.yaml b/playbooks/legacy/grenade-dsvm-barbican/run.yaml new file mode 100644 index 00000000..fa458ba6 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-barbican/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-barbican from old job gate-grenade-dsvm-barbican-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + + export GRENADE_PLUGINRC="enable_grenade_plugin barbican https://git.openstack.org/openstack/barbican" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export TEMPEST_PLUGINS='/opt/stack/new/barbican-tempest-plugin'" + + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_GRENADE=pullup + export DEVSTACK_GATE_TEMPEST_REGEX=barbican + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Add configuration values for enabling security features in local.conf + function pre_test_hook { + if [ -f /opt/stack/old/barbican-tempest-plugin/tools/pre_test_hook.sh ] ; then + . /opt/stack/old/barbican-tempest-plugin/tools/pre_test_hook.sh + fi + } + export -f pre_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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-ceilometer/post.yaml b/playbooks/legacy/grenade-dsvm-ceilometer/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-ceilometer/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-ceilometer/run.yaml b/playbooks/legacy/grenade-dsvm-ceilometer/run.yaml new file mode 100644 index 00000000..0907ddb2 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-ceilometer/run.yaml @@ -0,0 +1,36 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-ceilometer from old job gate-grenade-dsvm-ceilometer-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_GRENADE=pullup + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export GRENADE_PLUGINRC="enable_grenade_plugin ceilometer https://git.openstack.org/openstack/ceilometer" + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/post.yaml b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/run.yaml b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/run.yaml new file mode 100644 index 00000000..240f2de6 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/run.yaml @@ -0,0 +1,45 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-cinder-mn-sub-bak from old job gate-grenade-dsvm-cinder-mn-sub-bak-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_GRENADE=pullup + export PROJECTS="openstack-dev/grenade $PROJECTS" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + export SERVICES=bak + if [ "$SERVICES" == "bak" ] ; then + export DEVSTACK_GATE_CINDER_MN_GRENADE_SUB_BAK=1 + elif [ "$SERVICES" == "volschbak" ] ; then + export DEVSTACK_GATE_CINDER_MN_GRENADE_SUB_VOLSCHBAK=1 + else + export DEVSTACK_GATE_CINDER_MN_GRENADE=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/post.yaml b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/run.yaml b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/run.yaml new file mode 100644 index 00000000..76704abd --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/run.yaml @@ -0,0 +1,45 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-cinder-mn-sub-volbak from old job gate-grenade-dsvm-cinder-mn-sub-volbak-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_GRENADE=pullup + export PROJECTS="openstack-dev/grenade $PROJECTS" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + export SERVICES=volbak + if [ "$SERVICES" == "bak" ] ; then + export DEVSTACK_GATE_CINDER_MN_GRENADE_SUB_BAK=1 + elif [ "$SERVICES" == "volschbak" ] ; then + export DEVSTACK_GATE_CINDER_MN_GRENADE_SUB_VOLSCHBAK=1 + else + export DEVSTACK_GATE_CINDER_MN_GRENADE=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/post.yaml b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/run.yaml b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/run.yaml new file mode 100644 index 00000000..281e6b50 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/run.yaml @@ -0,0 +1,46 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-cinder-mn-sub-volschbak from old job + gate-grenade-dsvm-cinder-mn-sub-volschbak-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_GRENADE=pullup + export PROJECTS="openstack-dev/grenade $PROJECTS" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + export SERVICES=volschbak + if [ "$SERVICES" == "bak" ] ; then + export DEVSTACK_GATE_CINDER_MN_GRENADE_SUB_BAK=1 + elif [ "$SERVICES" == "volschbak" ] ; then + export DEVSTACK_GATE_CINDER_MN_GRENADE_SUB_VOLSCHBAK=1 + else + export DEVSTACK_GATE_CINDER_MN_GRENADE=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-designate-pdns4/post.yaml b/playbooks/legacy/grenade-dsvm-designate-pdns4/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-designate-pdns4/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-designate-pdns4/run.yaml b/playbooks/legacy/grenade-dsvm-designate-pdns4/run.yaml new file mode 100644 index 00000000..3eaacf01 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-designate-pdns4/run.yaml @@ -0,0 +1,61 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-designate-pdns4 from old job gate-grenade-dsvm-designate-pdns4-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + DESIGNATE_SERVICE_PORT_DNS=5322 + DESIGNATE_BACKEND_DRIVER=pdns4 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_GRENADE=pullup + export DEVSTACK_GATE_TEMPEST_REGEX=designate + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/designate $PROJECTS" + export PROJECTS="openstack/python-designateclient $PROJECTS" + export PROJECTS="openstack/designate-dashboard $PROJECTS" + export PROJECTS="openstack/designate-tempest-plugin $PROJECTS" + export PROJECTS="openstack-dev/grenade $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export GRENADE_PLUGINRC="enable_grenade_plugin designate https://git.openstack.org/openstack/designate" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-heat-multinode/post.yaml b/playbooks/legacy/grenade-dsvm-heat-multinode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-heat-multinode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-heat-multinode/run.yaml b/playbooks/legacy/grenade-dsvm-heat-multinode/run.yaml new file mode 100644 index 00000000..eb716fd0 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-heat-multinode/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-heat-multinode from old job gate-grenade-dsvm-heat-multinode-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin heat git://git.openstack.org/openstack/heat + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PYTHONUNBUFFERED=true + export GRENADE_PLUGINRC="enable_grenade_plugin heat https://git.openstack.org/openstack/heat" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_GRENADE=pullup + export BRANCH_OVERRIDE=default + export TOPOLOGY=-multinode + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + # Default topology is all-in-one (aio) + if [ "$TOPOLOGY" == "-multinode" ] ; then + export DEVSTACK_GATE_TOPOLOGY="multinode" + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-heat/post.yaml b/playbooks/legacy/grenade-dsvm-heat/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-heat/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-heat/run.yaml b/playbooks/legacy/grenade-dsvm-heat/run.yaml new file mode 100644 index 00000000..9a209e5d --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-heat/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-heat from old job gate-grenade-dsvm-heat-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin heat git://git.openstack.org/openstack/heat + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PYTHONUNBUFFERED=true + export GRENADE_PLUGINRC="enable_grenade_plugin heat https://git.openstack.org/openstack/heat" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_GRENADE=pullup + export BRANCH_OVERRIDE=default + export TOPOLOGY= + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + # Default topology is all-in-one (aio) + if [ "$TOPOLOGY" == "-multinode" ] ; then + export DEVSTACK_GATE_TOPOLOGY="multinode" + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-ironic-inspector/post.yaml b/playbooks/legacy/grenade-dsvm-ironic-inspector/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-ironic-inspector/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-ironic-inspector/run.yaml b/playbooks/legacy/grenade-dsvm-ironic-inspector/run.yaml new file mode 100644 index 00000000..d3808a63 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-ironic-inspector/run.yaml @@ -0,0 +1,206 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-ironic-inspector from old job gate-grenade-dsvm-ironic-inspector-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # Set this early so that we do not have to be as careful with builder ordering in jobs. + export GRENADE_PLUGINRC="enable_grenade_plugin ironic https://git.openstack.org/openstack/ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export PROJECTS="openstack-dev/grenade $PROJECTS" + export DEVSTACK_GATE_GRENADE=pullup + export DEVSTACK_GATE_OS_TEST_TIMEOUT=2400 + export DEVSTACK_GATE_TEMPEST_BAREMETAL_BUILD_TIMEOUT=1200 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BUILD_DEPLOY_RAMDISK=False" + export DEVSTACK_GATE_TLSPROXY=0 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export GRENADE_PLUGINRC+=$'\n'"enable_grenade_plugin ironic-inspector https://git.openstack.org/openstack/ironic-inspector" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export PROJECTS="openstack/ironic-inspector $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export DEVSTACK_GATE_IRONIC_INSPECTOR=1 + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic-inspector git://git.openstack.org/openstack/ironic-inspector" + + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic-inspector'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic-inspector'" + fi + + export IRONIC_INSPECTOR_AUTO_DISCOVERY={inspector-auto-discovery} + if [ "$IRONIC_INSPECTOR_AUTO_DISCOVERY" == "1" ]; then + # discovery test requires sudo for iptables and virsh + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + # enable enroll hook + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_NODE_NOT_FOUND_HOOK=enroll" + # we are deleting node from ironic for simulate node discovery, + # so inspector has to sync cache asap + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_CLEAN_UP_PERIOD=5" + fi + + # Make IPXE configuration consistent between Mitaka and Master + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_IPXE_ENABLED=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_RAMDISK_ELEMENT=ironic-agent" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_MANAGE_FIREWALL=True" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=7" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-ironic-multinode-multitenant/post.yaml b/playbooks/legacy/grenade-dsvm-ironic-multinode-multitenant/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-ironic-multinode-multitenant/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-ironic-multinode-multitenant/run.yaml b/playbooks/legacy/grenade-dsvm-ironic-multinode-multitenant/run.yaml new file mode 100644 index 00000000..e52fe087 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-ironic-multinode-multitenant/run.yaml @@ -0,0 +1,202 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-ironic-multinode-multitenant from old + job gate-grenade-dsvm-ironic-multinode-multitenant-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # Set this early so that we do not have to be as careful with builder ordering in jobs. + export GRENADE_PLUGINRC="enable_grenade_plugin ironic https://git.openstack.org/openstack/ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export PROJECTS="openstack-dev/grenade $PROJECTS" + export DEVSTACK_GATE_GRENADE=pullup + export DEVSTACK_GATE_OS_TEST_TIMEOUT=2400 + export DEVSTACK_GATE_TEMPEST_BAREMETAL_BUILD_TIMEOUT=1200 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BUILD_DEPLOY_RAMDISK=False" + export DEVSTACK_GATE_TLSPROXY=0 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export GRENADE_PLUGINRC+=$'\n'"enable_grenade_plugin networking-generic-switch https://git.openstack.org/openstack/networking-generic-switch" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TOPOLOGY="multinode" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_OS_TEST_TIMEOUT=2400 + # networking-generic-switch requires sudo to execute ovs-vsctl commands + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + export PROJECTS="openstack/networking-generic-switch $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-generic-switch git://git.openstack.org/openstack/networking-generic-switch" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_USE_LINK_LOCAL=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"OVS_PHYSICAL_BRIDGE=brbm" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"PHYSICAL_NETWORK=mynetwork" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_PROVISION_NETWORK_NAME=ironic-provision" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_PROVISION_SUBNET_PREFIX=10.0.5.0/24" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_PROVISION_SUBNET_GATEWAY=10.0.5.1" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"Q_PLUGIN=ml2" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"Q_USE_PROVIDERNET_FOR_PUBLIC=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_TENANT_VLANS=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"Q_ML2_TENANT_NETWORK_TYPE=vlan" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TENANT_VLAN_RANGE=100:150" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_NETWORK_INTERFACES=flat,neutron" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_NETWORK_INTERFACE=neutron" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=4 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "agent_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "agent_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=7" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-ironic/post.yaml b/playbooks/legacy/grenade-dsvm-ironic/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-ironic/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-ironic/run.yaml b/playbooks/legacy/grenade-dsvm-ironic/run.yaml new file mode 100644 index 00000000..48228b61 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-ironic/run.yaml @@ -0,0 +1,160 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-ironic from old job gate-grenade-dsvm-ironic-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # Set this early so that we do not have to be as careful with builder ordering in jobs. + export GRENADE_PLUGINRC="enable_grenade_plugin ironic https://git.openstack.org/openstack/ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export PROJECTS="openstack-dev/grenade $PROJECTS" + export DEVSTACK_GATE_GRENADE=pullup + export DEVSTACK_GATE_OS_TEST_TIMEOUT=2400 + export DEVSTACK_GATE_TEMPEST_BAREMETAL_BUILD_TIMEOUT=1200 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BUILD_DEPLOY_RAMDISK=False" + export DEVSTACK_GATE_TLSPROXY=0 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=7" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-manila/post.yaml b/playbooks/legacy/grenade-dsvm-manila/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-manila/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-manila/run.yaml b/playbooks/legacy/grenade-dsvm-manila/run.yaml new file mode 100644 index 00000000..3daa71f8 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-manila/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-manila from old job gate-grenade-dsvm-manila-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=0 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_GRENADE=pullup + + # Basic services needed for grenade manila job using dummy driver + export OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit + + # Enable manila grenade plugin. Provided repo should be + # cloned by zuul before devstack run and below provided + # link should not be used. + export GRENADE_PLUGINRC="enable_grenade_plugin manila git://git.openstack.org/openstack/manila" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + True \ + dummy \ + multibackend + } + export -f pre_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-mongodb-zaqar/post.yaml b/playbooks/legacy/grenade-dsvm-mongodb-zaqar/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-mongodb-zaqar/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-mongodb-zaqar/run.yaml b/playbooks/legacy/grenade-dsvm-mongodb-zaqar/run.yaml new file mode 100644 index 00000000..b953f601 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-mongodb-zaqar/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-mongodb-zaqar from old job gate-grenade-dsvm-mongodb-zaqar-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin zaqar git://git.openstack.org/openstack/zaqar + # Enable Zaqar Tempest plugin + TEMPEST_PLUGINS='/opt/stack/new/zaqar-tempest-plugin' + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PYTHONUNBUFFERED=true + export ENABLED_SERVICES=tempest + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_TEMPEST_REGEX="zaqar_tempest_plugin.tests" + + export DEVSTACK_GATE_GRENADE=pullup + export GRENADE_PLUGINRC="enable_grenade_plugin zaqar https://git.openstack.org/openstack/zaqar" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/zaqar-tempest-plugin $PROJECTS" + + function pre_test_hook { + cd /opt/stack/new/zaqar/zaqar_upgradetests + ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/zaqar/zaqar_upgradetests + ./post_test_hook.sh + } + export -f post_test_hook + + function gate_hook { + cd /opt/stack/new/zaqar/devstack/gate + ./gate_hook.sh tempest mongodb + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-networking-midonet-ml2/post.yaml b/playbooks/legacy/grenade-dsvm-networking-midonet-ml2/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-networking-midonet-ml2/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-networking-midonet-ml2/run.yaml b/playbooks/legacy/grenade-dsvm-networking-midonet-ml2/run.yaml new file mode 100644 index 00000000..01f6ade2 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-networking-midonet-ml2/run.yaml @@ -0,0 +1,46 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-networking-midonet-ml2 from old job + gate-grenade-dsvm-networking-midonet-ml2-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade openstack/networking-midonet $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_GRENADE=pullup + export GRENADE_PLUGINRC="enable_grenade_plugin networking-midonet https://git.openstack.org/openstack/networking-midonet" + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh grenade-ml2 + } + export -f gate_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-midonet/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-networking-midonet-v2/post.yaml b/playbooks/legacy/grenade-dsvm-networking-midonet-v2/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-networking-midonet-v2/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-networking-midonet-v2/run.yaml b/playbooks/legacy/grenade-dsvm-networking-midonet-v2/run.yaml new file mode 100644 index 00000000..34763c9a --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-networking-midonet-v2/run.yaml @@ -0,0 +1,45 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-networking-midonet-v2 from old job gate-grenade-dsvm-networking-midonet-v2-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade openstack/networking-midonet $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_GRENADE=pullup + export GRENADE_PLUGINRC="enable_grenade_plugin networking-midonet https://git.openstack.org/openstack/networking-midonet" + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh grenade-v2 + } + export -f gate_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-midonet/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-networking-odl/post.yaml b/playbooks/legacy/grenade-dsvm-networking-odl/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-networking-odl/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-networking-odl/run.yaml b/playbooks/legacy/grenade-dsvm-networking-odl/run.yaml new file mode 100644 index 00000000..65411b24 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-networking-odl/run.yaml @@ -0,0 +1,39 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-networking-odl from old job gate-grenade-dsvm-networking-odl-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade openstack/networking-odl $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_GRENADE=pullup + export GRENADE_PLUGINRC="enable_grenade_plugin networking-odl https://git.openstack.org/openstack/networking-odl" + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-odl/devstack/devstackgaterc + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-networking-ovn/post.yaml b/playbooks/legacy/grenade-dsvm-networking-ovn/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-networking-ovn/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-networking-ovn/run.yaml b/playbooks/legacy/grenade-dsvm-networking-ovn/run.yaml new file mode 100644 index 00000000..6580f6c3 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-networking-ovn/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-networking-ovn from old job gate-grenade-dsvm-networking-ovn-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade openstack/networking-ovn $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_GRENADE=pullup + export GRENADE_PLUGINRC="enable_grenade_plugin networking-ovn https://git.openstack.org/openstack/networking-ovn" + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/networking-ovn/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-ovn/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/networking-ovn/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-ovn/devstack/post_test_hook.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-ovn/devstack/devstackgaterc + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron-dvr-multinode/post.yaml b/playbooks/legacy/grenade-dsvm-neutron-dvr-multinode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron-dvr-multinode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-neutron-dvr-multinode/run.yaml b/playbooks/legacy/grenade-dsvm-neutron-dvr-multinode/run.yaml new file mode 100644 index 00000000..1663353d --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron-dvr-multinode/run.yaml @@ -0,0 +1,40 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-neutron-dvr-multinode from old job gate-grenade-dsvm-neutron-dvr-multinode-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_GRENADE=pullup + # Test DVR upgrade on multinode + export PROJECTS="openstack-dev/grenade $PROJECTS" + export DEVSTACK_GATE_NEUTRON_DVR=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron-forward/post.yaml b/playbooks/legacy/grenade-dsvm-neutron-forward/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron-forward/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-neutron-forward/run.yaml b/playbooks/legacy/grenade-dsvm-neutron-forward/run.yaml new file mode 100644 index 00000000..116f8602 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron-forward/run.yaml @@ -0,0 +1,36 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-neutron-forward from old job gate-grenade-dsvm-neutron-forward-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_GRENADE=forward + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron-fwaas-multinode/post.yaml b/playbooks/legacy/grenade-dsvm-neutron-fwaas-multinode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron-fwaas-multinode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-neutron-fwaas-multinode/run.yaml b/playbooks/legacy/grenade-dsvm-neutron-fwaas-multinode/run.yaml new file mode 100644 index 00000000..0af56c02 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron-fwaas-multinode/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-neutron-fwaas-multinode from old job + gate-grenade-dsvm-neutron-fwaas-multinode-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin neutron-fwaas git://git.openstack.org/openstack/neutron-fwaas + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export FWAAS_VERSION="v1" + export ENABLED_SERVICES="q-fwaas-$FWAAS_VERSION" + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_GRENADE=pullup + export PROJECTS="openstack-dev/grenade $PROJECTS" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + function gate_hook { + bash -xe $BASE/new/neutron-fwaas/neutron_fwaas/tests/contrib/gate_hook_tempest.sh $FWAAS_VERSION + } + export DEVSTACK_GATE_TOPOLOGY="multinode" + + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron-libs/post.yaml b/playbooks/legacy/grenade-dsvm-neutron-libs/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron-libs/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-neutron-libs/run.yaml b/playbooks/legacy/grenade-dsvm-neutron-libs/run.yaml new file mode 100644 index 00000000..728c8885 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron-libs/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-neutron-libs from old job gate-grenade-dsvm-neutron-libs-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT="os-client-config" + export DEVSTACK_PROJECT_FROM_GIT+=",keystoneauth" + export DEVSTACK_PROJECT_FROM_GIT+=",python-novaclient" + export DEVSTACK_PROJECT_FROM_GIT+=",python-keystoneclient" + export DEVSTACK_PROJECT_FROM_GIT+=",python-glanceclient" + export DEVSTACK_PROJECT_FROM_GIT+=",python-cinderclient" + export DEVSTACK_PROJECT_FROM_GIT+=",python-neutronclient" + export DEVSTACK_PROJECT_FROM_GIT+=",python-ironicclient" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_GRENADE=pullup + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron-linuxbridge-multinode/post.yaml b/playbooks/legacy/grenade-dsvm-neutron-linuxbridge-multinode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron-linuxbridge-multinode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-neutron-linuxbridge-multinode/run.yaml b/playbooks/legacy/grenade-dsvm-neutron-linuxbridge-multinode/run.yaml new file mode 100644 index 00000000..654f84af --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron-linuxbridge-multinode/run.yaml @@ -0,0 +1,40 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-neutron-linuxbridge-multinode from old + job gate-grenade-dsvm-neutron-linuxbridge-multinode-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_GRENADE=pullup + export PROJECTS="openstack-dev/grenade $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="Q_AGENT=linuxbridge"$'\n'"PHYSICAL_NETWORK=default"$'\n' + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron-multinode-live-migration/post.yaml b/playbooks/legacy/grenade-dsvm-neutron-multinode-live-migration/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron-multinode-live-migration/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-neutron-multinode-live-migration/run.yaml b/playbooks/legacy/grenade-dsvm-neutron-multinode-live-migration/run.yaml new file mode 100644 index 00000000..81bb6880 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron-multinode-live-migration/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-neutron-multinode-live-migration from + old job gate-grenade-dsvm-neutron-multinode-live-migration-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_GRENADE=pullup + # By default grenade runs only smoke tests so we need to set + # RUN_SMOKE to False in order to run live migration tests using + # grenade + export DEVSTACK_LOCAL_CONFIG="RUN_SMOKE=False" + # LIVE_MIGRATE_BACK_AND_FORTH will tell Tempest to run a live + # migration of the same instance to one compute node and then back + # to the other, which is mostly only interesting for grenade since + # we have mixed level computes. + export DEVSTACK_LOCAL_CONFIG+=$'\n'"LIVE_MIGRATE_BACK_AND_FORTH=True" + export BRANCH_OVERRIDE=default + export DEVSTACK_GATE_TOPOLOGY="multinode" + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + function post_test_hook { + /opt/stack/new/nova/nova/tests/live_migration/hooks/run_tests.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron-multinode-zero-downtime/post.yaml b/playbooks/legacy/grenade-dsvm-neutron-multinode-zero-downtime/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron-multinode-zero-downtime/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-neutron-multinode-zero-downtime/run.yaml b/playbooks/legacy/grenade-dsvm-neutron-multinode-zero-downtime/run.yaml new file mode 100644 index 00000000..b91b2e6f --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron-multinode-zero-downtime/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-neutron-multinode-zero-downtime from + old job gate-grenade-dsvm-neutron-multinode-zero-downtime-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_GRENADE=pullup + export PROJECTS="openstack-dev/grenade $PROJECTS" + # Default to non DVR + export DEVSTACK_GATE_NEUTRON_DVR=0 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + function post_test_hook { + /opt/stack/new/nova/nova/tests/zero_downtime/hooks/run_tests.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron-multinode/post.yaml b/playbooks/legacy/grenade-dsvm-neutron-multinode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron-multinode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-neutron-multinode/run.yaml b/playbooks/legacy/grenade-dsvm-neutron-multinode/run.yaml new file mode 100644 index 00000000..6ae28934 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron-multinode/run.yaml @@ -0,0 +1,40 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-neutron-multinode from old job gate-grenade-dsvm-neutron-multinode-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_GRENADE=pullup + export PROJECTS="openstack-dev/grenade $PROJECTS" + # Default to non DVR + export DEVSTACK_GATE_NEUTRON_DVR=0 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron-nova-next/post.yaml b/playbooks/legacy/grenade-dsvm-neutron-nova-next/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron-nova-next/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-neutron-nova-next/run.yaml b/playbooks/legacy/grenade-dsvm-neutron-nova-next/run.yaml new file mode 100644 index 00000000..abc1abb9 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron-nova-next/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-neutron-nova-next from old job gate-grenade-dsvm-neutron-nova-next-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + # NOTE(mriedem): cells v2 should be the default after newton-eol + NOVA_CONFIGURE_CELLSV2=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ENABLED_SERVICES=placement-api + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_GRENADE=pullup + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-neutron/post.yaml b/playbooks/legacy/grenade-dsvm-neutron/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-neutron/run.yaml b/playbooks/legacy/grenade-dsvm-neutron/run.yaml new file mode 100644 index 00000000..b74032a6 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-neutron/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-neutron from old job gate-grenade-dsvm-neutron-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + # NOTE(mriedem): cells v2 should be the default after newton-eol + NOVA_CONFIGURE_CELLSV2=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_GRENADE=pullup + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-redis-zaqar/post.yaml b/playbooks/legacy/grenade-dsvm-redis-zaqar/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-redis-zaqar/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-redis-zaqar/run.yaml b/playbooks/legacy/grenade-dsvm-redis-zaqar/run.yaml new file mode 100644 index 00000000..947b70c6 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-redis-zaqar/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-redis-zaqar from old job gate-grenade-dsvm-redis-zaqar-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin zaqar git://git.openstack.org/openstack/zaqar + # Enable Zaqar Tempest plugin + TEMPEST_PLUGINS='/opt/stack/new/zaqar-tempest-plugin' + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PYTHONUNBUFFERED=true + export ENABLED_SERVICES=tempest + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_TEMPEST_REGEX="zaqar_tempest_plugin.tests" + + export DEVSTACK_GATE_GRENADE=pullup + export GRENADE_PLUGINRC="enable_grenade_plugin zaqar https://git.openstack.org/openstack/zaqar" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/zaqar-tempest-plugin $PROJECTS" + + function pre_test_hook { + cd /opt/stack/new/zaqar/zaqar_upgradetests + ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/zaqar/zaqar_upgradetests + ./post_test_hook.sh + } + export -f post_test_hook + + function gate_hook { + cd /opt/stack/new/zaqar/devstack/gate + ./gate_hook.sh tempest redis + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-sahara/post.yaml b/playbooks/legacy/grenade-dsvm-sahara/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-sahara/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-sahara/run.yaml b/playbooks/legacy/grenade-dsvm-sahara/run.yaml new file mode 100644 index 00000000..1b78ea15 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-sahara/run.yaml @@ -0,0 +1,43 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-sahara from old job gate-grenade-dsvm-sahara-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PROJECTS="openstack/sahara $PROJECTS" + export PROJECTS="openstack/python-saharaclient $PROJECTS" + export PYTHONUNBUFFERED=true + export GRENADE_PLUGINRC="enable_grenade_plugin sahara https://git.openstack.org/openstack/sahara" + export GRENADE_PLUGINRC+=$'\n'"enable_grenade_plugin heat https://git.openstack.org/openstack/heat" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_GRENADE=pullup + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-dsvm-trove/post.yaml b/playbooks/legacy/grenade-dsvm-trove/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-trove/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/grenade-dsvm-trove/run.yaml b/playbooks/legacy/grenade-dsvm-trove/run.yaml new file mode 100644 index 00000000..4d4a8b29 --- /dev/null +++ b/playbooks/legacy/grenade-dsvm-trove/run.yaml @@ -0,0 +1,39 @@ +- hosts: all + name: Autoconverted job legacy-grenade-dsvm-trove from old job gate-grenade-dsvm-trove + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_GRENADE=pullup + export DEVSTACK_GATE_TROVE=1 + export TEMPEST_CONCURRENCY=2 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/grenade-publish-docs/run.yaml b/playbooks/legacy/grenade-publish-docs/run.yaml new file mode 100644 index 00000000..81a2ffa1 --- /dev/null +++ b/playbooks/legacy/grenade-publish-docs/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-grenade-publish-docs from old job grenade-publish-docs + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh docs + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID Revision: $ZUUL_NEWREV" + echo $MARKER_TEXT > doc/build/html/.root-marker + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/group-based-policy-dsvm-aim/post.yaml b/playbooks/legacy/group-based-policy-dsvm-aim/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/group-based-policy-dsvm-aim/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/group-based-policy-dsvm-aim/run.yaml b/playbooks/legacy/group-based-policy-dsvm-aim/run.yaml new file mode 100644 index 00000000..717a6220 --- /dev/null +++ b/playbooks/legacy/group-based-policy-dsvm-aim/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-group-based-policy-dsvm-aim from old job gate-group-based-policy-dsvm-aim-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export PROJECTS="openstack/group-based-policy $PROJECTS" + export PROJECTS="openstack/group-based-policy-automation $PROJECTS" + export PROJECTS="openstack/group-based-policy-ui $PROJECTS" + export PROJECTS="openstack/python-group-based-policy-client $PROJECTS" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/group-based-policy/gbpservice/tests/contrib/gate_aim_hook.sh dsvm-aim + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/group-based-policy/gbpservice/tests/contrib/post_test_hook.sh dsvm-aim + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/group-based-policy-dsvm-functional-ubuntu-trusty/post.yaml b/playbooks/legacy/group-based-policy-dsvm-functional-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/group-based-policy-dsvm-functional-ubuntu-trusty/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/group-based-policy-dsvm-functional-ubuntu-trusty/run.yaml b/playbooks/legacy/group-based-policy-dsvm-functional-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..9e51b5de --- /dev/null +++ b/playbooks/legacy/group-based-policy-dsvm-functional-ubuntu-trusty/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-group-based-policy-dsvm-functional-ubuntu-trusty + from old job gate-group-based-policy-dsvm-functional-ubuntu-trusty-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export PROJECTS="openstack/group-based-policy $PROJECTS" + export PROJECTS="openstack/group-based-policy-automation $PROJECTS" + export PROJECTS="openstack/group-based-policy-ui $PROJECTS" + export PROJECTS="openstack/python-group-based-policy-client $PROJECTS" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/group-based-policy/gbpservice/tests/contrib/gate_hook.sh dsvm-functional + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/group-based-policy/gbpservice/tests/contrib/post_test_hook.sh dsvm-functional + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/group-based-policy-dsvm-functional/post.yaml b/playbooks/legacy/group-based-policy-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/group-based-policy-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/group-based-policy-dsvm-functional/run.yaml b/playbooks/legacy/group-based-policy-dsvm-functional/run.yaml new file mode 100644 index 00000000..93201be8 --- /dev/null +++ b/playbooks/legacy/group-based-policy-dsvm-functional/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-group-based-policy-dsvm-functional from old job gate-group-based-policy-dsvm-functional-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export PROJECTS="openstack/group-based-policy $PROJECTS" + export PROJECTS="openstack/group-based-policy-automation $PROJECTS" + export PROJECTS="openstack/group-based-policy-ui $PROJECTS" + export PROJECTS="openstack/python-group-based-policy-client $PROJECTS" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/group-based-policy/gbpservice/tests/contrib/gate_hook.sh dsvm-functional + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/group-based-policy/gbpservice/tests/contrib/post_test_hook.sh dsvm-functional + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/group-based-policy-dsvm-nfp-ubuntu-trusty/post.yaml b/playbooks/legacy/group-based-policy-dsvm-nfp-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/group-based-policy-dsvm-nfp-ubuntu-trusty/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/group-based-policy-dsvm-nfp-ubuntu-trusty/run.yaml b/playbooks/legacy/group-based-policy-dsvm-nfp-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..d40359a2 --- /dev/null +++ b/playbooks/legacy/group-based-policy-dsvm-nfp-ubuntu-trusty/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-group-based-policy-dsvm-nfp-ubuntu-trusty from old + job gate-group-based-policy-dsvm-nfp-ubuntu-trusty-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export PROJECTS="openstack/group-based-policy $PROJECTS" + export PROJECTS="openstack/group-based-policy-automation $PROJECTS" + export PROJECTS="openstack/group-based-policy-ui $PROJECTS" + export PROJECTS="openstack/python-group-based-policy-client $PROJECTS" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/group-based-policy/gbpservice/tests/contrib/gate_nfp_hook.sh dsvm-nfp + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/group-based-policy/gbpservice/tests/contrib/post_test_nfp_hook.sh dsvm-nfp + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/group-based-policy-dsvm-nfp/post.yaml b/playbooks/legacy/group-based-policy-dsvm-nfp/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/group-based-policy-dsvm-nfp/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/group-based-policy-dsvm-nfp/run.yaml b/playbooks/legacy/group-based-policy-dsvm-nfp/run.yaml new file mode 100644 index 00000000..e7a4b76f --- /dev/null +++ b/playbooks/legacy/group-based-policy-dsvm-nfp/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-group-based-policy-dsvm-nfp from old job gate-group-based-policy-dsvm-nfp-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export PROJECTS="openstack/group-based-policy $PROJECTS" + export PROJECTS="openstack/group-based-policy-automation $PROJECTS" + export PROJECTS="openstack/group-based-policy-ui $PROJECTS" + export PROJECTS="openstack/python-group-based-policy-client $PROJECTS" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/group-based-policy/gbpservice/tests/contrib/gate_nfp_hook.sh dsvm-nfp + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/group-based-policy/gbpservice/tests/contrib/post_test_nfp_hook.sh dsvm-nfp + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/group-based-policy-dsvm-rally-ubuntu-trusty/post.yaml b/playbooks/legacy/group-based-policy-dsvm-rally-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/group-based-policy-dsvm-rally-ubuntu-trusty/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/group-based-policy-dsvm-rally-ubuntu-trusty/run.yaml b/playbooks/legacy/group-based-policy-dsvm-rally-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..9575e334 --- /dev/null +++ b/playbooks/legacy/group-based-policy-dsvm-rally-ubuntu-trusty/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-group-based-policy-dsvm-rally-ubuntu-trusty from + old job gate-group-based-policy-dsvm-rally-ubuntu-trusty-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export PROJECTS="openstack/group-based-policy $PROJECTS" + export PROJECTS="openstack/group-based-policy-automation $PROJECTS" + export PROJECTS="openstack/group-based-policy-ui $PROJECTS" + export PROJECTS="openstack/python-group-based-policy-client $PROJECTS" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/group-based-policy/gbpservice/tests/contrib/gate_hook.sh dsvm-rally + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/group-based-policy/gbpservice/tests/contrib/post_test_rally_hook.sh dsvm-rally + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/group-based-policy-dsvm-rally/post.yaml b/playbooks/legacy/group-based-policy-dsvm-rally/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/group-based-policy-dsvm-rally/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/group-based-policy-dsvm-rally/run.yaml b/playbooks/legacy/group-based-policy-dsvm-rally/run.yaml new file mode 100644 index 00000000..71fb019b --- /dev/null +++ b/playbooks/legacy/group-based-policy-dsvm-rally/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-group-based-policy-dsvm-rally from old job gate-group-based-policy-dsvm-rally-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export PROJECTS="openstack/group-based-policy $PROJECTS" + export PROJECTS="openstack/group-based-policy-automation $PROJECTS" + export PROJECTS="openstack/group-based-policy-ui $PROJECTS" + export PROJECTS="openstack/python-group-based-policy-client $PROJECTS" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/group-based-policy/gbpservice/tests/contrib/gate_hook.sh dsvm-rally + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/group-based-policy/gbpservice/tests/contrib/post_test_rally_hook.sh dsvm-rally + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/groups-release-branch/post.yaml b/playbooks/legacy/groups-release-branch/post.yaml new file mode 100644 index 00000000..10e9c455 --- /dev/null +++ b/playbooks/legacy/groups-release-branch/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: tarballs/groups/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/tarballs/*.tar.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: tarballs/groups/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/tarballs/*.md5 + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: tarballs/groups/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/drupal-updates/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/groups-release-branch/run.yaml b/playbooks/legacy/groups-release-branch/run.yaml new file mode 100644 index 00000000..178fac3d --- /dev/null +++ b/playbooks/legacy/groups-release-branch/run.yaml @@ -0,0 +1,82 @@ +- hosts: all + name: Autoconverted job legacy-groups-release-branch from old job groups-release-branch + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + # fetch drush + mkdir drush + curl -L https://github.com/drush-ops/drush/archive/6.0.0.tar.gz | tar -xz -C drush --strip 1 + # build distribution + export PATH=./drush:$PATH + scripts/dev-build.sh + # Clean/create a tarball directory + rm -rf tarballs + mkdir -p tarballs + # Create an archive tarball. + tar -czf groups-$PROJECT_VER.tar.gz publish/ + cp groups-$PROJECT_VER.tar.gz tarballs/groups-latest.tar.gz + mv groups-$PROJECT_VER.tar.gz tarballs/ + # generate md5 checksums + cd tarballs + md5sum groups-$PROJECT_VER.tar.gz > groups-$PROJECT_VER.md5 + sed s/$PROJECT_VER/latest/g groups-$PROJECT_VER.md5 > groups-latest.md5 + cd .. + # build manifest file + if [[ "$COMMITS_SINCE_TAG" == "" ]]; then + VERSION=7.x-$PROJECT_VER + else + VERSION=7.x-0.x-dev + fi + MD5HASH=$(cat tarballs/groups-$PROJECT_VER.md5 | cut -d ' ' -f1) + OUTFILE=drupal-updates/release-history/groups/7.x + MANIFESTURL=http://tarballs.openstack.org/groups/drupal-updates/release-history/groups/7.x + mkdir -p drupal-updates/release-history/groups + scripts/release-manifest.php --version=$VERSION --releasetar=groups-$PROJECT_VER.tar.gz --md5=$MD5HASH --outfile=$OUTFILE --manifest-url=$MANIFESTURL --verbose --debug + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/groups-release-master/post.yaml b/playbooks/legacy/groups-release-master/post.yaml new file mode 100644 index 00000000..10e9c455 --- /dev/null +++ b/playbooks/legacy/groups-release-master/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: tarballs/groups/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/tarballs/*.tar.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: tarballs/groups/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/tarballs/*.md5 + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: tarballs/groups/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/drupal-updates/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/groups-release-master/run.yaml b/playbooks/legacy/groups-release-master/run.yaml new file mode 100644 index 00000000..cdeaafc7 --- /dev/null +++ b/playbooks/legacy/groups-release-master/run.yaml @@ -0,0 +1,82 @@ +- hosts: all + name: Autoconverted job legacy-groups-release-master from old job groups-release-master + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + # fetch drush + mkdir drush + curl -L https://github.com/drush-ops/drush/archive/6.0.0.tar.gz | tar -xz -C drush --strip 1 + # build distribution + export PATH=./drush:$PATH + scripts/dev-build.sh + # Clean/create a tarball directory + rm -rf tarballs + mkdir -p tarballs + # Create an archive tarball. + tar -czf groups-$PROJECT_VER.tar.gz publish/ + cp groups-$PROJECT_VER.tar.gz tarballs/groups-latest.tar.gz + mv groups-$PROJECT_VER.tar.gz tarballs/ + # generate md5 checksums + cd tarballs + md5sum groups-$PROJECT_VER.tar.gz > groups-$PROJECT_VER.md5 + sed s/$PROJECT_VER/latest/g groups-$PROJECT_VER.md5 > groups-latest.md5 + cd .. + # build manifest file + if [[ "$COMMITS_SINCE_TAG" == "" ]]; then + VERSION=7.x-$PROJECT_VER + else + VERSION=7.x-0.x-dev + fi + MD5HASH=$(cat tarballs/groups-$PROJECT_VER.md5 | cut -d ' ' -f1) + OUTFILE=drupal-updates/release-history/groups/7.x + MANIFESTURL=http://tarballs.openstack.org/groups/drupal-updates/release-history/groups/7.x + mkdir -p drupal-updates/release-history/groups + scripts/release-manifest.php --version=$VERSION --releasetar=groups-$PROJECT_VER.tar.gz --md5=$MD5HASH --outfile=$OUTFILE --manifest-url=$MANIFESTURL --verbose --debug + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/groups-unittests/post.yaml b/playbooks/legacy/groups-unittests/post.yaml new file mode 100644 index 00000000..5850ab1d --- /dev/null +++ b/playbooks/legacy/groups-unittests/post.yaml @@ -0,0 +1,28 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/./reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/groups-unittests/run.yaml b/playbooks/legacy/groups-unittests/run.yaml new file mode 100644 index 00000000..3d88bd52 --- /dev/null +++ b/playbooks/legacy/groups-unittests/run.yaml @@ -0,0 +1,57 @@ +- hosts: all + name: Autoconverted job legacy-groups-unittests from old job gate-groups-unittests + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # fetch drush + mkdir drush + curl -L https://github.com/drush-ops/drush/archive/6.0.0.tar.gz | tar -xz -C drush --strip 1 + # build distribution + export PATH=./drush:$PATH + scripts/dev-build.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/hacking-integration-nova/run.yaml b/playbooks/legacy/hacking-integration-nova/run.yaml new file mode 100644 index 00000000..47eb75fa --- /dev/null +++ b/playbooks/legacy/hacking-integration-nova/run.yaml @@ -0,0 +1,33 @@ +- hosts: all + name: Autoconverted job legacy-hacking-integration-nova from old job gate-hacking-integration-nova + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd $WORKSPACE + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-dev/hacking \ + openstack/nova + cd openstack-dev/hacking + tox -e integration openstack nova \ + $WORKSPACE/openstack/nova + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-amqp1/post.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-amqp1/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-amqp1/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-amqp1/run.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-amqp1/run.yaml new file mode 100644 index 00000000..7ef0f7c5 --- /dev/null +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-amqp1/run.yaml @@ -0,0 +1,126 @@ +- hosts: all + name: Autoconverted job legacy-heat-dsvm-functional-convg-mysql-lbaasv2-amqp1 from + old job gate-heat-dsvm-functional-convg-mysql-lbaasv2-amqp1-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + services=rabbit,tempest,mysql,dstat,key + services+=,n-api,n-api-meta,n-cpu,n-cond,n-sch,n-crt + + # placement services mandatory for nova from ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + services+=,placement-api,placement-client + fi + + services+=,g-api,g-reg + services+=,c-sch,c-api,c-vol,c-bak + services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 + + if [ "-amqp1" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + # Swift does not work so skip s-* for python3x for now + else + export DEVSTACK_GATE_USE_PYTHON3=False + services+=,s-proxy,s-object,s-container,s-account + fi + + if [[ ! "stable/newton stable/ocata" =~ $ZUUL_BRANCH ]]; then + services+=,q-trunk + fi + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_PROJECT_FROM_GIT=python-heatclient + export KEEP_LOCALRC=1 + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/zaqar $PROJECTS" + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + if [ "lbaasv2" = "lbaasv2" ]; then + # Enable LBaaS V2 plugin + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas" + # enabling lbaas plugin does not enable the lbaasv2 service, explicitly enable it + services+=,q-lbaasv2 + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin barbican https://git.openstack.org/openstack/barbican" + # the lbaas v2 driver choice is in the gate pre test hook + else + services+=,q-lbaas + fi + + export OVERRIDE_ENABLED_SERVICES=$services + + if [ "mysql" == "postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + if [ "convg" == "orig" ] ; then + export DISABLE_CONVERGENCE=true + fi + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "-amqp1" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + if [ "-amqp1" == "-non-apache" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"HEAT_USE_MOD_WSGI=False" + fi + if [ "-amqp1" == "-amqp1" ] ; then + export PROJECTS="openstack/devstack-plugin-amqp1 $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export AMQP1_SERVICE=qpid-hybrid" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin devstack-plugin-amqp1 git://git.openstack.org/openstack/devstack-plugin-amqp1" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export CELLSV2_SETUP=singleconductor" + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging,$DEVSTACK_PROJECT_FROM_GIT" + fi + function pre_test_hook { + cd /opt/stack/new/heat/heat_integrationtests + source ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/heat/heat_integrationtests + source ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only/post.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only/run.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only/run.yaml new file mode 100644 index 00000000..52809982 --- /dev/null +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only/run.yaml @@ -0,0 +1,126 @@ +- hosts: all + name: Autoconverted job legacy-heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only + from old job gate-heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + services=rabbit,tempest,mysql,dstat,key + services+=,n-api,n-api-meta,n-cpu,n-cond,n-sch,n-crt + + # placement services mandatory for nova from ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + services+=,placement-api,placement-client + fi + + services+=,g-api,g-reg + services+=,c-sch,c-api,c-vol,c-bak + services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 + + if [ "-identity-v3-only" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + # Swift does not work so skip s-* for python3x for now + else + export DEVSTACK_GATE_USE_PYTHON3=False + services+=,s-proxy,s-object,s-container,s-account + fi + + if [[ ! "stable/newton stable/ocata" =~ $ZUUL_BRANCH ]]; then + services+=,q-trunk + fi + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_PROJECT_FROM_GIT=python-heatclient + export KEEP_LOCALRC=1 + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/zaqar $PROJECTS" + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + if [ "lbaasv2" = "lbaasv2" ]; then + # Enable LBaaS V2 plugin + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas" + # enabling lbaas plugin does not enable the lbaasv2 service, explicitly enable it + services+=,q-lbaasv2 + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin barbican https://git.openstack.org/openstack/barbican" + # the lbaas v2 driver choice is in the gate pre test hook + else + services+=,q-lbaas + fi + + export OVERRIDE_ENABLED_SERVICES=$services + + if [ "mysql" == "postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + if [ "convg" == "orig" ] ; then + export DISABLE_CONVERGENCE=true + fi + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "-identity-v3-only" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + if [ "-identity-v3-only" == "-non-apache" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"HEAT_USE_MOD_WSGI=False" + fi + if [ "-identity-v3-only" == "-amqp1" ] ; then + export PROJECTS="openstack/devstack-plugin-amqp1 $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export AMQP1_SERVICE=qpid-hybrid" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin devstack-plugin-amqp1 git://git.openstack.org/openstack/devstack-plugin-amqp1" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export CELLSV2_SETUP=singleconductor" + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging,$DEVSTACK_PROJECT_FROM_GIT" + fi + function pre_test_hook { + cd /opt/stack/new/heat/heat_integrationtests + source ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/heat/heat_integrationtests + source ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-non-apache/post.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-non-apache/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-non-apache/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-non-apache/run.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-non-apache/run.yaml new file mode 100644 index 00000000..26303492 --- /dev/null +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-non-apache/run.yaml @@ -0,0 +1,126 @@ +- hosts: all + name: Autoconverted job legacy-heat-dsvm-functional-convg-mysql-lbaasv2-non-apache + from old job gate-heat-dsvm-functional-convg-mysql-lbaasv2-non-apache-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + services=rabbit,tempest,mysql,dstat,key + services+=,n-api,n-api-meta,n-cpu,n-cond,n-sch,n-crt + + # placement services mandatory for nova from ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + services+=,placement-api,placement-client + fi + + services+=,g-api,g-reg + services+=,c-sch,c-api,c-vol,c-bak + services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 + + if [ "-non-apache" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + # Swift does not work so skip s-* for python3x for now + else + export DEVSTACK_GATE_USE_PYTHON3=False + services+=,s-proxy,s-object,s-container,s-account + fi + + if [[ ! "stable/newton stable/ocata" =~ $ZUUL_BRANCH ]]; then + services+=,q-trunk + fi + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_PROJECT_FROM_GIT=python-heatclient + export KEEP_LOCALRC=1 + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/zaqar $PROJECTS" + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + if [ "lbaasv2" = "lbaasv2" ]; then + # Enable LBaaS V2 plugin + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas" + # enabling lbaas plugin does not enable the lbaasv2 service, explicitly enable it + services+=,q-lbaasv2 + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin barbican https://git.openstack.org/openstack/barbican" + # the lbaas v2 driver choice is in the gate pre test hook + else + services+=,q-lbaas + fi + + export OVERRIDE_ENABLED_SERVICES=$services + + if [ "mysql" == "postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + if [ "convg" == "orig" ] ; then + export DISABLE_CONVERGENCE=true + fi + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "-non-apache" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + if [ "-non-apache" == "-non-apache" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"HEAT_USE_MOD_WSGI=False" + fi + if [ "-non-apache" == "-amqp1" ] ; then + export PROJECTS="openstack/devstack-plugin-amqp1 $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export AMQP1_SERVICE=qpid-hybrid" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin devstack-plugin-amqp1 git://git.openstack.org/openstack/devstack-plugin-amqp1" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export CELLSV2_SETUP=singleconductor" + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging,$DEVSTACK_PROJECT_FROM_GIT" + fi + function pre_test_hook { + cd /opt/stack/new/heat/heat_integrationtests + source ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/heat/heat_integrationtests + source ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-py35/post.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-py35/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-py35/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-py35/run.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-py35/run.yaml new file mode 100644 index 00000000..d9e21c99 --- /dev/null +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-py35/run.yaml @@ -0,0 +1,126 @@ +- hosts: all + name: Autoconverted job legacy-heat-dsvm-functional-convg-mysql-lbaasv2-py35 from + old job gate-heat-dsvm-functional-convg-mysql-lbaasv2-py35-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + services=rabbit,tempest,mysql,dstat,key + services+=,n-api,n-api-meta,n-cpu,n-cond,n-sch,n-crt + + # placement services mandatory for nova from ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + services+=,placement-api,placement-client + fi + + services+=,g-api,g-reg + services+=,c-sch,c-api,c-vol,c-bak + services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 + + if [ "-py35" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + # Swift does not work so skip s-* for python3x for now + else + export DEVSTACK_GATE_USE_PYTHON3=False + services+=,s-proxy,s-object,s-container,s-account + fi + + if [[ ! "stable/newton stable/ocata" =~ $ZUUL_BRANCH ]]; then + services+=,q-trunk + fi + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_PROJECT_FROM_GIT=python-heatclient + export KEEP_LOCALRC=1 + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/zaqar $PROJECTS" + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + if [ "lbaasv2" = "lbaasv2" ]; then + # Enable LBaaS V2 plugin + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas" + # enabling lbaas plugin does not enable the lbaasv2 service, explicitly enable it + services+=,q-lbaasv2 + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin barbican https://git.openstack.org/openstack/barbican" + # the lbaas v2 driver choice is in the gate pre test hook + else + services+=,q-lbaas + fi + + export OVERRIDE_ENABLED_SERVICES=$services + + if [ "mysql" == "postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + if [ "convg" == "orig" ] ; then + export DISABLE_CONVERGENCE=true + fi + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "-py35" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + if [ "-py35" == "-non-apache" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"HEAT_USE_MOD_WSGI=False" + fi + if [ "-py35" == "-amqp1" ] ; then + export PROJECTS="openstack/devstack-plugin-amqp1 $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export AMQP1_SERVICE=qpid-hybrid" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin devstack-plugin-amqp1 git://git.openstack.org/openstack/devstack-plugin-amqp1" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export CELLSV2_SETUP=singleconductor" + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging,$DEVSTACK_PROJECT_FROM_GIT" + fi + function pre_test_hook { + cd /opt/stack/new/heat/heat_integrationtests + source ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/heat/heat_integrationtests + source ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2/post.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2/run.yaml b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2/run.yaml new file mode 100644 index 00000000..e00b9310 --- /dev/null +++ b/playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2/run.yaml @@ -0,0 +1,126 @@ +- hosts: all + name: Autoconverted job legacy-heat-dsvm-functional-convg-mysql-lbaasv2 from old + job gate-heat-dsvm-functional-convg-mysql-lbaasv2-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + services=rabbit,tempest,mysql,dstat,key + services+=,n-api,n-api-meta,n-cpu,n-cond,n-sch,n-crt + + # placement services mandatory for nova from ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + services+=,placement-api,placement-client + fi + + services+=,g-api,g-reg + services+=,c-sch,c-api,c-vol,c-bak + services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 + + if [ "" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + # Swift does not work so skip s-* for python3x for now + else + export DEVSTACK_GATE_USE_PYTHON3=False + services+=,s-proxy,s-object,s-container,s-account + fi + + if [[ ! "stable/newton stable/ocata" =~ $ZUUL_BRANCH ]]; then + services+=,q-trunk + fi + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_PROJECT_FROM_GIT=python-heatclient + export KEEP_LOCALRC=1 + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/zaqar $PROJECTS" + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + if [ "lbaasv2" = "lbaasv2" ]; then + # Enable LBaaS V2 plugin + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas" + # enabling lbaas plugin does not enable the lbaasv2 service, explicitly enable it + services+=,q-lbaasv2 + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin barbican https://git.openstack.org/openstack/barbican" + # the lbaas v2 driver choice is in the gate pre test hook + else + services+=,q-lbaas + fi + + export OVERRIDE_ENABLED_SERVICES=$services + + if [ "mysql" == "postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + if [ "convg" == "orig" ] ; then + export DISABLE_CONVERGENCE=true + fi + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + if [ "" == "-non-apache" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"HEAT_USE_MOD_WSGI=False" + fi + if [ "" == "-amqp1" ] ; then + export PROJECTS="openstack/devstack-plugin-amqp1 $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export AMQP1_SERVICE=qpid-hybrid" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin devstack-plugin-amqp1 git://git.openstack.org/openstack/devstack-plugin-amqp1" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export CELLSV2_SETUP=singleconductor" + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging,$DEVSTACK_PROJECT_FROM_GIT" + fi + function pre_test_hook { + cd /opt/stack/new/heat/heat_integrationtests + source ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/heat/heat_integrationtests + source ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/heat-dsvm-functional-orig-mysql-lbaasv2/post.yaml b/playbooks/legacy/heat-dsvm-functional-orig-mysql-lbaasv2/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/heat-dsvm-functional-orig-mysql-lbaasv2/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/heat-dsvm-functional-orig-mysql-lbaasv2/run.yaml b/playbooks/legacy/heat-dsvm-functional-orig-mysql-lbaasv2/run.yaml new file mode 100644 index 00000000..2310e883 --- /dev/null +++ b/playbooks/legacy/heat-dsvm-functional-orig-mysql-lbaasv2/run.yaml @@ -0,0 +1,126 @@ +- hosts: all + name: Autoconverted job legacy-heat-dsvm-functional-orig-mysql-lbaasv2 from old + job gate-heat-dsvm-functional-orig-mysql-lbaasv2-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + services=rabbit,tempest,mysql,dstat,key + services+=,n-api,n-api-meta,n-cpu,n-cond,n-sch,n-crt + + # placement services mandatory for nova from ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + services+=,placement-api,placement-client + fi + + services+=,g-api,g-reg + services+=,c-sch,c-api,c-vol,c-bak + services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 + + if [ "" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + # Swift does not work so skip s-* for python3x for now + else + export DEVSTACK_GATE_USE_PYTHON3=False + services+=,s-proxy,s-object,s-container,s-account + fi + + if [[ ! "stable/newton stable/ocata" =~ $ZUUL_BRANCH ]]; then + services+=,q-trunk + fi + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_PROJECT_FROM_GIT=python-heatclient + export KEEP_LOCALRC=1 + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/zaqar $PROJECTS" + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + if [ "lbaasv2" = "lbaasv2" ]; then + # Enable LBaaS V2 plugin + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas" + # enabling lbaas plugin does not enable the lbaasv2 service, explicitly enable it + services+=,q-lbaasv2 + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin barbican https://git.openstack.org/openstack/barbican" + # the lbaas v2 driver choice is in the gate pre test hook + else + services+=,q-lbaas + fi + + export OVERRIDE_ENABLED_SERVICES=$services + + if [ "mysql" == "postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + if [ "orig" == "orig" ] ; then + export DISABLE_CONVERGENCE=true + fi + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + if [ "" == "-non-apache" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"HEAT_USE_MOD_WSGI=False" + fi + if [ "" == "-amqp1" ] ; then + export PROJECTS="openstack/devstack-plugin-amqp1 $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export AMQP1_SERVICE=qpid-hybrid" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin devstack-plugin-amqp1 git://git.openstack.org/openstack/devstack-plugin-amqp1" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"export CELLSV2_SETUP=singleconductor" + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging,$DEVSTACK_PROJECT_FROM_GIT" + fi + function pre_test_hook { + cd /opt/stack/new/heat/heat_integrationtests + source ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/heat/heat_integrationtests + source ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/heat-templates-dsvm/post.yaml b/playbooks/legacy/heat-templates-dsvm/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/heat-templates-dsvm/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/heat-templates-dsvm/run.yaml b/playbooks/legacy/heat-templates-dsvm/run.yaml new file mode 100644 index 00000000..d5adb445 --- /dev/null +++ b/playbooks/legacy/heat-templates-dsvm/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-heat-templates-dsvm from old job gate-heat-templates-dsvm + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin heat git://git.openstack.org/openstack/heat + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/heat-translator-tox-py27-tp/post.yaml b/playbooks/legacy/heat-translator-tox-py27-tp/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/heat-translator-tox-py27-tp/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/heat-translator-tox-py27-tp/run.yaml b/playbooks/legacy/heat-translator-tox-py27-tp/run.yaml new file mode 100644 index 00000000..e3b31be3 --- /dev/null +++ b/playbooks/legacy/heat-translator-tox-py27-tp/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-heat-translator-tox-py27-tp from old job gate-heat-translator-tox-py27-tp-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-tp + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/heatclient-dsvm-functional/post.yaml b/playbooks/legacy/heatclient-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/heatclient-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/heatclient-dsvm-functional/run.yaml b/playbooks/legacy/heatclient-dsvm-functional/run.yaml new file mode 100644 index 00000000..c3a75601 --- /dev/null +++ b/playbooks/legacy/heatclient-dsvm-functional/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-heatclient-dsvm-functional from old job gate-heatclient-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin heat git://git.openstack.org/openstack/heat + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=python-heatclient + + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook { + # Configure and run functional tests + $BASE/new/python-heatclient/heatclient/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/horizon-dsvm-tempest-plugin/post.yaml b/playbooks/legacy/horizon-dsvm-tempest-plugin/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/horizon-dsvm-tempest-plugin/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/horizon-dsvm-tempest-plugin/run.yaml b/playbooks/legacy/horizon-dsvm-tempest-plugin/run.yaml new file mode 100644 index 00000000..7ed910a9 --- /dev/null +++ b/playbooks/legacy/horizon-dsvm-tempest-plugin/run.yaml @@ -0,0 +1,39 @@ +- hosts: all + name: Autoconverted job legacy-horizon-dsvm-tempest-plugin from old job gate-horizon-dsvm-tempest-plugin-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX=horizon + export DEVSTACK_LOCAL_CONFIG="export TEMPEST_PLUGINS='/opt/stack/new/tempest-horizon'" + export PROJECTS="openstack/tempest-horizon $PROJECTS" + + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/horizon-selenium-headless-legacy/run.yaml b/playbooks/legacy/horizon-selenium-headless-legacy/run.yaml new file mode 100644 index 00000000..f936b676 --- /dev/null +++ b/playbooks/legacy/horizon-selenium-headless-legacy/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-horizon-selenium-headless-legacy from old job gate-horizon-selenium-headless-legacy-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + NOSE_WITH_XUNIT=1 tox -evenv -- /bin/bash run_tests.sh -N --only-selenium --selenium-headless + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/horizon-selenium-headless/run.yaml b/playbooks/legacy/horizon-selenium-headless/run.yaml new file mode 100644 index 00000000..fa5c7592 --- /dev/null +++ b/playbooks/legacy/horizon-selenium-headless/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-horizon-selenium-headless from old job gate-horizon-selenium-headless-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + NOSE_WITH_XUNIT=1 tox -e selenium-headless + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/horizon-tox-py27dj110/post.yaml b/playbooks/legacy/horizon-tox-py27dj110/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/horizon-tox-py27dj110/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/horizon-tox-py27dj110/run.yaml b/playbooks/legacy/horizon-tox-py27dj110/run.yaml new file mode 100644 index 00000000..ad81424b --- /dev/null +++ b/playbooks/legacy/horizon-tox-py27dj110/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-horizon-tox-py27dj110 from old job gate-horizon-tox-py27dj110-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj110 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/horizon-tox-py27dj18/post.yaml b/playbooks/legacy/horizon-tox-py27dj18/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/horizon-tox-py27dj18/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/horizon-tox-py27dj18/run.yaml b/playbooks/legacy/horizon-tox-py27dj18/run.yaml new file mode 100644 index 00000000..696784fe --- /dev/null +++ b/playbooks/legacy/horizon-tox-py27dj18/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-horizon-tox-py27dj18 from old job gate-horizon-tox-py27dj18-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj18 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/horizon-tox-py27dj19/post.yaml b/playbooks/legacy/horizon-tox-py27dj19/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/horizon-tox-py27dj19/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/horizon-tox-py27dj19/run.yaml b/playbooks/legacy/horizon-tox-py27dj19/run.yaml new file mode 100644 index 00000000..58f8c40d --- /dev/null +++ b/playbooks/legacy/horizon-tox-py27dj19/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-horizon-tox-py27dj19 from old job gate-horizon-tox-py27dj19-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj19 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/i18n-tox-doc-docs/post.yaml b/playbooks/legacy/i18n-tox-doc-docs/post.yaml new file mode 100644 index 00000000..fe356df3 --- /dev/null +++ b/playbooks/legacy/i18n-tox-doc-docs/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/build-*.log.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/i18n-tox-doc-docs/run.yaml b/playbooks/legacy/i18n-tox-doc-docs/run.yaml new file mode 100644 index 00000000..47e352e7 --- /dev/null +++ b/playbooks/legacy/i18n-tox-doc-docs/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-i18n-tox-doc-docs from old job i18n-tox-doc-docs + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh docs + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/infra-ansible/post.yaml b/playbooks/legacy/infra-ansible/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/infra-ansible/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/infra-ansible/run.yaml b/playbooks/legacy/infra-ansible/run.yaml new file mode 100644 index 00000000..29d2a77d --- /dev/null +++ b/playbooks/legacy/infra-ansible/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-infra-ansible from old job gate-infra-ansible + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh ansible-syntax-check + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/infra-publications-publish-index/run.yaml b/playbooks/legacy/infra-publications-publish-index/run.yaml new file mode 100644 index 00000000..233a1a2f --- /dev/null +++ b/playbooks/legacy/infra-publications-publish-index/run.yaml @@ -0,0 +1,66 @@ +- hosts: all + name: Autoconverted job legacy-infra-publications-publish-index from old job infra-publications-publish-index + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + git reset --hard remotes/origin/master + if ! git clean -x -f -d -q ; then + sleep 1 + git clean -x -f -d -q + fi + ./make-index + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID Revision: $ZUUL_NEWREV" + echo $MARKER_TEXT > output//.root-marker + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/infra-publications-publish/run.yaml b/playbooks/legacy/infra-publications-publish/run.yaml new file mode 100644 index 00000000..73741ea6 --- /dev/null +++ b/playbooks/legacy/infra-publications-publish/run.yaml @@ -0,0 +1,69 @@ +- hosts: all + name: Autoconverted job legacy-infra-publications-publish from old job infra-publications-publish + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID Revision: $ZUUL_NEWREV" + echo $MARKER_TEXT > ./.root-marker + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + # NAME will either be the branch name or the tag name + NAME=`echo $ZUUL_REFNAME | sed 's/refs.tags.//'` + mkdir -p _out/$NAME + for FN in * ; do + if [ "_out" != "$FN" ] ; then + mv $FN _out/$NAME/ + fi + # Explicitly copy the root marker file + mv .root-marker _out/$NAME/ + done + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/infra-puppet-apply-3-centos-7/post.yaml b/playbooks/legacy/infra-puppet-apply-3-centos-7/post.yaml new file mode 100644 index 00000000..658c6f8c --- /dev/null +++ b/playbooks/legacy/infra-puppet-apply-3-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/openstack-infra/system-config/applytest/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/infra-puppet-apply-3-centos-7/run.yaml b/playbooks/legacy/infra-puppet-apply-3-centos-7/run.yaml new file mode 100644 index 00000000..5ddd1f64 --- /dev/null +++ b/playbooks/legacy/infra-puppet-apply-3-centos-7/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-infra-puppet-apply-3-centos-7 from old job gate-infra-puppet-apply-3-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org openstack-infra/system-config + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd openstack-infra/system-config + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + if [ "3" == "4" ]; then + # TODO: + echo "TODO: add logic to deploy puppet4" + fi + ./tools/apply-test.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/infra-puppet-apply-3-ubuntu-trusty/post.yaml b/playbooks/legacy/infra-puppet-apply-3-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..658c6f8c --- /dev/null +++ b/playbooks/legacy/infra-puppet-apply-3-ubuntu-trusty/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/openstack-infra/system-config/applytest/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/infra-puppet-apply-3-ubuntu-trusty/run.yaml b/playbooks/legacy/infra-puppet-apply-3-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..c874190e --- /dev/null +++ b/playbooks/legacy/infra-puppet-apply-3-ubuntu-trusty/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-infra-puppet-apply-3-ubuntu-trusty from old job gate-infra-puppet-apply-3-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -e + set -x + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org openstack-infra/system-config + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd openstack-infra/system-config + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + if [ "3" == "4" ]; then + # TODO: + echo "TODO: add logic to deploy puppet4" + fi + ./tools/apply-test.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/infra-puppet-apply-3/post.yaml b/playbooks/legacy/infra-puppet-apply-3/post.yaml new file mode 100644 index 00000000..658c6f8c --- /dev/null +++ b/playbooks/legacy/infra-puppet-apply-3/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/openstack-infra/system-config/applytest/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/infra-puppet-apply-3/run.yaml b/playbooks/legacy/infra-puppet-apply-3/run.yaml new file mode 100644 index 00000000..ff187bad --- /dev/null +++ b/playbooks/legacy/infra-puppet-apply-3/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-infra-puppet-apply-3 from old job gate-infra-puppet-apply-3-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org openstack-infra/system-config + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd openstack-infra/system-config + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + if [ "3" == "4" ]; then + # TODO: + echo "TODO: add logic to deploy puppet4" + fi + ./tools/apply-test.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/infra-puppet-apply-4-centos-7/post.yaml b/playbooks/legacy/infra-puppet-apply-4-centos-7/post.yaml new file mode 100644 index 00000000..658c6f8c --- /dev/null +++ b/playbooks/legacy/infra-puppet-apply-4-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/openstack-infra/system-config/applytest/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/infra-puppet-apply-4-centos-7/run.yaml b/playbooks/legacy/infra-puppet-apply-4-centos-7/run.yaml new file mode 100644 index 00000000..f76a7809 --- /dev/null +++ b/playbooks/legacy/infra-puppet-apply-4-centos-7/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-infra-puppet-apply-4-centos-7 from old job gate-infra-puppet-apply-4-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org openstack-infra/system-config + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd openstack-infra/system-config + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + if [ "4" == "4" ]; then + # TODO: + echo "TODO: add logic to deploy puppet4" + fi + ./tools/apply-test.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/instack-undercloud-puppet-lint/run.yaml b/playbooks/legacy/instack-undercloud-puppet-lint/run.yaml new file mode 100644 index 00000000..8acdf30f --- /dev/null +++ b/playbooks/legacy/instack-undercloud-puppet-lint/run.yaml @@ -0,0 +1,92 @@ +- hosts: all + name: Autoconverted job legacy-instack-undercloud-puppet-lint from old job gate-instack-undercloud-puppet-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -f Modulefile -o -f metadata.json ]; then + if [ -f Modulefile ]; then + MODULE=$(awk '/^name/ {print $NF}' Modulefile |tr -d \"\') + elif [ -f metadata.json ]; then + MODULE=$(python -c 'import json;print json.load(open("metadata.json"))["name"]') + fi + if [ -z "$MODULE" ]; then + echo "Module name not defined in Modulefile or metadata.json" + else + mkdir -p "$MODULE" + rsync -a --exclude="$MODULE" --exclude ".*" . "$MODULE" + cd "$MODULE" + fi + fi + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + if [ -f Gemfile ]; then + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --without system_tests + $GEM_HOME/bin/bundle exec rake lint 2>&1 + else + gem install rake -n ./.bundled_gems/ + gem install puppet-lint + gem install puppetlabs_spec_helper + ./.bundled_gems/rake lint 2>&1 + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/install-dsvm-default-kuryr-kubernetes/post.yaml b/playbooks/legacy/install-dsvm-default-kuryr-kubernetes/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/install-dsvm-default-kuryr-kubernetes/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/install-dsvm-default-kuryr-kubernetes/run.yaml b/playbooks/legacy/install-dsvm-default-kuryr-kubernetes/run.yaml new file mode 100644 index 00000000..a32052a2 --- /dev/null +++ b/playbooks/legacy/install-dsvm-default-kuryr-kubernetes/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-install-dsvm-default-kuryr-kubernetes from old job + gate-install-dsvm-default-kuryr-kubernetes + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + + export DEVSTACK_GATE_TEMPEST=0 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + export PROJECTS="openstack/kuryr-kubernetes $PROJECTS" + export PROJECTS="openstack/dragonflow $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/kuryr-kubernetes/devstack/gate_hook.sh default + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/install-dsvm-dragonflow-kuryr-kubernetes/post.yaml b/playbooks/legacy/install-dsvm-dragonflow-kuryr-kubernetes/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/install-dsvm-dragonflow-kuryr-kubernetes/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/install-dsvm-dragonflow-kuryr-kubernetes/run.yaml b/playbooks/legacy/install-dsvm-dragonflow-kuryr-kubernetes/run.yaml new file mode 100644 index 00000000..eb92d7c7 --- /dev/null +++ b/playbooks/legacy/install-dsvm-dragonflow-kuryr-kubernetes/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-install-dsvm-dragonflow-kuryr-kubernetes from old + job gate-install-dsvm-dragonflow-kuryr-kubernetes-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + + export DEVSTACK_GATE_TEMPEST=0 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + export PROJECTS="openstack/kuryr-kubernetes $PROJECTS" + export PROJECTS="openstack/dragonflow $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/kuryr-kubernetes/devstack/gate_hook.sh dragonflow + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/install-dsvm-kuryr-libnetwork-multinode/post.yaml b/playbooks/legacy/install-dsvm-kuryr-libnetwork-multinode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/install-dsvm-kuryr-libnetwork-multinode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/install-dsvm-kuryr-libnetwork-multinode/run.yaml b/playbooks/legacy/install-dsvm-kuryr-libnetwork-multinode/run.yaml new file mode 100644 index 00000000..3c96b72e --- /dev/null +++ b/playbooks/legacy/install-dsvm-kuryr-libnetwork-multinode/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-install-dsvm-kuryr-libnetwork-multinode from old + job gate-install-dsvm-kuryr-libnetwork-multinode-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin kuryr-libnetwork http://git.openstack.org/openstack/kuryr-libnetwork + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + + export DEVSTACK_GATE_TEMPEST=0 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [ "-multinode" == "-multinode" ]; then + export CAPABILITY_SCOPE="global" + fi + + export PROJECTS="openstack/kuryr-libnetwork $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + bash -xe $BASE/new/kuryr-libnetwork/kuryr_libnetwork/tests/contrib/gate_hook.sh + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/install-dsvm-kuryr-libnetwork/post.yaml b/playbooks/legacy/install-dsvm-kuryr-libnetwork/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/install-dsvm-kuryr-libnetwork/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/install-dsvm-kuryr-libnetwork/run.yaml b/playbooks/legacy/install-dsvm-kuryr-libnetwork/run.yaml new file mode 100644 index 00000000..2797782c --- /dev/null +++ b/playbooks/legacy/install-dsvm-kuryr-libnetwork/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-install-dsvm-kuryr-libnetwork from old job gate-install-dsvm-kuryr-libnetwork-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin kuryr-libnetwork http://git.openstack.org/openstack/kuryr-libnetwork + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + + export DEVSTACK_GATE_TEMPEST=0 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [ "" == "-multinode" ]; then + export CAPABILITY_SCOPE="global" + fi + + export PROJECTS="openstack/kuryr-libnetwork $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + bash -xe $BASE/new/kuryr-libnetwork/kuryr_libnetwork/tests/contrib/gate_hook.sh + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/install-dsvm-networking-ovn-kuryr/post.yaml b/playbooks/legacy/install-dsvm-networking-ovn-kuryr/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/install-dsvm-networking-ovn-kuryr/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/install-dsvm-networking-ovn-kuryr/run.yaml b/playbooks/legacy/install-dsvm-networking-ovn-kuryr/run.yaml new file mode 100644 index 00000000..ddad653e --- /dev/null +++ b/playbooks/legacy/install-dsvm-networking-ovn-kuryr/run.yaml @@ -0,0 +1,56 @@ +- hosts: all + name: Autoconverted job legacy-install-dsvm-networking-ovn-kuryr from old job gate-install-dsvm-networking-ovn-kuryr + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + + export DEVSTACK_GATE_TEMPEST=0 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/networking-ovn/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-ovn/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/networking-ovn/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-ovn/devstack/post_test_hook.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-ovn/devstack/devstackgatekuryrrc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/install-guide/post.yaml b/playbooks/legacy/install-guide/post.yaml new file mode 100644 index 00000000..c0bf42d0 --- /dev/null +++ b/playbooks/legacy/install-guide/post.yaml @@ -0,0 +1,10 @@ +- hosts: all + tasks: + + - name: Copy files from install-guide/build/html/ on node + synchronize: + src: install-guide/build/html/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true diff --git a/playbooks/legacy/install-guide/run.yaml b/playbooks/legacy/install-guide/run.yaml new file mode 100644 index 00000000..6e6a7b4b --- /dev/null +++ b/playbooks/legacy/install-guide/run.yaml @@ -0,0 +1,122 @@ +- hosts: all + name: Autoconverted job legacy-install-guide from old job gate-{name}-install-guide + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + VENV="install-guide" + GUIDEDIR="install-guide" + + #!/bin/bash -xe + + # This script is used to publish project-specific deploy-guide and + # install-guide documents to the proper place. Master will be + # published to a draft directory, stable/X will be published to the X + # directory. For example stable/newton documents will life in the + # newton directory. + + # You need to pass in the following variables: + # VENV - virtual env to use + # GUIDEDIR - directory for building + + if [ -z "$VENV" ] ; then + echo "The variable VENV is not set." + exit 1 + fi + if [ -z "$GUIDEDIR" ] ; then + echo "The variable GUIDEDIR is not set." + exit 1 + fi + + export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt + + tox -e $VENV + + [ -e .tox/$VENV/bin/pbr ] && freezecmd=pbr || freezecmd=pip + + echo "Begin pbr freeze output from test virtualenv:" + echo "======================================================================" + .tox/${VENV}/bin/${freezecmd} freeze + echo "======================================================================" + + MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID Revision: $ZUUL_NEWREV" + echo $MARKER_TEXT > $GUIDEDIR/build/html/.root-marker + + if [ -z "$ZUUL_REFNAME" ]; then + TARGET="" + # Leave documents where they are + elif [ "$ZUUL_REFNAME" == "master" ] ; then + TARGET=draft + elif echo $ZUUL_REFNAME | grep stable/ >/dev/null ; then + # Put stable release changes in dir named after stable release under the + # build dir. When Jenkins copies these files they will be accessible under + # the developer docs root using the name of the stable release. + TARGET=$(echo $ZUUL_REFNAME | sed 's/stable.//') + else + # Put other branch changes in dir named after branch under the + # build dir. When Jenkins copies these files they will be + # accessible under the developer docs root using the branch name. + # EG: feature/foo or milestone-proposed + TARGET=$ZUUL_REFNAME + fi + + if [ ! -z $TARGET ] ; then + # Move the docs into subdir based on branch + TOP=`dirname $TARGET` + mv $GUIDEDIR/build/html $GUIDEDIR/build/tmp + mkdir -p $GUIDEDIR/build/html/$TOP + mv $GUIDEDIR/build/tmp $GUIDEDIR/build/html/$TARGET + fi + + exit + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/interop-tox-doc8/post.yaml b/playbooks/legacy/interop-tox-doc8/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/interop-tox-doc8/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/interop-tox-doc8/run.yaml b/playbooks/legacy/interop-tox-doc8/run.yaml new file mode 100644 index 00000000..6d3a316b --- /dev/null +++ b/playbooks/legacy/interop-tox-doc8/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-interop-tox-doc8 from old job gate-interop-tox-doc8-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh doc8 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/interop-tox-jsonlint/post.yaml b/playbooks/legacy/interop-tox-jsonlint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/interop-tox-jsonlint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/interop-tox-jsonlint/run.yaml b/playbooks/legacy/interop-tox-jsonlint/run.yaml new file mode 100644 index 00000000..d5eee86d --- /dev/null +++ b/playbooks/legacy/interop-tox-jsonlint/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-interop-tox-jsonlint from old job gate-interop-tox-jsonlint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh jsonlint + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/interop-tox-jsonschema/post.yaml b/playbooks/legacy/interop-tox-jsonschema/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/interop-tox-jsonschema/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/interop-tox-jsonschema/run.yaml b/playbooks/legacy/interop-tox-jsonschema/run.yaml new file mode 100644 index 00000000..91743bf7 --- /dev/null +++ b/playbooks/legacy/interop-tox-jsonschema/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-interop-tox-jsonschema from old job gate-interop-tox-jsonschema-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh jsonschema + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/irc-meetings-tox-ical/post.yaml b/playbooks/legacy/irc-meetings-tox-ical/post.yaml new file mode 100644 index 00000000..6299209b --- /dev/null +++ b/playbooks/legacy/irc-meetings-tox-ical/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/output/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/irc-meetings-tox-ical/run.yaml b/playbooks/legacy/irc-meetings-tox-ical/run.yaml new file mode 100644 index 00000000..c631eccd --- /dev/null +++ b/playbooks/legacy/irc-meetings-tox-ical/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-irc-meetings-tox-ical from old job gate-irc-meetings-tox-ical + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh ical + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ironic-dsvm-functional/post.yaml b/playbooks/legacy/ironic-dsvm-functional/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ironic-dsvm-functional/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ironic-dsvm-functional/run.yaml b/playbooks/legacy/ironic-dsvm-functional/run.yaml new file mode 100644 index 00000000..a6f722a3 --- /dev/null +++ b/playbooks/legacy/ironic-dsvm-functional/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-ironic-dsvm-functional from old job gate-ironic-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin ironic git://git.openstack.org/openstack/ironic + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export TEMPEST_CONCURRENCY=2 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX='ironic' + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + + # No post_test_hook is needed while tests live in tempest + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ironic-dsvm-standalone/post.yaml b/playbooks/legacy/ironic-dsvm-standalone/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ironic-dsvm-standalone/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ironic-dsvm-standalone/run.yaml b/playbooks/legacy/ironic-dsvm-standalone/run.yaml new file mode 100644 index 00000000..3733e286 --- /dev/null +++ b/playbooks/legacy/ironic-dsvm-standalone/run.yaml @@ -0,0 +1,89 @@ +- hosts: all + name: Autoconverted job legacy-ironic-dsvm-standalone from old job gate-ironic-dsvm-standalone-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=4 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic_standalone" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export OVERRIDE_ENABLED_SERVICES="g-api,g-reg,q-agt,q-dhcp,q-l3,q-svc,key,mysql,rabbit,ir-api,ir-cond,s-account,s-container,s-object,s-proxy,tempest" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export DEVSTACK_LOCAL_CONFIG="enable_plugin ironic git://git.openstack.org/openstack/ironic" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=6" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER=agent_ipmitool" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"SWIFT_ENABLE_TEMPURLS=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"SWIFT_TEMPURL_KEY=secretkey" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,agent_ipmitool,pxe_ipmitool" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_AUTOMATED_CLEAN_ENABLED=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_USE_MOD_WSGI=True" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ironic-inspector-tox-func/post.yaml b/playbooks/legacy/ironic-inspector-tox-func/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/ironic-inspector-tox-func/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ironic-inspector-tox-func/run.yaml b/playbooks/legacy/ironic-inspector-tox-func/run.yaml new file mode 100644 index 00000000..a560658a --- /dev/null +++ b/playbooks/legacy/ironic-inspector-tox-func/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-ironic-inspector-tox-func from old job gate-ironic-inspector-tox-func-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh func + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ironic-inspector-tox-func3/post.yaml b/playbooks/legacy/ironic-inspector-tox-func3/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/ironic-inspector-tox-func3/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ironic-inspector-tox-func3/run.yaml b/playbooks/legacy/ironic-inspector-tox-func3/run.yaml new file mode 100644 index 00000000..b3180a4a --- /dev/null +++ b/playbooks/legacy/ironic-inspector-tox-func3/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-ironic-inspector-tox-func3 from old job gate-ironic-inspector-tox-func3-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh func3 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ironic-python-agent-buildimage-coreos/post.yaml b/playbooks/legacy/ironic-python-agent-buildimage-coreos/post.yaml new file mode 100644 index 00000000..8b4bbd12 --- /dev/null +++ b/playbooks/legacy/ironic-python-agent-buildimage-coreos/post.yaml @@ -0,0 +1,47 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/coreos/files/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/UPLOAD_RAW/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/coreos/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/UPLOAD_TAR/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ironic-python-agent-buildimage-coreos/run.yaml b/playbooks/legacy/ironic-python-agent-buildimage-coreos/run.yaml new file mode 100644 index 00000000..a44f0958 --- /dev/null +++ b/playbooks/legacy/ironic-python-agent-buildimage-coreos/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-ironic-python-agent-buildimage-coreos from old job + ironic-python-agent-buildimage-coreos-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + BRANCH=$ZUUL_REFNAME + export BRANCH_PATH=`echo $BRANCH | tr / -` + + mkdir UPLOAD_RAW + mkdir UPLOAD_TAR + + JOBNAME=ironic-python-agent-buildimage-{image-type}-{node} + TRANS_START_TIME=$(date +%s) + SUBUNIT_OUTPUT=testrepository.subunit + ERRORS=1 + VENV=$(mktemp -d) + virtualenv $VENV + $VENV/bin/pip install -U os-testr + + trap "finish" EXIT + + function finish { + if [[ "$ERRORS" -eq 1 ]]; then + $VENV/bin/generate-subunit $TRANS_START_TIME $SECONDS 'fail' $JOBNAME >> $SUBUNIT_OUTPUT + else + $VENV/bin/generate-subunit $TRANS_START_TIME $SECONDS 'success' $JOBNAME >> $SUBUNIT_OUTPUT + fi + gzip -9 $SUBUNIT_OUTPUT + if [ "$VENV" != "" ] ; then + rm -rf $VENV + VENV="" + fi + } + + type="coreos" + case $type in + tinyipa) + export BUILD_AND_INSTALL_TINYIPA=true + (cd imagebuild/tinyipa && make) + mv imagebuild/tinyipa/tinyipa*.tar.gz* UPLOAD_TAR + mv imagebuild/tinyipa/tinyipa*.* UPLOAD_RAW + # NOTE(sambetts) Must clean up chroot directories before + # publisher rsync command tries and fails to read them + (cd imagebuild/tinyipa && make clean) + ;; + coreos) + imagebuild/coreos/full_trusty_build.sh + mv imagebuild/coreos/UPLOAD/coreos_production_pxe* UPLOAD_RAW + mv ipa-coreos*.tar.gz* UPLOAD_TAR + ;; + esac + ERRORS=0 + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ironic-python-agent-buildimage-tinyipa/post.yaml b/playbooks/legacy/ironic-python-agent-buildimage-tinyipa/post.yaml new file mode 100644 index 00000000..20cb1b70 --- /dev/null +++ b/playbooks/legacy/ironic-python-agent-buildimage-tinyipa/post.yaml @@ -0,0 +1,47 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/tinyipa/files/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/UPLOAD_RAW/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/tinyipa/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/UPLOAD_TAR/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ironic-python-agent-buildimage-tinyipa/run.yaml b/playbooks/legacy/ironic-python-agent-buildimage-tinyipa/run.yaml new file mode 100644 index 00000000..9a13fbea --- /dev/null +++ b/playbooks/legacy/ironic-python-agent-buildimage-tinyipa/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-ironic-python-agent-buildimage-tinyipa from old job + ironic-python-agent-buildimage-tinyipa-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + BRANCH=$ZUUL_REFNAME + export BRANCH_PATH=`echo $BRANCH | tr / -` + + mkdir UPLOAD_RAW + mkdir UPLOAD_TAR + + JOBNAME=ironic-python-agent-buildimage-{image-type}-{node} + TRANS_START_TIME=$(date +%s) + SUBUNIT_OUTPUT=testrepository.subunit + ERRORS=1 + VENV=$(mktemp -d) + virtualenv $VENV + $VENV/bin/pip install -U os-testr + + trap "finish" EXIT + + function finish { + if [[ "$ERRORS" -eq 1 ]]; then + $VENV/bin/generate-subunit $TRANS_START_TIME $SECONDS 'fail' $JOBNAME >> $SUBUNIT_OUTPUT + else + $VENV/bin/generate-subunit $TRANS_START_TIME $SECONDS 'success' $JOBNAME >> $SUBUNIT_OUTPUT + fi + gzip -9 $SUBUNIT_OUTPUT + if [ "$VENV" != "" ] ; then + rm -rf $VENV + VENV="" + fi + } + + type="tinyipa" + case $type in + tinyipa) + export BUILD_AND_INSTALL_TINYIPA=true + (cd imagebuild/tinyipa && make) + mv imagebuild/tinyipa/tinyipa*.tar.gz* UPLOAD_TAR + mv imagebuild/tinyipa/tinyipa*.* UPLOAD_RAW + # NOTE(sambetts) Must clean up chroot directories before + # publisher rsync command tries and fails to read them + (cd imagebuild/tinyipa && make clean) + ;; + coreos) + imagebuild/coreos/full_trusty_build.sh + mv imagebuild/coreos/UPLOAD/coreos_production_pxe* UPLOAD_RAW + mv ipa-coreos*.tar.gz* UPLOAD_TAR + ;; + esac + ERRORS=0 + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ironic-python-agent-tox-func/post.yaml b/playbooks/legacy/ironic-python-agent-tox-func/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/ironic-python-agent-tox-func/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ironic-python-agent-tox-func/run.yaml b/playbooks/legacy/ironic-python-agent-tox-func/run.yaml new file mode 100644 index 00000000..cef5fe9b --- /dev/null +++ b/playbooks/legacy/ironic-python-agent-tox-func/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-ironic-python-agent-tox-func from old job gate-ironic-python-agent-tox-func-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh func + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ironic-staging-drivers-dsvm/post.yaml b/playbooks/legacy/ironic-staging-drivers-dsvm/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ironic-staging-drivers-dsvm/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ironic-staging-drivers-dsvm/run.yaml b/playbooks/legacy/ironic-staging-drivers-dsvm/run.yaml new file mode 100644 index 00000000..4ab8cb7d --- /dev/null +++ b/playbooks/legacy/ironic-staging-drivers-dsvm/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-ironic-staging-drivers-dsvm from old job gate-ironic-staging-drivers-dsvm-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin ironic git://git.openstack.org/openstack/ironic + enable_plugin ironic-staging-drivers git://git.openstack.org/openstack/ironic-staging-drivers + IRONIC_BUILD_DEPLOY_RAMDISK=False + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export BRANCH_OVERRIDE=default + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-staging-drivers $PROJECTS" + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + # No post_test_hook is needed while tests live in tempest + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ironicclient-dsvm-functional/post.yaml b/playbooks/legacy/ironicclient-dsvm-functional/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ironicclient-dsvm-functional/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ironicclient-dsvm-functional/run.yaml b/playbooks/legacy/ironicclient-dsvm-functional/run.yaml new file mode 100644 index 00000000..58eb8a91 --- /dev/null +++ b/playbooks/legacy/ironicclient-dsvm-functional/run.yaml @@ -0,0 +1,60 @@ +- hosts: all + name: Autoconverted job legacy-ironicclient-dsvm-functional from old job gate-ironicclient-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin ironic git://git.openstack.org/openstack/ironic + IRONIC_DEPLOY_DRIVER=fake + # neutron is not enabled here + IRONIC_ENABLED_NETWORK_INTERFACES=noop + IRONIC_DHCP_PROVIDER=none + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_PROJECT_FROM_GIT=python-ironicclient + export OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,ir-api,ir-cond + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/ironic $PROJECTS" + + function post_test_hook { + # Configure and run functional tests + $BASE/new/python-ironicclient/ironicclient/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/its-storyboard-gerrit-plugin-stable-2.13/post.yaml b/playbooks/legacy/its-storyboard-gerrit-plugin-stable-2.13/post.yaml new file mode 100644 index 00000000..8a94ce6a --- /dev/null +++ b/playbooks/legacy/its-storyboard-gerrit-plugin-stable-2.13/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/plugins/its-storyboard' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/gerrit/buck-out/gen/plugins/its-storyboard/its-storyboard-*.jar + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/its-storyboard-gerrit-plugin-stable-2.13/run.yaml b/playbooks/legacy/its-storyboard-gerrit-plugin-stable-2.13/run.yaml new file mode 100644 index 00000000..ec71604d --- /dev/null +++ b/playbooks/legacy/its-storyboard-gerrit-plugin-stable-2.13/run.yaml @@ -0,0 +1,67 @@ +- hosts: all + name: Autoconverted job legacy-its-storyboard-gerrit-plugin-stable-2.13 from old + job its-storyboard-gerrit-plugin-stable-2.13 + tasks: + + - shell: + cmd: | + set -e + set -x + sudo bash -c "echo 'ant' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + sudo bash -c "echo 'ant-optional' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + sudo bash -c "echo 'default-jdk' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + sudo bash -c "echo 'asciidoc' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + sudo bash -c "echo 'nodejs' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [[ ! -d "buck" ]] + then + git clone https://gerrit.googlesource.com/buck + cd buck + ant + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PATH=`pwd`/buck/bin:$PATH + rm -rf gerrit + git clone -b openstack/2.13 https://git.openstack.org/openstack-infra/gerrit + PLUGIN_PARENT_PROJECT=https://gerrit.googlesource.com/plugins/its-base + if [ -n "$PLUGIN_PARENT_PROJECT" ]; then + git clone -b stable-2.13 https://gerrit.googlesource.com/plugins/its-base gerrit/plugins/its-base + fi + git clone -b stable-2.13 https://gerrit.googlesource.com/plugins/its-storyboard gerrit/plugins/its-storyboard + cd gerrit/plugins/its-storyboard + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + cd $WORKSPACE/gerrit + buck clean + if [ -n "$PLUGIN_PARENT_PROJECT" ]; then + buck build plugins/its-base:its-base + fi + buck build plugins/its-storyboard:its-storyboard + cp ./buck-out/gen/plugins/its-storyboard/its-storyboard.jar ./buck-out/gen/plugins/its-storyboard/its-storyboard-$PROJECT_VER.jar + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/javamelody-gerrit-plugin-stable-2.13/post.yaml b/playbooks/legacy/javamelody-gerrit-plugin-stable-2.13/post.yaml new file mode 100644 index 00000000..b354ac80 --- /dev/null +++ b/playbooks/legacy/javamelody-gerrit-plugin-stable-2.13/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/plugins/javamelody' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/gerrit/buck-out/gen/plugins/javamelody/javamelody-*.jar + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/javamelody-gerrit-plugin-stable-2.13/run.yaml b/playbooks/legacy/javamelody-gerrit-plugin-stable-2.13/run.yaml new file mode 100644 index 00000000..3ff4dabc --- /dev/null +++ b/playbooks/legacy/javamelody-gerrit-plugin-stable-2.13/run.yaml @@ -0,0 +1,67 @@ +- hosts: all + name: Autoconverted job legacy-javamelody-gerrit-plugin-stable-2.13 from old job + javamelody-gerrit-plugin-stable-2.13 + tasks: + + - shell: + cmd: | + set -e + set -x + sudo bash -c "echo 'ant' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + sudo bash -c "echo 'ant-optional' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + sudo bash -c "echo 'default-jdk' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + sudo bash -c "echo 'asciidoc' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + sudo bash -c "echo 'nodejs' >> /usr/local/jenkins/common_data/bindep-fallback.txt" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [[ ! -d "buck" ]] + then + git clone https://gerrit.googlesource.com/buck + cd buck + ant + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PATH=`pwd`/buck/bin:$PATH + rm -rf gerrit + git clone -b openstack/2.13 https://git.openstack.org/openstack-infra/gerrit + PLUGIN_PARENT_PROJECT= + if [ -n "$PLUGIN_PARENT_PROJECT" ]; then + git clone -b gerrit/plugins/ + fi + git clone -b stable-2.13 https://gerrit.googlesource.com/plugins/javamelody gerrit/plugins/javamelody + cd gerrit/plugins/javamelody + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + cd $WORKSPACE/gerrit + buck clean + if [ -n "$PLUGIN_PARENT_PROJECT" ]; then + buck build plugins/: + fi + buck build plugins/javamelody:javamelody + cp ./buck-out/gen/plugins/javamelody/javamelody.jar ./buck-out/gen/plugins/javamelody/javamelody-$PROJECT_VER.jar + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/js-generator-openstack-nodejs6-npm-docs/run.yaml b/playbooks/legacy/js-generator-openstack-nodejs6-npm-docs/run.yaml new file mode 100644 index 00000000..8d8e59d4 --- /dev/null +++ b/playbooks/legacy/js-generator-openstack-nodejs6-npm-docs/run.yaml @@ -0,0 +1,119 @@ +- hosts: all + name: Autoconverted job legacy-js-generator-openstack-nodejs6-npm-docs from old + job js-generator-openstack-nodejs6-npm-docs + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_6.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_6.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )docs($| ) ]]; then + npm docs --verbose + else + npm run docs --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID Revision: $ZUUL_NEWREV" + echo $MARKER_TEXT > doc/build/html/.root-marker + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/js-openstack-lib-dsvm-nodejs4-npm-run-functional-test/post.yaml b/playbooks/legacy/js-openstack-lib-dsvm-nodejs4-npm-run-functional-test/post.yaml new file mode 100644 index 00000000..c7123720 --- /dev/null +++ b/playbooks/legacy/js-openstack-lib-dsvm-nodejs4-npm-run-functional-test/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/js-openstack-lib-dsvm-nodejs4-npm-run-functional-test/run.yaml b/playbooks/legacy/js-openstack-lib-dsvm-nodejs4-npm-run-functional-test/run.yaml new file mode 100644 index 00000000..6b30df34 --- /dev/null +++ b/playbooks/legacy/js-openstack-lib-dsvm-nodejs4-npm-run-functional-test/run.yaml @@ -0,0 +1,160 @@ +- hosts: all + name: Autoconverted job legacy-js-openstack-lib-dsvm-nodejs4-npm-run-functional-test + from old job js-openstack-lib-dsvm-nodejs4-npm-run-functional-test + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_GATE_NEUTRON=1 + + # Xvfb Buffer... + export DISPLAY=:99 + npm install + npm_lifecycle_phases="publish install version test stop start restart pack" + + # Run any custom devstack configuration required by the project + function pre_test_hook { + # Try running as a standard lifecycle script, otherwise try custom. + if [[ $npm_lifecycle_phases =~ (^| )configure-devstack($| ) ]]; then + npm configure-devstack --silent + else + npm run configure-devstack --silent + fi + } + export -f pre_test_hook + + function post_test_hook { + # If you need access to devstack clouds.yaml file, it is available + # at its canonical location at /etc/openstack/clouds.yaml + + # Try running as a standard lifecycle script, otherwise try custom. + if [[ $npm_lifecycle_phases =~ (^| )functional-test($| ) ]]; then + npm functional-test --silent + else + npm run functional-test --silent + fi + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/js-openstack-lib-dsvm-nodejs6-npm-run-functional-test/post.yaml b/playbooks/legacy/js-openstack-lib-dsvm-nodejs6-npm-run-functional-test/post.yaml new file mode 100644 index 00000000..c7123720 --- /dev/null +++ b/playbooks/legacy/js-openstack-lib-dsvm-nodejs6-npm-run-functional-test/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/js-openstack-lib-dsvm-nodejs6-npm-run-functional-test/run.yaml b/playbooks/legacy/js-openstack-lib-dsvm-nodejs6-npm-run-functional-test/run.yaml new file mode 100644 index 00000000..2da77cb8 --- /dev/null +++ b/playbooks/legacy/js-openstack-lib-dsvm-nodejs6-npm-run-functional-test/run.yaml @@ -0,0 +1,160 @@ +- hosts: all + name: Autoconverted job legacy-js-openstack-lib-dsvm-nodejs6-npm-run-functional-test + from old job js-openstack-lib-dsvm-nodejs6-npm-run-functional-test + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_6.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_6.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_GATE_NEUTRON=1 + + # Xvfb Buffer... + export DISPLAY=:99 + npm install + npm_lifecycle_phases="publish install version test stop start restart pack" + + # Run any custom devstack configuration required by the project + function pre_test_hook { + # Try running as a standard lifecycle script, otherwise try custom. + if [[ $npm_lifecycle_phases =~ (^| )configure-devstack($| ) ]]; then + npm configure-devstack --silent + else + npm run configure-devstack --silent + fi + } + export -f pre_test_hook + + function post_test_hook { + # If you need access to devstack clouds.yaml file, it is available + # at its canonical location at /etc/openstack/clouds.yaml + + # Try running as a standard lifecycle script, otherwise try custom. + if [[ $npm_lifecycle_phases =~ (^| )functional-test($| ) ]]; then + npm functional-test --silent + else + npm run functional-test --silent + fi + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/js-openstack-lib-nodejs6-npm-sdk-docs/run.yaml b/playbooks/legacy/js-openstack-lib-nodejs6-npm-sdk-docs/run.yaml new file mode 100644 index 00000000..651d6b66 --- /dev/null +++ b/playbooks/legacy/js-openstack-lib-nodejs6-npm-sdk-docs/run.yaml @@ -0,0 +1,119 @@ +- hosts: all + name: Autoconverted job legacy-js-openstack-lib-nodejs6-npm-sdk-docs from old job + js-openstack-lib-nodejs6-npm-sdk-docs + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_6.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_6.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )docs($| ) ]]; then + npm docs --verbose + else + npm run docs --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID Revision: $ZUUL_NEWREV" + echo $MARKER_TEXT > doc/build/html/.root-marker + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/k8s-cloud-provider-golang-dsvm-external/post.yaml b/playbooks/legacy/k8s-cloud-provider-golang-dsvm-external/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/k8s-cloud-provider-golang-dsvm-external/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/k8s-cloud-provider-golang-dsvm-external/run.yaml b/playbooks/legacy/k8s-cloud-provider-golang-dsvm-external/run.yaml new file mode 100644 index 00000000..7af8b78a --- /dev/null +++ b/playbooks/legacy/k8s-cloud-provider-golang-dsvm-external/run.yaml @@ -0,0 +1,88 @@ +- hosts: all + name: Autoconverted job legacy-k8s-cloud-provider-golang-dsvm-external from old + job gate-k8s-cloud-provider-golang-dsvm-external-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin $ZUUL_SHORT_PROJECT_NAME git://git.openstack.org/openstack/$ZUUL_SHORT_PROJECT_NAME + # Run a minimum set of services + disable_service horizon + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + disable_service ceilometer-acentral + disable_service ceilometer-acompute + disable_service ceilometer-alarm-evaluator + disable_service ceilometer-alarm-notifier + disable_service ceilometer-anotification + disable_service ceilometer-api + disable_service ceilometer-collector + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + # Disable tempest and exercises + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + + export PROJECTS="openstack/$ZUUL_SHORT_PROJECT_NAME $PROJECTS" + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [[ -f "$BASE/new/$ZUUL_SHORT_PROJECT_NAME/contrib/pre_test_hook.sh" ]]; then + source $BASE/new/$ZUUL_SHORT_PROJECT_NAME/contrib/pre_test_hook.sh external + fi + } + export -f pre_test_hook + + function gate_hook { + if [[ -f "$BASE/new/$ZUUL_SHORT_PROJECT_NAME/contrib/gate_hook.sh" ]]; then + source $BASE/new/$ZUUL_SHORT_PROJECT_NAME/contrib/gate_hook.sh external + else + $BASE/new/devstack-gate/devstack-vm-gate.sh + fi + } + export -f gate_hook + + function post_test_hook { + if [[ -f "$BASE/new/$ZUUL_SHORT_PROJECT_NAME/contrib/post_test_hook.sh" ]]; then + source $BASE/new/$ZUUL_SHORT_PROJECT_NAME/contrib/post_test_hook.sh external + fi + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/k8s-cloud-provider-golang-dsvm-local/post.yaml b/playbooks/legacy/k8s-cloud-provider-golang-dsvm-local/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/k8s-cloud-provider-golang-dsvm-local/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/k8s-cloud-provider-golang-dsvm-local/run.yaml b/playbooks/legacy/k8s-cloud-provider-golang-dsvm-local/run.yaml new file mode 100644 index 00000000..84babe66 --- /dev/null +++ b/playbooks/legacy/k8s-cloud-provider-golang-dsvm-local/run.yaml @@ -0,0 +1,88 @@ +- hosts: all + name: Autoconverted job legacy-k8s-cloud-provider-golang-dsvm-local from old job + gate-k8s-cloud-provider-golang-dsvm-local-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin $ZUUL_SHORT_PROJECT_NAME git://git.openstack.org/openstack/$ZUUL_SHORT_PROJECT_NAME + # Run a minimum set of services + disable_service horizon + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + disable_service ceilometer-acentral + disable_service ceilometer-acompute + disable_service ceilometer-alarm-evaluator + disable_service ceilometer-alarm-notifier + disable_service ceilometer-anotification + disable_service ceilometer-api + disable_service ceilometer-collector + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + # Disable tempest and exercises + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + + export PROJECTS="openstack/$ZUUL_SHORT_PROJECT_NAME $PROJECTS" + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [[ -f "$BASE/new/$ZUUL_SHORT_PROJECT_NAME/contrib/pre_test_hook.sh" ]]; then + source $BASE/new/$ZUUL_SHORT_PROJECT_NAME/contrib/pre_test_hook.sh local + fi + } + export -f pre_test_hook + + function gate_hook { + if [[ -f "$BASE/new/$ZUUL_SHORT_PROJECT_NAME/contrib/gate_hook.sh" ]]; then + source $BASE/new/$ZUUL_SHORT_PROJECT_NAME/contrib/gate_hook.sh local + else + $BASE/new/devstack-gate/devstack-vm-gate.sh + fi + } + export -f gate_hook + + function post_test_hook { + if [[ -f "$BASE/new/$ZUUL_SHORT_PROJECT_NAME/contrib/post_test_hook.sh" ]]; then + source $BASE/new/$ZUUL_SHORT_PROJECT_NAME/contrib/post_test_hook.sh local + fi + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/k8s-docker-suite-app-murano-releasenotes/post.yaml b/playbooks/legacy/k8s-docker-suite-app-murano-releasenotes/post.yaml new file mode 100644 index 00000000..c86f36f5 --- /dev/null +++ b/playbooks/legacy/k8s-docker-suite-app-murano-releasenotes/post.yaml @@ -0,0 +1,10 @@ +- hosts: all + tasks: + + - name: Copy files from releasenotes/build/html/ on node + synchronize: + src: releasenotes/build/html/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true diff --git a/playbooks/legacy/k8s-docker-suite-app-murano-releasenotes/run.yaml b/playbooks/legacy/k8s-docker-suite-app-murano-releasenotes/run.yaml new file mode 100644 index 00000000..fe0317b9 --- /dev/null +++ b/playbooks/legacy/k8s-docker-suite-app-murano-releasenotes/run.yaml @@ -0,0 +1,193 @@ +- hosts: all + name: Autoconverted job legacy-k8s-docker-suite-app-murano-releasenotes from old + job gate-k8s-docker-suite-app-murano-releasenotes + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + # + # Licensed under the Apache License, Version 2.0 (the "License"); you may + # not use this file except in compliance with the License. You may obtain + # a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + # License for the specific language governing permissions and limitations + # under the License. + + DOCNAME=releasenotes + DIRECTORY=releasenotes + + script_path=/usr/local/jenkins/slave_scripts + + # Mapping of language codes to language names + declare -A LANG_NAME=( + ["de"]="German" + ["en_AU"]="English (Australian)" + ["en_GB"]="English (United Kingdom)" + ["es"]="Spanish" + ["fr"]="French" + ["id"]="Indonesian" + ["it"]="Italian" + ["ja"]="Japanese" + ["ko_KR"]="Korean (South Korea)" + ["pt_BR"]="Portuguese (Brazil)" + ["ru"]="Russian" + ["tr_TR"]="Turkish (Turkey)" + ["zh_CN"]="Chinese (China)" + ) + + # This file always exists in OpenStack CI jobs, check for it so that + # it can be used manually as well. + if [ -e "$(pwd)/upper-constraints.txt" ]; then + export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt + fi + + if [ ! -e ${DIRECTORY}/source/locale/ ]; then + echo "No translations found, only building normal release notes" + $script_path/run-tox.sh releasenotes + exit 0 + fi + + # Check that locale_dirs is really set, otherwise translations + # will not work. + if ! grep -q -E '^locale_dirs *=' $DIRECTORY/source/conf.py; then + echo "Translations exist and locale_dirs missing in source/conf.py" + exit 1 + fi + + + REFERENCES=`mktemp` + trap "rm -f -- '$REFERENCES'" EXIT + + # Extract translations + tox -e venv -- sphinx-build -b gettext \ + -d ${DIRECTORY}/build/doctrees.gettext \ + ${DIRECTORY}/source/ \ + ${DIRECTORY}/source/locale/ + + # Add links for translations to index file + cat <> ${REFERENCES} + + Translated Release Notes + ======================== + + EOF + + # Check all language translation resources + for locale in `find ${DIRECTORY}/source/locale/ -maxdepth 1 -type d` ; do + # Skip if it is not a valid language translation resource. + if [ ! -e ${locale}/LC_MESSAGES/${DOCNAME}.po ]; then + continue + fi + language=$(basename $locale) + + echo "Building $language translation" + + # Prepare all translation resources + for pot in ${DIRECTORY}/source/locale/*.pot ; do + # Get filename + resname=$(basename ${pot} .pot) + + # Merge all translation resources. Note this is done the same + # way as done in common_translation_update.sh where we merge + # all strings together in a single file. + msgmerge --silent -o \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.po \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po \ + ${pot} + # Compile all translation resources + msgfmt -o \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.mo \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.po + done + + # Build translated document + tox -e venv -- sphinx-build -b html -D language=${language} \ + -d "${DIRECTORY}/build/doctrees.${language}" \ + ${DIRECTORY}/source/ ${DIRECTORY}/build/html/${language} + + # Reference translated document from index file + if [ ${LANG_NAME["${language}"]+_} ] ; then + name=${LANG_NAME["${language}"]} + name+=" (${language})" + echo "* \`$name <${language}/index.html>\`__" >> ${REFERENCES} + else + echo "* \`${language} <${language}/index.html>\`__" >> ${REFERENCES} + fi + + # Remove newly created files + git clean -f -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/*.po + git clean -f -x -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/*.mo + # revert changes to po file + git reset -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po + git checkout -- ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po + done + + # Now append our references to the index file. We cannot do this + # earlier since the sphinx commands will read this file. + cat ${REFERENCES} >> ${DIRECTORY}/source/index.rst + + # Remove newly created pot files + rm -f ${DIRECTORY}/source/locale/*.pot + + # Now build releasenotes with reference to translations + $script_path/run-tox.sh releasenotes + + # Revert any changes to the index file. + git checkout -- ${DIRECTORY}/source/index.rst + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/karbor-dsvm-fullstack/post.yaml b/playbooks/legacy/karbor-dsvm-fullstack/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/karbor-dsvm-fullstack/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/karbor-dsvm-fullstack/run.yaml b/playbooks/legacy/karbor-dsvm-fullstack/run.yaml new file mode 100644 index 00000000..e71d0ac5 --- /dev/null +++ b/playbooks/legacy/karbor-dsvm-fullstack/run.yaml @@ -0,0 +1,79 @@ +- hosts: all + name: Autoconverted job legacy-karbor-dsvm-fullstack from old job gate-karbor-dsvm-fullstack-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[post-config|$SWIFT_CONFIG_PROXY_SERVER]] + [DEFAULT] + workers=4 + + [[post-config|$CINDER_CONF]] + [DEFAULT] + osapi_volume_workers=8 + rpc_response_timeout=120 + + [[post-config|$KARBOR_API_CONF]] + [DEFAULT] + max_window_time=150 + min_window_time=75 + min_interval=300 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/karbor $PROJECTS" + export PROJECTS="openstack/trove $PROJECTS" + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT="python-karborclient" + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/karbor/devstack/devstackgaterc + + function gate_hook { + bash -xe $BASE/new/karbor/karbor/tests/contrib/gate_hook.sh fullstack + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/karbor/karbor/tests/contrib/post_test_hook.sh fullstack + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/keystone-dsvm-functional-v3-only/post.yaml b/playbooks/legacy/keystone-dsvm-functional-v3-only/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/keystone-dsvm-functional-v3-only/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/keystone-dsvm-functional-v3-only/run.yaml b/playbooks/legacy/keystone-dsvm-functional-v3-only/run.yaml new file mode 100644 index 00000000..fbf210da --- /dev/null +++ b/playbooks/legacy/keystone-dsvm-functional-v3-only/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-keystone-dsvm-functional-v3-only from old job gate-keystone-dsvm-functional-v3-only-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + TEMPEST_PLUGINS='/opt/stack/new/keystone-tempest-plugin' + ENABLE_IDENTITY_V2=False + enable_plugin keystone git://git.openstack.org/openstack/keystone + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export PROJECTS="openstack/keystone-tempest-plugin $PROJECTS" + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export DEVSTACK_GATE_TEMPEST_REGEX='keystone_tempest_plugin' + export ENABLED_SERVICES=keystone-saml2-federation + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/keystone-dsvm-functional/post.yaml b/playbooks/legacy/keystone-dsvm-functional/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/keystone-dsvm-functional/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/keystone-dsvm-functional/run.yaml b/playbooks/legacy/keystone-dsvm-functional/run.yaml new file mode 100644 index 00000000..bbfc2fc3 --- /dev/null +++ b/playbooks/legacy/keystone-dsvm-functional/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-keystone-dsvm-functional from old job gate-keystone-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + TEMPEST_PLUGINS='/opt/stack/new/keystone-tempest-plugin' + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export PROJECTS="openstack/keystone-tempest-plugin $PROJECTS" + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export DEVSTACK_GATE_TEMPEST_REGEX='keystone_tempest_plugin' + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/keystone-dsvm-grenade-multinode/post.yaml b/playbooks/legacy/keystone-dsvm-grenade-multinode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/keystone-dsvm-grenade-multinode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/keystone-dsvm-grenade-multinode/run.yaml b/playbooks/legacy/keystone-dsvm-grenade-multinode/run.yaml new file mode 100644 index 00000000..d3bc1e04 --- /dev/null +++ b/playbooks/legacy/keystone-dsvm-grenade-multinode/run.yaml @@ -0,0 +1,40 @@ +- hosts: all + name: Autoconverted job legacy-keystone-dsvm-grenade-multinode from old job gate-keystone-dsvm-grenade-multinode-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_GRENADE=pullup + export PROJECTS="openstack-dev/grenade $PROJECTS" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + export MULTI_KEYSTONE=1 + export DEVSTACK_LOCAL_CONFIG="enable_plugin keystone git://git.openstack.org/openstack/keystone" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"MULTI_KEYSTONE=1" + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/keystone-dsvm-py35-functional-v3-only/post.yaml b/playbooks/legacy/keystone-dsvm-py35-functional-v3-only/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/keystone-dsvm-py35-functional-v3-only/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/keystone-dsvm-py35-functional-v3-only/run.yaml b/playbooks/legacy/keystone-dsvm-py35-functional-v3-only/run.yaml new file mode 100644 index 00000000..7438f0e3 --- /dev/null +++ b/playbooks/legacy/keystone-dsvm-py35-functional-v3-only/run.yaml @@ -0,0 +1,60 @@ +- hosts: all + name: Autoconverted job legacy-keystone-dsvm-py35-functional-v3-only from old job + gate-keystone-dsvm-py35-functional-v3-only-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + TEMPEST_PLUGINS='/opt/stack/new/keystone-tempest-plugin' + # swift is not ready for python3 yet + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + ENABLE_IDENTITY_V2=False + enable_plugin keystone git://git.openstack.org/openstack/keystone + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export PROJECTS="openstack/keystone-tempest-plugin $PROJECTS" + export DEVSTACK_GATE_TEMPEST=1 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export DEVSTACK_GATE_TEMPEST_REGEX='keystone_tempest_plugin' + export ENABLED_SERVICES=keystone-saml2-federation + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/keystone-tox-patch_cover/post.yaml b/playbooks/legacy/keystone-tox-patch_cover/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/keystone-tox-patch_cover/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/keystone-tox-patch_cover/run.yaml b/playbooks/legacy/keystone-tox-patch_cover/run.yaml new file mode 100644 index 00000000..61ca5e00 --- /dev/null +++ b/playbooks/legacy/keystone-tox-patch_cover/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-keystone-tox-patch_cover from old job gate-keystone-tox-patch_cover-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh patch_cover + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/keystoneclient-dsvm-functional/post.yaml b/playbooks/legacy/keystoneclient-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/keystoneclient-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/keystoneclient-dsvm-functional/run.yaml b/playbooks/legacy/keystoneclient-dsvm-functional/run.yaml new file mode 100644 index 00000000..41b18b15 --- /dev/null +++ b/playbooks/legacy/keystoneclient-dsvm-functional/run.yaml @@ -0,0 +1,40 @@ +- hosts: all + name: Autoconverted job legacy-keystoneclient-dsvm-functional from old job gate-keystoneclient-dsvm-functional-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=python-keystoneclient + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook { + # Configure and run functional tests + $BASE/new/python-keystoneclient/keystoneclient/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kingbird-dsvm-multiregion/post.yaml b/playbooks/legacy/kingbird-dsvm-multiregion/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/kingbird-dsvm-multiregion/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kingbird-dsvm-multiregion/run.yaml b/playbooks/legacy/kingbird-dsvm-multiregion/run.yaml new file mode 100644 index 00000000..36e1e97b --- /dev/null +++ b/playbooks/legacy/kingbird-dsvm-multiregion/run.yaml @@ -0,0 +1,57 @@ +- hosts: all + name: Autoconverted job legacy-kingbird-dsvm-multiregion from old job gate-kingbird-dsvm-multiregion-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export PROJECTS="openstack/kingbird $PROJECTS" + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=0 + export DEVSTACK_GATE_TEMPEST_REGEX="kingbird.tests.tempest" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + # Enable multinode mode, so that the subnode(the second node) + # will be configured to run as second region in pre_test_hook.sh + export DEVSTACK_GATE_TOPOLOGY="multinode" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/kingbird/kingbird/tests/tempest/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/kingbird/kingbird/tests/tempest/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-binary-centos-7/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-binary-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-binary-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-binary-centos-7/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-binary-centos-7/run.yaml new file mode 100644 index 00000000..456095c7 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-binary-centos-7/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-deploy-centos-binary-centos-7 + from old job gate-kolla-ansible-dsvm-deploy-centos-binary-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=deploy + export BASE_DISTRO=centos + export INSTALL_TYPE=binary + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-source-centos-7/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-source-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-source-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-source-centos-7/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-source-centos-7/run.yaml new file mode 100644 index 00000000..65d16a10 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-centos-source-centos-7/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-deploy-centos-source-centos-7 + from old job gate-kolla-ansible-dsvm-deploy-centos-source-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=deploy + export BASE_DISTRO=centos + export INSTALL_TYPE=source + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node/run.yaml new file mode 100644 index 00000000..28b75c05 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node + from old job gate-kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=deploy-ceph + export BASE_DISTRO=centos + export INSTALL_TYPE=binary + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node/run.yaml new file mode 100644 index 00000000..508642e1 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node + from old job gate-kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=deploy-ceph + export BASE_DISTRO=centos + export INSTALL_TYPE=source + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node/run.yaml new file mode 100644 index 00000000..69f0c01b --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node + from old job gate-kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=deploy-ceph + export BASE_DISTRO=oraclelinux + export INSTALL_TYPE=binary + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node/run.yaml new file mode 100644 index 00000000..137fc243 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node + from old job gate-kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=deploy-ceph + export BASE_DISTRO=oraclelinux + export INSTALL_TYPE=source + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node/run.yaml new file mode 100644 index 00000000..2b91ec1c --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node + from old job gate-kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=deploy-ceph + export BASE_DISTRO=ubuntu + export INSTALL_TYPE=binary + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node/run.yaml new file mode 100644 index 00000000..b18d9eab --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node + from old job gate-kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=deploy-ceph + export BASE_DISTRO=ubuntu + export INSTALL_TYPE=source + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node/run.yaml new file mode 100644 index 00000000..dcf2b5a0 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node + from old job gate-kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=deploy-multinode + export BASE_DISTRO=centos + export INSTALL_TYPE=binary + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node/run.yaml new file mode 100644 index 00000000..b3d41a27 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node + from old job gate-kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=deploy-multinode + export BASE_DISTRO=centos + export INSTALL_TYPE=source + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node/run.yaml new file mode 100644 index 00000000..c542218b --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node + from old job gate-kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=deploy-multinode + export BASE_DISTRO=oraclelinux + export INSTALL_TYPE=binary + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node/run.yaml new file mode 100644 index 00000000..85235ef1 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node + from old job gate-kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=deploy-multinode + export BASE_DISTRO=oraclelinux + export INSTALL_TYPE=source + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node/run.yaml new file mode 100644 index 00000000..5a37226d --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node + from old job gate-kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=deploy-multinode + export BASE_DISTRO=ubuntu + export INSTALL_TYPE=binary + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml new file mode 100644 index 00000000..58ec2a75 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node + from old job gate-kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=deploy-multinode + export BASE_DISTRO=ubuntu + export INSTALL_TYPE=source + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7/run.yaml new file mode 100644 index 00000000..964c80fe --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7 + from old job gate-kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=deploy + export BASE_DISTRO=oraclelinux + export INSTALL_TYPE=binary + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7/run.yaml new file mode 100644 index 00000000..6ab8591d --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7 + from old job gate-kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=deploy + export BASE_DISTRO=oraclelinux + export INSTALL_TYPE=source + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-binary/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-binary/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-binary/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-binary/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-binary/run.yaml new file mode 100644 index 00000000..3f0c494f --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-binary/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-deploy-ubuntu-binary from old + job gate-kolla-ansible-dsvm-deploy-ubuntu-binary-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=deploy + export BASE_DISTRO=ubuntu + export INSTALL_TYPE=binary + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-source/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-source/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-source/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-source/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-source/run.yaml new file mode 100644 index 00000000..9c3a6cd1 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-source/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-deploy-ubuntu-source from old + job gate-kolla-ansible-dsvm-deploy-ubuntu-source-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=deploy + export BASE_DISTRO=ubuntu + export INSTALL_TYPE=source + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node/post.yaml b/playbooks/legacy/kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node/run.yaml b/playbooks/legacy/kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node/run.yaml new file mode 100644 index 00000000..b092888c --- /dev/null +++ b/playbooks/legacy/kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node + from old job gate-kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=upgrade-multinode + export BASE_DISTRO=centos + export INSTALL_TYPE=source + tools/setup_gate.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-build-centos-binary-centos-7/post.yaml b/playbooks/legacy/kolla-dsvm-build-centos-binary-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-build-centos-binary-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-dsvm-build-centos-binary-centos-7/run.yaml b/playbooks/legacy/kolla-dsvm-build-centos-binary-centos-7/run.yaml new file mode 100644 index 00000000..8a212db8 --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-build-centos-binary-centos-7/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-kolla-dsvm-build-centos-binary-centos-7 from old + job gate-kolla-dsvm-build-centos-binary-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export ACTION=build + export BASE_DISTRO=centos + export INSTALL_TYPE=binary + + tools/gate_run.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-build-centos-source-centos-7/post.yaml b/playbooks/legacy/kolla-dsvm-build-centos-source-centos-7/post.yaml new file mode 100644 index 00000000..18e12670 --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-build-centos-source-centos-7/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/*.tar.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-dsvm-build-centos-source-centos-7/run.yaml b/playbooks/legacy/kolla-dsvm-build-centos-source-centos-7/run.yaml new file mode 100644 index 00000000..75062873 --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-build-centos-source-centos-7/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-kolla-dsvm-build-centos-source-centos-7 from old + job kolla-dsvm-build-centos-source-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=build + export BASE_DISTRO=centos + export INSTALL_TYPE=source + export PACK_REGISTRY=1 + + tools/gate_run.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-build-oraclelinux-binary-centos-7/post.yaml b/playbooks/legacy/kolla-dsvm-build-oraclelinux-binary-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-build-oraclelinux-binary-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-dsvm-build-oraclelinux-binary-centos-7/run.yaml b/playbooks/legacy/kolla-dsvm-build-oraclelinux-binary-centos-7/run.yaml new file mode 100644 index 00000000..96ec040f --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-build-oraclelinux-binary-centos-7/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-kolla-dsvm-build-oraclelinux-binary-centos-7 from + old job gate-kolla-dsvm-build-oraclelinux-binary-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export ACTION=build + export BASE_DISTRO=oraclelinux + export INSTALL_TYPE=binary + + tools/gate_run.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-build-oraclelinux-source-centos-7/post.yaml b/playbooks/legacy/kolla-dsvm-build-oraclelinux-source-centos-7/post.yaml new file mode 100644 index 00000000..18e12670 --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-build-oraclelinux-source-centos-7/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/*.tar.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-dsvm-build-oraclelinux-source-centos-7/run.yaml b/playbooks/legacy/kolla-dsvm-build-oraclelinux-source-centos-7/run.yaml new file mode 100644 index 00000000..5553a66c --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-build-oraclelinux-source-centos-7/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-kolla-dsvm-build-oraclelinux-source-centos-7 from + old job kolla-dsvm-build-oraclelinux-source-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=build + export BASE_DISTRO=oraclelinux + export INSTALL_TYPE=source + export PACK_REGISTRY=1 + + tools/gate_run.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-build-ubuntu-binary/post.yaml b/playbooks/legacy/kolla-dsvm-build-ubuntu-binary/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-build-ubuntu-binary/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-dsvm-build-ubuntu-binary/run.yaml b/playbooks/legacy/kolla-dsvm-build-ubuntu-binary/run.yaml new file mode 100644 index 00000000..97110215 --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-build-ubuntu-binary/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-kolla-dsvm-build-ubuntu-binary from old job gate-kolla-dsvm-build-ubuntu-binary-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export ACTION=build + export BASE_DISTRO=ubuntu + export INSTALL_TYPE=binary + + tools/gate_run.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-build-ubuntu-source/post.yaml b/playbooks/legacy/kolla-dsvm-build-ubuntu-source/post.yaml new file mode 100644 index 00000000..18e12670 --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-build-ubuntu-source/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/*.tar.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-dsvm-build-ubuntu-source/run.yaml b/playbooks/legacy/kolla-dsvm-build-ubuntu-source/run.yaml new file mode 100644 index 00000000..b7d32d1e --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-build-ubuntu-source/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-kolla-dsvm-build-ubuntu-source from old job kolla-dsvm-build-ubuntu-source-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=build + export BASE_DISTRO=ubuntu + export INSTALL_TYPE=source + export PACK_REGISTRY=1 + + tools/gate_run.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-deploy-centos-binary-centos-7/post.yaml b/playbooks/legacy/kolla-dsvm-deploy-centos-binary-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-deploy-centos-binary-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-dsvm-deploy-centos-binary-centos-7/run.yaml b/playbooks/legacy/kolla-dsvm-deploy-centos-binary-centos-7/run.yaml new file mode 100644 index 00000000..db5b693c --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-deploy-centos-binary-centos-7/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-kolla-dsvm-deploy-centos-binary-centos-7 from old + job gate-kolla-dsvm-deploy-centos-binary-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export ACTION=deploy + export BASE_DISTRO=centos + export INSTALL_TYPE=binary + + tools/gate_run.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-deploy-centos-source-centos-7/post.yaml b/playbooks/legacy/kolla-dsvm-deploy-centos-source-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-deploy-centos-source-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-dsvm-deploy-centos-source-centos-7/run.yaml b/playbooks/legacy/kolla-dsvm-deploy-centos-source-centos-7/run.yaml new file mode 100644 index 00000000..9f58363f --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-deploy-centos-source-centos-7/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-kolla-dsvm-deploy-centos-source-centos-7 from old + job gate-kolla-dsvm-deploy-centos-source-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export ACTION=deploy + export BASE_DISTRO=centos + export INSTALL_TYPE=source + + tools/gate_run.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-binary-centos-7/post.yaml b/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-binary-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-binary-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-binary-centos-7/run.yaml b/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-binary-centos-7/run.yaml new file mode 100644 index 00000000..79e7db35 --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-binary-centos-7/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-kolla-dsvm-deploy-oraclelinux-binary-centos-7 from + old job gate-kolla-dsvm-deploy-oraclelinux-binary-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export ACTION=deploy + export BASE_DISTRO=oraclelinux + export INSTALL_TYPE=binary + + tools/gate_run.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-source-centos-7/post.yaml b/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-source-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-source-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-source-centos-7/run.yaml b/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-source-centos-7/run.yaml new file mode 100644 index 00000000..86e25a2d --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-deploy-oraclelinux-source-centos-7/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-kolla-dsvm-deploy-oraclelinux-source-centos-7 from + old job gate-kolla-dsvm-deploy-oraclelinux-source-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export ACTION=deploy + export BASE_DISTRO=oraclelinux + export INSTALL_TYPE=source + + tools/gate_run.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-deploy-ubuntu-binary/post.yaml b/playbooks/legacy/kolla-dsvm-deploy-ubuntu-binary/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-deploy-ubuntu-binary/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-dsvm-deploy-ubuntu-binary/run.yaml b/playbooks/legacy/kolla-dsvm-deploy-ubuntu-binary/run.yaml new file mode 100644 index 00000000..6061e30c --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-deploy-ubuntu-binary/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-kolla-dsvm-deploy-ubuntu-binary from old job gate-kolla-dsvm-deploy-ubuntu-binary-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export ACTION=deploy + export BASE_DISTRO=ubuntu + export INSTALL_TYPE=binary + + tools/gate_run.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-dsvm-deploy-ubuntu-source/post.yaml b/playbooks/legacy/kolla-dsvm-deploy-ubuntu-source/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-deploy-ubuntu-source/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-dsvm-deploy-ubuntu-source/run.yaml b/playbooks/legacy/kolla-dsvm-deploy-ubuntu-source/run.yaml new file mode 100644 index 00000000..3ace42fc --- /dev/null +++ b/playbooks/legacy/kolla-dsvm-deploy-ubuntu-source/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-kolla-dsvm-deploy-ubuntu-source from old job gate-kolla-dsvm-deploy-ubuntu-source-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export ACTION=deploy + export BASE_DISTRO=ubuntu + export INSTALL_TYPE=source + + tools/gate_run.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-multi/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-multi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-multi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-multi/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-multi/run.yaml new file mode 100644 index 00000000..0c6c7f3d --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-multi/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-centos-binary-2-ceph-multi + from old job gate-kolla-kubernetes-deploy-centos-binary-2-ceph-multi-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary ceph-multi centos-7-2-node shell 2 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-reboot/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-reboot/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-reboot/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-reboot/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-reboot/run.yaml new file mode 100644 index 00000000..13e29a65 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-reboot/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-centos-binary-2-ceph-reboot + from old job gate-kolla-kubernetes-deploy-centos-binary-2-ceph-reboot-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary ceph-reboot centos-7-2-node shell 2 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph/run.yaml new file mode 100644 index 00000000..5172add7 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-centos-binary-2-ceph from + old job gate-kolla-kubernetes-deploy-centos-binary-2-ceph-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary ceph centos-7 shell 2 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-external-ovs/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-external-ovs/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-external-ovs/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-external-ovs/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-external-ovs/run.yaml new file mode 100644 index 00000000..6db96ee5 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-external-ovs/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-centos-binary-2-external-ovs + from old job gate-kolla-kubernetes-deploy-centos-binary-2-external-ovs-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary external-ovs centos-7 shell 2 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit/run.yaml new file mode 100644 index 00000000..2ece13c1 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit + from old job gate-kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary helm-compute-kit centos-7 shell 2 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint/run.yaml new file mode 100644 index 00000000..97535677 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint + from old job gate-kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary helm-entrypoint centos-7 shell 2 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-operator/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-operator/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-operator/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-operator/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-operator/run.yaml new file mode 100644 index 00000000..9fd4e95d --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-operator/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-centos-binary-2-helm-operator + from old job gate-kolla-kubernetes-deploy-centos-binary-2-helm-operator-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary helm-operator centos-7 shell 2 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-iscsi/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-iscsi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-iscsi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-iscsi/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-iscsi/run.yaml new file mode 100644 index 00000000..29dd3ef3 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-iscsi/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-centos-binary-2-iscsi from + old job gate-kolla-kubernetes-deploy-centos-binary-2-iscsi-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary iscsi centos-7 shell 2 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-3-ceph-multi/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-3-ceph-multi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-3-ceph-multi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-3-ceph-multi/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-3-ceph-multi/run.yaml new file mode 100644 index 00000000..786c81fd --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-3-ceph-multi/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-centos-binary-3-ceph-multi + from old job gate-kolla-kubernetes-deploy-centos-binary-3-ceph-multi-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary ceph-multi centos-7-2-node shell 3 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-ceph-multi/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-ceph-multi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-ceph-multi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-ceph-multi/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-ceph-multi/run.yaml new file mode 100644 index 00000000..677360dc --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-ceph-multi/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-centos-binary-4-ceph-multi + from old job gate-kolla-kubernetes-deploy-centos-binary-4-ceph-multi-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary ceph-multi centos-7-2-node shell 4 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit/run.yaml new file mode 100644 index 00000000..c2cfb58e --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit + from old job gate-kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary helm-compute-kit centos-7 shell 4 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint/run.yaml new file mode 100644 index 00000000..301151fb --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint + from old job gate-kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary helm-entrypoint centos-7 shell 4 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-t-ceph-multi/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-t-ceph-multi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-t-ceph-multi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-t-ceph-multi/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-t-ceph-multi/run.yaml new file mode 100644 index 00000000..e0c51573 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-binary-t-ceph-multi/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-centos-binary-t-ceph-multi + from old job gate-kolla-kubernetes-deploy-centos-binary-t-ceph-multi-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary ceph-multi centos-7-2-node shell t gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-compute-kit/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-compute-kit/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-compute-kit/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-compute-kit/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-compute-kit/run.yaml new file mode 100644 index 00000000..8931fc96 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-compute-kit/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-centos-source-4-helm-compute-kit + from old job gate-kolla-kubernetes-deploy-centos-source-4-helm-compute-kit-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos source helm-compute-kit centos-7 shell 4 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-entrypoint/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-entrypoint/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-entrypoint/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-entrypoint/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-entrypoint/run.yaml new file mode 100644 index 00000000..97f94aff --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-entrypoint/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-centos-source-4-helm-entrypoint + from old job gate-kolla-kubernetes-deploy-centos-source-4-helm-entrypoint-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos source helm-entrypoint centos-7 shell 4 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-ironic/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-ironic/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-ironic/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-ironic/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-ironic/run.yaml new file mode 100644 index 00000000..62ef8300 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-ironic/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-centos-source-4-ironic from + old job gate-kolla-kubernetes-deploy-centos-source-4-ironic-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos source ironic centos-7 shell 4 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-microchart-ansible/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-microchart-ansible/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-microchart-ansible/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-microchart-ansible/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-microchart-ansible/run.yaml new file mode 100644 index 00000000..8c027b5e --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-microchart-ansible/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-centos-source-4-microchart-ansible + from old job gate-kolla-kubernetes-deploy-centos-source-4-microchart-ansible-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos source microchart-ansible centos-7 shell 4 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-t-iscsi/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-t-iscsi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-t-iscsi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-centos-source-t-iscsi/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-t-iscsi/run.yaml new file mode 100644 index 00000000..34a9af3e --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-centos-source-t-iscsi/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-centos-source-t-iscsi from + old job gate-kolla-kubernetes-deploy-centos-source-t-iscsi-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos source iscsi centos-7 shell t gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-ceph/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-ceph/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-ceph/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-ceph/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-ceph/run.yaml new file mode 100644 index 00000000..afb5263f --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-ceph/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-ubuntu-binary-2-ceph from + old job gate-kolla-kubernetes-deploy-ubuntu-binary-2-ceph-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy ubuntu binary ceph ubuntu-xenial shell 2 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/run.yaml new file mode 100644 index 00000000..b53e9cef --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi from + old job gate-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy ubuntu binary iscsi ubuntu-xenial shell 2 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-ironic/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-ironic/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-ironic/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-ironic/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-ironic/run.yaml new file mode 100644 index 00000000..93bcb4aa --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-ironic/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-ubuntu-source-4-ironic from + old job gate-kolla-kubernetes-deploy-ubuntu-source-4-ironic-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy ubuntu source ironic ubuntu-xenial shell 4 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible/run.yaml new file mode 100644 index 00000000..fc630e4d --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible + from old job gate-kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy ubuntu source microchart-ansible ubuntu-xenial shell 4 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-t-iscsi/post.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-t-iscsi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-t-iscsi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-t-iscsi/run.yaml b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-t-iscsi/run.yaml new file mode 100644 index 00000000..ed914e0d --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-t-iscsi/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-deploy-ubuntu-source-t-iscsi from + old job gate-kolla-kubernetes-deploy-ubuntu-source-t-iscsi-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy ubuntu source iscsi ubuntu-xenial shell t gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-2-ceph/post.yaml b/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-2-ceph/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-2-ceph/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-2-ceph/run.yaml b/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-2-ceph/run.yaml new file mode 100644 index 00000000..f7e29811 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-2-ceph/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-upgrade-centos-binary-2-ceph from + old job gate-kolla-kubernetes-upgrade-centos-binary-2-ceph-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh upgrade centos binary ceph centos-7 shell 2 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-3-ceph/post.yaml b/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-3-ceph/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-3-ceph/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-3-ceph/run.yaml b/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-3-ceph/run.yaml new file mode 100644 index 00000000..78d6e868 --- /dev/null +++ b/playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-3-ceph/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-kolla-kubernetes-upgrade-centos-binary-3-ceph from + old job gate-kolla-kubernetes-upgrade-centos-binary-3-ceph-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh upgrade centos binary ceph centos-7 shell 3 gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack-py35/post.yaml b/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack-py35/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack-py35/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack-py35/run.yaml b/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack-py35/run.yaml new file mode 100644 index 00000000..b2474edb --- /dev/null +++ b/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack-py35/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-kuryr-libnetwork-dsvm-fullstack-py35 from old job + gate-kuryr-libnetwork-dsvm-fullstack-py35-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin kuryr-libnetwork http://git.openstack.org/openstack/kuryr-libnetwork + # swift is not ready for python3 yet + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/kuryr-libnetwork $PROJECTS" + if [ "" == "-kuryr_lib-src" ] ; then + export DEVSTACK_PROJECT_FROM_GIT="kuryr" + fi + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/kuryr-libnetwork/kuryr_libnetwork/tests/contrib/gate_hook.sh fullstack + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/kuryr-libnetwork/kuryr_libnetwork/tests/contrib/post_test_hook.sh fullstack + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack/post.yaml b/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack/run.yaml b/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack/run.yaml new file mode 100644 index 00000000..891bff93 --- /dev/null +++ b/playbooks/legacy/kuryr-libnetwork-dsvm-fullstack/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-kuryr-libnetwork-dsvm-fullstack from old job gate-kuryr-libnetwork-dsvm-fullstack-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin kuryr-libnetwork http://git.openstack.org/openstack/kuryr-libnetwork + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/kuryr-libnetwork $PROJECTS" + if [ "" == "-kuryr_lib-src" ] ; then + export DEVSTACK_PROJECT_FROM_GIT="kuryr" + fi + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/kuryr-libnetwork/kuryr_libnetwork/tests/contrib/gate_hook.sh fullstack + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/kuryr-libnetwork/kuryr_libnetwork/tests/contrib/post_test_hook.sh fullstack + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kuryr-libnetwork-dsvm-rally/post.yaml b/playbooks/legacy/kuryr-libnetwork-dsvm-rally/post.yaml new file mode 100644 index 00000000..86dc5ca5 --- /dev/null +++ b/playbooks/legacy/kuryr-libnetwork-dsvm-rally/post.yaml @@ -0,0 +1,106 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kuryr-libnetwork-dsvm-rally/run.yaml b/playbooks/legacy/kuryr-libnetwork-dsvm-rally/run.yaml new file mode 100644 index 00000000..21aa9636 --- /dev/null +++ b/playbooks/legacy/kuryr-libnetwork-dsvm-rally/run.yaml @@ -0,0 +1,66 @@ +- hosts: all + name: Autoconverted job legacy-kuryr-libnetwork-dsvm-rally from old job gate-kuryr-libnetwork-dsvm-rally-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin kuryr-libnetwork http://git.openstack.org/openstack/kuryr-libnetwork + enable_plugin rally git://git.openstack.org/openstack/rally + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export RALLY_SCENARIO=kuryr-libnetwork + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/kuryr-libnetwork $PROJECTS" + export PROJECTS="openstack/rally $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + + if [ "" == "-kuryr_lib-src" ] ; then + export DEVSTACK_PROJECT_FROM_GIT="kuryr" + fi + + + function gate_hook { + bash -xe $BASE/new/kuryr-libnetwork/kuryr_libnetwork/tests/contrib/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack/post.yaml b/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack/run.yaml b/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack/run.yaml new file mode 100644 index 00000000..eb70f37b --- /dev/null +++ b/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack/run.yaml @@ -0,0 +1,66 @@ +- hosts: all + name: Autoconverted job legacy-kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack from + old job gate-kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin kuryr-libnetwork http://git.openstack.org/openstack/kuryr-libnetwork + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/kuryr-libnetwork $PROJECTS" + if [ "-kuryr_lib-src" == "-kuryr_lib-src" ] ; then + export DEVSTACK_PROJECT_FROM_GIT="kuryr" + fi + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/kuryr-libnetwork/kuryr_libnetwork/tests/contrib/gate_hook.sh fullstack + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/kuryr-libnetwork/kuryr_libnetwork/tests/contrib/post_test_hook.sh fullstack + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-rally/post.yaml b/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-rally/post.yaml new file mode 100644 index 00000000..86dc5ca5 --- /dev/null +++ b/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-rally/post.yaml @@ -0,0 +1,106 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-rally/run.yaml b/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-rally/run.yaml new file mode 100644 index 00000000..c132e6fb --- /dev/null +++ b/playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-rally/run.yaml @@ -0,0 +1,67 @@ +- hosts: all + name: Autoconverted job legacy-kuryr-libnetwork-kuryr_lib-src-dsvm-rally from old + job gate-kuryr-libnetwork-kuryr_lib-src-dsvm-rally-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin kuryr-libnetwork http://git.openstack.org/openstack/kuryr-libnetwork + enable_plugin rally git://git.openstack.org/openstack/rally + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export RALLY_SCENARIO=kuryr-libnetwork + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/kuryr-libnetwork $PROJECTS" + export PROJECTS="openstack/rally $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + + if [ "-kuryr_lib-src" == "-kuryr_lib-src" ] ; then + export DEVSTACK_PROJECT_FROM_GIT="kuryr" + fi + + + function gate_hook { + bash -xe $BASE/new/kuryr-libnetwork/kuryr_libnetwork/tests/contrib/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/labs-ig-cluster-kvm-ubuntu/run.yaml b/playbooks/legacy/labs-ig-cluster-kvm-ubuntu/run.yaml new file mode 100644 index 00000000..778b2aa3 --- /dev/null +++ b/playbooks/legacy/labs-ig-cluster-kvm-ubuntu/run.yaml @@ -0,0 +1,39 @@ +- hosts: all + name: Autoconverted job legacy-labs-ig-cluster-kvm-ubuntu from old job gate-labs-ig-cluster-kvm-ubuntu-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: ./tools/cluster kvm ubuntu + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/labs-ig-cluster-vbox-ubuntu/run.yaml b/playbooks/legacy/labs-ig-cluster-vbox-ubuntu/run.yaml new file mode 100644 index 00000000..eae4fdde --- /dev/null +++ b/playbooks/legacy/labs-ig-cluster-vbox-ubuntu/run.yaml @@ -0,0 +1,39 @@ +- hosts: all + name: Autoconverted job legacy-labs-ig-cluster-vbox-ubuntu from old job gate-labs-ig-cluster-vbox-ubuntu-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: ./tools/cluster vbox ubuntu + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/laravel-openstackid-release-branch/post.yaml b/playbooks/legacy/laravel-openstackid-release-branch/post.yaml new file mode 100644 index 00000000..69b42bb9 --- /dev/null +++ b/playbooks/legacy/laravel-openstackid-release-branch/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/./reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: tarballs/$ZUUL_SHORT_PROJECT_NAME/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/tarballs/*.tar.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/laravel-openstackid-release-branch/run.yaml b/playbooks/legacy/laravel-openstackid-release-branch/run.yaml new file mode 100644 index 00000000..d936c589 --- /dev/null +++ b/playbooks/legacy/laravel-openstackid-release-branch/run.yaml @@ -0,0 +1,80 @@ +- hosts: all + name: Autoconverted job legacy-laravel-openstackid-release-branch from old job laravel-openstackid-release-branch + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo php5enmod mcrypt + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + source version.properties + /usr/local/jenkins/slave_scripts/php-laravel-build.sh + # Clone to dist + rm -rf dist + mkdir dist + rsync -arv --exclude ".git*" --exclude tarballs --exclude dist . dist + # Clean/create a tarball directory + rm -rf tarballs + mkdir -p tarballs + # Create an archive tarball. + tar -czf $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz dist/ + cp $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/$ZUUL_SHORT_PROJECT_NAME-latest.tar.gz + mv $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/ + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/laravel-openstackid-release-master/post.yaml b/playbooks/legacy/laravel-openstackid-release-master/post.yaml new file mode 100644 index 00000000..69b42bb9 --- /dev/null +++ b/playbooks/legacy/laravel-openstackid-release-master/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/./reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: tarballs/$ZUUL_SHORT_PROJECT_NAME/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/tarballs/*.tar.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/laravel-openstackid-release-master/run.yaml b/playbooks/legacy/laravel-openstackid-release-master/run.yaml new file mode 100644 index 00000000..d80ca4ed --- /dev/null +++ b/playbooks/legacy/laravel-openstackid-release-master/run.yaml @@ -0,0 +1,80 @@ +- hosts: all + name: Autoconverted job legacy-laravel-openstackid-release-master from old job laravel-openstackid-release-master + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo php5enmod mcrypt + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + source version.properties + /usr/local/jenkins/slave_scripts/php-laravel-build.sh + # Clone to dist + rm -rf dist + mkdir dist + rsync -arv --exclude ".git*" --exclude tarballs --exclude dist . dist + # Clean/create a tarball directory + rm -rf tarballs + mkdir -p tarballs + # Create an archive tarball. + tar -czf $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz dist/ + cp $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/$ZUUL_SHORT_PROJECT_NAME-latest.tar.gz + mv $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/ + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/laravel-openstackid-unittests/post.yaml b/playbooks/legacy/laravel-openstackid-unittests/post.yaml new file mode 100644 index 00000000..5850ab1d --- /dev/null +++ b/playbooks/legacy/laravel-openstackid-unittests/post.yaml @@ -0,0 +1,28 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/./reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/laravel-openstackid-unittests/run.yaml b/playbooks/legacy/laravel-openstackid-unittests/run.yaml new file mode 100644 index 00000000..1996a704 --- /dev/null +++ b/playbooks/legacy/laravel-openstackid-unittests/run.yaml @@ -0,0 +1,60 @@ +- hosts: all + name: Autoconverted job legacy-laravel-openstackid-unittests from old job gate-laravel-openstackid-unittests + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo php5enmod mcrypt + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/php-laravel-build.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/libec-pyeclib-unit-centos-7/run.yaml b/playbooks/legacy/libec-pyeclib-unit-centos-7/run.yaml new file mode 100644 index 00000000..e025c51c --- /dev/null +++ b/playbooks/legacy/libec-pyeclib-unit-centos-7/run.yaml @@ -0,0 +1,27 @@ +- hosts: all + name: Autoconverted job legacy-libec-pyeclib-unit-centos-7 from old job gate-libec-pyeclib-unit-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + cd $WORKSPACE + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/liberasurecode \ + openstack/pyeclib + # build libec + cd openstack/liberasurecode + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + ./autogen.sh + ./configure + make + sudo make install + sudo bash -c "echo /usr/local/lib >> /etc/ld.so.conf" + sudo ldconfig + # test pyeclib + cd $WORKSPACE/openstack/pyeclib + tox -e py27 + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/libec-pyeclib-unit/run.yaml b/playbooks/legacy/libec-pyeclib-unit/run.yaml new file mode 100644 index 00000000..9ca1793a --- /dev/null +++ b/playbooks/legacy/libec-pyeclib-unit/run.yaml @@ -0,0 +1,27 @@ +- hosts: all + name: Autoconverted job legacy-libec-pyeclib-unit from old job gate-libec-pyeclib-unit-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cd $WORKSPACE + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/liberasurecode \ + openstack/pyeclib + # build libec + cd openstack/liberasurecode + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + ./autogen.sh + ./configure + make + sudo make install + sudo bash -c "echo /usr/local/lib >> /etc/ld.so.conf" + sudo ldconfig + # test pyeclib + cd $WORKSPACE/openstack/pyeclib + tox -e py27 + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/liberasurecode-unit-centos-7/run.yaml b/playbooks/legacy/liberasurecode-unit-centos-7/run.yaml new file mode 100644 index 00000000..d78bc434 --- /dev/null +++ b/playbooks/legacy/liberasurecode-unit-centos-7/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-liberasurecode-unit-centos-7 from old job gate-liberasurecode-unit-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ./autogen.sh + ./configure + make + make test + make valgrind-test + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/liberasurecode-unit/run.yaml b/playbooks/legacy/liberasurecode-unit/run.yaml new file mode 100644 index 00000000..ba29e377 --- /dev/null +++ b/playbooks/legacy/liberasurecode-unit/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-liberasurecode-unit from old job gate-liberasurecode-unit-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ./autogen.sh + ./configure + make + make test + make valgrind-test + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/loci/post.yaml b/playbooks/legacy/loci/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/loci/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/loci/run.yaml b/playbooks/legacy/loci/run.yaml new file mode 100644 index 00000000..eea6ddaa --- /dev/null +++ b/playbooks/legacy/loci/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-loci from old job gate-{name}-loci-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org openstack/loci + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + openstack/loci/scripts/gate-setup.sh + openstack/loci/scripts/run-tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/logstash-filters-ubuntu-trusty/post.yaml b/playbooks/legacy/logstash-filters-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..658c6f8c --- /dev/null +++ b/playbooks/legacy/logstash-filters-ubuntu-trusty/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/openstack-infra/system-config/applytest/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/logstash-filters-ubuntu-trusty/run.yaml b/playbooks/legacy/logstash-filters-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..bb958c25 --- /dev/null +++ b/playbooks/legacy/logstash-filters-ubuntu-trusty/run.yaml @@ -0,0 +1,21 @@ +- hosts: all + name: Autoconverted job legacy-logstash-filters-ubuntu-trusty from old job gate-logstash-filters-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -e + set -x + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org openstack-infra/system-config + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd openstack-infra/system-config + ./tools/logstash-filter-test.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/logstash-filters/post.yaml b/playbooks/legacy/logstash-filters/post.yaml new file mode 100644 index 00000000..658c6f8c --- /dev/null +++ b/playbooks/legacy/logstash-filters/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/openstack-infra/system-config/applytest/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/logstash-filters/run.yaml b/playbooks/legacy/logstash-filters/run.yaml new file mode 100644 index 00000000..7e6dbdba --- /dev/null +++ b/playbooks/legacy/logstash-filters/run.yaml @@ -0,0 +1,21 @@ +- hosts: all + name: Autoconverted job legacy-logstash-filters from old job gate-logstash-filters-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org openstack-infra/system-config + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd openstack-infra/system-config + ./tools/logstash-filter-test.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/magnum-tox-migration/post.yaml b/playbooks/legacy/magnum-tox-migration/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/magnum-tox-migration/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/magnum-tox-migration/run.yaml b/playbooks/legacy/magnum-tox-migration/run.yaml new file mode 100644 index 00000000..bdfcf02d --- /dev/null +++ b/playbooks/legacy/magnum-tox-migration/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-magnum-tox-migration from old job gate-magnum-tox-migration-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh migration + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-buildimage-docker/run.yaml b/playbooks/legacy/manila-buildimage-docker/run.yaml new file mode 100644 index 00000000..129b69ab --- /dev/null +++ b/playbooks/legacy/manila-buildimage-docker/run.yaml @@ -0,0 +1,43 @@ +- hosts: all + name: Autoconverted job legacy-manila-buildimage-docker from old job gate-manila-buildimage-docker-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ./tools/gate/build-images docker + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-buildimage-generic/run.yaml b/playbooks/legacy/manila-buildimage-generic/run.yaml new file mode 100644 index 00000000..f24632d1 --- /dev/null +++ b/playbooks/legacy/manila-buildimage-generic/run.yaml @@ -0,0 +1,43 @@ +- hosts: all + name: Autoconverted job legacy-manila-buildimage-generic from old job gate-manila-buildimage-generic-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ./tools/gate/build-images generic + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-publishimage-generic/post.yaml b/playbooks/legacy/manila-publishimage-generic/post.yaml new file mode 100644 index 00000000..4efee37b --- /dev/null +++ b/playbooks/legacy/manila-publishimage-generic/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-publishimage-generic/run.yaml b/playbooks/legacy/manila-publishimage-generic/run.yaml new file mode 100644 index 00000000..80d00153 --- /dev/null +++ b/playbooks/legacy/manila-publishimage-generic/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-manila-publishimage-generic from old job gate-manila-publishimage-generic-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ./tools/gate/build-images generic + BRANCH=$ZUUL_REFNAME + BRANCH_PATH=`echo $BRANCH | sed 's/^refs.tags.//' | tr / -` + mkdir -p images + mv manila-service-image.qcow2 images/manila-service-image-$BRANCH_PATH.qcow2 + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-pylint/post.yaml b/playbooks/legacy/manila-pylint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/manila-pylint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-pylint/run.yaml b/playbooks/legacy/manila-pylint/run.yaml new file mode 100644 index 00000000..b37c29c5 --- /dev/null +++ b/playbooks/legacy/manila-pylint/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-manila-pylint from old job gate-manila-pylint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/post.yaml b/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/run.yaml b/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/run.yaml new file mode 100644 index 00000000..8470245c --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/run.yaml @@ -0,0 +1,100 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-container-scenario-custom-image + from old job gate-manila-tempest-dsvm-container-scenario-custom-image-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_POSTGRES=0 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Install manila-image-elements project for building custom image + if [[ container_with_custom_image == *"_with_custom_image" ]]; then + export PROJECTS="openstack/manila-image-elements $PROJECTS" + fi + export ENABLED_SERVICES=tempest + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Build custom image if needed + if [[ container_with_custom_image == *"_with_custom_image" ]]; then + current_dir=$(pwd) + + # Go to 'manila-image-elements' dir, build image and get its name + cd /opt/stack/new/manila-image-elements + ./tools/gate/build-images container_with_custom_image True + image_name=$(git ls-files --others --exclude-standard) + export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name" + export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name)) + + # Return back to execution dir + cd $current_dir + fi + + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + 1 \ + container_with_custom_image \ + multibackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh \ + multibackend \ + container_with_custom_image \ + scenario \ + 0 + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/post.yaml b/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/run.yaml b/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/run.yaml new file mode 100644 index 00000000..946ebe25 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/run.yaml @@ -0,0 +1,100 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-generic-no-share-servers from + old job gate-manila-tempest-dsvm-generic-no-share-servers-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_POSTGRES=0 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Install manila-image-elements project for building custom image + if [[ generic == *"_with_custom_image" ]]; then + export PROJECTS="openstack/manila-image-elements $PROJECTS" + fi + export ENABLED_SERVICES=tempest + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Build custom image if needed + if [[ generic == *"_with_custom_image" ]]; then + current_dir=$(pwd) + + # Go to 'manila-image-elements' dir, build image and get its name + cd /opt/stack/new/manila-image-elements + ./tools/gate/build-images generic True + image_name=$(git ls-files --others --exclude-standard) + export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name" + export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name)) + + # Return back to execution dir + cd $current_dir + fi + + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + 0 \ + generic \ + multibackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh \ + multibackend \ + generic \ + api \ + 0 + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/post.yaml b/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/run.yaml b/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/run.yaml new file mode 100644 index 00000000..6848274c --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/run.yaml @@ -0,0 +1,100 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-generic-scenario-custom-image + from old job gate-manila-tempest-dsvm-generic-scenario-custom-image-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_POSTGRES=0 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Install manila-image-elements project for building custom image + if [[ generic_with_custom_image == *"_with_custom_image" ]]; then + export PROJECTS="openstack/manila-image-elements $PROJECTS" + fi + export ENABLED_SERVICES=tempest + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Build custom image if needed + if [[ generic_with_custom_image == *"_with_custom_image" ]]; then + current_dir=$(pwd) + + # Go to 'manila-image-elements' dir, build image and get its name + cd /opt/stack/new/manila-image-elements + ./tools/gate/build-images generic_with_custom_image True + image_name=$(git ls-files --others --exclude-standard) + export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name" + export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name)) + + # Return back to execution dir + cd $current_dir + fi + + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + 1 \ + generic_with_custom_image \ + multibackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh \ + multibackend \ + generic_with_custom_image \ + scenario \ + 0 + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/post.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/run.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/run.yaml new file mode 100644 index 00000000..318d50dc --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/run.yaml @@ -0,0 +1,69 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-glusterfs-native-heketi from + old job gate-manila-tempest-dsvm-glusterfs-native-heketi-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + # Enable devstack-plugin-glusterfs plugin, to install and configure GlusterFS. + enable_plugin devstack-plugin-glusterfs git://git.openstack.org/openstack/devstack-plugin-glusterfs + + # Configure devstack-plugin-glusterfs to enable GlusterFS as a backend for Manila. + CONFIGURE_GLUSTERFS_MANILA=True + + # Configure devstack-plugin-glusterfs to use respective GlusterFS driver variant. + GLUSTERFS_MANILA_DRIVER_TYPE=glusterfs-native-heketi + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + export PROJECTS="openstack/devstack-plugin-glusterfs $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Configure devstack to run manila installation without handling of share servers + source $BASE/new/devstack-plugin-glusterfs/manila/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run tempest on singlebackend manila installation + source $BASE/new/devstack-plugin-glusterfs/manila/post_test_hook.sh singlebackend + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/post.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/run.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/run.yaml new file mode 100644 index 00000000..03a6adf6 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-native/run.yaml @@ -0,0 +1,69 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-glusterfs-native from old job + gate-manila-tempest-dsvm-glusterfs-native-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + # Enable devstack-plugin-glusterfs plugin, to install and configure GlusterFS. + enable_plugin devstack-plugin-glusterfs git://git.openstack.org/openstack/devstack-plugin-glusterfs + + # Configure devstack-plugin-glusterfs to enable GlusterFS as a backend for Manila. + CONFIGURE_GLUSTERFS_MANILA=True + + # Configure devstack-plugin-glusterfs to use respective GlusterFS driver variant. + GLUSTERFS_MANILA_DRIVER_TYPE=glusterfs-native + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + export PROJECTS="openstack/devstack-plugin-glusterfs $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Configure devstack to run manila installation without handling of share servers + source $BASE/new/devstack-plugin-glusterfs/manila/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run tempest on singlebackend manila installation + source $BASE/new/devstack-plugin-glusterfs/manila/post_test_hook.sh singlebackend + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/post.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/run.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/run.yaml new file mode 100644 index 00000000..0952bec9 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/run.yaml @@ -0,0 +1,69 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-glusterfs-nfs-heketi from old + job gate-manila-tempest-dsvm-glusterfs-nfs-heketi-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + # Enable devstack-plugin-glusterfs plugin, to install and configure GlusterFS. + enable_plugin devstack-plugin-glusterfs git://git.openstack.org/openstack/devstack-plugin-glusterfs + + # Configure devstack-plugin-glusterfs to enable GlusterFS as a backend for Manila. + CONFIGURE_GLUSTERFS_MANILA=True + + # Configure devstack-plugin-glusterfs to use respective GlusterFS driver variant. + GLUSTERFS_MANILA_DRIVER_TYPE=glusterfs-nfs-heketi + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + export PROJECTS="openstack/devstack-plugin-glusterfs $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Configure devstack to run manila installation without handling of share servers + source $BASE/new/devstack-plugin-glusterfs/manila/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run tempest on singlebackend manila installation + source $BASE/new/devstack-plugin-glusterfs/manila/post_test_hook.sh singlebackend + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/post.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/run.yaml b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/run.yaml new file mode 100644 index 00000000..89e34ff4 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/run.yaml @@ -0,0 +1,68 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-glusterfs-nfs from old job gate-manila-tempest-dsvm-glusterfs-nfs-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + # Enable devstack-plugin-glusterfs plugin, to install and configure GlusterFS. + enable_plugin devstack-plugin-glusterfs git://git.openstack.org/openstack/devstack-plugin-glusterfs + + # Configure devstack-plugin-glusterfs to enable GlusterFS as a backend for Manila. + CONFIGURE_GLUSTERFS_MANILA=True + + # Configure devstack-plugin-glusterfs to use respective GlusterFS driver variant. + GLUSTERFS_MANILA_DRIVER_TYPE=glusterfs-nfs + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + export PROJECTS="openstack/devstack-plugin-glusterfs $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Configure devstack to run manila installation without handling of share servers + source $BASE/new/devstack-plugin-glusterfs/manila/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run tempest on singlebackend manila installation + source $BASE/new/devstack-plugin-glusterfs/manila/post_test_hook.sh singlebackend + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-hdfs/post.yaml b/playbooks/legacy/manila-tempest-dsvm-hdfs/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-hdfs/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-hdfs/run.yaml b/playbooks/legacy/manila-tempest-dsvm-hdfs/run.yaml new file mode 100644 index 00000000..2c7e9d31 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-hdfs/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-hdfs from old job gate-manila-tempest-dsvm-hdfs-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + # Enable devstack-plugin-hdfs plugin, to install and configure HDFS. + enable_plugin devstack-plugin-hdfs git://git.openstack.org/openstack/devstack-plugin-hdfs + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export PROJECTS="openstack/devstack-plugin-hdfs $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Configure devstack to run manila installation without handling of share servers + source $BASE/new/devstack-plugin-hdfs/manila/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run tempest on multi-backend manila installation + source $BASE/new/devstack-plugin-hdfs/manila/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-mysql-generic/post.yaml b/playbooks/legacy/manila-tempest-dsvm-mysql-generic/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-mysql-generic/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-mysql-generic/run.yaml b/playbooks/legacy/manila-tempest-dsvm-mysql-generic/run.yaml new file mode 100644 index 00000000..932d02ec --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-mysql-generic/run.yaml @@ -0,0 +1,99 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-mysql-generic from old job gate-manila-tempest-dsvm-mysql-generic-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_POSTGRES=0 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Install manila-image-elements project for building custom image + if [[ generic == *"_with_custom_image" ]]; then + export PROJECTS="openstack/manila-image-elements $PROJECTS" + fi + export ENABLED_SERVICES=tempest + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Build custom image if needed + if [[ generic == *"_with_custom_image" ]]; then + current_dir=$(pwd) + + # Go to 'manila-image-elements' dir, build image and get its name + cd /opt/stack/new/manila-image-elements + ./tools/gate/build-images generic True + image_name=$(git ls-files --others --exclude-standard) + export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name" + export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name)) + + # Return back to execution dir + cd $current_dir + fi + + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + 1 \ + generic \ + multibackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh \ + multibackend \ + generic \ + api \ + 0 + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-postgres-container/post.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-container/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-postgres-container/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-postgres-container/run.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-container/run.yaml new file mode 100644 index 00000000..9756ea98 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-postgres-container/run.yaml @@ -0,0 +1,100 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-postgres-container from old job + gate-manila-tempest-dsvm-postgres-container-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_POSTGRES=1 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Install manila-image-elements project for building custom image + if [[ container == *"_with_custom_image" ]]; then + export PROJECTS="openstack/manila-image-elements $PROJECTS" + fi + export ENABLED_SERVICES=tempest + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Build custom image if needed + if [[ container == *"_with_custom_image" ]]; then + current_dir=$(pwd) + + # Go to 'manila-image-elements' dir, build image and get its name + cd /opt/stack/new/manila-image-elements + ./tools/gate/build-images container True + image_name=$(git ls-files --others --exclude-standard) + export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name" + export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name)) + + # Return back to execution dir + cd $current_dir + fi + + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + 1 \ + container \ + multibackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh \ + multibackend \ + container \ + api \ + 1 + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/post.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/run.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/run.yaml new file mode 100644 index 00000000..c350b982 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/run.yaml @@ -0,0 +1,100 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-postgres-generic-singlebackend + from old job gate-manila-tempest-dsvm-postgres-generic-singlebackend-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_POSTGRES=1 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Install manila-image-elements project for building custom image + if [[ generic == *"_with_custom_image" ]]; then + export PROJECTS="openstack/manila-image-elements $PROJECTS" + fi + export ENABLED_SERVICES=tempest + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Build custom image if needed + if [[ generic == *"_with_custom_image" ]]; then + current_dir=$(pwd) + + # Go to 'manila-image-elements' dir, build image and get its name + cd /opt/stack/new/manila-image-elements + ./tools/gate/build-images generic True + image_name=$(git ls-files --others --exclude-standard) + export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name" + export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name)) + + # Return back to execution dir + cd $current_dir + fi + + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + 1 \ + generic \ + singlebackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh \ + singlebackend \ + generic \ + api \ + 1 + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/post.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/run.yaml b/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/run.yaml new file mode 100644 index 00000000..bcf2a221 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/run.yaml @@ -0,0 +1,100 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-postgres-zfsonlinux from old + job gate-manila-tempest-dsvm-postgres-zfsonlinux-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_POSTGRES=1 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Install manila-image-elements project for building custom image + if [[ zfsonlinux == *"_with_custom_image" ]]; then + export PROJECTS="openstack/manila-image-elements $PROJECTS" + fi + export ENABLED_SERVICES=tempest + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Build custom image if needed + if [[ zfsonlinux == *"_with_custom_image" ]]; then + current_dir=$(pwd) + + # Go to 'manila-image-elements' dir, build image and get its name + cd /opt/stack/new/manila-image-elements + ./tools/gate/build-images zfsonlinux True + image_name=$(git ls-files --others --exclude-standard) + export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name" + export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name)) + + # Return back to execution dir + cd $current_dir + fi + + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + 0 \ + zfsonlinux \ + multibackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh \ + multibackend \ + zfsonlinux \ + api \ + 1 + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-dsvm-scenario/post.yaml b/playbooks/legacy/manila-tempest-dsvm-scenario/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-scenario/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-dsvm-scenario/run.yaml b/playbooks/legacy/manila-tempest-dsvm-scenario/run.yaml new file mode 100644 index 00000000..c2c0534e --- /dev/null +++ b/playbooks/legacy/manila-tempest-dsvm-scenario/run.yaml @@ -0,0 +1,99 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-dsvm-scenario from old job gate-manila-tempest-dsvm-scenario-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_POSTGRES=0 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Install manila-image-elements project for building custom image + if [[ generic == *"_with_custom_image" ]]; then + export PROJECTS="openstack/manila-image-elements $PROJECTS" + fi + export ENABLED_SERVICES=tempest + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Build custom image if needed + if [[ generic == *"_with_custom_image" ]]; then + current_dir=$(pwd) + + # Go to 'manila-image-elements' dir, build image and get its name + cd /opt/stack/new/manila-image-elements + ./tools/gate/build-images generic True + image_name=$(git ls-files --others --exclude-standard) + export MANILA_SERVICE_IMAGE_URL="http://localhost:80/public_html/$image_name" + export MANILA_SERVICE_IMAGE_NAME=$(basename -s .tar.gz $(basename -s .qcow2 $image_name)) + + # Return back to execution dir + cd $current_dir + fi + + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + 1 \ + generic \ + multibackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh \ + multibackend \ + generic \ + scenario \ + 0 + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/post.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/run.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/run.yaml new file mode 100644 index 00000000..6605951a --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/run.yaml @@ -0,0 +1,86 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-minimal-dsvm-cephfs-native-centos-7 + from old job gate-manila-tempest-minimal-dsvm-cephfs-native-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + enable_plugin devstack-plugin-ceph git://git.openstack.org/openstack/devstack-plugin-ceph + + # Enable CephFS as the backend for Manila. + ENABLE_CEPH_MANILA=True + + # Disable Ceph as the storage backend for Nova. + ENABLE_CEPH_NOVA=False + + # Disable Ceph as the storage backend for Glance. + ENABLE_CEPH_GLANCE=False + + # Disable Ceph as the storage backend for Cinder. + ENABLE_CEPH_CINDER=False + + # Disable Ceph as the storage backend for Cinder backup. + ENABLE_CEPH_C_BAK=False + + # Set native or NFS variant of ceph driver + MANILA_CEPH_DRIVER=cephfsnative + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export PROJECTS="openstack/devstack-plugin-ceph $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Configure Manila with a CephFS Native or NFS driver backend. + # Refer to job-template pre_test_hook for more details on the + # arguments. + source $BASE/new/devstack-plugin-ceph/manila/pre_test_hook.sh \ + false cephfsnative singlebackend + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run Tempest API tests on Manila with a + # CephFSNative driver backend. + # Refer to job-template post_test_hook for more details on the + # arguments. + source $BASE/new/devstack-plugin-ceph/manila/post_test_hook.sh \ + singlebackend cephfsnative api + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/post.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/run.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/run.yaml new file mode 100644 index 00000000..f80ecc43 --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/run.yaml @@ -0,0 +1,86 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-minimal-dsvm-cephfs-nfs-centos-7 from + old job gate-manila-tempest-minimal-dsvm-cephfs-nfs-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + enable_plugin devstack-plugin-ceph git://git.openstack.org/openstack/devstack-plugin-ceph + + # Enable CephFS as the backend for Manila. + ENABLE_CEPH_MANILA=True + + # Disable Ceph as the storage backend for Nova. + ENABLE_CEPH_NOVA=False + + # Disable Ceph as the storage backend for Glance. + ENABLE_CEPH_GLANCE=False + + # Disable Ceph as the storage backend for Cinder. + ENABLE_CEPH_CINDER=False + + # Disable Ceph as the storage backend for Cinder backup. + ENABLE_CEPH_C_BAK=False + + # Set native or NFS variant of ceph driver + MANILA_CEPH_DRIVER=cephfsnfs + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export PROJECTS="openstack/devstack-plugin-ceph $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Configure Manila with a CephFS Native or NFS driver backend. + # Refer to job-template pre_test_hook for more details on the + # arguments. + source $BASE/new/devstack-plugin-ceph/manila/pre_test_hook.sh \ + false cephfsnfs singlebackend + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run Tempest API tests on Manila with a + # CephFSNative driver backend. + # Refer to job-template post_test_hook for more details on the + # arguments. + source $BASE/new/devstack-plugin-ceph/manila/post_test_hook.sh \ + singlebackend cephfsnfs api + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/post.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml new file mode 100644 index 00000000..4f31827b --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run.yaml @@ -0,0 +1,86 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-minimal-dsvm-dummy from old job gate-manila-tempest-minimal-dsvm-dummy-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + # Basic services needed for minimal job + OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest + if [ "dummy" == "lvm" ]; then + # Enable glance for scenario tests + OVERRIDE_ENABLED_SERVICES+=,g-api,g-reg + # Enable nova for scenario tests + OVERRIDE_ENABLED_SERVICES+=,n-api,n-cpu,n-cond,n-sch,n-crt,n-cauth,n-obj + # Enable neutron for scenario tests + OVERRIDE_ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-l3,q-agt + + # Enable mandatory placement services for nova starting with ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + OVERRIDE_ENABLED_SERVICES+=,placement-api,placement-client + fi + fi + export OVERRIDE_ENABLED_SERVICES + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh False dummy multibackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh multibackend dummy api False + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/post.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/run.yaml b/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/run.yaml new file mode 100644 index 00000000..60589d44 --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/run.yaml @@ -0,0 +1,87 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-minimal-dsvm-lvm-centos-7 from old + job gate-manila-tempest-minimal-dsvm-lvm-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + # Basic services needed for minimal job + OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest + if [ "lvm" == "lvm" ]; then + # Enable glance for scenario tests + OVERRIDE_ENABLED_SERVICES+=,g-api,g-reg + # Enable nova for scenario tests + OVERRIDE_ENABLED_SERVICES+=,n-api,n-cpu,n-cond,n-sch,n-crt,n-cauth,n-obj + # Enable neutron for scenario tests + OVERRIDE_ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-l3,q-agt + + # Enable mandatory placement services for nova starting with ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + OVERRIDE_ENABLED_SERVICES+=,placement-api,placement-client + fi + fi + export OVERRIDE_ENABLED_SERVICES + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # 'dhss' - acronym for 'Driver Handles Share Servers', + # defines mode of a share driver. Boolean-like. + # 'driver' - codename of a share driver to configure. + # 'back_end_type' - defines which installation Manila should + # have - either 'singlebackend' or 'multibackend'. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh False lvm multibackend + } + export -f pre_test_hook + + function post_test_hook { + # 'back_end_type' - defines which installation Manila is + # configured to - either 'singlebackend' or 'multibackend'. + # 'driver' - codename of a share driver that is configured in + # Manila. It is used for enabling/disabling tests that are not + # supported by share driver that is used. + # 'test_type' - defines which set of test suites should be used, + # can have 'api' and 'scenario' values. + # 'postgres_enabled' - set of test suites depends on DB backend + # in some cases, so it is provided explicitely. Boolean-like. + source $BASE/new/manila/contrib/ci/post_test_hook.sh multibackend lvm api False + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/post.yaml b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/run.yaml b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/run.yaml new file mode 100644 index 00000000..3da8d0a5 --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/run.yaml @@ -0,0 +1,93 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7 + from old job gate-manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + + # swift is not ready for python3 yet + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + + enable_plugin manila git://git.openstack.org/openstack/manila + + enable_plugin devstack-plugin-ceph git://git.openstack.org/openstack/devstack-plugin-ceph + + # Enable CephFS as the backend for Manila. + ENABLE_CEPH_MANILA=True + + # Disable Ceph as the storage backend for Nova. + ENABLE_CEPH_NOVA=False + + # Disable Ceph as the storage backend for Glance. + ENABLE_CEPH_GLANCE=False + + # Disable Ceph as the storage backend for Cinder. + ENABLE_CEPH_CINDER=False + + # Disable Ceph as the storage backend for Cinder backup. + ENABLE_CEPH_C_BAK=False + + # Set native or NFS variant of ceph driver + MANILA_CEPH_DRIVER=cephfsnative + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export PROJECTS="openstack/python-manilaclient openstack/devstack-plugin-ceph $PROJECTS" + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Configure Manila with a CephFS Native or NFS driver backend. + # Refer to job-template pre_test_hook for more details on the + # arguments. + source $BASE/new/devstack-plugin-ceph/manila/pre_test_hook.sh \ + false cephfsnative singlebackend + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run Tempest API tests on Manila with a + # CephFSNative driver backend. + # Refer to job-template post_test_hook for more details on the + # arguments. + source $BASE/new/devstack-plugin-ceph/manila/post_test_hook.sh \ + singlebackend cephfsnative api + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/post.yaml b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/run.yaml b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/run.yaml new file mode 100644 index 00000000..2a47a002 --- /dev/null +++ b/playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/run.yaml @@ -0,0 +1,93 @@ +- hosts: all + name: Autoconverted job legacy-manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7 + from old job gate-manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + + # swift is not ready for python3 yet + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + + enable_plugin manila git://git.openstack.org/openstack/manila + + enable_plugin devstack-plugin-ceph git://git.openstack.org/openstack/devstack-plugin-ceph + + # Enable CephFS as the backend for Manila. + ENABLE_CEPH_MANILA=True + + # Disable Ceph as the storage backend for Nova. + ENABLE_CEPH_NOVA=False + + # Disable Ceph as the storage backend for Glance. + ENABLE_CEPH_GLANCE=False + + # Disable Ceph as the storage backend for Cinder. + ENABLE_CEPH_CINDER=False + + # Disable Ceph as the storage backend for Cinder backup. + ENABLE_CEPH_C_BAK=False + + # Set native or NFS variant of ceph driver + MANILA_CEPH_DRIVER=cephfsnfs + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export PROJECTS="openstack/python-manilaclient openstack/devstack-plugin-ceph $PROJECTS" + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Configure Manila with a CephFS Native or NFS driver backend. + # Refer to job-template pre_test_hook for more details on the + # arguments. + source $BASE/new/devstack-plugin-ceph/manila/pre_test_hook.sh \ + false cephfsnfs singlebackend + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run Tempest API tests on Manila with a + # CephFSNative driver backend. + # Refer to job-template post_test_hook for more details on the + # arguments. + source $BASE/new/devstack-plugin-ceph/manila/post_test_hook.sh \ + singlebackend cephfsnfs api + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-test-image-build/run.yaml b/playbooks/legacy/manila-test-image-build/run.yaml new file mode 100644 index 00000000..ce2b9722 --- /dev/null +++ b/playbooks/legacy/manila-test-image-build/run.yaml @@ -0,0 +1,43 @@ +- hosts: all + name: Autoconverted job legacy-manila-test-image-build from old job gate-manila-test-image-build + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ./run-buildroot.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-tox-genconfig/post.yaml b/playbooks/legacy/manila-tox-genconfig/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/manila-tox-genconfig/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-tox-genconfig/run.yaml b/playbooks/legacy/manila-tox-genconfig/run.yaml new file mode 100644 index 00000000..fddcad66 --- /dev/null +++ b/playbooks/legacy/manila-tox-genconfig/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-manila-tox-genconfig from old job gate-manila-tox-genconfig-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh genconfig + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-ui-dsvm/post.yaml b/playbooks/legacy/manila-ui-dsvm/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/manila-ui-dsvm/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-ui-dsvm/run.yaml b/playbooks/legacy/manila-ui-dsvm/run.yaml new file mode 100644 index 00000000..4fb9aaa4 --- /dev/null +++ b/playbooks/legacy/manila-ui-dsvm/run.yaml @@ -0,0 +1,71 @@ +- hosts: all + name: Autoconverted job legacy-manila-ui-dsvm from old job gate-manila-ui-dsvm-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + enable_plugin manila-ui git://git.openstack.org/openstack/manila-ui + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + # Enable dummy driver in Manila + function pre_test_hook { + source $BASE/new/manila/contrib/ci/pre_test_hook.sh \ + True \ + dummy \ + multibackend + } + export -f pre_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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-ui-tox-py27dj110/post.yaml b/playbooks/legacy/manila-ui-tox-py27dj110/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/manila-ui-tox-py27dj110/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-ui-tox-py27dj110/run.yaml b/playbooks/legacy/manila-ui-tox-py27dj110/run.yaml new file mode 100644 index 00000000..8c86de58 --- /dev/null +++ b/playbooks/legacy/manila-ui-tox-py27dj110/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-manila-ui-tox-py27dj110 from old job gate-manila-ui-tox-py27dj110-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj110 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manila-ui-tox-py27dj19/post.yaml b/playbooks/legacy/manila-ui-tox-py27dj19/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/manila-ui-tox-py27dj19/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manila-ui-tox-py27dj19/run.yaml b/playbooks/legacy/manila-ui-tox-py27dj19/run.yaml new file mode 100644 index 00000000..865b5b20 --- /dev/null +++ b/playbooks/legacy/manila-ui-tox-py27dj19/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-manila-ui-tox-py27dj19 from old job gate-manila-ui-tox-py27dj19-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj19 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/manilaclient-dsvm-neutron-functional/post.yaml b/playbooks/legacy/manilaclient-dsvm-neutron-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/manilaclient-dsvm-neutron-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/manilaclient-dsvm-neutron-functional/run.yaml b/playbooks/legacy/manilaclient-dsvm-neutron-functional/run.yaml new file mode 100644 index 00000000..c42d73a1 --- /dev/null +++ b/playbooks/legacy/manilaclient-dsvm-neutron-functional/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-manilaclient-dsvm-neutron-functional from old job + gate-manilaclient-dsvm-neutron-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + source $BASE/new/python-manilaclient/contrib/ci/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run functional tests + source $BASE/new/python-manilaclient/contrib/ci/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/merlin-js-release-branch/post.yaml b/playbooks/legacy/merlin-js-release-branch/post.yaml new file mode 100644 index 00000000..9c13a7dd --- /dev/null +++ b/playbooks/legacy/merlin-js-release-branch/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: tarballs/$ZUUL_SHORT_PROJECT_NAME/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/tarballs/*.tar.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/merlin-js-release-branch/run.yaml b/playbooks/legacy/merlin-js-release-branch/run.yaml new file mode 100644 index 00000000..44b82830 --- /dev/null +++ b/playbooks/legacy/merlin-js-release-branch/run.yaml @@ -0,0 +1,92 @@ +- hosts: all + name: Autoconverted job legacy-merlin-js-release-branch from old job merlin-js-release-branch + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh build + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + + # Clean/create a tarball directory + rm -rf tarballs + mkdir -p tarballs + + # Create an archive tarball. + tar -czf $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz dist/ + cp $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/$ZUUL_SHORT_PROJECT_NAME-latest.tar.gz + mv $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/ + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/merlin-js-release-master/post.yaml b/playbooks/legacy/merlin-js-release-master/post.yaml new file mode 100644 index 00000000..9c13a7dd --- /dev/null +++ b/playbooks/legacy/merlin-js-release-master/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: tarballs/$ZUUL_SHORT_PROJECT_NAME/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/tarballs/*.tar.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/merlin-js-release-master/run.yaml b/playbooks/legacy/merlin-js-release-master/run.yaml new file mode 100644 index 00000000..9339ecef --- /dev/null +++ b/playbooks/legacy/merlin-js-release-master/run.yaml @@ -0,0 +1,92 @@ +- hosts: all + name: Autoconverted job legacy-merlin-js-release-master from old job merlin-js-release-master + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh build + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + + # Clean/create a tarball directory + rm -rf tarballs + mkdir -p tarballs + + # Create an archive tarball. + tar -czf $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz dist/ + cp $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/$ZUUL_SHORT_PROJECT_NAME-latest.tar.gz + mv $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/ + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mistral-devstack-dsvm-kombu/post.yaml b/playbooks/legacy/mistral-devstack-dsvm-kombu/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/mistral-devstack-dsvm-kombu/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/mistral-devstack-dsvm-kombu/run.yaml b/playbooks/legacy/mistral-devstack-dsvm-kombu/run.yaml new file mode 100644 index 00000000..1a6cd539 --- /dev/null +++ b/playbooks/legacy/mistral-devstack-dsvm-kombu/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-mistral-devstack-dsvm-kombu from old job gate-mistral-devstack-dsvm-kombu-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + + if [ "mistral" = "python-mistralclient" ] ; then + # This puts the repo in PROJECTS + export DEVSTACK_PROJECT_FROM_GIT="python-mistralclient" + else + export PROJECTS="openstack/python-mistralclient $PROJECTS" + fi + + export ENABLED_SERVICES=heat,h-api,h-api-cfn,h-api-cw,h-eng,tempest + export PROJECTS="openstack/heat $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + export PROJECTS="openstack/mistral-dashboard $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin mistral https://git.openstack.org/openstack/mistral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + if [ "-kombu" == "-non-apache" ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"MISTRAL_USE_MOD_WSGI=False" + fi + + if [ "-kombu" == "-kombu" ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"MISTRAL_RPC_IMPLEMENTATION=kombu" + fi + + function post_test_hook { + cd /opt/stack/new/mistral/functionaltests + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mistral-devstack-dsvm-non-apache/post.yaml b/playbooks/legacy/mistral-devstack-dsvm-non-apache/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/mistral-devstack-dsvm-non-apache/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/mistral-devstack-dsvm-non-apache/run.yaml b/playbooks/legacy/mistral-devstack-dsvm-non-apache/run.yaml new file mode 100644 index 00000000..3a0b3cc0 --- /dev/null +++ b/playbooks/legacy/mistral-devstack-dsvm-non-apache/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-mistral-devstack-dsvm-non-apache from old job gate-mistral-devstack-dsvm-non-apache-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + + if [ "mistral" = "python-mistralclient" ] ; then + # This puts the repo in PROJECTS + export DEVSTACK_PROJECT_FROM_GIT="python-mistralclient" + else + export PROJECTS="openstack/python-mistralclient $PROJECTS" + fi + + export ENABLED_SERVICES=heat,h-api,h-api-cfn,h-api-cw,h-eng,tempest + export PROJECTS="openstack/heat $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + export PROJECTS="openstack/mistral-dashboard $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin mistral https://git.openstack.org/openstack/mistral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + if [ "-non-apache" == "-non-apache" ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"MISTRAL_USE_MOD_WSGI=False" + fi + + if [ "-non-apache" == "-kombu" ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"MISTRAL_RPC_IMPLEMENTATION=kombu" + fi + + function post_test_hook { + cd /opt/stack/new/mistral/functionaltests + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mistral-devstack-dsvm/post.yaml b/playbooks/legacy/mistral-devstack-dsvm/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/mistral-devstack-dsvm/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/mistral-devstack-dsvm/run.yaml b/playbooks/legacy/mistral-devstack-dsvm/run.yaml new file mode 100644 index 00000000..83910541 --- /dev/null +++ b/playbooks/legacy/mistral-devstack-dsvm/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-mistral-devstack-dsvm from old job gate-mistral-devstack-dsvm-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + + if [ "mistral" = "python-mistralclient" ] ; then + # This puts the repo in PROJECTS + export DEVSTACK_PROJECT_FROM_GIT="python-mistralclient" + else + export PROJECTS="openstack/python-mistralclient $PROJECTS" + fi + + export ENABLED_SERVICES=heat,h-api,h-api-cfn,h-api-cw,h-eng,tempest + export PROJECTS="openstack/heat $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + export PROJECTS="openstack/mistral-dashboard $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin mistral https://git.openstack.org/openstack/mistral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + if [ "" == "-non-apache" ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"MISTRAL_USE_MOD_WSGI=False" + fi + + if [ "" == "-kombu" ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"MISTRAL_RPC_IMPLEMENTATION=kombu" + fi + + function post_test_hook { + cd /opt/stack/new/mistral/functionaltests + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mistral-docker-buildimage/post.yaml b/playbooks/legacy/mistral-docker-buildimage/post.yaml new file mode 100644 index 00000000..50b1751c --- /dev/null +++ b/playbooks/legacy/mistral-docker-buildimage/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/mistral-docker.tar.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/mistral-docker-buildimage/run.yaml b/playbooks/legacy/mistral-docker-buildimage/run.yaml new file mode 100644 index 00000000..6f7c7ff4 --- /dev/null +++ b/playbooks/legacy/mistral-docker-buildimage/run.yaml @@ -0,0 +1,40 @@ +- hosts: all + name: Autoconverted job legacy-mistral-docker-buildimage from old job gate-mistral-docker-buildimage + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + ./docker_image_build.sh + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mistral-ha/run.yaml b/playbooks/legacy/mistral-ha/run.yaml new file mode 100644 index 00000000..0b16d63d --- /dev/null +++ b/playbooks/legacy/mistral-ha/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-mistral-ha from old job gate-mistral-ha-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # TODO: this is a temporary solution that puts all installation + # code into a script residing in mistral repo just for more + # convenient debugging (since we will be able to send patchsets to + # mistral with "check experimental" and trigger the gate). After + # it's ready it'll be better to create a special builder in this + # file. + ha_gate/install.sh + ha_gate/run_tests.sh + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mistral-tox-unit-mysql/post.yaml b/playbooks/legacy/mistral-tox-unit-mysql/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/mistral-tox-unit-mysql/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/mistral-tox-unit-mysql/run.yaml b/playbooks/legacy/mistral-tox-unit-mysql/run.yaml new file mode 100644 index 00000000..39bc80ad --- /dev/null +++ b/playbooks/legacy/mistral-tox-unit-mysql/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-mistral-tox-unit-mysql from old job gate-mistral-tox-unit-mysql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh unit-mysql + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mistral-tox-unit-postgresql/post.yaml b/playbooks/legacy/mistral-tox-unit-postgresql/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/mistral-tox-unit-postgresql/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/mistral-tox-unit-postgresql/run.yaml b/playbooks/legacy/mistral-tox-unit-postgresql/run.yaml new file mode 100644 index 00000000..e5002a5e --- /dev/null +++ b/playbooks/legacy/mistral-tox-unit-postgresql/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-mistral-tox-unit-postgresql from old job gate-mistral-tox-unit-postgresql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh unit-postgresql + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mixmatch-dsvm-functional/post.yaml b/playbooks/legacy/mixmatch-dsvm-functional/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/mixmatch-dsvm-functional/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/mixmatch-dsvm-functional/run.yaml b/playbooks/legacy/mixmatch-dsvm-functional/run.yaml new file mode 100644 index 00000000..45023d9e --- /dev/null +++ b/playbooks/legacy/mixmatch-dsvm-functional/run.yaml @@ -0,0 +1,45 @@ +- hosts: all + name: Autoconverted job legacy-mixmatch-dsvm-functional from old job gate-mixmatch-dsvm-functional-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE=default + export PROJECTS="openstack/mixmatch $PROJECTS" + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export DEVSTACK_LOCAL_CONFIG="enable_plugin mixmatch git://git.openstack.org/openstack/mixmatch" + + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + + function post_test_hook { + # Configure and run functional tests + $BASE/new/mixmatch/mixmatch/tests/functional/hooks/dsvm_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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mogan-dsvm-tempest-plugin/post.yaml b/playbooks/legacy/mogan-dsvm-tempest-plugin/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/mogan-dsvm-tempest-plugin/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/mogan-dsvm-tempest-plugin/run.yaml b/playbooks/legacy/mogan-dsvm-tempest-plugin/run.yaml new file mode 100644 index 00000000..2273f30e --- /dev/null +++ b/playbooks/legacy/mogan-dsvm-tempest-plugin/run.yaml @@ -0,0 +1,61 @@ +- hosts: all + name: Autoconverted job legacy-mogan-dsvm-tempest-plugin from old job gate-mogan-dsvm-tempest-plugin + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin ironic git://git.openstack.org/openstack/ironic + enable_plugin mogan git://git.openstack.org/openstack/mogan + IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True + IRONIC_USE_RESOURCE_CLASSES=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + # Run only mogan tests + export DEVSTACK_GATE_TEMPEST_REGEX="^mogan\." + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export PROJECTS="openstack/mogan $PROJECTS" + export PROJECTS="openstack/python-moganclient $PROJECTS" + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export OVERRIDE_ENABLED_SERVICES="g-api,g-reg,q-agt,q-dhcp,q-l3,q-svc,key,mysql,rabbit,ir-api,ir-cond,s-account,s-container,s-object,s-proxy,tempest" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/mogan-tox-functional/post.yaml b/playbooks/legacy/mogan-tox-functional/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/mogan-tox-functional/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/mogan-tox-functional/run.yaml b/playbooks/legacy/mogan-tox-functional/run.yaml new file mode 100644 index 00000000..2d23af18 --- /dev/null +++ b/playbooks/legacy/mogan-tox-functional/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-mogan-tox-functional from old job gate-mogan-tox-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/monasca-api-localrepo-upload/post.yaml b/playbooks/legacy/monasca-api-localrepo-upload/post.yaml new file mode 100644 index 00000000..a0926cd8 --- /dev/null +++ b/playbooks/legacy/monasca-api-localrepo-upload/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/$ZUUL_SHORT_PROJECT_NAME' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/target/$ZUUL_SHORT_PROJECT_NAME-*.jar + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/monasca-api-localrepo-upload/run.yaml b/playbooks/legacy/monasca-api-localrepo-upload/run.yaml new file mode 100644 index 00000000..05b5435f --- /dev/null +++ b/playbooks/legacy/monasca-api-localrepo-upload/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-monasca-api-localrepo-upload from old job monasca-api-localrepo-upload-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + mvn clean package -Dproject-version=$PROJECT_VER + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/monasca-api-maven-build/run.yaml b/playbooks/legacy/monasca-api-maven-build/run.yaml new file mode 100644 index 00000000..73e0c3b7 --- /dev/null +++ b/playbooks/legacy/monasca-api-maven-build/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-monasca-api-maven-build from old job gate-monasca-api-maven-build-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + mvn clean package -B -Dproject-version=$PROJECT_VER + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/monasca-common-localrepo-upload/post.yaml b/playbooks/legacy/monasca-common-localrepo-upload/post.yaml new file mode 100644 index 00000000..a0926cd8 --- /dev/null +++ b/playbooks/legacy/monasca-common-localrepo-upload/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/$ZUUL_SHORT_PROJECT_NAME' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/target/$ZUUL_SHORT_PROJECT_NAME-*.jar + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/monasca-common-localrepo-upload/run.yaml b/playbooks/legacy/monasca-common-localrepo-upload/run.yaml new file mode 100644 index 00000000..54280155 --- /dev/null +++ b/playbooks/legacy/monasca-common-localrepo-upload/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-monasca-common-localrepo-upload from old job monasca-common-localrepo-upload-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + mvn clean package -Dproject-version=$PROJECT_VER + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/monasca-common-maven-build/run.yaml b/playbooks/legacy/monasca-common-maven-build/run.yaml new file mode 100644 index 00000000..f88e0776 --- /dev/null +++ b/playbooks/legacy/monasca-common-maven-build/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-monasca-common-maven-build from old job gate-monasca-common-maven-build-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + mvn clean package -B -Dproject-version=$PROJECT_VER + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/monasca-persister-localrepo-upload/post.yaml b/playbooks/legacy/monasca-persister-localrepo-upload/post.yaml new file mode 100644 index 00000000..a0926cd8 --- /dev/null +++ b/playbooks/legacy/monasca-persister-localrepo-upload/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/$ZUUL_SHORT_PROJECT_NAME' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/target/$ZUUL_SHORT_PROJECT_NAME-*.jar + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/monasca-persister-localrepo-upload/run.yaml b/playbooks/legacy/monasca-persister-localrepo-upload/run.yaml new file mode 100644 index 00000000..0e66749e --- /dev/null +++ b/playbooks/legacy/monasca-persister-localrepo-upload/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-monasca-persister-localrepo-upload from old job monasca-persister-localrepo-upload-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + mvn clean package -Dproject-version=$PROJECT_VER + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/monasca-persister-maven-build/run.yaml b/playbooks/legacy/monasca-persister-maven-build/run.yaml new file mode 100644 index 00000000..e81a2023 --- /dev/null +++ b/playbooks/legacy/monasca-persister-maven-build/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-monasca-persister-maven-build from old job gate-monasca-persister-maven-build-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + mvn clean package -B -Dproject-version=$PROJECT_VER + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/monasca-thresh-localrepo-upload/post.yaml b/playbooks/legacy/monasca-thresh-localrepo-upload/post.yaml new file mode 100644 index 00000000..a0926cd8 --- /dev/null +++ b/playbooks/legacy/monasca-thresh-localrepo-upload/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/$ZUUL_SHORT_PROJECT_NAME' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/target/$ZUUL_SHORT_PROJECT_NAME-*.jar + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/monasca-thresh-localrepo-upload/run.yaml b/playbooks/legacy/monasca-thresh-localrepo-upload/run.yaml new file mode 100644 index 00000000..98304128 --- /dev/null +++ b/playbooks/legacy/monasca-thresh-localrepo-upload/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-monasca-thresh-localrepo-upload from old job monasca-thresh-localrepo-upload-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + mvn clean package -Dproject-version=$PROJECT_VER + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/monasca-thresh-maven-build/run.yaml b/playbooks/legacy/monasca-thresh-maven-build/run.yaml new file mode 100644 index 00000000..1e3914ce --- /dev/null +++ b/playbooks/legacy/monasca-thresh-maven-build/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-monasca-thresh-maven-build from old job gate-monasca-thresh-maven-build-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + mvn clean package -B -Dproject-version=$PROJECT_VER + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/monitorstack-releasenotes/post.yaml b/playbooks/legacy/monitorstack-releasenotes/post.yaml new file mode 100644 index 00000000..c86f36f5 --- /dev/null +++ b/playbooks/legacy/monitorstack-releasenotes/post.yaml @@ -0,0 +1,10 @@ +- hosts: all + tasks: + + - name: Copy files from releasenotes/build/html/ on node + synchronize: + src: releasenotes/build/html/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true diff --git a/playbooks/legacy/monitorstack-releasenotes/run.yaml b/playbooks/legacy/monitorstack-releasenotes/run.yaml new file mode 100644 index 00000000..86c4ff5d --- /dev/null +++ b/playbooks/legacy/monitorstack-releasenotes/run.yaml @@ -0,0 +1,192 @@ +- hosts: all + name: Autoconverted job legacy-monitorstack-releasenotes from old job gate-monitorstack-releasenotes + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + # + # Licensed under the Apache License, Version 2.0 (the "License"); you may + # not use this file except in compliance with the License. You may obtain + # a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + # License for the specific language governing permissions and limitations + # under the License. + + DOCNAME=releasenotes + DIRECTORY=releasenotes + + script_path=/usr/local/jenkins/slave_scripts + + # Mapping of language codes to language names + declare -A LANG_NAME=( + ["de"]="German" + ["en_AU"]="English (Australian)" + ["en_GB"]="English (United Kingdom)" + ["es"]="Spanish" + ["fr"]="French" + ["id"]="Indonesian" + ["it"]="Italian" + ["ja"]="Japanese" + ["ko_KR"]="Korean (South Korea)" + ["pt_BR"]="Portuguese (Brazil)" + ["ru"]="Russian" + ["tr_TR"]="Turkish (Turkey)" + ["zh_CN"]="Chinese (China)" + ) + + # This file always exists in OpenStack CI jobs, check for it so that + # it can be used manually as well. + if [ -e "$(pwd)/upper-constraints.txt" ]; then + export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt + fi + + if [ ! -e ${DIRECTORY}/source/locale/ ]; then + echo "No translations found, only building normal release notes" + $script_path/run-tox.sh releasenotes + exit 0 + fi + + # Check that locale_dirs is really set, otherwise translations + # will not work. + if ! grep -q -E '^locale_dirs *=' $DIRECTORY/source/conf.py; then + echo "Translations exist and locale_dirs missing in source/conf.py" + exit 1 + fi + + + REFERENCES=`mktemp` + trap "rm -f -- '$REFERENCES'" EXIT + + # Extract translations + tox -e venv -- sphinx-build -b gettext \ + -d ${DIRECTORY}/build/doctrees.gettext \ + ${DIRECTORY}/source/ \ + ${DIRECTORY}/source/locale/ + + # Add links for translations to index file + cat <> ${REFERENCES} + + Translated Release Notes + ======================== + + EOF + + # Check all language translation resources + for locale in `find ${DIRECTORY}/source/locale/ -maxdepth 1 -type d` ; do + # Skip if it is not a valid language translation resource. + if [ ! -e ${locale}/LC_MESSAGES/${DOCNAME}.po ]; then + continue + fi + language=$(basename $locale) + + echo "Building $language translation" + + # Prepare all translation resources + for pot in ${DIRECTORY}/source/locale/*.pot ; do + # Get filename + resname=$(basename ${pot} .pot) + + # Merge all translation resources. Note this is done the same + # way as done in common_translation_update.sh where we merge + # all strings together in a single file. + msgmerge --silent -o \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.po \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po \ + ${pot} + # Compile all translation resources + msgfmt -o \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.mo \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.po + done + + # Build translated document + tox -e venv -- sphinx-build -b html -D language=${language} \ + -d "${DIRECTORY}/build/doctrees.${language}" \ + ${DIRECTORY}/source/ ${DIRECTORY}/build/html/${language} + + # Reference translated document from index file + if [ ${LANG_NAME["${language}"]+_} ] ; then + name=${LANG_NAME["${language}"]} + name+=" (${language})" + echo "* \`$name <${language}/index.html>\`__" >> ${REFERENCES} + else + echo "* \`${language} <${language}/index.html>\`__" >> ${REFERENCES} + fi + + # Remove newly created files + git clean -f -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/*.po + git clean -f -x -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/*.mo + # revert changes to po file + git reset -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po + git checkout -- ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po + done + + # Now append our references to the index file. We cannot do this + # earlier since the sphinx commands will read this file. + cat ${REFERENCES} >> ${DIRECTORY}/source/index.rst + + # Remove newly created pot files + rm -f ${DIRECTORY}/source/locale/*.pot + + # Now build releasenotes with reference to translations + $script_path/run-tox.sh releasenotes + + # Revert any changes to the index file. + git checkout -- ${DIRECTORY}/source/index.rst + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/murano-congress-devstack-dsvm/post.yaml b/playbooks/legacy/murano-congress-devstack-dsvm/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/murano-congress-devstack-dsvm/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/murano-congress-devstack-dsvm/run.yaml b/playbooks/legacy/murano-congress-devstack-dsvm/run.yaml new file mode 100644 index 00000000..49815391 --- /dev/null +++ b/playbooks/legacy/murano-congress-devstack-dsvm/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-murano-congress-devstack-dsvm from old job gate-murano-congress-devstack-dsvm-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin heat git://git.openstack.org/openstack/heat + enable_plugin mistral git://git.openstack.org/openstack/mistral + enable_plugin congress git://git.openstack.org/openstack/congress + MURANO_ENABLE_MODEL_POLICY_ENFORCEMENT=True + enable_plugin murano git://git.openstack.org/openstack/murano + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=tempest + export PROJECTS="openstack/heat $PROJECTS" + export PROJECTS="openstack/python-heatclient $PROJECTS" + export PROJECTS="openstack/murano $PROJECTS" + export PROJECTS="openstack/murano-dashboard $PROJECTS" + export PROJECTS="openstack/python-muranoclient $PROJECTS" + export PROJECTS="openstack/congress $PROJECTS" + export PROJECTS="openstack/python-congressclient $PROJECTS" + export PROJECTS="openstack/congress-dashboard $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + export PROJECTS="openstack/mistral-dashboard $PROJECTS" + export PROJECTS="openstack/python-mistralclient $PROJECTS" + export KEEP_LOCALRC=1 + + # Enable murano devstack plugin. Provided repo should be cloned by zuul before devstack run + # and below provided link should not be used. + + function pre_test_hook { + cd /opt/stack/new/murano/functionaltests + ./pre_test_hook_congress.sh + ./pre_test_hook_mistral.sh + ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/murano/functionaltests + ./post_test_hook.sh congress_mistral + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/murano-dsvm-functional/post.yaml b/playbooks/legacy/murano-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/murano-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/murano-dsvm-functional/run.yaml b/playbooks/legacy/murano-dsvm-functional/run.yaml new file mode 100644 index 00000000..bb18ae43 --- /dev/null +++ b/playbooks/legacy/murano-dsvm-functional/run.yaml @@ -0,0 +1,61 @@ +- hosts: all + name: Autoconverted job legacy-murano-dsvm-functional from old job gate-murano-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin heat git://git.openstack.org/openstack/heat + enable_plugin murano git://git.openstack.org/openstack/murano + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_NEUTRON=1 + + export PROJECTS="openstack/heat $PROJECTS" + export PROJECTS="openstack/python-heatclient $PROJECTS" + export PROJECTS="openstack/murano $PROJECTS" + export PROJECTS="openstack/murano-dashboard $PROJECTS" + export PROJECTS="openstack/python-muranoclient $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook { + source $BASE/new/murano/functionaltests/post_test_hook_experimental.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/murano-firstapp-docs/post.yaml b/playbooks/legacy/murano-firstapp-docs/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/murano-firstapp-docs/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/murano-firstapp-docs/run.yaml b/playbooks/legacy/murano-firstapp-docs/run.yaml new file mode 100644 index 00000000..8933c49b --- /dev/null +++ b/playbooks/legacy/murano-firstapp-docs/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-murano-firstapp-docs from old job murano-firstapp-docs + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh murano-firstapp + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID Revision: $ZUUL_NEWREV" + echo $MARKER_TEXT > doc/build/murano-firstapp/html/.root-marker + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/muranoclient-dsvm-functional-mysql-backend/post.yaml b/playbooks/legacy/muranoclient-dsvm-functional-mysql-backend/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/muranoclient-dsvm-functional-mysql-backend/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/muranoclient-dsvm-functional-mysql-backend/run.yaml b/playbooks/legacy/muranoclient-dsvm-functional-mysql-backend/run.yaml new file mode 100644 index 00000000..8d0c2f88 --- /dev/null +++ b/playbooks/legacy/muranoclient-dsvm-functional-mysql-backend/run.yaml @@ -0,0 +1,67 @@ +- hosts: all + name: Autoconverted job legacy-muranoclient-dsvm-functional-mysql-backend from old + job gate-muranoclient-dsvm-functional-mysql-backend-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_PROJECT_FROM_GIT=python-muranoclient + export BRANCH_OVERRIDE=default + + export ENABLED_SERVICES=tempest + export PROJECTS="openstack/heat $PROJECTS" + export PROJECTS="openstack/python-heatclient $PROJECTS" + export PROJECTS="openstack/murano $PROJECTS" + export PROJECTS="openstack/murano-dashboard $PROJECTS" + export KEEP_LOCALRC=1 + + # Enable murano devstack plugin. Provided repo should be cloned by zuul before devstack run + # and below provided link should not be used. + export DEVSTACK_LOCAL_CONFIG="enable_plugin heat git://git.openstack.org/openstack/heat" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin murano git://git.openstack.org/openstack/murano" + + if [ "mysql-backend" = "glare-backend" ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service g-glare" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"MURANO_USE_GLARE=True" + fi + + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function pre_test_hook { + # Install Murano devstack modules + cd /opt/stack/new/murano/functionaltests + ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run functional tests + /opt/stack/new/python-muranoclient/muranoclient/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-bagpipe-dsvm-fullstack/post.yaml b/playbooks/legacy/networking-bagpipe-dsvm-fullstack/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/networking-bagpipe-dsvm-fullstack/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/networking-bagpipe-dsvm-fullstack/run.yaml b/playbooks/legacy/networking-bagpipe-dsvm-fullstack/run.yaml new file mode 100644 index 00000000..695afb3d --- /dev/null +++ b/playbooks/legacy/networking-bagpipe-dsvm-fullstack/run.yaml @@ -0,0 +1,74 @@ +- hosts: all + name: Autoconverted job legacy-networking-bagpipe-dsvm-fullstack from old job gate-networking-bagpipe-dsvm-fullstack-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-bagpipe git://git.openstack.org/openstack/networking-bagpipe + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-bagpipe $PROJECTS" + # we need to add networking-bgpvpn as well, which we + # depend on + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + + function pre_test_hook { + . $BASE/new/networking-bagpipe/devstack/pre_test_hook.sh fullstack + } + export -f pre_test_hook + + function gate_hook { + bash -xe $BASE/new/networking-bagpipe/devstack/gate_hook.sh fullstack + } + export -f gate_hook + + function post_test_hook { + . $BASE/new/networking-bagpipe/devstack/post_test_hook.sh fullstack + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-bagpipe/devstack/devstack-gate-rc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-functional/post.yaml b/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-functional/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-functional/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-functional/run.yaml b/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-functional/run.yaml new file mode 100644 index 00000000..8e9181a1 --- /dev/null +++ b/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-functional/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-networking-bgpvpn-bagpipe-dsvm-functional from old + job gate-networking-bgpvpn-bagpipe-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-bgpvpn git://git.openstack.org/openstack/networking-bgpvpn + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export PROJECTS="openstack/networking-bagpipe $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + . $BASE/new/networking-bgpvpn/devstack/pre_test_hook.sh dsvm-bagpipe-functional + } + export -f pre_test_hook + + function gate_hook { + . $BASE/new/networking-bgpvpn/devstack/gate_hook.sh dsvm-bagpipe-functional + } + export -f gate_hook + + function post_test_hook { + . $BASE/new/networking-bgpvpn/devstack/post_test_hook.sh dsvm-bagpipe-functional + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-bgpvpn/devstack/devstack-gate-bagpipe-rc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-install/post.yaml b/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-install/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-install/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-install/run.yaml b/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-install/run.yaml new file mode 100644 index 00000000..0f768876 --- /dev/null +++ b/playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-install/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-networking-bgpvpn-bagpipe-dsvm-install from old job + gate-networking-bgpvpn-bagpipe-dsvm-install-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-bgpvpn git://git.openstack.org/openstack/networking-bgpvpn + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export PROJECTS="openstack/networking-bagpipe $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + . $BASE/new/networking-bgpvpn/devstack/pre_test_hook.sh dsvm-bagpipe-install + } + export -f pre_test_hook + + function gate_hook { + . $BASE/new/networking-bgpvpn/devstack/gate_hook.sh dsvm-bagpipe-install + } + export -f gate_hook + + function post_test_hook { + . $BASE/new/networking-bgpvpn/devstack/post_test_hook.sh dsvm-bagpipe-install + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-bgpvpn/devstack/devstack-gate-bagpipe-rc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-bgpvpn-dsvm-functional/post.yaml b/playbooks/legacy/networking-bgpvpn-dsvm-functional/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/networking-bgpvpn-dsvm-functional/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/networking-bgpvpn-dsvm-functional/run.yaml b/playbooks/legacy/networking-bgpvpn-dsvm-functional/run.yaml new file mode 100644 index 00000000..7cb9d0e1 --- /dev/null +++ b/playbooks/legacy/networking-bgpvpn-dsvm-functional/run.yaml @@ -0,0 +1,70 @@ +- hosts: all + name: Autoconverted job legacy-networking-bgpvpn-dsvm-functional from old job gate-networking-bgpvpn-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-bgpvpn git://git.openstack.org/openstack/networking-bgpvpn + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + . $BASE/new/networking-bgpvpn/devstack/pre_test_hook.sh dsvm-functional + } + export -f pre_test_hook + + function gate_hook { + . $BASE/new/networking-bgpvpn/devstack/gate_hook.sh dsvm-functional + } + export -f gate_hook + + function post_test_hook { + . $BASE/new/networking-bgpvpn/devstack/post_test_hook.sh dsvm-functional + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-bgpvpn/devstack/devstack-gate-rc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-bgpvpn-dsvm-install/post.yaml b/playbooks/legacy/networking-bgpvpn-dsvm-install/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/networking-bgpvpn-dsvm-install/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/networking-bgpvpn-dsvm-install/run.yaml b/playbooks/legacy/networking-bgpvpn-dsvm-install/run.yaml new file mode 100644 index 00000000..37ef129d --- /dev/null +++ b/playbooks/legacy/networking-bgpvpn-dsvm-install/run.yaml @@ -0,0 +1,70 @@ +- hosts: all + name: Autoconverted job legacy-networking-bgpvpn-dsvm-install from old job gate-networking-bgpvpn-dsvm-install-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-bgpvpn git://git.openstack.org/openstack/networking-bgpvpn + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + . $BASE/new/networking-bgpvpn/devstack/pre_test_hook.sh dsvm-install + } + export -f pre_test_hook + + function gate_hook { + . $BASE/new/networking-bgpvpn/devstack/gate_hook.sh dsvm-install + } + export -f gate_hook + + function post_test_hook { + . $BASE/new/networking-bgpvpn/devstack/post_test_hook.sh dsvm-install + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-bgpvpn/devstack/devstack-gate-rc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-cisco-tox-master/post.yaml b/playbooks/legacy/networking-cisco-tox-master/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/networking-cisco-tox-master/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/networking-cisco-tox-master/run.yaml b/playbooks/legacy/networking-cisco-tox-master/run.yaml new file mode 100644 index 00000000..01da2df8 --- /dev/null +++ b/playbooks/legacy/networking-cisco-tox-master/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-networking-cisco-tox-master from old job gate-networking-cisco-tox-master-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh master + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-cisco-tox-newton/post.yaml b/playbooks/legacy/networking-cisco-tox-newton/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/networking-cisco-tox-newton/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/networking-cisco-tox-newton/run.yaml b/playbooks/legacy/networking-cisco-tox-newton/run.yaml new file mode 100644 index 00000000..9c1ea165 --- /dev/null +++ b/playbooks/legacy/networking-cisco-tox-newton/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-networking-cisco-tox-newton from old job gate-networking-cisco-tox-newton-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh newton + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-cisco-tox-ocata/post.yaml b/playbooks/legacy/networking-cisco-tox-ocata/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/networking-cisco-tox-ocata/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/networking-cisco-tox-ocata/run.yaml b/playbooks/legacy/networking-cisco-tox-ocata/run.yaml new file mode 100644 index 00000000..fc3e98b0 --- /dev/null +++ b/playbooks/legacy/networking-cisco-tox-ocata/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-networking-cisco-tox-ocata from old job gate-networking-cisco-tox-ocata-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh ocata + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-cisco-tox-pike/post.yaml b/playbooks/legacy/networking-cisco-tox-pike/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/networking-cisco-tox-pike/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/networking-cisco-tox-pike/run.yaml b/playbooks/legacy/networking-cisco-tox-pike/run.yaml new file mode 100644 index 00000000..5e2f8e59 --- /dev/null +++ b/playbooks/legacy/networking-cisco-tox-pike/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-networking-cisco-tox-pike from old job gate-networking-cisco-tox-pike-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh pike + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-generic-switch-dsvm-tempest/post.yaml b/playbooks/legacy/networking-generic-switch-dsvm-tempest/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/networking-generic-switch-dsvm-tempest/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/networking-generic-switch-dsvm-tempest/run.yaml b/playbooks/legacy/networking-generic-switch-dsvm-tempest/run.yaml new file mode 100644 index 00000000..66ef73c7 --- /dev/null +++ b/playbooks/legacy/networking-generic-switch-dsvm-tempest/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-networking-generic-switch-dsvm-tempest from old job + gate-networking-generic-switch-dsvm-tempest + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-generic-switch git://git.openstack.org/openstack/networking-generic-switch + OVS_PHYSICAL_BRIDGE=brbm + PHYSICAL_NETWORK=mynetwork + Q_PLUGIN=ml2 + ENABLE_TENANT_VLANS=True + Q_ML2_TENANT_NETWORK_TYPE=vlan + TENANT_VLAN_RANGE=100:150 + # test with DLM support enabled + GENERIC_SWITCH_USER_MAX_SESSIONS=2 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX='ngs' + export BRANCH_OVERRIDE=default + export OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,q-svc,q-agt,q-dhcp,q-l3,tempest,etcd3 + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/networking-generic-switch $PROJECTS" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-l2gw-dsvm-functional/post.yaml b/playbooks/legacy/networking-l2gw-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/networking-l2gw-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/networking-l2gw-dsvm-functional/run.yaml b/playbooks/legacy/networking-l2gw-dsvm-functional/run.yaml new file mode 100644 index 00000000..74fad0b3 --- /dev/null +++ b/playbooks/legacy/networking-l2gw-dsvm-functional/run.yaml @@ -0,0 +1,70 @@ +- hosts: all + name: Autoconverted job legacy-networking-l2gw-dsvm-functional from old job gate-networking-l2gw-dsvm-functional-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-l2gw git://git.openstack.org/openstack/networking-l2gw + enable_service l2gw-plugin l2gw-agent + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-l2gw $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + bash -xe $BASE/new/networking-l2gw/networking_l2gw/tests/contrib/gate_hook.sh api + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/networking-l2gw/networking_l2gw/tests/contrib/post_test_hook.sh api + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-l2gw/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-l2gw-dsvm-tempest-api-dummy-driver/post.yaml b/playbooks/legacy/networking-l2gw-dsvm-tempest-api-dummy-driver/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/networking-l2gw-dsvm-tempest-api-dummy-driver/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/networking-l2gw-dsvm-tempest-api-dummy-driver/run.yaml b/playbooks/legacy/networking-l2gw-dsvm-tempest-api-dummy-driver/run.yaml new file mode 100644 index 00000000..f099151d --- /dev/null +++ b/playbooks/legacy/networking-l2gw-dsvm-tempest-api-dummy-driver/run.yaml @@ -0,0 +1,56 @@ +- hosts: all + name: Autoconverted job legacy-networking-l2gw-dsvm-tempest-api-dummy-driver from + old job gate-networking-l2gw-dsvm-tempest-api-dummy-driver-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + # L2 Gateway + enable_plugin networking-l2gw git://git.openstack.org/openstack/networking-l2gw + enable_service l2gw-plugin + NETWORKING_L2GW_SERVICE_DRIVER=L2GW:l2gw:networking_l2gw.services.l2gateway.service_drivers.L2gwDriver:default + TEMPEST_PLUGINS='/opt/stack/new/networking-l2gw /opt/stack/new/neutron' + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="networking_l2gw" + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-l2gw $PROJECTS" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-midonet-rally-dsvm-ml2/post.yaml b/playbooks/legacy/networking-midonet-rally-dsvm-ml2/post.yaml new file mode 100644 index 00000000..86dc5ca5 --- /dev/null +++ b/playbooks/legacy/networking-midonet-rally-dsvm-ml2/post.yaml @@ -0,0 +1,106 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/networking-midonet-rally-dsvm-ml2/run.yaml b/playbooks/legacy/networking-midonet-rally-dsvm-ml2/run.yaml new file mode 100644 index 00000000..ccc21245 --- /dev/null +++ b/playbooks/legacy/networking-midonet-rally-dsvm-ml2/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-networking-midonet-rally-dsvm-ml2 from old job gate-networking-midonet-rally-dsvm-ml2-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export RALLY_SCENARIO=networking-midonet + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-midonet $PROJECTS" + export PROJECTS="openstack/rally $PROJECTS" + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-midonet/devstack/devstackgaterc + + function gate_hook { + bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh rally-ml2 + } + export -f gate_hook + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-midonet-rally-dsvm-v2/post.yaml b/playbooks/legacy/networking-midonet-rally-dsvm-v2/post.yaml new file mode 100644 index 00000000..86dc5ca5 --- /dev/null +++ b/playbooks/legacy/networking-midonet-rally-dsvm-v2/post.yaml @@ -0,0 +1,106 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/networking-midonet-rally-dsvm-v2/run.yaml b/playbooks/legacy/networking-midonet-rally-dsvm-v2/run.yaml new file mode 100644 index 00000000..3ed745db --- /dev/null +++ b/playbooks/legacy/networking-midonet-rally-dsvm-v2/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-networking-midonet-rally-dsvm-v2 from old job gate-networking-midonet-rally-dsvm-v2-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export RALLY_SCENARIO=networking-midonet + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-midonet $PROJECTS" + export PROJECTS="openstack/rally $PROJECTS" + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-midonet/devstack/devstackgaterc + + function gate_hook { + bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh rally-v2 + } + export -f gate_hook + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-ovn-dsvm-functional-py35/post.yaml b/playbooks/legacy/networking-ovn-dsvm-functional-py35/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/networking-ovn-dsvm-functional-py35/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/networking-ovn-dsvm-functional-py35/run.yaml b/playbooks/legacy/networking-ovn-dsvm-functional-py35/run.yaml new file mode 100644 index 00000000..1af00187 --- /dev/null +++ b/playbooks/legacy/networking-ovn-dsvm-functional-py35/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-networking-ovn-dsvm-functional-py35 from old job + gate-networking-ovn-dsvm-functional-py35 + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-ovn $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/networking-ovn/networking_ovn/tests/contrib/gate_hook.sh dsvm-functional-py35 + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/networking-ovn/networking_ovn/tests/contrib/post_test_hook.sh dsvm-functional-py35 + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-ovn-dsvm-functional/post.yaml b/playbooks/legacy/networking-ovn-dsvm-functional/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/networking-ovn-dsvm-functional/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/networking-ovn-dsvm-functional/run.yaml b/playbooks/legacy/networking-ovn-dsvm-functional/run.yaml new file mode 100644 index 00000000..dafca35a --- /dev/null +++ b/playbooks/legacy/networking-ovn-dsvm-functional/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-networking-ovn-dsvm-functional from old job gate-networking-ovn-dsvm-functional + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-ovn $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/networking-ovn/networking_ovn/tests/contrib/gate_hook.sh dsvm-functional + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/networking-ovn/networking_ovn/tests/contrib/post_test_hook.sh dsvm-functional + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-sfc-functional-dsvm/post.yaml b/playbooks/legacy/networking-sfc-functional-dsvm/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/networking-sfc-functional-dsvm/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/networking-sfc-functional-dsvm/run.yaml b/playbooks/legacy/networking-sfc-functional-dsvm/run.yaml new file mode 100644 index 00000000..dcaee233 --- /dev/null +++ b/playbooks/legacy/networking-sfc-functional-dsvm/run.yaml @@ -0,0 +1,67 @@ +- hosts: all + name: Autoconverted job legacy-networking-sfc-functional-dsvm from old job gate-networking-sfc-functional-dsvm-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-sfc git://git.openstack.org/openstack/networking-sfc + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-sfc $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + bash -xe $BASE/new/networking-sfc/networking_sfc/tests/contrib/gate_hook.sh dsvm-functional + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/networking-sfc/networking_sfc/tests/contrib/post_test_hook.sh dsvm-functional + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/networking-vpp-smoke/post.yaml b/playbooks/legacy/networking-vpp-smoke/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/networking-vpp-smoke/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/networking-vpp-smoke/run.yaml b/playbooks/legacy/networking-vpp-smoke/run.yaml new file mode 100644 index 00000000..b81b29e6 --- /dev/null +++ b/playbooks/legacy/networking-vpp-smoke/run.yaml @@ -0,0 +1,66 @@ +- hosts: all + name: Autoconverted job legacy-networking-vpp-smoke from old job gate-networking-vpp-smoke-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-vpp git://git.openstack.org/openstack/networking-vpp + Q_PLUGIN=ml2 + Q_USE_SECGROUP=True + Q_ML2_PLUGIN_MECHANISM_DRIVERS=vpp + Q_ML2_PLUGIN_TYPE_DRIVERS=vlan,flat + Q_ML2_TENANT_NETWORK_TYPE=vlan + ML2_VLAN_RANGES=physnet:100:200 + MECH_VPP_PHYSNETLIST=physnet:tap-0 + disable_service horizon + disable_service ceilometer-acentral ceilometer-acompute + disable_service ceilometer-alarm-evaluator + disable_service ceilometer-alarm-notifier + disable_service ceilometer-anotification ceilometer-api + disable_service ceilometer-collector + disable_service s-account s-container s-object s-proxy + disable_service cinder c-sch c-api c-vol + disable_service etcd3 + disable_service q-agt + NR_HUGEPAGES=1024 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_TEMPEST=1 + export PROJECTS="openstack/networking-vpp $PROJECTS" + + export KEEP_LOCALRC=1 + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dsvm-api-pecan/post.yaml b/playbooks/legacy/neutron-dsvm-api-pecan/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutron-dsvm-api-pecan/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-dsvm-api-pecan/run.yaml b/playbooks/legacy/neutron-dsvm-api-pecan/run.yaml new file mode 100644 index 00000000..be5936a5 --- /dev/null +++ b/playbooks/legacy/neutron-dsvm-api-pecan/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-neutron-dsvm-api-pecan from old job gate-neutron-dsvm-api-pecan-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_EXERCISES=0 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # NOTE(armax): this condition should be revised every time each of the + # branches below are dropped. Prior to Newton, the API Tempest tests are + # invoked explicitly and thus we need the following variables set. From + # Newton onward, everything is taken care of by the Tempest plugin framework + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^neutron.tests.tempest.api\." + + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh api-pecan + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/post_test_hook.sh api-pecan + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dsvm-api/post.yaml b/playbooks/legacy/neutron-dsvm-api/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutron-dsvm-api/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-dsvm-api/run.yaml b/playbooks/legacy/neutron-dsvm-api/run.yaml new file mode 100644 index 00000000..a46e258e --- /dev/null +++ b/playbooks/legacy/neutron-dsvm-api/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-neutron-dsvm-api from old job gate-neutron-dsvm-api-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_EXERCISES=0 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # NOTE(armax): this condition should be revised every time each of the + # branches below are dropped. Prior to Newton, the API Tempest tests are + # invoked explicitly and thus we need the following variables set. From + # Newton onward, everything is taken care of by the Tempest plugin framework + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^neutron.tests.tempest.api\." + + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh api + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/post_test_hook.sh api + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dsvm-fullstack/post.yaml b/playbooks/legacy/neutron-dsvm-fullstack/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutron-dsvm-fullstack/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-dsvm-fullstack/run.yaml b/playbooks/legacy/neutron-dsvm-fullstack/run.yaml new file mode 100644 index 00000000..97b49267 --- /dev/null +++ b/playbooks/legacy/neutron-dsvm-fullstack/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-neutron-dsvm-fullstack from old job gate-neutron-dsvm-fullstack-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh dsvm-fullstack + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/post_test_hook.sh dsvm-fullstack + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dsvm-functional/post.yaml b/playbooks/legacy/neutron-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutron-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-dsvm-functional/run.yaml b/playbooks/legacy/neutron-dsvm-functional/run.yaml new file mode 100644 index 00000000..63585263 --- /dev/null +++ b/playbooks/legacy/neutron-dsvm-functional/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-neutron-dsvm-functional from old job gate-neutron-dsvm-functional-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh dsvm-functional + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/post_test_hook.sh dsvm-functional + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dsvm-tempest-vpnaas/post.yaml b/playbooks/legacy/neutron-dsvm-tempest-vpnaas/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutron-dsvm-tempest-vpnaas/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-dsvm-tempest-vpnaas/run.yaml b/playbooks/legacy/neutron-dsvm-tempest-vpnaas/run.yaml new file mode 100644 index 00000000..153f0131 --- /dev/null +++ b/playbooks/legacy/neutron-dsvm-tempest-vpnaas/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-neutron-dsvm-tempest-vpnaas from old job gate-neutron-dsvm-tempest-vpnaas-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^neutron_vpnaas\." + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/neutron-vpnaas/neutron_vpnaas/tests/contrib/gate_hook.sh tempest + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/neutron-vpnaas/neutron_vpnaas/tests/contrib/post_test_hook.sh tempest + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-functional/post.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-functional/run.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-functional/run.yaml new file mode 100644 index 00000000..e9209595 --- /dev/null +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-functional/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-neutron-dynamic-routing-dsvm-functional from old + job gate-neutron-dynamic-routing-dsvm-functional + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/neutron-dynamic-routing/neutron_dynamic_routing/tests/contrib/gate_hook.sh dsvm-functional + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/neutron-dynamic-routing/neutron_dynamic_routing/tests/contrib/post_test_hook.sh dsvm-functional + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-api/post.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-api/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-api/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-api/run.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-api/run.yaml new file mode 100644 index 00000000..a4b0bb91 --- /dev/null +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-api/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-neutron-dynamic-routing-dsvm-tempest-api from old + job gate-neutron-dynamic-routing-dsvm-tempest-api + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin neutron-dynamic-routing git://git.openstack.org/openstack/neutron-dynamic-routing + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + if [ "ZUUL_BRANCH" == "stable/newton" ]; then + export DEVSTACK_GATE_TEMPEST_REGEX="^neutron_dynamic_routing\." + else + export DEVSTACK_GATE_TEMPEST_REGEX="^neutron_dynamic_routing.tests.tempest.api\." + fi + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + + if [ "ZUUL_BRANCH" != "stable/newton" ]; then + function gate_hook { + bash -xe $BASE/new/neutron-dynamic-routing/neutron_dynamic_routing/tests/contrib/gate_hook.sh dsvm-api + } + export -f gate_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-basic/post.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-basic/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-basic/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-basic/run.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-basic/run.yaml new file mode 100644 index 00000000..84063b23 --- /dev/null +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-basic/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-neutron-dynamic-routing-dsvm-tempest-scenario-basic + from old job gate-neutron-dynamic-routing-dsvm-tempest-scenario-basic-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^neutron_dynamic_routing.tests.tempest.scenario.basic\." + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + DEVSTACK_LOCAL_CONFIG="NEUTRON_CREATE_INITIAL_NETWORKS=False" + DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-dynamic-routing git://git.openstack.org/openstack/neutron-dynamic-routing" + if [ "basic" == "basic" ]; then + DEVSTACK_LOCAL_CONFIG+=$'\n'"BGP_SCHEDULER_DRIVER=neutron_dynamic_routing.services.bgp.scheduler.bgp_dragent_scheduler.ChanceScheduler" + fi + export DEVSTACK_LOCAL_CONFIG + + function gate_hook { + bash -xe $BASE/new/neutron-dynamic-routing/neutron_dynamic_routing/tests/contrib/gate_hook.sh dsvm-scenario + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv4/post.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv4/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv4/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv4/run.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv4/run.yaml new file mode 100644 index 00000000..517cdba4 --- /dev/null +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv4/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-neutron-dynamic-routing-dsvm-tempest-scenario-ipv4 + from old job gate-neutron-dynamic-routing-dsvm-tempest-scenario-ipv4-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^neutron_dynamic_routing.tests.tempest.scenario.ipv4\." + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + DEVSTACK_LOCAL_CONFIG="NEUTRON_CREATE_INITIAL_NETWORKS=False" + DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-dynamic-routing git://git.openstack.org/openstack/neutron-dynamic-routing" + if [ "ipv4" == "basic" ]; then + DEVSTACK_LOCAL_CONFIG+=$'\n'"BGP_SCHEDULER_DRIVER=neutron_dynamic_routing.services.bgp.scheduler.bgp_dragent_scheduler.ChanceScheduler" + fi + export DEVSTACK_LOCAL_CONFIG + + function gate_hook { + bash -xe $BASE/new/neutron-dynamic-routing/neutron_dynamic_routing/tests/contrib/gate_hook.sh dsvm-scenario + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv6/post.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv6/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv6/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv6/run.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv6/run.yaml new file mode 100644 index 00000000..e64c41e9 --- /dev/null +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv6/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-neutron-dynamic-routing-dsvm-tempest-scenario-ipv6 + from old job gate-neutron-dynamic-routing-dsvm-tempest-scenario-ipv6-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^neutron_dynamic_routing.tests.tempest.scenario.ipv6\." + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + DEVSTACK_LOCAL_CONFIG="NEUTRON_CREATE_INITIAL_NETWORKS=False" + DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-dynamic-routing git://git.openstack.org/openstack/neutron-dynamic-routing" + if [ "ipv6" == "basic" ]; then + DEVSTACK_LOCAL_CONFIG+=$'\n'"BGP_SCHEDULER_DRIVER=neutron_dynamic_routing.services.bgp.scheduler.bgp_dragent_scheduler.ChanceScheduler" + fi + export DEVSTACK_LOCAL_CONFIG + + function gate_hook { + bash -xe $BASE/new/neutron-dynamic-routing/neutron_dynamic_routing/tests/contrib/gate_hook.sh dsvm-scenario + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/post.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/run.yaml b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/run.yaml new file mode 100644 index 00000000..5b1e0aaf --- /dev/null +++ b/playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4 + from old job gate-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^neutron_dynamic_routing.tests.tempest.scenario.ipv4\." + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [[ "$BRANCH_OVERRIDE" != "default" ]] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + DEVSTACK_LOCAL_CONFIG="NEUTRON_CREATE_INITIAL_NETWORKS=False" + DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-dynamic-routing git://git.openstack.org/openstack/neutron-dynamic-routing" + if [[ "ipv4" == "basic" ]]; then + DEVSTACK_LOCAL_CONFIG+=$'\n'"BGP_SCHEDULER_DRIVER=neutron_dynamic_routing.services.bgp.scheduler.bgp_dragent_scheduler.ChanceScheduler" + fi + export DEVSTACK_LOCAL_CONFIG + + function gate_hook { + local ryu_path=$BASE/new/ryu_master + if [[ ! -d $ryu_path ]]; then + git clone https://github.com/osrg/ryu $ryu_path + fi + sudo pip install -e $ryu_path + bash -xe $BASE/new/neutron-dynamic-routing/neutron_dynamic_routing/tests/contrib/gate_hook.sh dsvm-scenario + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-fwaas-dsvm-fullstack/post.yaml b/playbooks/legacy/neutron-fwaas-dsvm-fullstack/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutron-fwaas-dsvm-fullstack/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-fwaas-dsvm-fullstack/run.yaml b/playbooks/legacy/neutron-fwaas-dsvm-fullstack/run.yaml new file mode 100644 index 00000000..e0fc1b89 --- /dev/null +++ b/playbooks/legacy/neutron-fwaas-dsvm-fullstack/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-neutron-fwaas-dsvm-fullstack from old job gate-neutron-fwaas-dsvm-fullstack-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/neutron-fwaas/neutron_fwaas/tests/contrib/gate_hook.sh dsvm-fullstack + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/neutron-fwaas/neutron_fwaas/tests/contrib/post_test_hook.sh dsvm-fullstack + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-fwaas-dsvm-functional/post.yaml b/playbooks/legacy/neutron-fwaas-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutron-fwaas-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-fwaas-dsvm-functional/run.yaml b/playbooks/legacy/neutron-fwaas-dsvm-functional/run.yaml new file mode 100644 index 00000000..42da0662 --- /dev/null +++ b/playbooks/legacy/neutron-fwaas-dsvm-functional/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-neutron-fwaas-dsvm-functional from old job gate-neutron-fwaas-dsvm-functional + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/neutron-fwaas/neutron_fwaas/tests/contrib/gate_hook.sh dsvm-functional + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/neutron-fwaas/neutron_fwaas/tests/contrib/post_test_hook.sh dsvm-functional + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest-multinode/post.yaml b/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest-multinode/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest-multinode/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest-multinode/run.yaml b/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest-multinode/run.yaml new file mode 100644 index 00000000..3f8cb6ae --- /dev/null +++ b/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest-multinode/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-neutron-fwaas-v1-dsvm-tempest-multinode from old + job gate-neutron-fwaas-v1-dsvm-tempest-multinode-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin neutron-fwaas git://git.openstack.org/openstack/neutron-fwaas + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^neutron_fwaas\." + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + export FWAAS_VERSION=v1 + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + function gate_hook { + bash -xe $BASE/new/neutron-fwaas/neutron_fwaas/tests/contrib/gate_hook_tempest.sh v1 + } + if [ "$FWAAS_VERSION" = "v2" ] ; then + export ENABLED_SERVICES="q-fwaas-v2" + elif [ "$FWAAS_VERSION" = "v1" ] ; then + export ENABLED_SERVICES="q-fwaas-v1" + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest/post.yaml b/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest/run.yaml b/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest/run.yaml new file mode 100644 index 00000000..c8ea48d9 --- /dev/null +++ b/playbooks/legacy/neutron-fwaas-v1-dsvm-tempest/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-neutron-fwaas-v1-dsvm-tempest from old job gate-neutron-fwaas-v1-dsvm-tempest + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin neutron-fwaas git://git.openstack.org/openstack/neutron-fwaas + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^neutron_fwaas\." + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + export FWAAS_VERSION=v1 + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/neutron-fwaas/neutron_fwaas/tests/contrib/gate_hook_tempest.sh v1 + } + if [ "$FWAAS_VERSION" = "v2" ] ; then + export ENABLED_SERVICES="q-fwaas-v2" + elif [ "$FWAAS_VERSION" = "v1" ] ; then + export ENABLED_SERVICES="q-fwaas-v1" + elif [ "$FWAAS_VERSION" = "legacy" ] ; then + export ENABLED_SERVICES="q-fwaas" + fi + + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest-multinode/post.yaml b/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest-multinode/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest-multinode/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest-multinode/run.yaml b/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest-multinode/run.yaml new file mode 100644 index 00000000..f11796aa --- /dev/null +++ b/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest-multinode/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-neutron-fwaas-v2-dsvm-tempest-multinode from old + job gate-neutron-fwaas-v2-dsvm-tempest-multinode-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin neutron-fwaas git://git.openstack.org/openstack/neutron-fwaas + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^neutron_fwaas\." + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + export FWAAS_VERSION=v2 + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + function gate_hook { + bash -xe $BASE/new/neutron-fwaas/neutron_fwaas/tests/contrib/gate_hook_tempest.sh v2 + } + if [ "$FWAAS_VERSION" = "v2" ] ; then + export ENABLED_SERVICES="q-fwaas-v2" + elif [ "$FWAAS_VERSION" = "v1" ] ; then + export ENABLED_SERVICES="q-fwaas-v1" + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest/post.yaml b/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest/run.yaml b/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest/run.yaml new file mode 100644 index 00000000..992705f9 --- /dev/null +++ b/playbooks/legacy/neutron-fwaas-v2-dsvm-tempest/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-neutron-fwaas-v2-dsvm-tempest from old job gate-neutron-fwaas-v2-dsvm-tempest + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin neutron-fwaas git://git.openstack.org/openstack/neutron-fwaas + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^neutron_fwaas\." + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + export FWAAS_VERSION=v2 + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/neutron-fwaas/neutron_fwaas/tests/contrib/gate_hook_tempest.sh v2 + } + if [ "$FWAAS_VERSION" = "v2" ] ; then + export ENABLED_SERVICES="q-fwaas-v2" + elif [ "$FWAAS_VERSION" = "v1" ] ; then + export ENABLED_SERVICES="q-fwaas-v1" + elif [ "$FWAAS_VERSION" = "legacy" ] ; then + export ENABLED_SERVICES="q-fwaas" + fi + + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-lint/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-lint/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-lint/run.yaml new file mode 100644 index 00000000..9cf42f81 --- /dev/null +++ b/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-lint/run.yaml @@ -0,0 +1,134 @@ +- hosts: all + name: Autoconverted job legacy-neutron-lbaas-dashboard-nodejs4-npm-run-lint from + old job gate-neutron-lbaas-dashboard-nodejs4-npm-run-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )lint($| ) ]]; then + npm lint --verbose + else + npm run lint --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-test/post.yaml b/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-test/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-test/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-test/run.yaml b/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-test/run.yaml new file mode 100644 index 00000000..50e07e2b --- /dev/null +++ b/playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-test/run.yaml @@ -0,0 +1,134 @@ +- hosts: all + name: Autoconverted job legacy-neutron-lbaas-dashboard-nodejs4-npm-run-test from + old job gate-neutron-lbaas-dashboard-nodejs4-npm-run-test + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )test($| ) ]]; then + npm test --verbose + else + npm run test --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-api-namespace/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-api-namespace/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-api-namespace/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-api-namespace/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-api-namespace/run.yaml new file mode 100644 index 00000000..c73386d6 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-api-namespace/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-neutron-lbaasv2-dsvm-api-namespace from old job gate-neutron-lbaasv2-dsvm-api-namespace-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + function gate_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/gate_hook.sh tempest lbaasv2 api-namespace + } + export -f gate_hook + + function post_test_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/post_test_hook.sh tempest lbaasv2 api-namespace + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-api/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-api/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-api/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-api/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-api/run.yaml new file mode 100644 index 00000000..2a8ba48c --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-api/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-neutron-lbaasv2-dsvm-api from old job gate-neutron-lbaasv2-dsvm-api-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + function gate_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/gate_hook.sh tempest lbaasv2 api + } + export -f gate_hook + + function post_test_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/post_test_hook.sh tempest lbaasv2 api + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-healthmonitor/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-healthmonitor/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-healthmonitor/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-healthmonitor/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-healthmonitor/run.yaml new file mode 100644 index 00000000..5b9d7f91 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-healthmonitor/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-neutron-lbaasv2-dsvm-healthmonitor from old job gate-neutron-lbaasv2-dsvm-healthmonitor-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + function gate_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/gate_hook.sh tempest lbaasv2 healthmonitor + } + export -f gate_hook + + function post_test_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/post_test_hook.sh tempest lbaasv2 healthmonitor + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-listener/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-listener/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-listener/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-listener/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-listener/run.yaml new file mode 100644 index 00000000..e0c21055 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-listener/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-neutron-lbaasv2-dsvm-listener from old job gate-neutron-lbaasv2-dsvm-listener-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + function gate_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/gate_hook.sh tempest lbaasv2 listener + } + export -f gate_hook + + function post_test_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/post_test_hook.sh tempest lbaasv2 listener + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-loadbalancer/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-loadbalancer/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-loadbalancer/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-loadbalancer/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-loadbalancer/run.yaml new file mode 100644 index 00000000..8483dc6b --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-loadbalancer/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-neutron-lbaasv2-dsvm-loadbalancer from old job gate-neutron-lbaasv2-dsvm-loadbalancer-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + function gate_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/gate_hook.sh tempest lbaasv2 loadbalancer + } + export -f gate_hook + + function post_test_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/post_test_hook.sh tempest lbaasv2 loadbalancer + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-member/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-member/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-member/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-member/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-member/run.yaml new file mode 100644 index 00000000..1b88ed89 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-member/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-neutron-lbaasv2-dsvm-member from old job gate-neutron-lbaasv2-dsvm-member-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + function gate_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/gate_hook.sh tempest lbaasv2 member + } + export -f gate_hook + + function post_test_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/post_test_hook.sh tempest lbaasv2 member + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-minimal/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-minimal/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-minimal/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-minimal/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-minimal/run.yaml new file mode 100644 index 00000000..45a2de3c --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-minimal/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-neutron-lbaasv2-dsvm-minimal from old job gate-neutron-lbaasv2-dsvm-minimal-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + function gate_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/gate_hook.sh tempest lbaasv2 minimal + } + export -f gate_hook + + function post_test_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/post_test_hook.sh tempest lbaasv2 minimal + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-pool/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-pool/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-pool/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-pool/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-pool/run.yaml new file mode 100644 index 00000000..98a25c7b --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-pool/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-neutron-lbaasv2-dsvm-pool from old job gate-neutron-lbaasv2-dsvm-pool-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + function gate_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/gate_hook.sh tempest lbaasv2 pool + } + export -f gate_hook + + function post_test_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/post_test_hook.sh tempest lbaasv2 pool + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api-namespace/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api-namespace/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api-namespace/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api-namespace/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api-namespace/run.yaml new file mode 100644 index 00000000..6ef777cf --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api-namespace/run.yaml @@ -0,0 +1,56 @@ +- hosts: all + name: Autoconverted job legacy-neutron-lbaasv2-dsvm-py3x-api-namespace from old + job gate-neutron-lbaasv2-dsvm-py3x-api-namespace-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + function gate_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/gate_hook.sh tempest lbaasv2 api-namespace + } + export -f gate_hook + + function post_test_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/post_test_hook.sh tempest lbaasv2 api-namespace + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api/run.yaml new file mode 100644 index 00000000..2e9ef9e1 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-neutron-lbaasv2-dsvm-py3x-api from old job gate-neutron-lbaasv2-dsvm-py3x-api-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + function gate_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/gate_hook.sh tempest lbaasv2 api + } + export -f gate_hook + + function post_test_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/post_test_hook.sh tempest lbaasv2 api + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario-namespace/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario-namespace/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario-namespace/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario-namespace/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario-namespace/run.yaml new file mode 100644 index 00000000..741708ef --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario-namespace/run.yaml @@ -0,0 +1,56 @@ +- hosts: all + name: Autoconverted job legacy-neutron-lbaasv2-dsvm-py3x-scenario-namespace from + old job gate-neutron-lbaasv2-dsvm-py3x-scenario-namespace-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + function gate_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/gate_hook.sh tempest lbaasv2 scenario-namespace + } + export -f gate_hook + + function post_test_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/post_test_hook.sh tempest lbaasv2 scenario-namespace + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario/run.yaml new file mode 100644 index 00000000..cac61053 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-neutron-lbaasv2-dsvm-py3x-scenario from old job gate-neutron-lbaasv2-dsvm-py3x-scenario-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + function gate_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/gate_hook.sh tempest lbaasv2 scenario + } + export -f gate_hook + + function post_test_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/post_test_hook.sh tempest lbaasv2 scenario + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-scenario-namespace/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-scenario-namespace/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-scenario-namespace/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-scenario-namespace/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-scenario-namespace/run.yaml new file mode 100644 index 00000000..8c0722b5 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-scenario-namespace/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-neutron-lbaasv2-dsvm-scenario-namespace from old + job gate-neutron-lbaasv2-dsvm-scenario-namespace-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + function gate_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/gate_hook.sh tempest lbaasv2 scenario-namespace + } + export -f gate_hook + + function post_test_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/post_test_hook.sh tempest lbaasv2 scenario-namespace + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-scenario/post.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-scenario/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-scenario/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-lbaasv2-dsvm-scenario/run.yaml b/playbooks/legacy/neutron-lbaasv2-dsvm-scenario/run.yaml new file mode 100644 index 00000000..db0b7645 --- /dev/null +++ b/playbooks/legacy/neutron-lbaasv2-dsvm-scenario/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-neutron-lbaasv2-dsvm-scenario from old job gate-neutron-lbaasv2-dsvm-scenario-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + function gate_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/gate_hook.sh tempest lbaasv2 scenario + } + export -f gate_hook + + function post_test_hook { + $BASE/new/neutron-lbaas/neutron_lbaas/tests/contrib/post_test_hook.sh tempest lbaasv2 scenario + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-vpnaas-dashboard-releasenotes/post.yaml b/playbooks/legacy/neutron-vpnaas-dashboard-releasenotes/post.yaml new file mode 100644 index 00000000..c86f36f5 --- /dev/null +++ b/playbooks/legacy/neutron-vpnaas-dashboard-releasenotes/post.yaml @@ -0,0 +1,10 @@ +- hosts: all + tasks: + + - name: Copy files from releasenotes/build/html/ on node + synchronize: + src: releasenotes/build/html/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true diff --git a/playbooks/legacy/neutron-vpnaas-dashboard-releasenotes/run.yaml b/playbooks/legacy/neutron-vpnaas-dashboard-releasenotes/run.yaml new file mode 100644 index 00000000..ba954f86 --- /dev/null +++ b/playbooks/legacy/neutron-vpnaas-dashboard-releasenotes/run.yaml @@ -0,0 +1,193 @@ +- hosts: all + name: Autoconverted job legacy-neutron-vpnaas-dashboard-releasenotes from old job + gate-neutron-vpnaas-dashboard-releasenotes + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + # + # Licensed under the Apache License, Version 2.0 (the "License"); you may + # not use this file except in compliance with the License. You may obtain + # a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + # License for the specific language governing permissions and limitations + # under the License. + + DOCNAME=releasenotes + DIRECTORY=releasenotes + + script_path=/usr/local/jenkins/slave_scripts + + # Mapping of language codes to language names + declare -A LANG_NAME=( + ["de"]="German" + ["en_AU"]="English (Australian)" + ["en_GB"]="English (United Kingdom)" + ["es"]="Spanish" + ["fr"]="French" + ["id"]="Indonesian" + ["it"]="Italian" + ["ja"]="Japanese" + ["ko_KR"]="Korean (South Korea)" + ["pt_BR"]="Portuguese (Brazil)" + ["ru"]="Russian" + ["tr_TR"]="Turkish (Turkey)" + ["zh_CN"]="Chinese (China)" + ) + + # This file always exists in OpenStack CI jobs, check for it so that + # it can be used manually as well. + if [ -e "$(pwd)/upper-constraints.txt" ]; then + export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt + fi + + if [ ! -e ${DIRECTORY}/source/locale/ ]; then + echo "No translations found, only building normal release notes" + $script_path/run-tox.sh releasenotes + exit 0 + fi + + # Check that locale_dirs is really set, otherwise translations + # will not work. + if ! grep -q -E '^locale_dirs *=' $DIRECTORY/source/conf.py; then + echo "Translations exist and locale_dirs missing in source/conf.py" + exit 1 + fi + + + REFERENCES=`mktemp` + trap "rm -f -- '$REFERENCES'" EXIT + + # Extract translations + tox -e venv -- sphinx-build -b gettext \ + -d ${DIRECTORY}/build/doctrees.gettext \ + ${DIRECTORY}/source/ \ + ${DIRECTORY}/source/locale/ + + # Add links for translations to index file + cat <> ${REFERENCES} + + Translated Release Notes + ======================== + + EOF + + # Check all language translation resources + for locale in `find ${DIRECTORY}/source/locale/ -maxdepth 1 -type d` ; do + # Skip if it is not a valid language translation resource. + if [ ! -e ${locale}/LC_MESSAGES/${DOCNAME}.po ]; then + continue + fi + language=$(basename $locale) + + echo "Building $language translation" + + # Prepare all translation resources + for pot in ${DIRECTORY}/source/locale/*.pot ; do + # Get filename + resname=$(basename ${pot} .pot) + + # Merge all translation resources. Note this is done the same + # way as done in common_translation_update.sh where we merge + # all strings together in a single file. + msgmerge --silent -o \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.po \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po \ + ${pot} + # Compile all translation resources + msgfmt -o \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.mo \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.po + done + + # Build translated document + tox -e venv -- sphinx-build -b html -D language=${language} \ + -d "${DIRECTORY}/build/doctrees.${language}" \ + ${DIRECTORY}/source/ ${DIRECTORY}/build/html/${language} + + # Reference translated document from index file + if [ ${LANG_NAME["${language}"]+_} ] ; then + name=${LANG_NAME["${language}"]} + name+=" (${language})" + echo "* \`$name <${language}/index.html>\`__" >> ${REFERENCES} + else + echo "* \`${language} <${language}/index.html>\`__" >> ${REFERENCES} + fi + + # Remove newly created files + git clean -f -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/*.po + git clean -f -x -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/*.mo + # revert changes to po file + git reset -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po + git checkout -- ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po + done + + # Now append our references to the index file. We cannot do this + # earlier since the sphinx commands will read this file. + cat ${REFERENCES} >> ${DIRECTORY}/source/index.rst + + # Remove newly created pot files + rm -f ${DIRECTORY}/source/locale/*.pot + + # Now build releasenotes with reference to translations + $script_path/run-tox.sh releasenotes + + # Revert any changes to the index file. + git checkout -- ${DIRECTORY}/source/index.rst + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-vpnaas-dsvm-functional-sswan/post.yaml b/playbooks/legacy/neutron-vpnaas-dsvm-functional-sswan/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutron-vpnaas-dsvm-functional-sswan/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-vpnaas-dsvm-functional-sswan/run.yaml b/playbooks/legacy/neutron-vpnaas-dsvm-functional-sswan/run.yaml new file mode 100644 index 00000000..2064911b --- /dev/null +++ b/playbooks/legacy/neutron-vpnaas-dsvm-functional-sswan/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-neutron-vpnaas-dsvm-functional-sswan from old job + gate-neutron-vpnaas-dsvm-functional-sswan-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/neutron-vpnaas/neutron_vpnaas/tests/contrib/gate_hook.sh dsvm-functional-sswan + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/neutron-vpnaas/neutron_vpnaas/tests/contrib/post_test_hook.sh dsvm-functional-sswan + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-vpnaas-dsvm-rally/post.yaml b/playbooks/legacy/neutron-vpnaas-dsvm-rally/post.yaml new file mode 100644 index 00000000..86dc5ca5 --- /dev/null +++ b/playbooks/legacy/neutron-vpnaas-dsvm-rally/post.yaml @@ -0,0 +1,106 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutron-vpnaas-dsvm-rally/run.yaml b/playbooks/legacy/neutron-vpnaas-dsvm-rally/run.yaml new file mode 100644 index 00000000..3ecb432d --- /dev/null +++ b/playbooks/legacy/neutron-vpnaas-dsvm-rally/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-neutron-vpnaas-dsvm-rally from old job gate-neutron-vpnaas-dsvm-rally-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin neutron-vpnaas git://git.openstack.org/openstack/neutron-vpnaas + enable_plugin rally git://git.openstack.org/openstack/rally + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export RALLY_SCENARIO=neutron-vpnaas + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/rally $PROJECTS" + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutron-vpnaas-releasenotes/post.yaml b/playbooks/legacy/neutron-vpnaas-releasenotes/post.yaml new file mode 100644 index 00000000..c86f36f5 --- /dev/null +++ b/playbooks/legacy/neutron-vpnaas-releasenotes/post.yaml @@ -0,0 +1,10 @@ +- hosts: all + tasks: + + - name: Copy files from releasenotes/build/html/ on node + synchronize: + src: releasenotes/build/html/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true diff --git a/playbooks/legacy/neutron-vpnaas-releasenotes/run.yaml b/playbooks/legacy/neutron-vpnaas-releasenotes/run.yaml new file mode 100644 index 00000000..9b5fc6d7 --- /dev/null +++ b/playbooks/legacy/neutron-vpnaas-releasenotes/run.yaml @@ -0,0 +1,192 @@ +- hosts: all + name: Autoconverted job legacy-neutron-vpnaas-releasenotes from old job gate-neutron-vpnaas-releasenotes + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + # + # Licensed under the Apache License, Version 2.0 (the "License"); you may + # not use this file except in compliance with the License. You may obtain + # a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + # License for the specific language governing permissions and limitations + # under the License. + + DOCNAME=releasenotes + DIRECTORY=releasenotes + + script_path=/usr/local/jenkins/slave_scripts + + # Mapping of language codes to language names + declare -A LANG_NAME=( + ["de"]="German" + ["en_AU"]="English (Australian)" + ["en_GB"]="English (United Kingdom)" + ["es"]="Spanish" + ["fr"]="French" + ["id"]="Indonesian" + ["it"]="Italian" + ["ja"]="Japanese" + ["ko_KR"]="Korean (South Korea)" + ["pt_BR"]="Portuguese (Brazil)" + ["ru"]="Russian" + ["tr_TR"]="Turkish (Turkey)" + ["zh_CN"]="Chinese (China)" + ) + + # This file always exists in OpenStack CI jobs, check for it so that + # it can be used manually as well. + if [ -e "$(pwd)/upper-constraints.txt" ]; then + export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt + fi + + if [ ! -e ${DIRECTORY}/source/locale/ ]; then + echo "No translations found, only building normal release notes" + $script_path/run-tox.sh releasenotes + exit 0 + fi + + # Check that locale_dirs is really set, otherwise translations + # will not work. + if ! grep -q -E '^locale_dirs *=' $DIRECTORY/source/conf.py; then + echo "Translations exist and locale_dirs missing in source/conf.py" + exit 1 + fi + + + REFERENCES=`mktemp` + trap "rm -f -- '$REFERENCES'" EXIT + + # Extract translations + tox -e venv -- sphinx-build -b gettext \ + -d ${DIRECTORY}/build/doctrees.gettext \ + ${DIRECTORY}/source/ \ + ${DIRECTORY}/source/locale/ + + # Add links for translations to index file + cat <> ${REFERENCES} + + Translated Release Notes + ======================== + + EOF + + # Check all language translation resources + for locale in `find ${DIRECTORY}/source/locale/ -maxdepth 1 -type d` ; do + # Skip if it is not a valid language translation resource. + if [ ! -e ${locale}/LC_MESSAGES/${DOCNAME}.po ]; then + continue + fi + language=$(basename $locale) + + echo "Building $language translation" + + # Prepare all translation resources + for pot in ${DIRECTORY}/source/locale/*.pot ; do + # Get filename + resname=$(basename ${pot} .pot) + + # Merge all translation resources. Note this is done the same + # way as done in common_translation_update.sh where we merge + # all strings together in a single file. + msgmerge --silent -o \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.po \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po \ + ${pot} + # Compile all translation resources + msgfmt -o \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.mo \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.po + done + + # Build translated document + tox -e venv -- sphinx-build -b html -D language=${language} \ + -d "${DIRECTORY}/build/doctrees.${language}" \ + ${DIRECTORY}/source/ ${DIRECTORY}/build/html/${language} + + # Reference translated document from index file + if [ ${LANG_NAME["${language}"]+_} ] ; then + name=${LANG_NAME["${language}"]} + name+=" (${language})" + echo "* \`$name <${language}/index.html>\`__" >> ${REFERENCES} + else + echo "* \`${language} <${language}/index.html>\`__" >> ${REFERENCES} + fi + + # Remove newly created files + git clean -f -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/*.po + git clean -f -x -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/*.mo + # revert changes to po file + git reset -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po + git checkout -- ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po + done + + # Now append our references to the index file. We cannot do this + # earlier since the sphinx commands will read this file. + cat ${REFERENCES} >> ${DIRECTORY}/source/index.rst + + # Remove newly created pot files + rm -f ${DIRECTORY}/source/locale/*.pot + + # Now build releasenotes with reference to translations + $script_path/run-tox.sh releasenotes + + # Revert any changes to the index file. + git checkout -- ${DIRECTORY}/source/index.rst + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutronclient-test-dsvm-functional-adv-svcs/post.yaml b/playbooks/legacy/neutronclient-test-dsvm-functional-adv-svcs/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutronclient-test-dsvm-functional-adv-svcs/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutronclient-test-dsvm-functional-adv-svcs/run.yaml b/playbooks/legacy/neutronclient-test-dsvm-functional-adv-svcs/run.yaml new file mode 100644 index 00000000..0179f48f --- /dev/null +++ b/playbooks/legacy/neutronclient-test-dsvm-functional-adv-svcs/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-neutronclient-test-dsvm-functional-adv-svcs from + old job gate-neutronclient-test-dsvm-functional-adv-svcs-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=python-neutronclient + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/python-neutronclient/neutronclient/tests/functional/hooks/gate_hook.sh functional-adv-svcs + } + export -f gate_hook + + function post_test_hook { + # Configure and run functional tests + $BASE/new/python-neutronclient/neutronclient/tests/functional/hooks/post_test_hook.sh functional-adv-svcs + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/neutronclient-test-dsvm-functional/post.yaml b/playbooks/legacy/neutronclient-test-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/neutronclient-test-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/neutronclient-test-dsvm-functional/run.yaml b/playbooks/legacy/neutronclient-test-dsvm-functional/run.yaml new file mode 100644 index 00000000..b1683fd0 --- /dev/null +++ b/playbooks/legacy/neutronclient-test-dsvm-functional/run.yaml @@ -0,0 +1,46 @@ +- hosts: all + name: Autoconverted job legacy-neutronclient-test-dsvm-functional from old job gate-neutronclient-test-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=python-neutronclient + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/python-neutronclient/neutronclient/tests/functional/hooks/gate_hook.sh functional + } + export -f gate_hook + + function post_test_hook { + # Configure and run functional tests + $BASE/new/python-neutronclient/neutronclient/tests/functional/hooks/post_test_hook.sh functional + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/nodejs4-npm-run-lint/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/nodejs4-npm-run-lint/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/nodejs4-npm-run-lint/run.yaml new file mode 100644 index 00000000..edd03d04 --- /dev/null +++ b/playbooks/legacy/nodejs4-npm-run-lint/run.yaml @@ -0,0 +1,133 @@ +- hosts: all + name: Autoconverted job legacy-nodejs4-npm-run-lint from old job gate-{name}-nodejs4-npm-run-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )lint($| ) ]]; then + npm lint --verbose + else + npm run lint --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/nodejs4-npm-run-test/post.yaml b/playbooks/legacy/nodejs4-npm-run-test/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/nodejs4-npm-run-test/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/nodejs4-npm-run-test/run.yaml b/playbooks/legacy/nodejs4-npm-run-test/run.yaml new file mode 100644 index 00000000..4951e35d --- /dev/null +++ b/playbooks/legacy/nodejs4-npm-run-test/run.yaml @@ -0,0 +1,133 @@ +- hosts: all + name: Autoconverted job legacy-nodejs4-npm-run-test from old job gate-{name}-nodejs4-npm-run-test + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )test($| ) ]]; then + npm test --verbose + else + npm run test --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/nodejs6-npm-run-lint/post.yaml b/playbooks/legacy/nodejs6-npm-run-lint/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/nodejs6-npm-run-lint/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/nodejs6-npm-run-lint/run.yaml b/playbooks/legacy/nodejs6-npm-run-lint/run.yaml new file mode 100644 index 00000000..54bf5726 --- /dev/null +++ b/playbooks/legacy/nodejs6-npm-run-lint/run.yaml @@ -0,0 +1,133 @@ +- hosts: all + name: Autoconverted job legacy-nodejs6-npm-run-lint from old job gate-{name}-nodejs6-npm-run-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_6.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_6.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )lint($| ) ]]; then + npm lint --verbose + else + npm run lint --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/nodejs6-npm-run-test/post.yaml b/playbooks/legacy/nodejs6-npm-run-test/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/nodejs6-npm-run-test/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/nodejs6-npm-run-test/run.yaml b/playbooks/legacy/nodejs6-npm-run-test/run.yaml new file mode 100644 index 00000000..c1736607 --- /dev/null +++ b/playbooks/legacy/nodejs6-npm-run-test/run.yaml @@ -0,0 +1,133 @@ +- hosts: all + name: Autoconverted job legacy-nodejs6-npm-run-test from old job gate-{name}-nodejs6-npm-run-test + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_6.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_6.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )test($| ) ]]; then + npm test --verbose + else + npm run test --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/nova-api-ref-src/post.yaml b/playbooks/legacy/nova-api-ref-src/post.yaml new file mode 100644 index 00000000..75275036 --- /dev/null +++ b/playbooks/legacy/nova-api-ref-src/post.yaml @@ -0,0 +1,75 @@ +- hosts: all + tasks: + + - name: Copy files from api-ref/build/html/ on node + synchronize: + src: api-ref/build/html/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/nova-api-ref-src/run.yaml b/playbooks/legacy/nova-api-ref-src/run.yaml new file mode 100644 index 00000000..a31d35dd --- /dev/null +++ b/playbooks/legacy/nova-api-ref-src/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-nova-api-ref-src from old job gate-nova-api-ref-src + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # clone os-api-ref into a subdir of the main project, makes + # it easy to find later for installing. + cat >> $CLONEMAP << EOF + - name: openstack/os-api-ref + dest: os-api-ref + - name: openstack/requirements + dest: $REQS_DIR + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org 'openstack/$ZUUL_SHORT_PROJECT_NAME' openstack/os-api-ref openstack/requirements + cp $REQS_DIR/upper-constraints.txt ./ + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox-api-ref.sh + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/nova-dpm-tox-functional-py35/post.yaml b/playbooks/legacy/nova-dpm-tox-functional-py35/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/nova-dpm-tox-functional-py35/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/nova-dpm-tox-functional-py35/run.yaml b/playbooks/legacy/nova-dpm-tox-functional-py35/run.yaml new file mode 100644 index 00000000..d1baba90 --- /dev/null +++ b/playbooks/legacy/nova-dpm-tox-functional-py35/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-nova-dpm-tox-functional-py35 from old job gate-nova-dpm-tox-functional-py35-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional-py35 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/nova-dpm-tox-functional/post.yaml b/playbooks/legacy/nova-dpm-tox-functional/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/nova-dpm-tox-functional/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/nova-dpm-tox-functional/run.yaml b/playbooks/legacy/nova-dpm-tox-functional/run.yaml new file mode 100644 index 00000000..c68652e6 --- /dev/null +++ b/playbooks/legacy/nova-dpm-tox-functional/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-nova-dpm-tox-functional from old job gate-nova-dpm-tox-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/nova-tox-functional-py35/post.yaml b/playbooks/legacy/nova-tox-functional-py35/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/nova-tox-functional-py35/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/nova-tox-functional-py35/run.yaml b/playbooks/legacy/nova-tox-functional-py35/run.yaml new file mode 100644 index 00000000..dfdbd854 --- /dev/null +++ b/playbooks/legacy/nova-tox-functional-py35/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-nova-tox-functional-py35 from old job gate-nova-tox-functional-py35-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional-py35 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/nova-tox-functional/post.yaml b/playbooks/legacy/nova-tox-functional/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/nova-tox-functional/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/nova-tox-functional/run.yaml b/playbooks/legacy/nova-tox-functional/run.yaml new file mode 100644 index 00000000..d83b9115 --- /dev/null +++ b/playbooks/legacy/nova-tox-functional/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-nova-tox-functional from old job gate-nova-tox-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/novaclient-dsvm-functional-identity-v3-only/post.yaml b/playbooks/legacy/novaclient-dsvm-functional-identity-v3-only/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/novaclient-dsvm-functional-identity-v3-only/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/novaclient-dsvm-functional-identity-v3-only/run.yaml b/playbooks/legacy/novaclient-dsvm-functional-identity-v3-only/run.yaml new file mode 100644 index 00000000..ba6bd41c --- /dev/null +++ b/playbooks/legacy/novaclient-dsvm-functional-identity-v3-only/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-novaclient-dsvm-functional-identity-v3-only from + old job gate-novaclient-dsvm-functional-identity-v3-only-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=python-novaclient + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # This ensures that if we set override branch to something + # else, we still take python-novaclient from the zuul branch + # name. So override branch can be 'stable/mitaka' but we can + # test master changes. + uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'` + export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH + + function post_test_hook { + # Configure and run functional tests + $BASE/new/python-novaclient/novaclient/tests/functional/hooks/post_test_hook.sh + } + if [ "-identity-v3-only" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG="ENABLE_IDENTITY_V2=False" + elif [ "-identity-v3-only" == "-neutron" ] ; then + export DEVSTACK_GATE_NEUTRON=1 + fi + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/novaclient-dsvm-functional-neutron/post.yaml b/playbooks/legacy/novaclient-dsvm-functional-neutron/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/novaclient-dsvm-functional-neutron/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/novaclient-dsvm-functional-neutron/run.yaml b/playbooks/legacy/novaclient-dsvm-functional-neutron/run.yaml new file mode 100644 index 00000000..7e3f60bb --- /dev/null +++ b/playbooks/legacy/novaclient-dsvm-functional-neutron/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-novaclient-dsvm-functional-neutron from old job gate-novaclient-dsvm-functional-neutron-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=python-novaclient + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # This ensures that if we set override branch to something + # else, we still take python-novaclient from the zuul branch + # name. So override branch can be 'stable/mitaka' but we can + # test master changes. + uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'` + export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH + + function post_test_hook { + # Configure and run functional tests + $BASE/new/python-novaclient/novaclient/tests/functional/hooks/post_test_hook.sh + } + if [ "-neutron" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG="ENABLE_IDENTITY_V2=False" + elif [ "-neutron" == "-neutron" ] ; then + export DEVSTACK_GATE_NEUTRON=1 + fi + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/novaclient-dsvm-functional/post.yaml b/playbooks/legacy/novaclient-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/novaclient-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/novaclient-dsvm-functional/run.yaml b/playbooks/legacy/novaclient-dsvm-functional/run.yaml new file mode 100644 index 00000000..790dfb60 --- /dev/null +++ b/playbooks/legacy/novaclient-dsvm-functional/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-novaclient-dsvm-functional from old job gate-novaclient-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=python-novaclient + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # This ensures that if we set override branch to something + # else, we still take python-novaclient from the zuul branch + # name. So override branch can be 'stable/mitaka' but we can + # test master changes. + uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'` + export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH + + function post_test_hook { + # Configure and run functional tests + $BASE/new/python-novaclient/novaclient/tests/functional/hooks/post_test_hook.sh + } + if [ "" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG="ENABLE_IDENTITY_V2=False" + elif [ "" == "-neutron" ] ; then + export DEVSTACK_GATE_NEUTRON=1 + fi + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/npm-upload/run.yaml b/playbooks/legacy/npm-upload/run.yaml new file mode 100644 index 00000000..3455d0bc --- /dev/null +++ b/playbooks/legacy/npm-upload/run.yaml @@ -0,0 +1,8 @@ +- hosts: all + name: Autoconverted job legacy-npm-upload from old job {name}-npm-upload + tasks: + + - shell: + cmd: | + /usr/local/jenkins/slave_scripts/npm-tarball-upload.sh $ZUUL_SHORT_PROJECT_NAME tarballs.openstack.org + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oaktree-dsvm-functional/post.yaml b/playbooks/legacy/oaktree-dsvm-functional/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/oaktree-dsvm-functional/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oaktree-dsvm-functional/run.yaml b/playbooks/legacy/oaktree-dsvm-functional/run.yaml new file mode 100644 index 00000000..1f37ee98 --- /dev/null +++ b/playbooks/legacy/oaktree-dsvm-functional/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-oaktree-dsvm-functional from old job gate-oaktree-dsvm-functional + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin oaktree git://git.openstack.org/openstack/oaktree + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export GOPATH=$HOME/go + export PATH=$GOPATH/bin:$PATH + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + + export DEVSTACK_PROJECT_FROM_GIT="shade" + export DEVSTACK_PROJECT_FROM_GIT+=",oaktree" + export DEVSTACK_PROJECT_FROM_GIT+=",oaktreemodel" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook { + python $BASE/new/oaktree/devstack/test.py + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oaktreemodel-distcheck/run.yaml b/playbooks/legacy/oaktreemodel-distcheck/run.yaml new file mode 100644 index 00000000..5c22bda2 --- /dev/null +++ b/playbooks/legacy/oaktreemodel-distcheck/run.yaml @@ -0,0 +1,74 @@ +- hosts: all + name: Autoconverted job legacy-oaktreemodel-distcheck from old job oaktreemodel-distcheck + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo pip install grpcio grpcio-tools pbr + export GOPATH=$HOME/go + export PATH=$GOPATH/bin:$PATH + ./install_proto3.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export GOPATH=$HOME/go + export PATH=$GOPATH/bin:$PATH + ./bootstrap.sh + ./configure + make + # There should be no changes to files as a result of running make. + # Most likely cause of changes is forgetting to update go files. + git diff --stat --exit-code HEAD + make distcheck + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-lint/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-lint/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-lint/run.yaml new file mode 100644 index 00000000..bd2c7ac2 --- /dev/null +++ b/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-lint/run.yaml @@ -0,0 +1,134 @@ +- hosts: all + name: Autoconverted job legacy-octavia-dashboard-nodejs4-npm-run-lint from old job + gate-octavia-dashboard-nodejs4-npm-run-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )lint($| ) ]]; then + npm lint --verbose + else + npm run lint --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-test/post.yaml b/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-test/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-test/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-test/run.yaml b/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-test/run.yaml new file mode 100644 index 00000000..ea1add90 --- /dev/null +++ b/playbooks/legacy/octavia-dashboard-nodejs4-npm-run-test/run.yaml @@ -0,0 +1,134 @@ +- hosts: all + name: Autoconverted job legacy-octavia-dashboard-nodejs4-npm-run-test from old job + gate-octavia-dashboard-nodejs4-npm-run-test + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )test($| ) ]]; then + npm test --verbose + else + npm run test --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-tox-functional-py35/post.yaml b/playbooks/legacy/octavia-tox-functional-py35/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/octavia-tox-functional-py35/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/octavia-tox-functional-py35/run.yaml b/playbooks/legacy/octavia-tox-functional-py35/run.yaml new file mode 100644 index 00000000..a430baba --- /dev/null +++ b/playbooks/legacy/octavia-tox-functional-py35/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-octavia-tox-functional-py35 from old job gate-octavia-tox-functional-py35-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional-py35 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-tox-functional/post.yaml b/playbooks/legacy/octavia-tox-functional/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/octavia-tox-functional/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/octavia-tox-functional/run.yaml b/playbooks/legacy/octavia-tox-functional/run.yaml new file mode 100644 index 00000000..b09484d0 --- /dev/null +++ b/playbooks/legacy/octavia-tox-functional/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-octavia-tox-functional from old job gate-octavia-tox-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-v1-dsvm-py3x-scenario-multinode/post.yaml b/playbooks/legacy/octavia-v1-dsvm-py3x-scenario-multinode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/octavia-v1-dsvm-py3x-scenario-multinode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/octavia-v1-dsvm-py3x-scenario-multinode/run.yaml b/playbooks/legacy/octavia-v1-dsvm-py3x-scenario-multinode/run.yaml new file mode 100644 index 00000000..569c7c4d --- /dev/null +++ b/playbooks/legacy/octavia-v1-dsvm-py3x-scenario-multinode/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-octavia-v1-dsvm-py3x-scenario-multinode from old + job gate-octavia-v1-dsvm-py3x-scenario-multinode + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_GATE_TOPOLOGY="multinode" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + if ! [[ "$ZUUL_BRANCH" =~ "stable/newton"|"stable/ocata" ]]; then + export DEVSTACK_PROJECT_FROM_GIT="python-octaviaclient" + export OVERRIDE_PYTHON_OCTAVIACLIENT_PROJECT_BRANCH=$ZUUL_BRANCH + fi + + function gate_hook { + $BASE/new/octavia/octavia/tests/contrib/gate_hook.sh tempest v1 scenario + } + export -f gate_hook + + function post_test_hook { + $BASE/new/octavia/octavia/tests/contrib/post_test_hook.sh tempest v1 scenario + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-v1-dsvm-py3x-scenario/post.yaml b/playbooks/legacy/octavia-v1-dsvm-py3x-scenario/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/octavia-v1-dsvm-py3x-scenario/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/octavia-v1-dsvm-py3x-scenario/run.yaml b/playbooks/legacy/octavia-v1-dsvm-py3x-scenario/run.yaml new file mode 100644 index 00000000..1ad244b8 --- /dev/null +++ b/playbooks/legacy/octavia-v1-dsvm-py3x-scenario/run.yaml @@ -0,0 +1,60 @@ +- hosts: all + name: Autoconverted job legacy-octavia-v1-dsvm-py3x-scenario from old job gate-octavia-v1-dsvm-py3x-scenario-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + if ! [[ "$ZUUL_BRANCH" =~ "stable/newton"|"stable/ocata" ]]; then + export DEVSTACK_PROJECT_FROM_GIT="python-octaviaclient" + export OVERRIDE_PYTHON_OCTAVIACLIENT_PROJECT_BRANCH=$ZUUL_BRANCH + fi + + function gate_hook { + $BASE/new/octavia/octavia/tests/contrib/gate_hook.sh tempest v1 scenario + } + export -f gate_hook + + function post_test_hook { + $BASE/new/octavia/octavia/tests/contrib/post_test_hook.sh tempest v1 scenario + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-v1-dsvm-scenario-kvm-centos.7/post.yaml b/playbooks/legacy/octavia-v1-dsvm-scenario-kvm-centos.7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/octavia-v1-dsvm-scenario-kvm-centos.7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/octavia-v1-dsvm-scenario-kvm-centos.7/run.yaml b/playbooks/legacy/octavia-v1-dsvm-scenario-kvm-centos.7/run.yaml new file mode 100644 index 00000000..72b5ad39 --- /dev/null +++ b/playbooks/legacy/octavia-v1-dsvm-scenario-kvm-centos.7/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-octavia-v1-dsvm-scenario-kvm-centos.7 from old job + gate-octavia-v1-dsvm-scenario-kvm-centos.7-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + OCTAVIA_HYPERVISOR=kvm + OCTAVIA_AMP_BASE_OS=centos + OCTAVIA_AMP_DISTRIBUTION_RELEASE_ID=7 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + if ! [[ "$ZUUL_BRANCH" =~ "stable/newton"|"stable/ocata" ]]; then + export DEVSTACK_PROJECT_FROM_GIT="python-octaviaclient" + export OVERRIDE_PYTHON_OCTAVIACLIENT_PROJECT_BRANCH=$ZUUL_BRANCH + fi + + function gate_hook { + $BASE/new/octavia/octavia/tests/contrib/gate_hook.sh tempest v1 scenario + } + export -f gate_hook + + function post_test_hook { + $BASE/new/octavia/octavia/tests/contrib/post_test_hook.sh tempest v1 scenario + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-v1-dsvm-scenario-lxd/post.yaml b/playbooks/legacy/octavia-v1-dsvm-scenario-lxd/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/octavia-v1-dsvm-scenario-lxd/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/octavia-v1-dsvm-scenario-lxd/run.yaml b/playbooks/legacy/octavia-v1-dsvm-scenario-lxd/run.yaml new file mode 100644 index 00000000..7f2a03e9 --- /dev/null +++ b/playbooks/legacy/octavia-v1-dsvm-scenario-lxd/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-octavia-v1-dsvm-scenario-lxd from old job gate-octavia-v1-dsvm-scenario-lxd-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin nova-lxd https://git.openstack.org/openstack/nova-lxd + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/nova-lxd $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + if ! [[ "$ZUUL_BRANCH" =~ "stable/newton"|"stable/ocata" ]]; then + export DEVSTACK_PROJECT_FROM_GIT="python-octaviaclient" + export OVERRIDE_PYTHON_OCTAVIACLIENT_PROJECT_BRANCH=$ZUUL_BRANCH + fi + + function gate_hook { + $BASE/new/octavia/octavia/tests/contrib/gate_hook.sh tempest v1 scenario + } + export -f gate_hook + + function post_test_hook { + $BASE/new/octavia/octavia/tests/contrib/post_test_hook.sh tempest v1 scenario + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-v1-dsvm-scenario-multinode/post.yaml b/playbooks/legacy/octavia-v1-dsvm-scenario-multinode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/octavia-v1-dsvm-scenario-multinode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/octavia-v1-dsvm-scenario-multinode/run.yaml b/playbooks/legacy/octavia-v1-dsvm-scenario-multinode/run.yaml new file mode 100644 index 00000000..08faa4af --- /dev/null +++ b/playbooks/legacy/octavia-v1-dsvm-scenario-multinode/run.yaml @@ -0,0 +1,60 @@ +- hosts: all + name: Autoconverted job legacy-octavia-v1-dsvm-scenario-multinode from old job gate-octavia-v1-dsvm-scenario-multinode + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_GATE_TOPOLOGY="multinode" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + if ! [[ "$ZUUL_BRANCH" =~ "stable/newton"|"stable/ocata" ]]; then + export DEVSTACK_PROJECT_FROM_GIT="python-octaviaclient" + export OVERRIDE_PYTHON_OCTAVIACLIENT_PROJECT_BRANCH=$ZUUL_BRANCH + fi + + function gate_hook { + $BASE/new/octavia/octavia/tests/contrib/gate_hook.sh tempest v1 scenario + } + export -f gate_hook + + function post_test_hook { + $BASE/new/octavia/octavia/tests/contrib/post_test_hook.sh tempest v1 scenario + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/octavia-v1-dsvm-scenario/post.yaml b/playbooks/legacy/octavia-v1-dsvm-scenario/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/octavia-v1-dsvm-scenario/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/octavia-v1-dsvm-scenario/run.yaml b/playbooks/legacy/octavia-v1-dsvm-scenario/run.yaml new file mode 100644 index 00000000..717ecfff --- /dev/null +++ b/playbooks/legacy/octavia-v1-dsvm-scenario/run.yaml @@ -0,0 +1,59 @@ +- hosts: all + name: Autoconverted job legacy-octavia-v1-dsvm-scenario from old job gate-octavia-v1-dsvm-scenario-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + + if ! [[ "$ZUUL_BRANCH" =~ "stable/newton"|"stable/ocata" ]]; then + export DEVSTACK_PROJECT_FROM_GIT="python-octaviaclient" + export OVERRIDE_PYTHON_OCTAVIACLIENT_PROJECT_BRANCH=$ZUUL_BRANCH + fi + + function gate_hook { + $BASE/new/octavia/octavia/tests/contrib/gate_hook.sh tempest v1 scenario + } + export -f gate_hook + + function post_test_hook { + $BASE/new/octavia/octavia/tests/contrib/post_test_hook.sh tempest v1 scenario + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/omni-tests/post.yaml b/playbooks/legacy/omni-tests/post.yaml new file mode 100644 index 00000000..c6093ad2 --- /dev/null +++ b/playbooks/legacy/omni-tests/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/openstack/*.log + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/omni-tests/run.yaml b/playbooks/legacy/omni-tests/run.yaml new file mode 100644 index 00000000..32dac433 --- /dev/null +++ b/playbooks/legacy/omni-tests/run.yaml @@ -0,0 +1,59 @@ +- hosts: all + name: Autoconverted job legacy-omni-tests from old job gate-omni-tests + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/nova \ + openstack/cinder \ + openstack/neutron \ + openstack/glance_store + + ./run_tests.sh -j + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ooi-tox-functional/post.yaml b/playbooks/legacy/ooi-tox-functional/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/ooi-tox-functional/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ooi-tox-functional/run.yaml b/playbooks/legacy/ooi-tox-functional/run.yaml new file mode 100644 index 00000000..4bf43275 --- /dev/null +++ b/playbooks/legacy/ooi-tox-functional/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-ooi-tox-functional from old job gate-ooi-tox-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-announce-release/run.yaml new file mode 100644 index 00000000..bf4a7485 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-announce-release/run.yaml @@ -0,0 +1,96 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-announce-release from old job openstack-ansible-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-galera_server-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-galera_server-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-galera_server-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-galera_server-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-galera_server-announce-release/run.yaml new file mode 100644 index 00000000..a8d088ae --- /dev/null +++ b/playbooks/legacy/openstack-ansible-galera_server-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-galera_server-announce-release + from old job openstack-ansible-galera_server-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl-centos-7/run.yaml new file mode 100644 index 00000000..1d1618bb --- /dev/null +++ b/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-galera_server-ansible-ssl-centos-7 + from old job gate-openstack-ansible-galera_server-ansible-ssl-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "ssl" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh ssl + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl/post.yaml b/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl/run.yaml b/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl/run.yaml new file mode 100644 index 00000000..9d90ec1a --- /dev/null +++ b/playbooks/legacy/openstack-ansible-galera_server-ansible-ssl/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-galera_server-ansible-ssl from + old job gate-openstack-ansible-galera_server-ansible-ssl-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "ssl" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh ssl + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade-centos-7/run.yaml new file mode 100644 index 00000000..513aa5b6 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-galera_server-ansible-upgrade-centos-7 + from old job gate-openstack-ansible-galera_server-ansible-upgrade-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "upgrade" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh upgrade + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade/post.yaml b/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade/run.yaml b/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade/run.yaml new file mode 100644 index 00000000..0de6f338 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-galera_server-ansible-upgrade from + old job gate-openstack-ansible-galera_server-ansible-upgrade-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "upgrade" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh upgrade + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/run.yaml new file mode 100644 index 00000000..1fd49b87 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-haproxy_server-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-haproxy_server-announce-release + from old job openstack-ansible-haproxy_server-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-memcached_server-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-memcached_server-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-memcached_server-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-memcached_server-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-memcached_server-announce-release/run.yaml new file mode 100644 index 00000000..9217e852 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-memcached_server-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-memcached_server-announce-release + from old job openstack-ansible-memcached_server-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-aio-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-centos-7/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-centos-7/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-aio-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-centos-7/run.yaml new file mode 100644 index 00000000..73e6f69b --- /dev/null +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-centos-7/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-openstack-ansible-aio-centos-7 + from old job gate-openstack-ansible-openstack-ansible-aio-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # Output all the zuul parameters to a file + # which can be sourced in the functional test. + printenv | grep ^ZUUL > zuul.env + # Execute the functional test + sudo scripts/gate-check-commit.sh "aio" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-aio-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-opensuse-423/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-opensuse-423/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-aio-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-opensuse-423/run.yaml new file mode 100644 index 00000000..fb89d786 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-opensuse-423/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-openstack-ansible-aio-opensuse-423 + from old job gate-openstack-ansible-openstack-ansible-aio-opensuse-423-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # Output all the zuul parameters to a file + # which can be sourced in the functional test. + printenv | grep ^ZUUL > zuul.env + # Execute the functional test + sudo scripts/gate-check-commit.sh "aio" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-aio-ubuntu-trusty/post.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-ubuntu-trusty/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-aio-ubuntu-trusty/run.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..41e59c9e --- /dev/null +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-aio-ubuntu-trusty/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-openstack-ansible-aio-ubuntu-trusty + from old job gate-openstack-ansible-openstack-ansible-aio-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # Output all the zuul parameters to a file + # which can be sourced in the functional test. + printenv | grep ^ZUUL > zuul.env + # Execute the functional test + sudo scripts/gate-check-commit.sh "aio" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-aio/post.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-aio/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-aio/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-aio/run.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-aio/run.yaml new file mode 100644 index 00000000..76b07a03 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-aio/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-openstack-ansible-aio from old + job gate-openstack-ansible-openstack-ansible-aio-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # Output all the zuul parameters to a file + # which can be sourced in the functional test. + printenv | grep ^ZUUL > zuul.env + # Execute the functional test + sudo scripts/gate-check-commit.sh "aio" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-centos-7/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-centos-7/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-centos-7/run.yaml new file mode 100644 index 00000000..a9e03688 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-centos-7/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-openstack-ansible-ceph-centos-7 + from old job gate-openstack-ansible-openstack-ansible-ceph-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # Output all the zuul parameters to a file + # which can be sourced in the functional test. + printenv | grep ^ZUUL > zuul.env + # Execute the functional test + sudo scripts/gate-check-commit.sh "ceph" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-opensuse-423/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-opensuse-423/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-opensuse-423/run.yaml new file mode 100644 index 00000000..71aa6862 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph-opensuse-423/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-openstack-ansible-ceph-opensuse-423 + from old job gate-openstack-ansible-openstack-ansible-ceph-opensuse-423-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # Output all the zuul parameters to a file + # which can be sourced in the functional test. + printenv | grep ^ZUUL > zuul.env + # Execute the functional test + sudo scripts/gate-check-commit.sh "ceph" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-ceph/post.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-ceph/run.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph/run.yaml new file mode 100644 index 00000000..57f36dd3 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-ceph/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-openstack-ansible-ceph from old + job gate-openstack-ansible-openstack-ansible-ceph-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # Output all the zuul parameters to a file + # which can be sourced in the functional test. + printenv | grep ^ZUUL > zuul.env + # Execute the functional test + sudo scripts/gate-check-commit.sh "ceph" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-octavia/post.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-octavia/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-octavia/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-openstack-ansible-octavia/run.yaml b/playbooks/legacy/openstack-ansible-openstack-ansible-octavia/run.yaml new file mode 100644 index 00000000..d6ee198b --- /dev/null +++ b/playbooks/legacy/openstack-ansible-openstack-ansible-octavia/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-openstack-ansible-octavia from + old job gate-openstack-ansible-openstack-ansible-octavia-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # Output all the zuul parameters to a file + # which can be sourced in the functional test. + printenv | grep ^ZUUL > zuul.env + # Execute the functional test + sudo scripts/gate-check-commit.sh "octavia" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_almanach-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_almanach-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_almanach-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_almanach-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_almanach-announce-release/run.yaml new file mode 100644 index 00000000..0ac9ec6c --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_almanach-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_almanach-announce-release from + old job openstack-ansible-os_almanach-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_aodh-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_aodh-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_aodh-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_aodh-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_aodh-announce-release/run.yaml new file mode 100644 index 00000000..690d1440 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_aodh-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_aodh-announce-release from old + job openstack-ansible-os_aodh-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_barbican-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_barbican-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_barbican-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_barbican-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_barbican-announce-release/run.yaml new file mode 100644 index 00000000..d69bdcf5 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_barbican-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_barbican-announce-release from + old job openstack-ansible-os_barbican-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-centos-7/run.yaml new file mode 100644 index 00000000..1b21a954 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_barbican-ansible-func-centos-7 + from old job gate-openstack-ansible-os_barbican-ansible-func-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-opensuse-423/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-opensuse-423/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-opensuse-423/run.yaml new file mode 100644 index 00000000..049aa6df --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_barbican-ansible-func-opensuse-423/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_barbican-ansible-func-opensuse-423 + from old job gate-openstack-ansible-os_barbican-ansible-func-opensuse-423-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/run.yaml new file mode 100644 index 00000000..5407476a --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_ceilometer-announce-release + from old job openstack-ansible-os_ceilometer-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7/run.yaml new file mode 100644 index 00000000..49baf977 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7 + from old job gate-openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "gnocchi" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh gnocchi + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty/post.yaml b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty/run.yaml b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..d3dfa914 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty + from old job gate-openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "gnocchi" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh gnocchi + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi/post.yaml b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi/run.yaml b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi/run.yaml new file mode 100644 index 00000000..cbb38bd0 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_ceilometer-ansible-gnocchi from + old job gate-openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "gnocchi" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh gnocchi + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_cinder-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_cinder-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_cinder-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_cinder-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_cinder-announce-release/run.yaml new file mode 100644 index 00000000..3b0dd487 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_cinder-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_cinder-announce-release from + old job openstack-ansible-os_cinder-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_cinder-ansible-upgrade/post.yaml b/playbooks/legacy/openstack-ansible-os_cinder-ansible-upgrade/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_cinder-ansible-upgrade/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_cinder-ansible-upgrade/run.yaml b/playbooks/legacy/openstack-ansible-os_cinder-ansible-upgrade/run.yaml new file mode 100644 index 00000000..70c96f67 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_cinder-ansible-upgrade/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_cinder-ansible-upgrade from + old job gate-openstack-ansible-os_cinder-ansible-upgrade-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "upgrade" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh upgrade + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/run.yaml new file mode 100644 index 00000000..240bc9aa --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_cloudkitty-announce-release + from old job openstack-ansible-os_cloudkitty-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-centos-7/run.yaml new file mode 100644 index 00000000..ffbc9b63 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_cloudkitty-ansible-func-centos-7 + from old job gate-openstack-ansible-os_cloudkitty-ansible-func-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-opensuse-423/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-opensuse-423/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-opensuse-423/run.yaml new file mode 100644 index 00000000..9930d904 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-opensuse-423/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_cloudkitty-ansible-func-opensuse-423 + from old job gate-openstack-ansible-os_cloudkitty-ansible-func-opensuse-423-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_designate-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_designate-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_designate-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_designate-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_designate-announce-release/run.yaml new file mode 100644 index 00000000..36bd05d9 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_designate-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_designate-announce-release from + old job openstack-ansible-os_designate-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_freezer-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_freezer-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_freezer-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_freezer-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_freezer-announce-release/run.yaml new file mode 100644 index 00000000..c8cf76fb --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_freezer-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_freezer-announce-release from + old job openstack-ansible-os_freezer-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_glance-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_glance-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_glance-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_glance-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_glance-announce-release/run.yaml new file mode 100644 index 00000000..aa937f5d --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_glance-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_glance-announce-release from + old job openstack-ansible-os_glance-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade-centos-7/run.yaml new file mode 100644 index 00000000..b11cf89c --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_glance-ansible-upgrade-centos-7 + from old job gate-openstack-ansible-os_glance-ansible-upgrade-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "upgrade" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh upgrade + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade/post.yaml b/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade/run.yaml b/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade/run.yaml new file mode 100644 index 00000000..22b1e64a --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_glance-ansible-upgrade from + old job gate-openstack-ansible-os_glance-ansible-upgrade-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "upgrade" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh upgrade + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/run.yaml new file mode 100644 index 00000000..4b90c834 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_gnocchi-announce-release from + old job openstack-ansible-os_gnocchi-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_heat-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_heat-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_heat-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_heat-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_heat-announce-release/run.yaml new file mode 100644 index 00000000..63d58cc3 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_heat-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_heat-announce-release from old + job openstack-ansible-os_heat-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_horizon-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_horizon-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_horizon-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_horizon-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_horizon-announce-release/run.yaml new file mode 100644 index 00000000..ffe446d8 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_horizon-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_horizon-announce-release from + old job openstack-ansible-os_horizon-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_ironic-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_ironic-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_ironic-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_ironic-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_ironic-announce-release/run.yaml new file mode 100644 index 00000000..7ba7c845 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_ironic-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_ironic-announce-release from + old job openstack-ansible-os_ironic-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-centos-7/run.yaml new file mode 100644 index 00000000..e84eb336 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_ironic-ansible-func-centos-7 + from old job gate-openstack-ansible-os_ironic-ansible-func-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-opensuse-423/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-opensuse-423/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-opensuse-423/run.yaml new file mode 100644 index 00000000..95064c13 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_ironic-ansible-func-opensuse-423/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_ironic-ansible-func-opensuse-423 + from old job gate-openstack-ansible-os_ironic-ansible-func-opensuse-423-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_keystone-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_keystone-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-announce-release/run.yaml new file mode 100644 index 00000000..3bc87ed6 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_keystone-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_keystone-announce-release from + old job openstack-ansible-os_keystone-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade-centos-7/run.yaml new file mode 100644 index 00000000..c9e54969 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_keystone-ansible-upgrade-centos-7 + from old job gate-openstack-ansible-os_keystone-ansible-upgrade-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "upgrade" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh upgrade + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade/run.yaml new file mode 100644 index 00000000..c0801153 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_keystone-ansible-upgrade from + old job gate-openstack-ansible-os_keystone-ansible-upgrade-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "upgrade" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh upgrade + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-centos-7/run.yaml new file mode 100644 index 00000000..e4f4c155 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_keystone-ansible-uw_apache-centos-7 + from old job gate-openstack-ansible-os_keystone-ansible-uw_apache-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "uw_apache" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh uw_apache + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..978f5906 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty + from old job gate-openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "uw_apache" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh uw_apache + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache/run.yaml new file mode 100644 index 00000000..e621e448 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_keystone-ansible-uw_apache from + old job gate-openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "uw_apache" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh uw_apache + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-centos-7/run.yaml new file mode 100644 index 00000000..85e91861 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_keystone-ansible-uw_nginx-centos-7 + from old job gate-openstack-ansible-os_keystone-ansible-uw_nginx-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "uw_nginx" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh uw_nginx + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..3b3f3674 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty + from old job gate-openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "uw_nginx" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh uw_nginx + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx/post.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx/run.yaml b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx/run.yaml new file mode 100644 index 00000000..24fca602 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_keystone-ansible-uw_nginx from + old job gate-openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "uw_nginx" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh uw_nginx + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_magnum-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_magnum-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_magnum-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_magnum-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_magnum-announce-release/run.yaml new file mode 100644 index 00000000..a52420a2 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_magnum-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_magnum-announce-release from + old job openstack-ansible-os_magnum-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-centos-7/run.yaml new file mode 100644 index 00000000..67482140 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_magnum-ansible-func-centos-7 + from old job gate-openstack-ansible-os_magnum-ansible-func-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-opensuse-423/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-opensuse-423/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-opensuse-423/run.yaml new file mode 100644 index 00000000..59901c71 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_magnum-ansible-func-opensuse-423/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_magnum-ansible-func-opensuse-423 + from old job gate-openstack-ansible-os_magnum-ansible-func-opensuse-423-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_monasca-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_monasca-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_monasca-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_monasca-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_monasca-announce-release/run.yaml new file mode 100644 index 00000000..b8bc8d73 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_monasca-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_monasca-announce-release from + old job openstack-ansible-os_monasca-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-centos-7/run.yaml new file mode 100644 index 00000000..fce31461 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_monasca-ansible-func-centos-7 + from old job gate-openstack-ansible-os_monasca-ansible-func-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-opensuse-423/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-opensuse-423/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-opensuse-423/run.yaml new file mode 100644 index 00000000..a6ebbc09 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_monasca-ansible-func-opensuse-423/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_monasca-ansible-func-opensuse-423 + from old job gate-openstack-ansible-os_monasca-ansible-func-opensuse-423-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_neutron-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_neutron-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_neutron-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_neutron-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_neutron-announce-release/run.yaml new file mode 100644 index 00000000..64e8aff3 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_neutron-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_neutron-announce-release from + old job openstack-ansible-os_neutron-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-calico/post.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-calico/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-calico/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-calico/run.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-calico/run.yaml new file mode 100644 index 00000000..8aa18895 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-calico/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_neutron-ansible-calico from + old job gate-openstack-ansible-os_neutron-ansible-calico-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "calico" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh calico + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-dragonflow/post.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-dragonflow/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-dragonflow/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-dragonflow/run.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-dragonflow/run.yaml new file mode 100644 index 00000000..5b1dc715 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-dragonflow/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_neutron-ansible-dragonflow from + old job gate-openstack-ansible-os_neutron-ansible-dragonflow-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "dragonflow" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh dragonflow + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty/post.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty/run.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..a50872df --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty + from old job gate-openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func_ovs" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func_ovs + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs/post.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs/run.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs/run.yaml new file mode 100644 index 00000000..095dacf6 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_neutron-ansible-func_ovs from + old job gate-openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func_ovs" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func_ovs + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-upgrade/post.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-upgrade/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-upgrade/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_neutron-ansible-upgrade/run.yaml b/playbooks/legacy/openstack-ansible-os_neutron-ansible-upgrade/run.yaml new file mode 100644 index 00000000..4e7f1758 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_neutron-ansible-upgrade/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_neutron-ansible-upgrade from + old job gate-openstack-ansible-os_neutron-ansible-upgrade-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "upgrade" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh upgrade + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_nova-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_nova-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_nova-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_nova-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_nova-announce-release/run.yaml new file mode 100644 index 00000000..e1da08de --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_nova-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_nova-announce-release from old + job openstack-ansible-os_nova-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty/post.yaml b/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty/run.yaml b/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..cebc5157 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty + from old job gate-openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func_lxd" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func_lxd + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd/post.yaml b/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd/run.yaml b/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd/run.yaml new file mode 100644 index 00000000..754e8206 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_nova-ansible-func_lxd from old + job gate-openstack-ansible-os_nova-ansible-func_lxd-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func_lxd" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func_lxd + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_nova-ansible-upgrade/post.yaml b/playbooks/legacy/openstack-ansible-os_nova-ansible-upgrade/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_nova-ansible-upgrade/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_nova-ansible-upgrade/run.yaml b/playbooks/legacy/openstack-ansible-os_nova-ansible-upgrade/run.yaml new file mode 100644 index 00000000..65e5e3b1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_nova-ansible-upgrade/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_nova-ansible-upgrade from old + job gate-openstack-ansible-os_nova-ansible-upgrade-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "upgrade" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh upgrade + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_rally-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_rally-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_rally-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_rally-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_rally-announce-release/run.yaml new file mode 100644 index 00000000..8468e322 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_rally-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_rally-announce-release from + old job openstack-ansible-os_rally-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_rally-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_rally-ansible-func-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_rally-ansible-func-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_rally-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_rally-ansible-func-centos-7/run.yaml new file mode 100644 index 00000000..d5a293b3 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_rally-ansible-func-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_rally-ansible-func-centos-7 + from old job gate-openstack-ansible-os_rally-ansible-func-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_rally-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_rally-ansible-func-opensuse-423/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_rally-ansible-func-opensuse-423/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_rally-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_rally-ansible-func-opensuse-423/run.yaml new file mode 100644 index 00000000..54d6d416 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_rally-ansible-func-opensuse-423/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_rally-ansible-func-opensuse-423 + from old job gate-openstack-ansible-os_rally-ansible-func-opensuse-423-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_sahara-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_sahara-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_sahara-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_sahara-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_sahara-announce-release/run.yaml new file mode 100644 index 00000000..0ec8b8f0 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_sahara-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_sahara-announce-release from + old job openstack-ansible-os_sahara-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-centos-7/run.yaml new file mode 100644 index 00000000..c1381d7e --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_sahara-ansible-func-centos-7 + from old job gate-openstack-ansible-os_sahara-ansible-func-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-opensuse-423/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-opensuse-423/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-opensuse-423/run.yaml new file mode 100644 index 00000000..5a445885 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_sahara-ansible-func-opensuse-423/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_sahara-ansible-func-opensuse-423 + from old job gate-openstack-ansible-os_sahara-ansible-func-opensuse-423-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_swift-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_swift-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_swift-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_swift-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_swift-announce-release/run.yaml new file mode 100644 index 00000000..64b4cd7b --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_swift-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_swift-announce-release from + old job openstack-ansible-os_swift-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty/post.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty/run.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..248d43a5 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty + from old job gate-openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func_pypy" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func_pypy + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy/post.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy/run.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy/run.yaml new file mode 100644 index 00000000..4c5af368 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_swift-ansible-func_pypy from + old job gate-openstack-ansible-os_swift-ansible-func_pypy-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func_pypy" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func_pypy + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-centos-7/run.yaml new file mode 100644 index 00000000..016a417e --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_swift-ansible-multi_reg-centos-7 + from old job gate-openstack-ansible-os_swift-ansible-multi_reg-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "multi_reg" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh multi_reg + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty/post.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty/run.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..17d17376 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty + from old job gate-openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "multi_reg" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh multi_reg + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg/post.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg/run.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg/run.yaml new file mode 100644 index 00000000..f8701aa1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_swift-ansible-multi_reg from + old job gate-openstack-ansible-os_swift-ansible-multi_reg-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "multi_reg" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh multi_reg + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade-centos-7/run.yaml new file mode 100644 index 00000000..493237aa --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_swift-ansible-upgrade-centos-7 + from old job gate-openstack-ansible-os_swift-ansible-upgrade-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "upgrade" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh upgrade + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade/post.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade/run.yaml b/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade/run.yaml new file mode 100644 index 00000000..e6a5bed6 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_swift-ansible-upgrade from old + job gate-openstack-ansible-os_swift-ansible-upgrade-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "upgrade" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh upgrade + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_trove-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_trove-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_trove-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_trove-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_trove-announce-release/run.yaml new file mode 100644 index 00000000..c6d2a492 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_trove-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_trove-announce-release from + old job openstack-ansible-os_trove-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_trove-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_trove-ansible-func-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_trove-ansible-func-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_trove-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_trove-ansible-func-centos-7/run.yaml new file mode 100644 index 00000000..30c602aa --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_trove-ansible-func-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_trove-ansible-func-centos-7 + from old job gate-openstack-ansible-os_trove-ansible-func-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_trove-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_trove-ansible-func-opensuse-423/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_trove-ansible-func-opensuse-423/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_trove-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_trove-ansible-func-opensuse-423/run.yaml new file mode 100644 index 00000000..f15c4d22 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_trove-ansible-func-opensuse-423/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_trove-ansible-func-opensuse-423 + from old job gate-openstack-ansible-os_trove-ansible-func-opensuse-423-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_watcher-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_watcher-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_watcher-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_watcher-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_watcher-announce-release/run.yaml new file mode 100644 index 00000000..ea8472ce --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_watcher-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_watcher-announce-release from + old job openstack-ansible-os_watcher-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-centos-7/run.yaml new file mode 100644 index 00000000..c39714b9 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_watcher-ansible-func-centos-7 + from old job gate-openstack-ansible-os_watcher-ansible-func-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-opensuse-423/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-opensuse-423/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-opensuse-423/run.yaml new file mode 100644 index 00000000..7acd5b98 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_watcher-ansible-func-opensuse-423/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_watcher-ansible-func-opensuse-423 + from old job gate-openstack-ansible-os_watcher-ansible-func-opensuse-423-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/run.yaml new file mode 100644 index 00000000..0210a706 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_zaqar-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_zaqar-announce-release from + old job openstack-ansible-os_zaqar-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-centos-7/run.yaml new file mode 100644 index 00000000..c87d1c59 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_zaqar-ansible-func-centos-7 + from old job gate-openstack-ansible-os_zaqar-ansible-func-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-opensuse-423/post.yaml b/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-opensuse-423/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-opensuse-423/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-opensuse-423/run.yaml b/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-opensuse-423/run.yaml new file mode 100644 index 00000000..7c1601b0 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-opensuse-423/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-os_zaqar-ansible-func-opensuse-423 + from old job gate-openstack-ansible-os_zaqar-ansible-func-opensuse-423-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-pip_lock_down-ansible-func-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-pip_lock_down-ansible-func-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-pip_lock_down-ansible-func-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-pip_lock_down-ansible-func-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-pip_lock_down-ansible-func-centos-7/run.yaml new file mode 100644 index 00000000..31d0b9c6 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-pip_lock_down-ansible-func-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-pip_lock_down-ansible-func-centos-7 + from old job gate-openstack-ansible-pip_lock_down-ansible-func-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-plugins-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-plugins-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-plugins-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-plugins-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-plugins-announce-release/run.yaml new file mode 100644 index 00000000..5db2e68a --- /dev/null +++ b/playbooks/legacy/openstack-ansible-plugins-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-plugins-announce-release from old + job openstack-ansible-plugins-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3-centos-7/post.yaml b/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3-centos-7/run.yaml b/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3-centos-7/run.yaml new file mode 100644 index 00000000..fca6a058 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3-centos-7/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-plugins-ansible-func_py3-centos-7 + from old job gate-openstack-ansible-plugins-ansible-func_py3-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func_py3" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func_py3 + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3/post.yaml b/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3/run.yaml b/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3/run.yaml new file mode 100644 index 00000000..3d840f42 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-plugins-ansible-func_py3/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-plugins-ansible-func_py3 from old + job gate-openstack-ansible-plugins-ansible-func_py3-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/$ZUUL_SHORT_PROJECT_NAME' + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): The CentOS CI image has many repositories enabled by + # default that can cause package conflicts. We must disable all of + # them here and only enable base, updates, and epel. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable \* >/dev/null + sudo yum-config-manager --enable base >/dev/null + sudo yum-config-manager --enable epel >/dev/null + sudo yum-config-manager --enable updates >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # NOTE(mhayden): EPEL is no longer required after installing distro + # packages with bindep. Individual roles may re-enable EPEL if they + # need it for their package installation tasks. + # We also do not want to run this on Fedora. + if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then + sudo yum-config-manager --disable epel >/dev/null + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Allow Jenkins user to ssh into localhost + ssh-keygen -f ~/.ssh/id_rsa -N "" + cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys + ssh-keyscan localhost >> ~/.ssh/known_hosts + ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Many of the Ansible roles have a tox environment + # called 'functional', so we implement a mapping + # of the scenario 'func' to 'functional' so reduce + # the need for code churn in those repositories + # immediately. + if [ "func_py3" == "func" ]; then + /usr/local/jenkins/slave_scripts/run-tox.sh functional + else + /usr/local/jenkins/slave_scripts/run-tox.sh func_py3 + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/run.yaml new file mode 100644 index 00000000..f400f099 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-rabbitmq_server-announce-release + from old job openstack-ansible-rabbitmq_server-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/post.yaml b/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/run.yaml b/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/run.yaml new file mode 100644 index 00000000..8b22797b --- /dev/null +++ b/playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/run.yaml @@ -0,0 +1,97 @@ +- hosts: all + name: Autoconverted job legacy-openstack-ansible-rsyslog_server-announce-release + from old job openstack-ansible-rsyslog_server-announce-release + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + mkdir -p $TOOLS_TMP + + # Report on the ZUUL settings. + env | grep '^ZUUL_' + + # Check out the release-tools, ignoring any other ZUUL + # variables that might confuse the cloner and cause it to + # try to check out anything like the commit that was just + # tagged or to look for a branch (we always want the master + # version of the tools). + for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do + unset $v + done + + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLS_TMP \ + git://git.openstack.org \ + openstack-infra/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Install the distro packages needed by the release + # tools. These will not necessarily be included in the set + # installed by the builder step above, so we have to do it + # explicitly by changing to the tools directory and then + # running the same script. + (cd $TOOLS_DIR && + /usr/local/jenkins/slave_scripts/install-distro-packages.sh) + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + TOOLS_TMP=$HOME/release-tools + TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + # Run the announce script. + $TOOLS_DIR/announce.sh $WORKSPACE $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-api-ref-publish-lang/post.yaml b/playbooks/legacy/openstack-api-ref-publish-lang/post.yaml new file mode 100644 index 00000000..d9427398 --- /dev/null +++ b/playbooks/legacy/openstack-api-ref-publish-lang/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/build-*.log.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-api-ref-publish-lang/run.yaml b/playbooks/legacy/openstack-api-ref-publish-lang/run.yaml new file mode 100644 index 00000000..a5f5b550 --- /dev/null +++ b/playbooks/legacy/openstack-api-ref-publish-lang/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-openstack-api-ref-publish-lang from old job openstack-api-ref-publish-lang + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh publishlang-api + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-api-ref/post.yaml b/playbooks/legacy/openstack-api-ref/post.yaml new file mode 100644 index 00000000..d9427398 --- /dev/null +++ b/playbooks/legacy/openstack-api-ref/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/build-*.log.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-api-ref/run.yaml b/playbooks/legacy/openstack-api-ref/run.yaml new file mode 100644 index 00000000..8dad741c --- /dev/null +++ b/playbooks/legacy/openstack-api-ref/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-openstack-api-ref from old job openstack-api-ref + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh publishdocs-api + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node/post.yaml b/playbooks/legacy/openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node/run.yaml b/playbooks/legacy/openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node/run.yaml new file mode 100644 index 00000000..a6105d14 --- /dev/null +++ b/playbooks/legacy/openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node + from old job gate-openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export INTEGRATION=multi + export INTEGRATION_TYPE=basic + export SUB=-addons + export SDN_PLUGIN=ovs + export GLANCE=rbd + export GATE_ENVIRONMENT=zuul + + TOOLKIT_TMP=$HOME/infra + mkdir -p $TOOLKIT_TMP + + if [ "$SUB" != "-infra" ] ; then + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLKIT_TMP \ + git://git.openstack.org \ + openstack/openstack-helm-infra + fi + + tools/gate/setup_gate.sh ubuntu-xenial-3-node + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-addons-nocluster-linter-ovs-rbd/post.yaml b/playbooks/legacy/openstack-helm-addons-nocluster-linter-ovs-rbd/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-helm-addons-nocluster-linter-ovs-rbd/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-helm-addons-nocluster-linter-ovs-rbd/run.yaml b/playbooks/legacy/openstack-helm-addons-nocluster-linter-ovs-rbd/run.yaml new file mode 100644 index 00000000..11784714 --- /dev/null +++ b/playbooks/legacy/openstack-helm-addons-nocluster-linter-ovs-rbd/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-openstack-helm-addons-nocluster-linter-ovs-rbd from + old job gate-openstack-helm-addons-nocluster-linter-ovs-rbd-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export INTEGRATION=nocluster + export INTEGRATION_TYPE=linter + export SUB=-addons + export SDN_PLUGIN=ovs + export GLANCE=rbd + export GATE_ENVIRONMENT=zuul + + TOOLKIT_TMP=$HOME/infra + mkdir -p $TOOLKIT_TMP + + if [ "$SUB" != "-infra" ] ; then + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLKIT_TMP \ + git://git.openstack.org \ + openstack/openstack-helm-infra + fi + + tools/gate/setup_gate.sh ubuntu-xenial + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-aio-basic-linuxbridge-rbd/post.yaml b/playbooks/legacy/openstack-helm-aio-basic-linuxbridge-rbd/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-helm-aio-basic-linuxbridge-rbd/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-helm-aio-basic-linuxbridge-rbd/run.yaml b/playbooks/legacy/openstack-helm-aio-basic-linuxbridge-rbd/run.yaml new file mode 100644 index 00000000..993063be --- /dev/null +++ b/playbooks/legacy/openstack-helm-aio-basic-linuxbridge-rbd/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-openstack-helm-aio-basic-linuxbridge-rbd from old + job gate-openstack-helm-aio-basic-linuxbridge-rbd-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export INTEGRATION=aio + export INTEGRATION_TYPE=basic + export SUB= + export SDN_PLUGIN=linuxbridge + export GLANCE=rbd + export GATE_ENVIRONMENT=zuul + + TOOLKIT_TMP=$HOME/infra + mkdir -p $TOOLKIT_TMP + + if [ "$SUB" != "-infra" ] ; then + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLKIT_TMP \ + git://git.openstack.org \ + openstack/openstack-helm-infra + fi + + tools/gate/setup_gate.sh ubuntu-xenial + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-pvc/post.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-pvc/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-pvc/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-pvc/run.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-pvc/run.yaml new file mode 100644 index 00000000..5532cc37 --- /dev/null +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-pvc/run.yaml @@ -0,0 +1,61 @@ +- hosts: all + name: Autoconverted job legacy-openstack-helm-aio-basic-ovs-pvc from old job gate-openstack-helm-aio-basic-ovs-pvc-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export INTEGRATION=aio + export INTEGRATION_TYPE=basic + export SUB= + export SDN_PLUGIN=ovs + export GLANCE=pvc + export GATE_ENVIRONMENT=zuul + + TOOLKIT_TMP=$HOME/infra + mkdir -p $TOOLKIT_TMP + + if [ "$SUB" != "-infra" ] ; then + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLKIT_TMP \ + git://git.openstack.org \ + openstack/openstack-helm-infra + fi + + tools/gate/setup_gate.sh ubuntu-xenial + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-radosgw/post.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-radosgw/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-radosgw/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-radosgw/run.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-radosgw/run.yaml new file mode 100644 index 00000000..37f12968 --- /dev/null +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-radosgw/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-openstack-helm-aio-basic-ovs-radosgw from old job + gate-openstack-helm-aio-basic-ovs-radosgw-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export INTEGRATION=aio + export INTEGRATION_TYPE=basic + export SUB= + export SDN_PLUGIN=ovs + export GLANCE=radosgw + export GATE_ENVIRONMENT=zuul + + TOOLKIT_TMP=$HOME/infra + mkdir -p $TOOLKIT_TMP + + if [ "$SUB" != "-infra" ] ; then + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLKIT_TMP \ + git://git.openstack.org \ + openstack/openstack-helm-infra + fi + + tools/gate/setup_gate.sh ubuntu-xenial + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-centos-7/post.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-centos-7/run.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-centos-7/run.yaml new file mode 100644 index 00000000..72e4867b --- /dev/null +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-centos-7/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-openstack-helm-aio-basic-ovs-rbd-centos-7 from old + job gate-openstack-helm-aio-basic-ovs-rbd-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export INTEGRATION=aio + export INTEGRATION_TYPE=basic + export SUB= + export SDN_PLUGIN=ovs + export GLANCE=rbd + export GATE_ENVIRONMENT=zuul + + TOOLKIT_TMP=$HOME/infra + mkdir -p $TOOLKIT_TMP + + if [ "$SUB" != "-infra" ] ; then + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLKIT_TMP \ + git://git.openstack.org \ + openstack/openstack-helm-infra + fi + + tools/gate/setup_gate.sh centos-7 + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-fedora-26/post.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-fedora-26/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-fedora-26/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-fedora-26/run.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-fedora-26/run.yaml new file mode 100644 index 00000000..8d367d51 --- /dev/null +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-fedora-26/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-openstack-helm-aio-basic-ovs-rbd-fedora-26 from old + job gate-openstack-helm-aio-basic-ovs-rbd-fedora-26-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export INTEGRATION=aio + export INTEGRATION_TYPE=basic + export SUB= + export SDN_PLUGIN=ovs + export GLANCE=rbd + export GATE_ENVIRONMENT=zuul + + TOOLKIT_TMP=$HOME/infra + mkdir -p $TOOLKIT_TMP + + if [ "$SUB" != "-infra" ] ; then + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLKIT_TMP \ + git://git.openstack.org \ + openstack/openstack-helm-infra + fi + + tools/gate/setup_gate.sh fedora-26 + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd/post.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd/run.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd/run.yaml new file mode 100644 index 00000000..dedfb359 --- /dev/null +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-rbd/run.yaml @@ -0,0 +1,61 @@ +- hosts: all + name: Autoconverted job legacy-openstack-helm-aio-basic-ovs-rbd from old job gate-openstack-helm-aio-basic-ovs-rbd-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export INTEGRATION=aio + export INTEGRATION_TYPE=basic + export SUB= + export SDN_PLUGIN=ovs + export GLANCE=rbd + export GATE_ENVIRONMENT=zuul + + TOOLKIT_TMP=$HOME/infra + mkdir -p $TOOLKIT_TMP + + if [ "$SUB" != "-infra" ] ; then + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLKIT_TMP \ + git://git.openstack.org \ + openstack/openstack-helm-infra + fi + + tools/gate/setup_gate.sh ubuntu-xenial + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-swift/post.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-swift/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-swift/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-helm-aio-basic-ovs-swift/run.yaml b/playbooks/legacy/openstack-helm-aio-basic-ovs-swift/run.yaml new file mode 100644 index 00000000..a2a6abec --- /dev/null +++ b/playbooks/legacy/openstack-helm-aio-basic-ovs-swift/run.yaml @@ -0,0 +1,61 @@ +- hosts: all + name: Autoconverted job legacy-openstack-helm-aio-basic-ovs-swift from old job gate-openstack-helm-aio-basic-ovs-swift-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export INTEGRATION=aio + export INTEGRATION_TYPE=basic + export SUB= + export SDN_PLUGIN=ovs + export GLANCE=swift + export GATE_ENVIRONMENT=zuul + + TOOLKIT_TMP=$HOME/infra + mkdir -p $TOOLKIT_TMP + + if [ "$SUB" != "-infra" ] ; then + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLKIT_TMP \ + git://git.openstack.org \ + openstack/openstack-helm-infra + fi + + tools/gate/setup_gate.sh ubuntu-xenial + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-centos-7/post.yaml b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-centos-7/run.yaml b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-centos-7/run.yaml new file mode 100644 index 00000000..0ca455fa --- /dev/null +++ b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-centos-7/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-openstack-helm-infra-aio-basic-ovs-rbd-centos-7 from + old job gate-openstack-helm-infra-aio-basic-ovs-rbd-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export INTEGRATION=aio + export INTEGRATION_TYPE=basic + export SUB=-infra + export SDN_PLUGIN=ovs + export GLANCE=rbd + export GATE_ENVIRONMENT=zuul + + TOOLKIT_TMP=$HOME/infra + mkdir -p $TOOLKIT_TMP + + if [ "$SUB" != "-infra" ] ; then + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLKIT_TMP \ + git://git.openstack.org \ + openstack/openstack-helm-infra + fi + + tools/gate/setup_gate.sh centos-7 + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-fedora-26/post.yaml b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-fedora-26/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-fedora-26/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-fedora-26/run.yaml b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-fedora-26/run.yaml new file mode 100644 index 00000000..fa3b7e9a --- /dev/null +++ b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-fedora-26/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-openstack-helm-infra-aio-basic-ovs-rbd-fedora-26 + from old job gate-openstack-helm-infra-aio-basic-ovs-rbd-fedora-26-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export INTEGRATION=aio + export INTEGRATION_TYPE=basic + export SUB=-infra + export SDN_PLUGIN=ovs + export GLANCE=rbd + export GATE_ENVIRONMENT=zuul + + TOOLKIT_TMP=$HOME/infra + mkdir -p $TOOLKIT_TMP + + if [ "$SUB" != "-infra" ] ; then + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLKIT_TMP \ + git://git.openstack.org \ + openstack/openstack-helm-infra + fi + + tools/gate/setup_gate.sh fedora-26 + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd/post.yaml b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd/run.yaml b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd/run.yaml new file mode 100644 index 00000000..0df90b29 --- /dev/null +++ b/playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-openstack-helm-infra-aio-basic-ovs-rbd from old job + gate-openstack-helm-infra-aio-basic-ovs-rbd-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export INTEGRATION=aio + export INTEGRATION_TYPE=basic + export SUB=-infra + export SDN_PLUGIN=ovs + export GLANCE=rbd + export GATE_ENVIRONMENT=zuul + + TOOLKIT_TMP=$HOME/infra + mkdir -p $TOOLKIT_TMP + + if [ "$SUB" != "-infra" ] ; then + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLKIT_TMP \ + git://git.openstack.org \ + openstack/openstack-helm-infra + fi + + tools/gate/setup_gate.sh ubuntu-xenial + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-infra-nocluster-linter-ovs-rbd/post.yaml b/playbooks/legacy/openstack-helm-infra-nocluster-linter-ovs-rbd/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-helm-infra-nocluster-linter-ovs-rbd/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-helm-infra-nocluster-linter-ovs-rbd/run.yaml b/playbooks/legacy/openstack-helm-infra-nocluster-linter-ovs-rbd/run.yaml new file mode 100644 index 00000000..2780f57b --- /dev/null +++ b/playbooks/legacy/openstack-helm-infra-nocluster-linter-ovs-rbd/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-openstack-helm-infra-nocluster-linter-ovs-rbd from + old job gate-openstack-helm-infra-nocluster-linter-ovs-rbd-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export INTEGRATION=nocluster + export INTEGRATION_TYPE=linter + export SUB=-infra + export SDN_PLUGIN=ovs + export GLANCE=rbd + export GATE_ENVIRONMENT=zuul + + TOOLKIT_TMP=$HOME/infra + mkdir -p $TOOLKIT_TMP + + if [ "$SUB" != "-infra" ] ; then + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLKIT_TMP \ + git://git.openstack.org \ + openstack/openstack-helm-infra + fi + + tools/gate/setup_gate.sh ubuntu-xenial + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node/post.yaml b/playbooks/legacy/openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node/run.yaml b/playbooks/legacy/openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node/run.yaml new file mode 100644 index 00000000..7b293326 --- /dev/null +++ b/playbooks/legacy/openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node + from old job gate-openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export INTEGRATION=multi + export INTEGRATION_TYPE=armada + export SUB= + export SDN_PLUGIN=ovs + export GLANCE=rbd + export GATE_ENVIRONMENT=zuul + + TOOLKIT_TMP=$HOME/infra + mkdir -p $TOOLKIT_TMP + + if [ "$SUB" != "-infra" ] ; then + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLKIT_TMP \ + git://git.openstack.org \ + openstack/openstack-helm-infra + fi + + tools/gate/setup_gate.sh ubuntu-xenial-3-node + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node/post.yaml b/playbooks/legacy/openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node/run.yaml b/playbooks/legacy/openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node/run.yaml new file mode 100644 index 00000000..3de0b758 --- /dev/null +++ b/playbooks/legacy/openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node + from old job gate-openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export INTEGRATION=multi + export INTEGRATION_TYPE=basic + export SUB= + export SDN_PLUGIN=linuxbridge + export GLANCE=rbd + export GATE_ENVIRONMENT=zuul + + TOOLKIT_TMP=$HOME/infra + mkdir -p $TOOLKIT_TMP + + if [ "$SUB" != "-infra" ] ; then + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLKIT_TMP \ + git://git.openstack.org \ + openstack/openstack-helm-infra + fi + + tools/gate/setup_gate.sh ubuntu-xenial-3-node + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node/post.yaml b/playbooks/legacy/openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node/run.yaml b/playbooks/legacy/openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node/run.yaml new file mode 100644 index 00000000..040fa169 --- /dev/null +++ b/playbooks/legacy/openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node + from old job gate-openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export INTEGRATION=multi + export INTEGRATION_TYPE=basic + export SUB= + export SDN_PLUGIN=ovs + export GLANCE=rbd + export GATE_ENVIRONMENT=zuul + + TOOLKIT_TMP=$HOME/infra + mkdir -p $TOOLKIT_TMP + + if [ "$SUB" != "-infra" ] ; then + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLKIT_TMP \ + git://git.openstack.org \ + openstack/openstack-helm-infra + fi + + tools/gate/setup_gate.sh ubuntu-xenial-3-node + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-helm-nocluster-linter-ovs-rbd/post.yaml b/playbooks/legacy/openstack-helm-nocluster-linter-ovs-rbd/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/openstack-helm-nocluster-linter-ovs-rbd/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-helm-nocluster-linter-ovs-rbd/run.yaml b/playbooks/legacy/openstack-helm-nocluster-linter-ovs-rbd/run.yaml new file mode 100644 index 00000000..a5833215 --- /dev/null +++ b/playbooks/legacy/openstack-helm-nocluster-linter-ovs-rbd/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-openstack-helm-nocluster-linter-ovs-rbd from old + job gate-openstack-helm-nocluster-linter-ovs-rbd-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export INTEGRATION=nocluster + export INTEGRATION_TYPE=linter + export SUB= + export SDN_PLUGIN=ovs + export GLANCE=rbd + export GATE_ENVIRONMENT=zuul + + TOOLKIT_TMP=$HOME/infra + mkdir -p $TOOLKIT_TMP + + if [ "$SUB" != "-infra" ] ; then + /usr/zuul-env/bin/zuul-cloner \ + --cache-dir /opt/git \ + --workspace $TOOLKIT_TMP \ + git://git.openstack.org \ + openstack/openstack-helm-infra + fi + + tools/gate/setup_gate.sh ubuntu-xenial + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-manuals-tox-doc-publishdocs/post.yaml b/playbooks/legacy/openstack-manuals-tox-doc-publishdocs/post.yaml new file mode 100644 index 00000000..fe356df3 --- /dev/null +++ b/playbooks/legacy/openstack-manuals-tox-doc-publishdocs/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/build-*.log.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstack-manuals-tox-doc-publishdocs/run.yaml b/playbooks/legacy/openstack-manuals-tox-doc-publishdocs/run.yaml new file mode 100644 index 00000000..26de0bce --- /dev/null +++ b/playbooks/legacy/openstack-manuals-tox-doc-publishdocs/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-openstack-manuals-tox-doc-publishdocs from old job + openstack-manuals-tox-doc-publishdocs + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh publishdocs + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstack-planet-unittest/run.yaml b/playbooks/legacy/openstack-planet-unittest/run.yaml new file mode 100644 index 00000000..1f2114af --- /dev/null +++ b/playbooks/legacy/openstack-planet-unittest/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-openstack-planet-unittest from old job gate-openstack-planet-unittest + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + python test.py + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstackci-beaker-centos-7/run.yaml b/playbooks/legacy/openstackci-beaker-centos-7/run.yaml new file mode 100644 index 00000000..8dc6c589 --- /dev/null +++ b/playbooks/legacy/openstackci-beaker-centos-7/run.yaml @@ -0,0 +1,87 @@ +- hosts: all + name: Autoconverted job legacy-openstackci-beaker-centos-7 from old job gate-openstackci-beaker-centos-7 + tasks: + + - shell: + cmd: sudo pip install "pip<8" "virtualenv<14" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org openstack-infra/puppet-openstackci + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org openstack-infra/puppet-openstack_infra_spec_helper + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address 127.0.0.1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address ::1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + mkdir -p .ssh + ssh-keygen -f ~/.ssh/id_rsa -b 2048 -P "" + sudo mkdir -p /root/.ssh + cat ~/.ssh/id_rsa.pub | sudo tee -a /root/.ssh/authorized_keys + if [ -f /usr/bin/yum ]; then + sudo systemctl reload sshd + elif [ -f /usr/bin/apt-get ]; then + sudo service ssh restart + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo gem install bundler --no-rdoc --no-ri --verbose + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cd openstack-infra/puppet-openstackci + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + bundle install + export BEAKER_set=nodepool-centos7 + export BEAKER_debug=yes + export BEAKER_color=no + bundle exec rspec spec/acceptance + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstackci-beaker-ubuntu-trusty/run.yaml b/playbooks/legacy/openstackci-beaker-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..ad7aa334 --- /dev/null +++ b/playbooks/legacy/openstackci-beaker-ubuntu-trusty/run.yaml @@ -0,0 +1,87 @@ +- hosts: all + name: Autoconverted job legacy-openstackci-beaker-ubuntu-trusty from old job gate-openstackci-beaker-ubuntu-trusty + tasks: + + - shell: + cmd: sudo pip install "pip<8" "virtualenv<14" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org openstack-infra/puppet-openstackci + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org openstack-infra/puppet-openstack_infra_spec_helper + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address 127.0.0.1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address ::1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + mkdir -p .ssh + ssh-keygen -f ~/.ssh/id_rsa -b 2048 -P "" + sudo mkdir -p /root/.ssh + cat ~/.ssh/id_rsa.pub | sudo tee -a /root/.ssh/authorized_keys + if [ -f /usr/bin/yum ]; then + sudo systemctl reload sshd + elif [ -f /usr/bin/apt-get ]; then + sudo service ssh restart + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo gem install bundler --no-rdoc --no-ri --verbose + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cd openstack-infra/puppet-openstackci + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + bundle install + export BEAKER_set=nodepool-trusty + export BEAKER_debug=yes + export BEAKER_color=no + bundle exec rspec spec/acceptance + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstackci-beaker/run.yaml b/playbooks/legacy/openstackci-beaker/run.yaml new file mode 100644 index 00000000..b95dd40e --- /dev/null +++ b/playbooks/legacy/openstackci-beaker/run.yaml @@ -0,0 +1,87 @@ +- hosts: all + name: Autoconverted job legacy-openstackci-beaker from old job gate-openstackci-beaker-ubuntu-xenial + tasks: + + - shell: + cmd: sudo pip install "pip<8" "virtualenv<14" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org openstack-infra/puppet-openstackci + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org openstack-infra/puppet-openstack_infra_spec_helper + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address 127.0.0.1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address ::1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + mkdir -p .ssh + ssh-keygen -f ~/.ssh/id_rsa -b 2048 -P "" + sudo mkdir -p /root/.ssh + cat ~/.ssh/id_rsa.pub | sudo tee -a /root/.ssh/authorized_keys + if [ -f /usr/bin/yum ]; then + sudo systemctl reload sshd + elif [ -f /usr/bin/apt-get ]; then + sudo service ssh restart + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo gem install bundler --no-rdoc --no-ri --verbose + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cd openstack-infra/puppet-openstackci + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + bundle install + export BEAKER_set=nodepool-xenial + export BEAKER_debug=yes + export BEAKER_color=no + bundle exec rspec spec/acceptance + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstackdocstheme-api-ref/post.yaml b/playbooks/legacy/openstackdocstheme-api-ref/post.yaml new file mode 100644 index 00000000..75275036 --- /dev/null +++ b/playbooks/legacy/openstackdocstheme-api-ref/post.yaml @@ -0,0 +1,75 @@ +- hosts: all + tasks: + + - name: Copy files from api-ref/build/html/ on node + synchronize: + src: api-ref/build/html/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstackdocstheme-api-ref/run.yaml b/playbooks/legacy/openstackdocstheme-api-ref/run.yaml new file mode 100644 index 00000000..712efe17 --- /dev/null +++ b/playbooks/legacy/openstackdocstheme-api-ref/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-openstackdocstheme-api-ref from old job gate-openstackdocstheme-api-ref + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh api-ref + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/openstackdocstheme-tox-doc-publish-buildpdf/post.yaml b/playbooks/legacy/openstackdocstheme-tox-doc-publish-buildpdf/post.yaml new file mode 100644 index 00000000..5a81ee20 --- /dev/null +++ b/playbooks/legacy/openstackdocstheme-tox-doc-publish-buildpdf/post.yaml @@ -0,0 +1,23 @@ +- hosts: all + tasks: + + - name: Copy files from publish-docs/ on node + synchronize: + src: publish-docs/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/build-*.log.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/openstackdocstheme-tox-doc-publish-buildpdf/run.yaml b/playbooks/legacy/openstackdocstheme-tox-doc-publish-buildpdf/run.yaml new file mode 100644 index 00000000..bbb4a565 --- /dev/null +++ b/playbooks/legacy/openstackdocstheme-tox-doc-publish-buildpdf/run.yaml @@ -0,0 +1,69 @@ +- hosts: all + name: Autoconverted job legacy-openstackdocstheme-tox-doc-publish-buildpdf from + old job gate-openstackdocstheme-tox-doc-publish-buildpdf + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh buildpdf + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/os-brick-pylint/post.yaml b/playbooks/legacy/os-brick-pylint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/os-brick-pylint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/os-brick-pylint/run.yaml b/playbooks/legacy/os-brick-pylint/run.yaml new file mode 100644 index 00000000..24d78c85 --- /dev/null +++ b/playbooks/legacy/os-brick-pylint/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-os-brick-pylint from old job gate-os-brick-pylint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osbackup-freezer-api-dsvm-centos-7/post.yaml b/playbooks/legacy/osbackup-freezer-api-dsvm-centos-7/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/osbackup-freezer-api-dsvm-centos-7/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/osbackup-freezer-api-dsvm-centos-7/run.yaml b/playbooks/legacy/osbackup-freezer-api-dsvm-centos-7/run.yaml new file mode 100644 index 00000000..1ba9628d --- /dev/null +++ b/playbooks/legacy/osbackup-freezer-api-dsvm-centos-7/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-osbackup-freezer-api-dsvm-centos-7 from old job gate-osbackup-freezer-api-dsvm-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + # enable freezer-agent and freezer-scheduler + enable_plugin freezer git://git.openstack.org/openstack/freezer + # enable freezer-api and python-freezerclient + enable_plugin freezer-api https://git.openstack.org/openstack/freezer-api + # enable freezer-web-ui and python-freezerclient + enable_plugin freezer-web-ui https://git.openstack.org/openstack/freezer-web-ui + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + # checkout freezer components + export PROJECTS="openstack/freezer-api $PROJECTS" + export PROJECTS="openstack/freezer-web-ui $PROJECTS" + export PROJECTS="openstack/freezer $PROJECTS" + export PROJECTS="openstack/python-freezerclient $PROJECTS" + export DEVSTACK_GATE_HORIZON=1 + # tempest config + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + TEMPEST_REGEX="$ZUUL_SHORT_PROJECT_NAME_tempest_plugin" + export DEVSTACK_GATE_TEMPEST_REGEX=${TEMPEST_REGEX/\-/\_ } + + # which repo is being tested + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + + # This ensures that if we set override branch to something + # else, we still take repo being tested from the zuul branch + # name. So override branch can be 'stable/mitaka' but we can + # test master changes. + uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'` + export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH + + function gate_hook { + source $BASE/new/$ZUUL_SHORT_PROJECT_NAME/devstack/gate_hook.sh + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osbackup-freezer-api-dsvm/post.yaml b/playbooks/legacy/osbackup-freezer-api-dsvm/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/osbackup-freezer-api-dsvm/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/osbackup-freezer-api-dsvm/run.yaml b/playbooks/legacy/osbackup-freezer-api-dsvm/run.yaml new file mode 100644 index 00000000..e0496c84 --- /dev/null +++ b/playbooks/legacy/osbackup-freezer-api-dsvm/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-osbackup-freezer-api-dsvm from old job gate-osbackup-freezer-api-dsvm-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + # enable freezer-agent and freezer-scheduler + enable_plugin freezer git://git.openstack.org/openstack/freezer + # enable freezer-api and python-freezerclient + enable_plugin freezer-api https://git.openstack.org/openstack/freezer-api + # enable freezer-web-ui and python-freezerclient + enable_plugin freezer-web-ui https://git.openstack.org/openstack/freezer-web-ui + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + # checkout freezer components + export PROJECTS="openstack/freezer-api $PROJECTS" + export PROJECTS="openstack/freezer-web-ui $PROJECTS" + export PROJECTS="openstack/freezer $PROJECTS" + export PROJECTS="openstack/python-freezerclient $PROJECTS" + export DEVSTACK_GATE_HORIZON=1 + # tempest config + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + TEMPEST_REGEX="$ZUUL_SHORT_PROJECT_NAME_tempest_plugin" + export DEVSTACK_GATE_TEMPEST_REGEX=${TEMPEST_REGEX/\-/\_ } + + # which repo is being tested + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + + # This ensures that if we set override branch to something + # else, we still take repo being tested from the zuul branch + # name. So override branch can be 'stable/mitaka' but we can + # test master changes. + uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'` + export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH + + function gate_hook { + source $BASE/new/$ZUUL_SHORT_PROJECT_NAME/devstack/gate_hook.sh + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osbackup-freezer-dsvm-centos-7/post.yaml b/playbooks/legacy/osbackup-freezer-dsvm-centos-7/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/osbackup-freezer-dsvm-centos-7/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/osbackup-freezer-dsvm-centos-7/run.yaml b/playbooks/legacy/osbackup-freezer-dsvm-centos-7/run.yaml new file mode 100644 index 00000000..3fdf5306 --- /dev/null +++ b/playbooks/legacy/osbackup-freezer-dsvm-centos-7/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-osbackup-freezer-dsvm-centos-7 from old job gate-osbackup-freezer-dsvm-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + # enable freezer-agent and freezer-scheduler + enable_plugin freezer git://git.openstack.org/openstack/freezer + # enable freezer-api and python-freezerclient + enable_plugin freezer-api https://git.openstack.org/openstack/freezer-api + # enable freezer-web-ui and python-freezerclient + enable_plugin freezer-web-ui https://git.openstack.org/openstack/freezer-web-ui + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + # checkout freezer components + export PROJECTS="openstack/freezer-api $PROJECTS" + export PROJECTS="openstack/freezer-web-ui $PROJECTS" + export PROJECTS="openstack/freezer $PROJECTS" + export PROJECTS="openstack/python-freezerclient $PROJECTS" + export DEVSTACK_GATE_HORIZON=1 + # tempest config + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + TEMPEST_REGEX="$ZUUL_SHORT_PROJECT_NAME_tempest_plugin" + export DEVSTACK_GATE_TEMPEST_REGEX=${TEMPEST_REGEX/\-/\_ } + + # which repo is being tested + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + + # This ensures that if we set override branch to something + # else, we still take repo being tested from the zuul branch + # name. So override branch can be 'stable/mitaka' but we can + # test master changes. + uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'` + export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH + + function gate_hook { + source $BASE/new/$ZUUL_SHORT_PROJECT_NAME/devstack/gate_hook.sh + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osbackup-freezer-dsvm-opensuse-423/post.yaml b/playbooks/legacy/osbackup-freezer-dsvm-opensuse-423/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/osbackup-freezer-dsvm-opensuse-423/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/osbackup-freezer-dsvm-opensuse-423/run.yaml b/playbooks/legacy/osbackup-freezer-dsvm-opensuse-423/run.yaml new file mode 100644 index 00000000..db011c4a --- /dev/null +++ b/playbooks/legacy/osbackup-freezer-dsvm-opensuse-423/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-osbackup-freezer-dsvm-opensuse-423 from old job gate-osbackup-freezer-dsvm-opensuse-423-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + # enable freezer-agent and freezer-scheduler + enable_plugin freezer git://git.openstack.org/openstack/freezer + # enable freezer-api and python-freezerclient + enable_plugin freezer-api https://git.openstack.org/openstack/freezer-api + # enable freezer-web-ui and python-freezerclient + enable_plugin freezer-web-ui https://git.openstack.org/openstack/freezer-web-ui + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + # checkout freezer components + export PROJECTS="openstack/freezer-api $PROJECTS" + export PROJECTS="openstack/freezer-web-ui $PROJECTS" + export PROJECTS="openstack/freezer $PROJECTS" + export PROJECTS="openstack/python-freezerclient $PROJECTS" + export DEVSTACK_GATE_HORIZON=1 + # tempest config + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + TEMPEST_REGEX="$ZUUL_SHORT_PROJECT_NAME_tempest_plugin" + export DEVSTACK_GATE_TEMPEST_REGEX=${TEMPEST_REGEX/\-/\_ } + + # which repo is being tested + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + + # This ensures that if we set override branch to something + # else, we still take repo being tested from the zuul branch + # name. So override branch can be 'stable/mitaka' but we can + # test master changes. + uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'` + export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH + + function gate_hook { + source $BASE/new/$ZUUL_SHORT_PROJECT_NAME/devstack/gate_hook.sh + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osbackup-freezer-dsvm/post.yaml b/playbooks/legacy/osbackup-freezer-dsvm/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/osbackup-freezer-dsvm/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/osbackup-freezer-dsvm/run.yaml b/playbooks/legacy/osbackup-freezer-dsvm/run.yaml new file mode 100644 index 00000000..bff3e14f --- /dev/null +++ b/playbooks/legacy/osbackup-freezer-dsvm/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-osbackup-freezer-dsvm from old job gate-osbackup-freezer-dsvm-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + # enable freezer-agent and freezer-scheduler + enable_plugin freezer git://git.openstack.org/openstack/freezer + # enable freezer-api and python-freezerclient + enable_plugin freezer-api https://git.openstack.org/openstack/freezer-api + # enable freezer-web-ui and python-freezerclient + enable_plugin freezer-web-ui https://git.openstack.org/openstack/freezer-web-ui + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + # checkout freezer components + export PROJECTS="openstack/freezer-api $PROJECTS" + export PROJECTS="openstack/freezer-web-ui $PROJECTS" + export PROJECTS="openstack/freezer $PROJECTS" + export PROJECTS="openstack/python-freezerclient $PROJECTS" + export DEVSTACK_GATE_HORIZON=1 + # tempest config + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + TEMPEST_REGEX="$ZUUL_SHORT_PROJECT_NAME_tempest_plugin" + export DEVSTACK_GATE_TEMPEST_REGEX=${TEMPEST_REGEX/\-/\_ } + + # which repo is being tested + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + + # This ensures that if we set override branch to something + # else, we still take repo being tested from the zuul branch + # name. So override branch can be 'stable/mitaka' but we can + # test master changes. + uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'` + export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH + + function gate_hook { + source $BASE/new/$ZUUL_SHORT_PROJECT_NAME/devstack/gate_hook.sh + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osbackup-freezer-web-ui-dsvm/post.yaml b/playbooks/legacy/osbackup-freezer-web-ui-dsvm/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/osbackup-freezer-web-ui-dsvm/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/osbackup-freezer-web-ui-dsvm/run.yaml b/playbooks/legacy/osbackup-freezer-web-ui-dsvm/run.yaml new file mode 100644 index 00000000..56b1432a --- /dev/null +++ b/playbooks/legacy/osbackup-freezer-web-ui-dsvm/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-osbackup-freezer-web-ui-dsvm from old job gate-osbackup-freezer-web-ui-dsvm-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + # enable freezer-agent and freezer-scheduler + enable_plugin freezer git://git.openstack.org/openstack/freezer + # enable freezer-api and python-freezerclient + enable_plugin freezer-api https://git.openstack.org/openstack/freezer-api + # enable freezer-web-ui and python-freezerclient + enable_plugin freezer-web-ui https://git.openstack.org/openstack/freezer-web-ui + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + # checkout freezer components + export PROJECTS="openstack/freezer-api $PROJECTS" + export PROJECTS="openstack/freezer-web-ui $PROJECTS" + export PROJECTS="openstack/freezer $PROJECTS" + export PROJECTS="openstack/python-freezerclient $PROJECTS" + export DEVSTACK_GATE_HORIZON=1 + # tempest config + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + TEMPEST_REGEX="$ZUUL_SHORT_PROJECT_NAME_tempest_plugin" + export DEVSTACK_GATE_TEMPEST_REGEX=${TEMPEST_REGEX/\-/\_ } + + # which repo is being tested + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + + # This ensures that if we set override branch to something + # else, we still take repo being tested from the zuul branch + # name. So override branch can be 'stable/mitaka' but we can + # test master changes. + uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'` + export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH + + function gate_hook { + source $BASE/new/$ZUUL_SHORT_PROJECT_NAME/devstack/gate_hook.sh + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osc-dsvm-functional-n-net/post.yaml b/playbooks/legacy/osc-dsvm-functional-n-net/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/osc-dsvm-functional-n-net/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/osc-dsvm-functional-n-net/run.yaml b/playbooks/legacy/osc-dsvm-functional-n-net/run.yaml new file mode 100644 index 00000000..6350e1f6 --- /dev/null +++ b/playbooks/legacy/osc-dsvm-functional-n-net/run.yaml @@ -0,0 +1,77 @@ +- hosts: all + name: Autoconverted job legacy-osc-dsvm-functional-n-net from old job gate-osc-dsvm-functional-n-net-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + # NOTE(RuiChen): nova-network only can be enable in nova cell v1 + enable_service n-net n-cell + disable_service neutron q-svc q-agt q-dhcp q-l3 q-meta q-metering + # NOTE(dtroyer): OSC needs to support Image v1 for a while yet so re-enable + GLANCE_V1_ENABLED=True + # NOTE(dtroyer): Functional tests need a bit more volume headroom + VOLUME_BACKING_FILE_SIZE=20G + # NOTE(dtroyer): OSC needs to support Volume v1 for a while yet so re-enable + [[post-config|$CINDER_CONF]] + [DEFAULT] + enable_v1_api = True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=0 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + # NOTE(RuiChen): Explicitly tell devstack-gate that we need to run + # the nova-network job with cell v1. + export DEVSTACK_GATE_NEUTRON=0 + export DEVSTACK_GATE_CELLS=1 + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=python-openstackclient + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook { + # NOTE(stevemar): After the newton release was tagged the file was moved. + # But, we run functional tests for various stable releases + # (mitaka, and newton). + # TODO(stevemar): Remove this check when Newton hits EOL. + hook_location=$BASE/new/python-openstackclient/openstackclient/tests/functional/post_test_hook.sh + if [ ! -f "$hook_location" ]; then + hook_location=$BASE/new/python-openstackclient/post_test_hook.sh + fi + bash -xe $hook_location + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osc-dsvm-functional-tips/post.yaml b/playbooks/legacy/osc-dsvm-functional-tips/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/osc-dsvm-functional-tips/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/osc-dsvm-functional-tips/run.yaml b/playbooks/legacy/osc-dsvm-functional-tips/run.yaml new file mode 100644 index 00000000..46dc8175 --- /dev/null +++ b/playbooks/legacy/osc-dsvm-functional-tips/run.yaml @@ -0,0 +1,82 @@ +- hosts: all + name: Autoconverted job legacy-osc-dsvm-functional-tips from old job gate-osc-dsvm-functional-tips-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + # NOTE(amotoki): Some neutron features are enabled by devstack plugin + enable_plugin neutron https://git.openstack.org/openstack/neutron + enable_service q-qos + enable_service neutron-segments + # NOTE(dtroyer): OSC needs to support Image v1 for a while yet so re-enable + GLANCE_V1_ENABLED=True + # NOTE(dtroyer): Functional tests need a bit more volume headroom + VOLUME_BACKING_FILE_SIZE=20G + # Swift is not ready for python3 yet: At a minimum keystonemiddleware needs + # to be installed in the py2 env, there are probably other things too... + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + # This is insufficient, but leaving it here as a reminder of what may + # someday be all we need to make this work + disable_python3_package swift + # NOTE(dtroyer): OSC needs to support Volume v1 for a while yet so re-enable + [[post-config|$CINDER_CONF]] + [DEFAULT] + enable_v1_api = True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_USE_PYTHON3=True + export DEVSTACK_GATE_UNSTACK=0 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT="python-openstackclient,python-openstacksdk,osc-lib,os-client-config" + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook { + # This test hook will install the master version of the following: + # - osc-lib + # - openstacksdk + # - os-client-config + hook_location=$BASE/new/python-openstackclient/openstackclient/tests/functional/post_test_hook_tips.sh + bash -xe $hook_location + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osc-dsvm-functional/post.yaml b/playbooks/legacy/osc-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/osc-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/osc-dsvm-functional/run.yaml b/playbooks/legacy/osc-dsvm-functional/run.yaml new file mode 100644 index 00000000..b2fd9a83 --- /dev/null +++ b/playbooks/legacy/osc-dsvm-functional/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-osc-dsvm-functional from old job gate-osc-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + # NOTE(amotoki): Some neutron features are enabled by devstack plugin + enable_plugin neutron https://git.openstack.org/openstack/neutron + enable_service q-qos + enable_service neutron-segments + # NOTE(dtroyer): OSC needs to support Image v1 for a while yet so re-enable + GLANCE_V1_ENABLED=True + # NOTE(dtroyer): Functional tests need a bit more volume headroom + VOLUME_BACKING_FILE_SIZE=20G + # NOTE(dtroyer): OSC needs to support Volume v1 for a while yet so re-enable + [[post-config|$CINDER_CONF]] + [DEFAULT] + enable_v1_api = True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=0 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=python-openstackclient + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook { + # NOTE(stevemar): After the newton release was tagged the file was moved. + # But, we run functional tests for various stable releases + # (mitaka, and newton). + # TODO(stevemar): Remove this check when Newton hits EOL. + hook_location=$BASE/new/python-openstackclient/openstackclient/tests/functional/post_test_hook.sh + if [ ! -f "$hook_location" ]; then + hook_location=$BASE/new/python-openstackclient/post_test_hook.sh + fi + bash -xe $hook_location + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/osc-placement-dsvm-functional/post.yaml b/playbooks/legacy/osc-placement-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/osc-placement-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/osc-placement-dsvm-functional/run.yaml b/playbooks/legacy/osc-placement-dsvm-functional/run.yaml new file mode 100644 index 00000000..16809b69 --- /dev/null +++ b/playbooks/legacy/osc-placement-dsvm-functional/run.yaml @@ -0,0 +1,45 @@ +- hosts: all + name: Autoconverted job legacy-osc-placement-dsvm-functional from old job gate-osc-placement-dsvm-functional-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=osc-placement + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # This ensures that if we set override branch to something + # else, we still take osc-placement from the zuul branch + # name. So override branch can be 'stable/mitaka' but we can + # test master changes. + export OVERRIDE_OSC_PLACEMENT_PROJECT_BRANCH=$ZUUL_BRANCH + + function post_test_hook { + # Configure and run functional tests + $BASE/new/osc-placement/osc_placement/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo-cookiecutter-tox-cookiecutter/post.yaml b/playbooks/legacy/oslo-cookiecutter-tox-cookiecutter/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/oslo-cookiecutter-tox-cookiecutter/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo-cookiecutter-tox-cookiecutter/run.yaml b/playbooks/legacy/oslo-cookiecutter-tox-cookiecutter/run.yaml new file mode 100644 index 00000000..27395309 --- /dev/null +++ b/playbooks/legacy/oslo-cookiecutter-tox-cookiecutter/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-oslo-cookiecutter-tox-cookiecutter from old job gate-oslo-cookiecutter-tox-cookiecutter-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh cookiecutter + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.db-tox-mysql-python/post.yaml b/playbooks/legacy/oslo.db-tox-mysql-python/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/oslo.db-tox-mysql-python/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.db-tox-mysql-python/run.yaml b/playbooks/legacy/oslo.db-tox-mysql-python/run.yaml new file mode 100644 index 00000000..7470c1da --- /dev/null +++ b/playbooks/legacy/oslo.db-tox-mysql-python/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-oslo.db-tox-mysql-python from old job gate-oslo.db-tox-mysql-python-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh mysql-python + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.log-src-grenade-dsvm/post.yaml b/playbooks/legacy/oslo.log-src-grenade-dsvm/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/oslo.log-src-grenade-dsvm/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.log-src-grenade-dsvm/run.yaml b/playbooks/legacy/oslo.log-src-grenade-dsvm/run.yaml new file mode 100644 index 00000000..82761ef0 --- /dev/null +++ b/playbooks/legacy/oslo.log-src-grenade-dsvm/run.yaml @@ -0,0 +1,43 @@ +- hosts: all + name: Autoconverted job legacy-oslo.log-src-grenade-dsvm from old job gate-oslo.log-src-grenade-dsvm-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_GRENADE=pullup + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + + # Even if the branch is overridden, make sure we use + # the correct branch using the OVERRIDE_*_PROJECT_BRANCH + # variable. + uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'` + export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-dual-centos-7/post.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-dual-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-dual-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-dual-centos-7/run.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-dual-centos-7/run.yaml new file mode 100644 index 00000000..4f53dd18 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-dual-centos-7/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-src-dsvm-full-amqp1-dual-centos-7 + from old job gate-oslo.messaging-src-dsvm-full-amqp1-dual-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export PROJECTS="openstack/devstack-plugin-amqp1 $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin devstack-plugin-amqp1 git://git.openstack.org/openstack/devstack-plugin-amqp1" + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging" + + if [ "amqp1" == "amqp1" ]; then + # The AMQP 1.0 plugin supports a couple of different message bus configurations + # 'hybrid' - use RabbitMQ for Notifications, qdrouterd for RPC + # 'dual' - use qpidd for Notifications, qdrouterd for RPC + # default: use qpidd for Notifications and for RPC + case "dual" in + hybrid) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-hybrid" + ;; + dual) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-dual" + ;; + esac + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-hybrid/post.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-hybrid/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-hybrid/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-hybrid/run.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-hybrid/run.yaml new file mode 100644 index 00000000..b5900f09 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-hybrid/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-src-dsvm-full-amqp1-hybrid from old + job gate-oslo.messaging-src-dsvm-full-amqp1-hybrid-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export PROJECTS="openstack/devstack-plugin-amqp1 $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin devstack-plugin-amqp1 git://git.openstack.org/openstack/devstack-plugin-amqp1" + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging" + + if [ "amqp1" == "amqp1" ]; then + # The AMQP 1.0 plugin supports a couple of different message bus configurations + # 'hybrid' - use RabbitMQ for Notifications, qdrouterd for RPC + # 'dual' - use qpidd for Notifications, qdrouterd for RPC + # default: use qpidd for Notifications and for RPC + case "hybrid" in + hybrid) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-hybrid" + ;; + dual) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-dual" + ;; + esac + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default-centos-7/post.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default-centos-7/run.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default-centos-7/run.yaml new file mode 100644 index 00000000..5137e6f8 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default-centos-7/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-src-dsvm-full-kafka-default-centos-7 + from old job gate-oslo.messaging-src-dsvm-full-kafka-default-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export PROJECTS="openstack/devstack-plugin-kafka $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin devstack-plugin-kafka git://git.openstack.org/openstack/devstack-plugin-kafka" + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging" + + if [ "kafka" == "amqp1" ]; then + # The AMQP 1.0 plugin supports a couple of different message bus configurations + # 'hybrid' - use RabbitMQ for Notifications, qdrouterd for RPC + # 'dual' - use qpidd for Notifications, qdrouterd for RPC + # default: use qpidd for Notifications and for RPC + case "default" in + hybrid) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-hybrid" + ;; + dual) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-dual" + ;; + esac + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default/post.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default/run.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default/run.yaml new file mode 100644 index 00000000..79a4f9ee --- /dev/null +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-src-dsvm-full-kafka-default from old + job gate-oslo.messaging-src-dsvm-full-kafka-default-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export PROJECTS="openstack/devstack-plugin-kafka $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin devstack-plugin-kafka git://git.openstack.org/openstack/devstack-plugin-kafka" + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging" + + if [ "kafka" == "amqp1" ]; then + # The AMQP 1.0 plugin supports a couple of different message bus configurations + # 'hybrid' - use RabbitMQ for Notifications, qdrouterd for RPC + # 'dual' - use qpidd for Notifications, qdrouterd for RPC + # default: use qpidd for Notifications and for RPC + case "default" in + hybrid) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-hybrid" + ;; + dual) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-dual" + ;; + esac + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-pika-default/post.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-pika-default/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-pika-default/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-pika-default/run.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-pika-default/run.yaml new file mode 100644 index 00000000..50b709bd --- /dev/null +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-pika-default/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-src-dsvm-full-pika-default from old + job gate-oslo.messaging-src-dsvm-full-pika-default-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export PROJECTS="openstack/devstack-plugin-pika $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin devstack-plugin-pika git://git.openstack.org/openstack/devstack-plugin-pika" + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging" + + if [ "pika" == "amqp1" ]; then + # The AMQP 1.0 plugin supports a couple of different message bus configurations + # 'hybrid' - use RabbitMQ for Notifications, qdrouterd for RPC + # 'dual' - use qpidd for Notifications, qdrouterd for RPC + # default: use qpidd for Notifications and for RPC + case "default" in + hybrid) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-hybrid" + ;; + dual) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-dual" + ;; + esac + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-zmq-default/post.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-zmq-default/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-zmq-default/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-src-dsvm-full-zmq-default/run.yaml b/playbooks/legacy/oslo.messaging-src-dsvm-full-zmq-default/run.yaml new file mode 100644 index 00000000..e843ddfb --- /dev/null +++ b/playbooks/legacy/oslo.messaging-src-dsvm-full-zmq-default/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-src-dsvm-full-zmq-default from old + job gate-oslo.messaging-src-dsvm-full-zmq-default-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export PROJECTS="openstack/devstack-plugin-zmq $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin devstack-plugin-zmq git://git.openstack.org/openstack/devstack-plugin-zmq" + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging" + + if [ "zmq" == "amqp1" ]; then + # The AMQP 1.0 plugin supports a couple of different message bus configurations + # 'hybrid' - use RabbitMQ for Notifications, qdrouterd for RPC + # 'dual' - use qpidd for Notifications, qdrouterd for RPC + # default: use qpidd for Notifications and for RPC + case "default" in + hybrid) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-hybrid" + ;; + dual) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-dual" + ;; + esac + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-src-grenade-dsvm-multinode/post.yaml b/playbooks/legacy/oslo.messaging-src-grenade-dsvm-multinode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-src-grenade-dsvm-multinode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-src-grenade-dsvm-multinode/run.yaml b/playbooks/legacy/oslo.messaging-src-grenade-dsvm-multinode/run.yaml new file mode 100644 index 00000000..55c54414 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-src-grenade-dsvm-multinode/run.yaml @@ -0,0 +1,45 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-src-grenade-dsvm-multinode from old + job gate-oslo.messaging-src-grenade-dsvm-multinode-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_GRENADE=pullup + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + + # Even if the branch is overridden, make sure we use + # the correct branch using the OVERRIDE_*_PROJECT_BRANCH + # variable. + uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'` + export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-src-grenade-dsvm/post.yaml b/playbooks/legacy/oslo.messaging-src-grenade-dsvm/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-src-grenade-dsvm/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-src-grenade-dsvm/run.yaml b/playbooks/legacy/oslo.messaging-src-grenade-dsvm/run.yaml new file mode 100644 index 00000000..c317e275 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-src-grenade-dsvm/run.yaml @@ -0,0 +1,43 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-src-grenade-dsvm from old job gate-oslo.messaging-src-grenade-dsvm-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_GRENADE=pullup + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + + # Even if the branch is overridden, make sure we use + # the correct branch using the OVERRIDE_*_PROJECT_BRANCH + # variable. + uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'` + export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-amqp1/post.yaml b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-amqp1/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-amqp1/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-amqp1/run.yaml b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-amqp1/run.yaml new file mode 100644 index 00000000..f3b9229a --- /dev/null +++ b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-amqp1/run.yaml @@ -0,0 +1,88 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-telemetry-dsvm-integration-amqp1 from + old job gate-oslo.messaging-telemetry-dsvm-integration-amqp1-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_NEUTRON=1 + if [ "$ZUUL_BRANCH" == "stable/newton" ] ; then + export DEVSTACK_GATE_TEMPEST=0 + else + export DEVSTACK_GATE_TEMPEST=1 + fi + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/devstack-plugin-amqp1 $PROJECTS" + + case "$ZUUL_BRANCH" in + "stable/newton") + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export OVERRIDE_GNOCCHI_PROJECT_BRANCH="stable/3.0" + export PROJECTS="openstack/panko $PROJECTS openstack/gnocchi" + ;; + "stable/ocata") + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export OVERRIDE_GNOCCHI_PROJECT_BRANCH="stable/3.1" + export PROJECTS="openstack/panko $PROJECTS openstack/gnocchi" + ;; + *) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export PROJECTS="openstack/panko $PROJECTS" + ;; + esac + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_BACKEND=gnocchi" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_ARCHIVE_POLICY=high" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_PIPELINE_INTERVAL=5" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_STORAGE_BACKEND=file" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin devstack-plugin-amqp1 git://git.openstack.org/openstack/devstack-plugin-amqp1" + + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging" + + if [ "amqp1" == "amqp1" ]; then + # Use the 'hybrid' message bus configuration: + # RabbitMQ for Notifications, qdrouterd for RPC + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-hybrid" + fi + + function post_test_hook { + cd /opt/stack/new/ceilometer/ceilometer/tests/integration/hooks/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-kafka/post.yaml b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-kafka/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-kafka/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-kafka/run.yaml b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-kafka/run.yaml new file mode 100644 index 00000000..9c5d0734 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-kafka/run.yaml @@ -0,0 +1,88 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-telemetry-dsvm-integration-kafka from + old job gate-oslo.messaging-telemetry-dsvm-integration-kafka-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_NEUTRON=1 + if [ "$ZUUL_BRANCH" == "stable/newton" ] ; then + export DEVSTACK_GATE_TEMPEST=0 + else + export DEVSTACK_GATE_TEMPEST=1 + fi + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/devstack-plugin-kafka $PROJECTS" + + case "$ZUUL_BRANCH" in + "stable/newton") + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export OVERRIDE_GNOCCHI_PROJECT_BRANCH="stable/3.0" + export PROJECTS="openstack/panko $PROJECTS openstack/gnocchi" + ;; + "stable/ocata") + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export OVERRIDE_GNOCCHI_PROJECT_BRANCH="stable/3.1" + export PROJECTS="openstack/panko $PROJECTS openstack/gnocchi" + ;; + *) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export PROJECTS="openstack/panko $PROJECTS" + ;; + esac + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_BACKEND=gnocchi" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_ARCHIVE_POLICY=high" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_PIPELINE_INTERVAL=5" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_STORAGE_BACKEND=file" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin devstack-plugin-kafka git://git.openstack.org/openstack/devstack-plugin-kafka" + + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging" + + if [ "kafka" == "amqp1" ]; then + # Use the 'hybrid' message bus configuration: + # RabbitMQ for Notifications, qdrouterd for RPC + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-hybrid" + fi + + function post_test_hook { + cd /opt/stack/new/ceilometer/ceilometer/tests/integration/hooks/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-pika/post.yaml b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-pika/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-pika/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-pika/run.yaml b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-pika/run.yaml new file mode 100644 index 00000000..75041cbc --- /dev/null +++ b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-pika/run.yaml @@ -0,0 +1,88 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-telemetry-dsvm-integration-pika from + old job gate-oslo.messaging-telemetry-dsvm-integration-pika-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_NEUTRON=1 + if [ "$ZUUL_BRANCH" == "stable/newton" ] ; then + export DEVSTACK_GATE_TEMPEST=0 + else + export DEVSTACK_GATE_TEMPEST=1 + fi + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/devstack-plugin-pika $PROJECTS" + + case "$ZUUL_BRANCH" in + "stable/newton") + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export OVERRIDE_GNOCCHI_PROJECT_BRANCH="stable/3.0" + export PROJECTS="openstack/panko $PROJECTS openstack/gnocchi" + ;; + "stable/ocata") + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export OVERRIDE_GNOCCHI_PROJECT_BRANCH="stable/3.1" + export PROJECTS="openstack/panko $PROJECTS openstack/gnocchi" + ;; + *) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export PROJECTS="openstack/panko $PROJECTS" + ;; + esac + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_BACKEND=gnocchi" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_ARCHIVE_POLICY=high" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_PIPELINE_INTERVAL=5" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_STORAGE_BACKEND=file" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin devstack-plugin-pika git://git.openstack.org/openstack/devstack-plugin-pika" + + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging" + + if [ "pika" == "amqp1" ]; then + # Use the 'hybrid' message bus configuration: + # RabbitMQ for Notifications, qdrouterd for RPC + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-hybrid" + fi + + function post_test_hook { + cd /opt/stack/new/ceilometer/ceilometer/tests/integration/hooks/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-zmq/post.yaml b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-zmq/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-zmq/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-zmq/run.yaml b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-zmq/run.yaml new file mode 100644 index 00000000..be3a8cdc --- /dev/null +++ b/playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-zmq/run.yaml @@ -0,0 +1,88 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-telemetry-dsvm-integration-zmq from + old job gate-oslo.messaging-telemetry-dsvm-integration-zmq-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_NEUTRON=1 + if [ "$ZUUL_BRANCH" == "stable/newton" ] ; then + export DEVSTACK_GATE_TEMPEST=0 + else + export DEVSTACK_GATE_TEMPEST=1 + fi + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/devstack-plugin-zmq $PROJECTS" + + case "$ZUUL_BRANCH" in + "stable/newton") + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export OVERRIDE_GNOCCHI_PROJECT_BRANCH="stable/3.0" + export PROJECTS="openstack/panko $PROJECTS openstack/gnocchi" + ;; + "stable/ocata") + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export OVERRIDE_GNOCCHI_PROJECT_BRANCH="stable/3.1" + export PROJECTS="openstack/panko $PROJECTS openstack/gnocchi" + ;; + *) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export PROJECTS="openstack/panko $PROJECTS" + ;; + esac + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_BACKEND=gnocchi" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_ARCHIVE_POLICY=high" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_PIPELINE_INTERVAL=5" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_STORAGE_BACKEND=file" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin devstack-plugin-zmq git://git.openstack.org/openstack/devstack-plugin-zmq" + + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging" + + if [ "zmq" == "amqp1" ]; then + # Use the 'hybrid' message bus configuration: + # RabbitMQ for Notifications, qdrouterd for RPC + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-hybrid" + fi + + function post_test_hook { + cd /opt/stack/new/ceilometer/ceilometer/tests/integration/hooks/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-amqp1/post.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-amqp1/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-amqp1/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-amqp1/run.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-amqp1/run.yaml new file mode 100644 index 00000000..7d35d661 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-amqp1/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-tox-py27-func-amqp1 from old job gate-oslo.messaging-tox-py27-func-amqp1-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-func-amqp1 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-kafka/post.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-kafka/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-kafka/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-kafka/run.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-kafka/run.yaml new file mode 100644 index 00000000..d455f6cb --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-kafka/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-tox-py27-func-kafka from old job gate-oslo.messaging-tox-py27-func-kafka-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-func-kafka + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-pika/post.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-pika/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-pika/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-pika/run.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-pika/run.yaml new file mode 100644 index 00000000..052b814b --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-pika/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-tox-py27-func-pika from old job gate-oslo.messaging-tox-py27-func-pika-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-func-pika + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-rabbit/post.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-rabbit/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-rabbit/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-rabbit/run.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-rabbit/run.yaml new file mode 100644 index 00000000..49456d7e --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-rabbit/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-tox-py27-func-rabbit from old job + gate-oslo.messaging-tox-py27-func-rabbit-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-func-rabbit + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-proxy/post.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-proxy/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-proxy/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-proxy/run.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-proxy/run.yaml new file mode 100644 index 00000000..6e24a057 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-proxy/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-tox-py27-func-zmq-proxy from old job + gate-oslo.messaging-tox-py27-func-zmq-proxy-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-func-zmq-proxy + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-pubsub/post.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-pubsub/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-pubsub/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-pubsub/run.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-pubsub/run.yaml new file mode 100644 index 00000000..1c87ff59 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq-pubsub/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-tox-py27-func-zmq-pubsub from old + job gate-oslo.messaging-tox-py27-func-zmq-pubsub-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-func-zmq-pubsub + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-zmq/post.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-tox-py27-func-zmq/run.yaml b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq/run.yaml new file mode 100644 index 00000000..f2ffc423 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py27-func-zmq/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-tox-py27-func-zmq from old job gate-oslo.messaging-tox-py27-func-zmq-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-func-zmq + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py35-func-amqp1/post.yaml b/playbooks/legacy/oslo.messaging-tox-py35-func-amqp1/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py35-func-amqp1/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-tox-py35-func-amqp1/run.yaml b/playbooks/legacy/oslo.messaging-tox-py35-func-amqp1/run.yaml new file mode 100644 index 00000000..34492f8e --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py35-func-amqp1/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-tox-py35-func-amqp1 from old job gate-oslo.messaging-tox-py35-func-amqp1-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-func-amqp1 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py35-func-rabbit/post.yaml b/playbooks/legacy/oslo.messaging-tox-py35-func-rabbit/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py35-func-rabbit/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-tox-py35-func-rabbit/run.yaml b/playbooks/legacy/oslo.messaging-tox-py35-func-rabbit/run.yaml new file mode 100644 index 00000000..a3c038cd --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py35-func-rabbit/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-tox-py35-func-rabbit from old job + gate-oslo.messaging-tox-py35-func-rabbit-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-func-rabbit + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.messaging-tox-py35-func-zmq/post.yaml b/playbooks/legacy/oslo.messaging-tox-py35-func-zmq/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py35-func-zmq/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.messaging-tox-py35-func-zmq/run.yaml b/playbooks/legacy/oslo.messaging-tox-py35-func-zmq/run.yaml new file mode 100644 index 00000000..f62e45ca --- /dev/null +++ b/playbooks/legacy/oslo.messaging-tox-py35-func-zmq/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-oslo.messaging-tox-py35-func-zmq from old job gate-oslo.messaging-tox-py35-func-zmq-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-func-zmq + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/oslo.versionedobjects-src-grenade-dsvm-multinode/post.yaml b/playbooks/legacy/oslo.versionedobjects-src-grenade-dsvm-multinode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/oslo.versionedobjects-src-grenade-dsvm-multinode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/oslo.versionedobjects-src-grenade-dsvm-multinode/run.yaml b/playbooks/legacy/oslo.versionedobjects-src-grenade-dsvm-multinode/run.yaml new file mode 100644 index 00000000..1f85703c --- /dev/null +++ b/playbooks/legacy/oslo.versionedobjects-src-grenade-dsvm-multinode/run.yaml @@ -0,0 +1,45 @@ +- hosts: all + name: Autoconverted job legacy-oslo.versionedobjects-src-grenade-dsvm-multinode + from old job gate-oslo.versionedobjects-src-grenade-dsvm-multinode-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_GRENADE=pullup + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + + # Even if the branch is overridden, make sure we use + # the correct branch using the OVERRIDE_*_PROJECT_BRANCH + # variable. + uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'` + export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ospurge-dsvm-functional/post.yaml b/playbooks/legacy/ospurge-dsvm-functional/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/ospurge-dsvm-functional/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ospurge-dsvm-functional/run.yaml b/playbooks/legacy/ospurge-dsvm-functional/run.yaml new file mode 100644 index 00000000..037b90be --- /dev/null +++ b/playbooks/legacy/ospurge-dsvm-functional/run.yaml @@ -0,0 +1,42 @@ +- hosts: all + name: Autoconverted job legacy-ospurge-dsvm-functional from old job gate-ospurge-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + export PROJECTS="openstack/ospurge $PROJECTS" + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + + function post_test_hook { + bash -xe $BASE/new/ospurge/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/ovsdbapp-tox-functional/post.yaml b/playbooks/legacy/ovsdbapp-tox-functional/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/ovsdbapp-tox-functional/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/ovsdbapp-tox-functional/run.yaml b/playbooks/legacy/ovsdbapp-tox-functional/run.yaml new file mode 100644 index 00000000..4ff81522 --- /dev/null +++ b/playbooks/legacy/ovsdbapp-tox-functional/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-ovsdbapp-tox-functional from old job gate-ovsdbapp-tox-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh functional + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/packstack-integration-scenario001-tempest-centos-7/post.yaml b/playbooks/legacy/packstack-integration-scenario001-tempest-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/packstack-integration-scenario001-tempest-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/packstack-integration-scenario001-tempest-centos-7/run.yaml b/playbooks/legacy/packstack-integration-scenario001-tempest-centos-7/run.yaml new file mode 100644 index 00000000..7c619dc0 --- /dev/null +++ b/playbooks/legacy/packstack-integration-scenario001-tempest-centos-7/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-packstack-integration-scenario001-tempest-centos-7 + from old job gate-packstack-integration-scenario001-tempest-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export SCENARIO=scenario001 + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/packstack-integration-scenario002-tempest-centos-7/post.yaml b/playbooks/legacy/packstack-integration-scenario002-tempest-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/packstack-integration-scenario002-tempest-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/packstack-integration-scenario002-tempest-centos-7/run.yaml b/playbooks/legacy/packstack-integration-scenario002-tempest-centos-7/run.yaml new file mode 100644 index 00000000..327b6308 --- /dev/null +++ b/playbooks/legacy/packstack-integration-scenario002-tempest-centos-7/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-packstack-integration-scenario002-tempest-centos-7 + from old job gate-packstack-integration-scenario002-tempest-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export SCENARIO=scenario002 + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/packstack-integration-scenario003-tempest-centos-7/post.yaml b/playbooks/legacy/packstack-integration-scenario003-tempest-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/packstack-integration-scenario003-tempest-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/packstack-integration-scenario003-tempest-centos-7/run.yaml b/playbooks/legacy/packstack-integration-scenario003-tempest-centos-7/run.yaml new file mode 100644 index 00000000..13561441 --- /dev/null +++ b/playbooks/legacy/packstack-integration-scenario003-tempest-centos-7/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-packstack-integration-scenario003-tempest-centos-7 + from old job gate-packstack-integration-scenario003-tempest-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export SCENARIO=scenario003 + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/packstack-releasenotes/post.yaml b/playbooks/legacy/packstack-releasenotes/post.yaml new file mode 100644 index 00000000..c86f36f5 --- /dev/null +++ b/playbooks/legacy/packstack-releasenotes/post.yaml @@ -0,0 +1,10 @@ +- hosts: all + tasks: + + - name: Copy files from releasenotes/build/html/ on node + synchronize: + src: releasenotes/build/html/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true diff --git a/playbooks/legacy/packstack-releasenotes/run.yaml b/playbooks/legacy/packstack-releasenotes/run.yaml new file mode 100644 index 00000000..7f3b9f10 --- /dev/null +++ b/playbooks/legacy/packstack-releasenotes/run.yaml @@ -0,0 +1,192 @@ +- hosts: all + name: Autoconverted job legacy-packstack-releasenotes from old job gate-packstack-releasenotes + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + # + # Licensed under the Apache License, Version 2.0 (the "License"); you may + # not use this file except in compliance with the License. You may obtain + # a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + # License for the specific language governing permissions and limitations + # under the License. + + DOCNAME=releasenotes + DIRECTORY=releasenotes + + script_path=/usr/local/jenkins/slave_scripts + + # Mapping of language codes to language names + declare -A LANG_NAME=( + ["de"]="German" + ["en_AU"]="English (Australian)" + ["en_GB"]="English (United Kingdom)" + ["es"]="Spanish" + ["fr"]="French" + ["id"]="Indonesian" + ["it"]="Italian" + ["ja"]="Japanese" + ["ko_KR"]="Korean (South Korea)" + ["pt_BR"]="Portuguese (Brazil)" + ["ru"]="Russian" + ["tr_TR"]="Turkish (Turkey)" + ["zh_CN"]="Chinese (China)" + ) + + # This file always exists in OpenStack CI jobs, check for it so that + # it can be used manually as well. + if [ -e "$(pwd)/upper-constraints.txt" ]; then + export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt + fi + + if [ ! -e ${DIRECTORY}/source/locale/ ]; then + echo "No translations found, only building normal release notes" + $script_path/run-tox.sh releasenotes + exit 0 + fi + + # Check that locale_dirs is really set, otherwise translations + # will not work. + if ! grep -q -E '^locale_dirs *=' $DIRECTORY/source/conf.py; then + echo "Translations exist and locale_dirs missing in source/conf.py" + exit 1 + fi + + + REFERENCES=`mktemp` + trap "rm -f -- '$REFERENCES'" EXIT + + # Extract translations + tox -e venv -- sphinx-build -b gettext \ + -d ${DIRECTORY}/build/doctrees.gettext \ + ${DIRECTORY}/source/ \ + ${DIRECTORY}/source/locale/ + + # Add links for translations to index file + cat <> ${REFERENCES} + + Translated Release Notes + ======================== + + EOF + + # Check all language translation resources + for locale in `find ${DIRECTORY}/source/locale/ -maxdepth 1 -type d` ; do + # Skip if it is not a valid language translation resource. + if [ ! -e ${locale}/LC_MESSAGES/${DOCNAME}.po ]; then + continue + fi + language=$(basename $locale) + + echo "Building $language translation" + + # Prepare all translation resources + for pot in ${DIRECTORY}/source/locale/*.pot ; do + # Get filename + resname=$(basename ${pot} .pot) + + # Merge all translation resources. Note this is done the same + # way as done in common_translation_update.sh where we merge + # all strings together in a single file. + msgmerge --silent -o \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.po \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po \ + ${pot} + # Compile all translation resources + msgfmt -o \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.mo \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.po + done + + # Build translated document + tox -e venv -- sphinx-build -b html -D language=${language} \ + -d "${DIRECTORY}/build/doctrees.${language}" \ + ${DIRECTORY}/source/ ${DIRECTORY}/build/html/${language} + + # Reference translated document from index file + if [ ${LANG_NAME["${language}"]+_} ] ; then + name=${LANG_NAME["${language}"]} + name+=" (${language})" + echo "* \`$name <${language}/index.html>\`__" >> ${REFERENCES} + else + echo "* \`${language} <${language}/index.html>\`__" >> ${REFERENCES} + fi + + # Remove newly created files + git clean -f -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/*.po + git clean -f -x -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/*.mo + # revert changes to po file + git reset -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po + git checkout -- ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po + done + + # Now append our references to the index file. We cannot do this + # earlier since the sphinx commands will read this file. + cat ${REFERENCES} >> ${DIRECTORY}/source/index.rst + + # Remove newly created pot files + rm -f ${DIRECTORY}/source/locale/*.pot + + # Now build releasenotes with reference to translations + $script_path/run-tox.sh releasenotes + + # Revert any changes to the index file. + git checkout -- ${DIRECTORY}/source/index.rst + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/panko-tox-py27-mongodb/post.yaml b/playbooks/legacy/panko-tox-py27-mongodb/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/panko-tox-py27-mongodb/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/panko-tox-py27-mongodb/run.yaml b/playbooks/legacy/panko-tox-py27-mongodb/run.yaml new file mode 100644 index 00000000..e9d62f19 --- /dev/null +++ b/playbooks/legacy/panko-tox-py27-mongodb/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-panko-tox-py27-mongodb from old job gate-panko-tox-py27-mongodb-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-mongodb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/panko-tox-py27-mysql/post.yaml b/playbooks/legacy/panko-tox-py27-mysql/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/panko-tox-py27-mysql/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/panko-tox-py27-mysql/run.yaml b/playbooks/legacy/panko-tox-py27-mysql/run.yaml new file mode 100644 index 00000000..c3b7f64a --- /dev/null +++ b/playbooks/legacy/panko-tox-py27-mysql/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-panko-tox-py27-mysql from old job gate-panko-tox-py27-mysql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-mysql + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/panko-tox-py27-postgresql/post.yaml b/playbooks/legacy/panko-tox-py27-postgresql/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/panko-tox-py27-postgresql/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/panko-tox-py27-postgresql/run.yaml b/playbooks/legacy/panko-tox-py27-postgresql/run.yaml new file mode 100644 index 00000000..65612701 --- /dev/null +++ b/playbooks/legacy/panko-tox-py27-postgresql/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-panko-tox-py27-postgresql from old job gate-panko-tox-py27-postgresql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-postgresql + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/panko-tox-py35-mongodb/post.yaml b/playbooks/legacy/panko-tox-py35-mongodb/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/panko-tox-py35-mongodb/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/panko-tox-py35-mongodb/run.yaml b/playbooks/legacy/panko-tox-py35-mongodb/run.yaml new file mode 100644 index 00000000..6ea5c6e0 --- /dev/null +++ b/playbooks/legacy/panko-tox-py35-mongodb/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-panko-tox-py35-mongodb from old job gate-panko-tox-py35-mongodb-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-mongodb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/panko-tox-py35-mysql/post.yaml b/playbooks/legacy/panko-tox-py35-mysql/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/panko-tox-py35-mysql/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/panko-tox-py35-mysql/run.yaml b/playbooks/legacy/panko-tox-py35-mysql/run.yaml new file mode 100644 index 00000000..89ec8e13 --- /dev/null +++ b/playbooks/legacy/panko-tox-py35-mysql/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-panko-tox-py35-mysql from old job gate-panko-tox-py35-mysql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-mysql + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/panko-tox-py35-postgresql/post.yaml b/playbooks/legacy/panko-tox-py35-postgresql/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/panko-tox-py35-postgresql/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/panko-tox-py35-postgresql/run.yaml b/playbooks/legacy/panko-tox-py35-postgresql/run.yaml new file mode 100644 index 00000000..7b162e80 --- /dev/null +++ b/playbooks/legacy/panko-tox-py35-postgresql/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-panko-tox-py35-postgresql from old job gate-panko-tox-py35-postgresql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-postgresql + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/pbr-installation-dsvm-upstream/post.yaml b/playbooks/legacy/pbr-installation-dsvm-upstream/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/pbr-installation-dsvm-upstream/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/pbr-installation-dsvm-upstream/run.yaml b/playbooks/legacy/pbr-installation-dsvm-upstream/run.yaml new file mode 100644 index 00000000..86756c96 --- /dev/null +++ b/playbooks/legacy/pbr-installation-dsvm-upstream/run.yaml @@ -0,0 +1,133 @@ +- hosts: all + name: Autoconverted job legacy-pbr-installation-dsvm-upstream from old job gate-pbr-installation-dsvm-upstream-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # Define the entire projects list here so that what we + # test requirements against is independent of what d-g + # thinks is relevant. + export PROJECTS="openstack-infra/devstack-gate $PROJECTS" + export PROJECTS="openstack-dev/devstack $PROJECTS" + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PROJECTS="openstack-dev/pbr $PROJECTS" + export PROJECTS="openstack-infra/tripleo-ci $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/automaton $PROJECTS" + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/ceilometermiddleware $PROJECTS" + export PROJECTS="openstack/cinder $PROJECTS" + export PROJECTS="openstack/cliff $PROJECTS" + export PROJECTS="openstack/debtcollector $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/django_openstack_auth $PROJECTS" + export PROJECTS="openstack/futurist $PROJECTS" + export PROJECTS="openstack/glance $PROJECTS" + export PROJECTS="openstack/glance_store $PROJECTS" + export PROJECTS="openstack/heat $PROJECTS" + export PROJECTS="openstack/heat-cfntools $PROJECTS" + export PROJECTS="openstack/heat-templates $PROJECTS" + export PROJECTS="openstack/horizon $PROJECTS" + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/keystone $PROJECTS" + export PROJECTS="openstack/keystoneauth $PROJECTS" + export PROJECTS="openstack/keystonemiddleware $PROJECTS" + export PROJECTS="openstack/manila $PROJECTS" + export PROJECTS="openstack/manila-ui $PROJECTS" + export PROJECTS="openstack/zaqar $PROJECTS" + export PROJECTS="openstack/neutron $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/nova $PROJECTS" + export PROJECTS="openstack/os-apply-config $PROJECTS" + export PROJECTS="openstack/os-brick $PROJECTS" + export PROJECTS="openstack/os-client-config $PROJECTS" + export PROJECTS="openstack/os-collect-config $PROJECTS" + export PROJECTS="openstack/os-net-config $PROJECTS" + export PROJECTS="openstack/os-refresh-config $PROJECTS" + export PROJECTS="openstack/osc-lib $PROJECTS" + export PROJECTS="openstack/oslo.cache $PROJECTS" + export PROJECTS="openstack/oslo.concurrency $PROJECTS" + export PROJECTS="openstack/oslo.config $PROJECTS" + export PROJECTS="openstack/oslo.context $PROJECTS" + export PROJECTS="openstack/oslo.db $PROJECTS" + export PROJECTS="openstack/oslo.i18n $PROJECTS" + export PROJECTS="openstack/oslo.log $PROJECTS" + export PROJECTS="openstack/oslo.messaging $PROJECTS" + export PROJECTS="openstack/oslo.middleware $PROJECTS" + export PROJECTS="openstack/oslo.policy $PROJECTS" + export PROJECTS="openstack/oslo.reports $PROJECTS" + export PROJECTS="openstack/oslo.rootwrap $PROJECTS" + export PROJECTS="openstack/oslo.utils $PROJECTS" + export PROJECTS="openstack/oslo.serialization $PROJECTS" + export PROJECTS="openstack/oslo.service $PROJECTS" + export PROJECTS="openstack/oslo.versionedobjects $PROJECTS" + export PROJECTS="openstack/oslo.vmware $PROJECTS" + export PROJECTS="openstack/pycadf $PROJECTS" + export PROJECTS="openstack/python-ceilometerclient $PROJECTS" + export PROJECTS="openstack/python-cinderclient $PROJECTS" + export PROJECTS="openstack/python-glanceclient $PROJECTS" + export PROJECTS="openstack/python-heatclient $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/python-keystoneclient $PROJECTS" + export PROJECTS="openstack/python-manilaclient $PROJECTS" + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/python-neutronclient $PROJECTS" + export PROJECTS="openstack/python-novaclient $PROJECTS" + export PROJECTS="openstack/python-openstackclient $PROJECTS" + export PROJECTS="openstack/python-saharaclient $PROJECTS" + export PROJECTS="openstack/python-swiftclient $PROJECTS" + export PROJECTS="openstack/python-troveclient $PROJECTS" + export PROJECTS="openstack/requirements $PROJECTS" + export PROJECTS="openstack/sahara $PROJECTS" + export PROJECTS="openstack/sahara-dashboard $PROJECTS" + export PROJECTS="openstack/stevedore $PROJECTS" + export PROJECTS="openstack/swift $PROJECTS" + export PROJECTS="openstack/taskflow $PROJECTS" + export PROJECTS="openstack/tempest $PROJECTS" + export PROJECTS="openstack/tempest-lib $PROJECTS" + export PROJECTS="openstack/tooz $PROJECTS" + export PROJECTS="openstack/tripleo-heat-templates $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/tripleo-incubator $PROJECTS" + export PROJECTS="openstack/trove $PROJECTS" + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_REQS_INTEGRATION=1 + export PIP_PROCESS_DEPENDENCY_LINKS=1 + if [ "-upstream" = "-upstream" ]; then + export PBR_PIP_VERSION=git+https://github.com/pypa/pip.git#egg=pip + fi + function gate_hook { + set -x + bash -xe $BASE/new/pbr/tools/integration.sh $(cat $BASE/new/requirements/projects.txt) + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/pbr-installation-dsvm/post.yaml b/playbooks/legacy/pbr-installation-dsvm/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/pbr-installation-dsvm/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/pbr-installation-dsvm/run.yaml b/playbooks/legacy/pbr-installation-dsvm/run.yaml new file mode 100644 index 00000000..d00cb8e5 --- /dev/null +++ b/playbooks/legacy/pbr-installation-dsvm/run.yaml @@ -0,0 +1,133 @@ +- hosts: all + name: Autoconverted job legacy-pbr-installation-dsvm from old job gate-pbr-installation-dsvm-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # Define the entire projects list here so that what we + # test requirements against is independent of what d-g + # thinks is relevant. + export PROJECTS="openstack-infra/devstack-gate $PROJECTS" + export PROJECTS="openstack-dev/devstack $PROJECTS" + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PROJECTS="openstack-dev/pbr $PROJECTS" + export PROJECTS="openstack-infra/tripleo-ci $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/automaton $PROJECTS" + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/ceilometermiddleware $PROJECTS" + export PROJECTS="openstack/cinder $PROJECTS" + export PROJECTS="openstack/cliff $PROJECTS" + export PROJECTS="openstack/debtcollector $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/django_openstack_auth $PROJECTS" + export PROJECTS="openstack/futurist $PROJECTS" + export PROJECTS="openstack/glance $PROJECTS" + export PROJECTS="openstack/glance_store $PROJECTS" + export PROJECTS="openstack/heat $PROJECTS" + export PROJECTS="openstack/heat-cfntools $PROJECTS" + export PROJECTS="openstack/heat-templates $PROJECTS" + export PROJECTS="openstack/horizon $PROJECTS" + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/keystone $PROJECTS" + export PROJECTS="openstack/keystoneauth $PROJECTS" + export PROJECTS="openstack/keystonemiddleware $PROJECTS" + export PROJECTS="openstack/manila $PROJECTS" + export PROJECTS="openstack/manila-ui $PROJECTS" + export PROJECTS="openstack/zaqar $PROJECTS" + export PROJECTS="openstack/neutron $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/nova $PROJECTS" + export PROJECTS="openstack/os-apply-config $PROJECTS" + export PROJECTS="openstack/os-brick $PROJECTS" + export PROJECTS="openstack/os-client-config $PROJECTS" + export PROJECTS="openstack/os-collect-config $PROJECTS" + export PROJECTS="openstack/os-net-config $PROJECTS" + export PROJECTS="openstack/os-refresh-config $PROJECTS" + export PROJECTS="openstack/osc-lib $PROJECTS" + export PROJECTS="openstack/oslo.cache $PROJECTS" + export PROJECTS="openstack/oslo.concurrency $PROJECTS" + export PROJECTS="openstack/oslo.config $PROJECTS" + export PROJECTS="openstack/oslo.context $PROJECTS" + export PROJECTS="openstack/oslo.db $PROJECTS" + export PROJECTS="openstack/oslo.i18n $PROJECTS" + export PROJECTS="openstack/oslo.log $PROJECTS" + export PROJECTS="openstack/oslo.messaging $PROJECTS" + export PROJECTS="openstack/oslo.middleware $PROJECTS" + export PROJECTS="openstack/oslo.policy $PROJECTS" + export PROJECTS="openstack/oslo.reports $PROJECTS" + export PROJECTS="openstack/oslo.rootwrap $PROJECTS" + export PROJECTS="openstack/oslo.utils $PROJECTS" + export PROJECTS="openstack/oslo.serialization $PROJECTS" + export PROJECTS="openstack/oslo.service $PROJECTS" + export PROJECTS="openstack/oslo.versionedobjects $PROJECTS" + export PROJECTS="openstack/oslo.vmware $PROJECTS" + export PROJECTS="openstack/pycadf $PROJECTS" + export PROJECTS="openstack/python-ceilometerclient $PROJECTS" + export PROJECTS="openstack/python-cinderclient $PROJECTS" + export PROJECTS="openstack/python-glanceclient $PROJECTS" + export PROJECTS="openstack/python-heatclient $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/python-keystoneclient $PROJECTS" + export PROJECTS="openstack/python-manilaclient $PROJECTS" + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/python-neutronclient $PROJECTS" + export PROJECTS="openstack/python-novaclient $PROJECTS" + export PROJECTS="openstack/python-openstackclient $PROJECTS" + export PROJECTS="openstack/python-saharaclient $PROJECTS" + export PROJECTS="openstack/python-swiftclient $PROJECTS" + export PROJECTS="openstack/python-troveclient $PROJECTS" + export PROJECTS="openstack/requirements $PROJECTS" + export PROJECTS="openstack/sahara $PROJECTS" + export PROJECTS="openstack/sahara-dashboard $PROJECTS" + export PROJECTS="openstack/stevedore $PROJECTS" + export PROJECTS="openstack/swift $PROJECTS" + export PROJECTS="openstack/taskflow $PROJECTS" + export PROJECTS="openstack/tempest $PROJECTS" + export PROJECTS="openstack/tempest-lib $PROJECTS" + export PROJECTS="openstack/tooz $PROJECTS" + export PROJECTS="openstack/tripleo-heat-templates $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/tripleo-incubator $PROJECTS" + export PROJECTS="openstack/trove $PROJECTS" + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_REQS_INTEGRATION=1 + export PIP_PROCESS_DEPENDENCY_LINKS=1 + if [ "" = "-upstream" ]; then + export PBR_PIP_VERSION=git+https://github.com/pypa/pip.git#egg=pip + fi + function gate_hook { + set -x + bash -xe $BASE/new/pbr/tools/integration.sh $(cat $BASE/new/requirements/projects.txt) + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-docs-newton/run.yaml b/playbooks/legacy/periodic-docs-newton/run.yaml new file mode 100644 index 00000000..c4288ac2 --- /dev/null +++ b/playbooks/legacy/periodic-docs-newton/run.yaml @@ -0,0 +1,56 @@ +- hosts: all + name: Autoconverted job legacy-periodic-docs-newton from old job periodic-{name}-docs-newton + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/newton + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-docs-ocata/run.yaml b/playbooks/legacy/periodic-docs-ocata/run.yaml new file mode 100644 index 00000000..b029f5a3 --- /dev/null +++ b/playbooks/legacy/periodic-docs-ocata/run.yaml @@ -0,0 +1,56 @@ +- hosts: all + name: Autoconverted job legacy-periodic-docs-ocata from old job periodic-{name}-docs-ocata + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/ocata + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-docs-pike/run.yaml b/playbooks/legacy/periodic-docs-pike/run.yaml new file mode 100644 index 00000000..52c6624b --- /dev/null +++ b/playbooks/legacy/periodic-docs-pike/run.yaml @@ -0,0 +1,56 @@ +- hosts: all + name: Autoconverted job legacy-periodic-docs-pike from old job periodic-{name}-docs-pike + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/pike + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-gitdm/run.yaml b/playbooks/legacy/periodic-gitdm/run.yaml new file mode 100644 index 00000000..41526dd8 --- /dev/null +++ b/playbooks/legacy/periodic-gitdm/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-periodic-gitdm from old job periodic-gitdm + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TEMPDIR=${TEMPDIR:-$(mktemp -d $(pwd)/dmtmp-XXXXXX)} + export GITBASE=${TEMPDIR}/git + export LP_STATS=n + bash ./do-it.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-ceph/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-ceph/post.yaml new file mode 100644 index 00000000..785a628f --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-ceph/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/UPLOAD_CONTAINERS/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-ceph/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-ceph/run.yaml new file mode 100644 index 00000000..71b8fec5 --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-ceph/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-periodic-kolla-kubernetes-deploy-centos-binary-2-ceph + from old job periodic-kolla-kubernetes-deploy-centos-binary-2-ceph + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary ceph centos-7 shell 2 periodic + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi/post.yaml new file mode 100644 index 00000000..785a628f --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/UPLOAD_CONTAINERS/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi/run.yaml new file mode 100644 index 00000000..af91816f --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi + from old job periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary iscsi centos-7 shell 2 periodic + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-ceph/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-ceph/post.yaml new file mode 100644 index 00000000..785a628f --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-ceph/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/UPLOAD_CONTAINERS/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-ceph/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-ceph/run.yaml new file mode 100644 index 00000000..bbf5ec5a --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-ceph/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-periodic-kolla-kubernetes-deploy-centos-binary-3-ceph + from old job periodic-kolla-kubernetes-deploy-centos-binary-3-ceph + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary ceph centos-7 shell 3 periodic + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi/post.yaml new file mode 100644 index 00000000..785a628f --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/UPLOAD_CONTAINERS/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi/run.yaml new file mode 100644 index 00000000..6450633c --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi + from old job periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary iscsi centos-7 shell 3 periodic + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-ceph/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-ceph/post.yaml new file mode 100644 index 00000000..785a628f --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-ceph/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/UPLOAD_CONTAINERS/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-ceph/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-ceph/run.yaml new file mode 100644 index 00000000..7be6c124 --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-ceph/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-periodic-kolla-kubernetes-deploy-centos-binary-4-ceph + from old job periodic-kolla-kubernetes-deploy-centos-binary-4-ceph + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary ceph centos-7 shell 4 periodic + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi/post.yaml new file mode 100644 index 00000000..785a628f --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/UPLOAD_CONTAINERS/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi/run.yaml new file mode 100644 index 00000000..c2aa88ab --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi + from old job periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy centos binary iscsi centos-7 shell 4 periodic + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph/post.yaml new file mode 100644 index 00000000..785a628f --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/UPLOAD_CONTAINERS/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph/run.yaml new file mode 100644 index 00000000..856d7e75 --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph + from old job periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy ubuntu binary ceph ubuntu-xenial shell 2 periodic + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/post.yaml new file mode 100644 index 00000000..785a628f --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/UPLOAD_CONTAINERS/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/run.yaml new file mode 100644 index 00000000..b558b292 --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi + from old job periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy ubuntu binary iscsi ubuntu-xenial shell 2 periodic + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph/post.yaml new file mode 100644 index 00000000..785a628f --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/UPLOAD_CONTAINERS/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph/run.yaml new file mode 100644 index 00000000..ffdc8cce --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph + from old job periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy ubuntu binary ceph ubuntu-xenial shell 3 periodic + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi/post.yaml new file mode 100644 index 00000000..785a628f --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/UPLOAD_CONTAINERS/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi/run.yaml new file mode 100644 index 00000000..7b1ad46e --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi + from old job periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy ubuntu binary iscsi ubuntu-xenial shell 3 periodic + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph/post.yaml new file mode 100644 index 00000000..785a628f --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/UPLOAD_CONTAINERS/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph/run.yaml new file mode 100644 index 00000000..8e1ebeb8 --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph + from old job periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy ubuntu binary ceph ubuntu-xenial shell 4 periodic + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi/post.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi/post.yaml new file mode 100644 index 00000000..785a628f --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/gate/containers/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/UPLOAD_CONTAINERS/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi/run.yaml b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi/run.yaml new file mode 100644 index 00000000..d0619e90 --- /dev/null +++ b/playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi + from old job periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo yum-config-manager --enable epel || true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tools/setup_gate.sh deploy ubuntu binary iscsi ubuntu-xenial shell 4 periodic + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-magnum-dib-buildimage-centos-dcos/post.yaml b/playbooks/legacy/periodic-magnum-dib-buildimage-centos-dcos/post.yaml new file mode 100644 index 00000000..e6e08c1a --- /dev/null +++ b/playbooks/legacy/periodic-magnum-dib-buildimage-centos-dcos/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/*.qcow2 + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-magnum-dib-buildimage-centos-dcos/run.yaml b/playbooks/legacy/periodic-magnum-dib-buildimage-centos-dcos/run.yaml new file mode 100644 index 00000000..5fa8bbaa --- /dev/null +++ b/playbooks/legacy/periodic-magnum-dib-buildimage-centos-dcos/run.yaml @@ -0,0 +1,107 @@ +- hosts: all + name: Autoconverted job legacy-periodic-magnum-dib-buildimage-centos-dcos from old + job periodic-magnum-dib-buildimage-centos-dcos-ubuntu-xenial + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd ~ + + if [[ "centos-dcos" =~ ^(ubuntu-mesos|centos-dcos)$ ]]; then + EXTRA_PROJECTS="openstack/tripleo-image-elements openstack/heat-templates" + else + EXTRA_PROJECTS="" + fi + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/diskimage-builder \ + openstack/dib-utils \ + openstack/magnum $EXTRA_PROJECTS + + virtualenv env + + ./env/bin/pip install $(pwd)/openstack/dib-utils + ./env/bin/pip install $(pwd)/openstack/diskimage-builder + + # TODO(pabelanger): Remove once we migrated to bindep + ./openstack/diskimage-builder/tests/install_test_deps.sh + + # activate the virtualenv so that any tools run by dib run + # using the python inside it + set +u + source ./env/bin/activate + set -u + + DIB_ELEMENTS=./openstack/diskimage-builder/diskimage_builder/elements + + if [ "centos-dcos" == "ubuntu-mesos" ]; then + TRIPLEO_ELEMENTS=./openstack/tripleo-image-elements/elements + HEAT_ELEMENTS=./openstack/heat-templates/hot/software-config/elements + MESOS_ELEMENTS=./openstack/magnum/magnum/drivers/mesos_ubuntu_v1/image + export ELEMENTS_PATH=$TRIPLEO_ELEMENTS:$HEAT_ELEMENTS:$MESOS_ELEMENTS + + $MESOS_ELEMENTS/install_imagebuild_deps.sh + + export DIB_RELEASE=trusty + + export DIB_IMAGE_SIZE=2.2 + + disk-image-create ubuntu vm docker mesos \ + os-collect-config os-refresh-config os-apply-config \ + heat-config heat-config-script -o $WORKSPACE/centos-dcos.qcow2 + + $MESOS_ELEMENTS/validate_image.sh $WORKSPACE/centos-dcos.qcow2 + elif [ "centos-dcos" == "centos-dcos" ]; then + DCOS_ELEMENTS=./openstack/magnum/contrib/drivers/dcos_centos_v1/image + TRIPLEO_ELEMENTS=./openstack/tripleo-image-elements/elements + HEAT_ELEMENTS=./openstack/heat-templates/hot/software-config/elements + # Order matters, we need the docker elements from DCOS_ELEMENTS to be used first + export ELEMENTS_PATH=$DCOS_ELEMENTS:$DIB_ELEMENTS:$TRIPLEO_ELEMENTS:$HEAT_ELEMENTS + + $DCOS_ELEMENTS/install_imagebuild_deps.sh + + export DIB_IMAGE_SIZE=3.0 + + export FS_TYPE=xfs + + curl -O https://downloads.dcos.io/dcos/stable/commit/e64024af95b62c632c90b9063ed06296fcf38ea5/dcos_generate_config.sh + export DCOS_GENERATE_CONFIG_SRC=`pwd`/dcos_generate_config.sh + + disk-image-create \ + centos7 vm docker dcos selinux-permissive \ + os-collect-config os-refresh-config os-apply-config \ + heat-config heat-config-script \ + -o $WORKSPACE/centos-dcos.qcow2 + + #TODO: Add size validation + else + MAGNUM_ELEMENTS=./openstack/magnum/magnum/drivers/common/image + export ELEMENTS_PATH=$DIB_ELEMENTS:$MAGNUM_ELEMENTS + $MAGNUM_ELEMENTS/fedora-atomic/install_imagebuild_deps.sh + + export DIB_RELEASE="25" + + export DIB_IMAGE_SIZE=2.5 + + export FEDORA_ATOMIC_TREE_URL="https://kojipkgs.fedoraproject.org/atomic/25/" + export FEDORA_ATOMIC_TREE_REF="8b15e9b988b4b02f4cb8b39bdd63d182ab7004a8926ecdac6314ee5c7ffa646b" + + disk-image-create -x -o $WORKSPACE/centos-dcos-dib fedora-atomic + + # validate image + $MAGNUM_ELEMENTS/fedora-atomic/validate_atomic_image.sh $WORKSPACE/centos-dcos-dib.qcow2 + fi + + set +u + deactivate + set -u + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-magnum-dib-buildimage-fedora-atomic-25/post.yaml b/playbooks/legacy/periodic-magnum-dib-buildimage-fedora-atomic-25/post.yaml new file mode 100644 index 00000000..e6e08c1a --- /dev/null +++ b/playbooks/legacy/periodic-magnum-dib-buildimage-fedora-atomic-25/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/*.qcow2 + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-magnum-dib-buildimage-fedora-atomic-25/run.yaml b/playbooks/legacy/periodic-magnum-dib-buildimage-fedora-atomic-25/run.yaml new file mode 100644 index 00000000..4767f622 --- /dev/null +++ b/playbooks/legacy/periodic-magnum-dib-buildimage-fedora-atomic-25/run.yaml @@ -0,0 +1,107 @@ +- hosts: all + name: Autoconverted job legacy-periodic-magnum-dib-buildimage-fedora-atomic-25 from + old job periodic-magnum-dib-buildimage-fedora-atomic-25-ubuntu-xenial + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd ~ + + if [[ "fedora-atomic-25" =~ ^(ubuntu-mesos|centos-dcos)$ ]]; then + EXTRA_PROJECTS="openstack/tripleo-image-elements openstack/heat-templates" + else + EXTRA_PROJECTS="" + fi + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/diskimage-builder \ + openstack/dib-utils \ + openstack/magnum $EXTRA_PROJECTS + + virtualenv env + + ./env/bin/pip install $(pwd)/openstack/dib-utils + ./env/bin/pip install $(pwd)/openstack/diskimage-builder + + # TODO(pabelanger): Remove once we migrated to bindep + ./openstack/diskimage-builder/tests/install_test_deps.sh + + # activate the virtualenv so that any tools run by dib run + # using the python inside it + set +u + source ./env/bin/activate + set -u + + DIB_ELEMENTS=./openstack/diskimage-builder/diskimage_builder/elements + + if [ "fedora-atomic-25" == "ubuntu-mesos" ]; then + TRIPLEO_ELEMENTS=./openstack/tripleo-image-elements/elements + HEAT_ELEMENTS=./openstack/heat-templates/hot/software-config/elements + MESOS_ELEMENTS=./openstack/magnum/magnum/drivers/mesos_ubuntu_v1/image + export ELEMENTS_PATH=$TRIPLEO_ELEMENTS:$HEAT_ELEMENTS:$MESOS_ELEMENTS + + $MESOS_ELEMENTS/install_imagebuild_deps.sh + + export DIB_RELEASE=trusty + + export DIB_IMAGE_SIZE=2.2 + + disk-image-create ubuntu vm docker mesos \ + os-collect-config os-refresh-config os-apply-config \ + heat-config heat-config-script -o $WORKSPACE/fedora-atomic-25.qcow2 + + $MESOS_ELEMENTS/validate_image.sh $WORKSPACE/fedora-atomic-25.qcow2 + elif [ "fedora-atomic-25" == "centos-dcos" ]; then + DCOS_ELEMENTS=./openstack/magnum/contrib/drivers/dcos_centos_v1/image + TRIPLEO_ELEMENTS=./openstack/tripleo-image-elements/elements + HEAT_ELEMENTS=./openstack/heat-templates/hot/software-config/elements + # Order matters, we need the docker elements from DCOS_ELEMENTS to be used first + export ELEMENTS_PATH=$DCOS_ELEMENTS:$DIB_ELEMENTS:$TRIPLEO_ELEMENTS:$HEAT_ELEMENTS + + $DCOS_ELEMENTS/install_imagebuild_deps.sh + + export DIB_IMAGE_SIZE=3.0 + + export FS_TYPE=xfs + + curl -O https://downloads.dcos.io/dcos/stable/commit/e64024af95b62c632c90b9063ed06296fcf38ea5/dcos_generate_config.sh + export DCOS_GENERATE_CONFIG_SRC=`pwd`/dcos_generate_config.sh + + disk-image-create \ + centos7 vm docker dcos selinux-permissive \ + os-collect-config os-refresh-config os-apply-config \ + heat-config heat-config-script \ + -o $WORKSPACE/fedora-atomic-25.qcow2 + + #TODO: Add size validation + else + MAGNUM_ELEMENTS=./openstack/magnum/magnum/drivers/common/image + export ELEMENTS_PATH=$DIB_ELEMENTS:$MAGNUM_ELEMENTS + $MAGNUM_ELEMENTS/fedora-atomic/install_imagebuild_deps.sh + + export DIB_RELEASE="25" + + export DIB_IMAGE_SIZE=2.5 + + export FEDORA_ATOMIC_TREE_URL="https://kojipkgs.fedoraproject.org/atomic/25/" + export FEDORA_ATOMIC_TREE_REF="8b15e9b988b4b02f4cb8b39bdd63d182ab7004a8926ecdac6314ee5c7ffa646b" + + disk-image-create -x -o $WORKSPACE/fedora-atomic-25-dib fedora-atomic + + # validate image + $MAGNUM_ELEMENTS/fedora-atomic/validate_atomic_image.sh $WORKSPACE/fedora-atomic-25-dib.qcow2 + fi + + set +u + deactivate + set -u + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-magnum-dib-buildimage-ubuntu-mesos/post.yaml b/playbooks/legacy/periodic-magnum-dib-buildimage-ubuntu-mesos/post.yaml new file mode 100644 index 00000000..e6e08c1a --- /dev/null +++ b/playbooks/legacy/periodic-magnum-dib-buildimage-ubuntu-mesos/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/*.qcow2 + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-magnum-dib-buildimage-ubuntu-mesos/run.yaml b/playbooks/legacy/periodic-magnum-dib-buildimage-ubuntu-mesos/run.yaml new file mode 100644 index 00000000..88a48368 --- /dev/null +++ b/playbooks/legacy/periodic-magnum-dib-buildimage-ubuntu-mesos/run.yaml @@ -0,0 +1,107 @@ +- hosts: all + name: Autoconverted job legacy-periodic-magnum-dib-buildimage-ubuntu-mesos from + old job periodic-magnum-dib-buildimage-ubuntu-mesos-ubuntu-xenial + tasks: + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + cd ~ + + if [[ "ubuntu-mesos" =~ ^(ubuntu-mesos|centos-dcos)$ ]]; then + EXTRA_PROJECTS="openstack/tripleo-image-elements openstack/heat-templates" + else + EXTRA_PROJECTS="" + fi + + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/diskimage-builder \ + openstack/dib-utils \ + openstack/magnum $EXTRA_PROJECTS + + virtualenv env + + ./env/bin/pip install $(pwd)/openstack/dib-utils + ./env/bin/pip install $(pwd)/openstack/diskimage-builder + + # TODO(pabelanger): Remove once we migrated to bindep + ./openstack/diskimage-builder/tests/install_test_deps.sh + + # activate the virtualenv so that any tools run by dib run + # using the python inside it + set +u + source ./env/bin/activate + set -u + + DIB_ELEMENTS=./openstack/diskimage-builder/diskimage_builder/elements + + if [ "ubuntu-mesos" == "ubuntu-mesos" ]; then + TRIPLEO_ELEMENTS=./openstack/tripleo-image-elements/elements + HEAT_ELEMENTS=./openstack/heat-templates/hot/software-config/elements + MESOS_ELEMENTS=./openstack/magnum/magnum/drivers/mesos_ubuntu_v1/image + export ELEMENTS_PATH=$TRIPLEO_ELEMENTS:$HEAT_ELEMENTS:$MESOS_ELEMENTS + + $MESOS_ELEMENTS/install_imagebuild_deps.sh + + export DIB_RELEASE=trusty + + export DIB_IMAGE_SIZE=2.2 + + disk-image-create ubuntu vm docker mesos \ + os-collect-config os-refresh-config os-apply-config \ + heat-config heat-config-script -o $WORKSPACE/ubuntu-mesos.qcow2 + + $MESOS_ELEMENTS/validate_image.sh $WORKSPACE/ubuntu-mesos.qcow2 + elif [ "ubuntu-mesos" == "centos-dcos" ]; then + DCOS_ELEMENTS=./openstack/magnum/contrib/drivers/dcos_centos_v1/image + TRIPLEO_ELEMENTS=./openstack/tripleo-image-elements/elements + HEAT_ELEMENTS=./openstack/heat-templates/hot/software-config/elements + # Order matters, we need the docker elements from DCOS_ELEMENTS to be used first + export ELEMENTS_PATH=$DCOS_ELEMENTS:$DIB_ELEMENTS:$TRIPLEO_ELEMENTS:$HEAT_ELEMENTS + + $DCOS_ELEMENTS/install_imagebuild_deps.sh + + export DIB_IMAGE_SIZE=3.0 + + export FS_TYPE=xfs + + curl -O https://downloads.dcos.io/dcos/stable/commit/e64024af95b62c632c90b9063ed06296fcf38ea5/dcos_generate_config.sh + export DCOS_GENERATE_CONFIG_SRC=`pwd`/dcos_generate_config.sh + + disk-image-create \ + centos7 vm docker dcos selinux-permissive \ + os-collect-config os-refresh-config os-apply-config \ + heat-config heat-config-script \ + -o $WORKSPACE/ubuntu-mesos.qcow2 + + #TODO: Add size validation + else + MAGNUM_ELEMENTS=./openstack/magnum/magnum/drivers/common/image + export ELEMENTS_PATH=$DIB_ELEMENTS:$MAGNUM_ELEMENTS + $MAGNUM_ELEMENTS/fedora-atomic/install_imagebuild_deps.sh + + export DIB_RELEASE="25" + + export DIB_IMAGE_SIZE=2.5 + + export FEDORA_ATOMIC_TREE_URL="https://kojipkgs.fedoraproject.org/atomic/25/" + export FEDORA_ATOMIC_TREE_REF="8b15e9b988b4b02f4cb8b39bdd63d182ab7004a8926ecdac6314ee5c7ffa646b" + + disk-image-create -x -o $WORKSPACE/ubuntu-mesos-dib fedora-atomic + + # validate image + $MAGNUM_ELEMENTS/fedora-atomic/validate_atomic_image.sh $WORKSPACE/ubuntu-mesos-dib.qcow2 + fi + + set +u + deactivate + set -u + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-neutron-dsvm-functional/post.yaml b/playbooks/legacy/periodic-neutron-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/periodic-neutron-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-neutron-dsvm-functional/run.yaml b/playbooks/legacy/periodic-neutron-dsvm-functional/run.yaml new file mode 100644 index 00000000..09621f90 --- /dev/null +++ b/playbooks/legacy/periodic-neutron-dsvm-functional/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-periodic-neutron-dsvm-functional from old job periodic-neutron-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=master + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh dsvm-functional + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/post_test_hook.sh dsvm-functional + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/post.yaml b/playbooks/legacy/periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/run.yaml b/playbooks/legacy/periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/run.yaml new file mode 100644 index 00000000..85a94023 --- /dev/null +++ b/playbooks/legacy/periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4 + from old job periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4 + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^neutron_dynamic_routing.tests.tempest.scenario.ipv4\." + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=master + if [[ "$BRANCH_OVERRIDE" != "default" ]] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + DEVSTACK_LOCAL_CONFIG="NEUTRON_CREATE_INITIAL_NETWORKS=False" + DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-dynamic-routing git://git.openstack.org/openstack/neutron-dynamic-routing" + if [[ "ipv4" == "basic" ]]; then + DEVSTACK_LOCAL_CONFIG+=$'\n'"BGP_SCHEDULER_DRIVER=neutron_dynamic_routing.services.bgp.scheduler.bgp_dragent_scheduler.ChanceScheduler" + fi + export DEVSTACK_LOCAL_CONFIG + + function gate_hook { + local ryu_path=$BASE/new/ryu_master + if [[ ! -d $ryu_path ]]; then + git clone https://github.com/osrg/ryu $ryu_path + fi + sudo pip install -e $ryu_path + bash -xe $BASE/new/neutron-dynamic-routing/neutron_dynamic_routing/tests/contrib/gate_hook.sh dsvm-scenario + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-centos-7/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-centos-7/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-centos-7/run.yaml new file mode 100644 index 00000000..1f675855 --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-centos-7/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-deploy-aio-master-centos-7 + from old job periodic-openstack-ansible-deploy-aio-master-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=master + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "aio" "deploy" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-opensuse-423/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-opensuse-423/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-opensuse-423/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-opensuse-423/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-opensuse-423/run.yaml new file mode 100644 index 00000000..0dc4cd93 --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-opensuse-423/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-deploy-aio-master-opensuse-423 + from old job periodic-openstack-ansible-deploy-aio-master-opensuse-423 + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=master + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "aio" "deploy" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master/run.yaml new file mode 100644 index 00000000..50e92d3a --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-master/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-deploy-aio-master from + old job periodic-openstack-ansible-deploy-aio-master-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=master + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "aio" "deploy" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata-centos-7/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata-centos-7/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata-centos-7/run.yaml new file mode 100644 index 00000000..1eb2eac3 --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata-centos-7/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-deploy-aio-ocata-centos-7 + from old job periodic-openstack-ansible-deploy-aio-ocata-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/ocata + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "aio" "deploy" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata/run.yaml new file mode 100644 index 00000000..db8af4fd --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-deploy-aio-ocata from + old job periodic-openstack-ansible-deploy-aio-ocata-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/ocata + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "aio" "deploy" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-centos-7/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-centos-7/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-centos-7/run.yaml new file mode 100644 index 00000000..ddf741b8 --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-centos-7/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-deploy-aio-pike-centos-7 + from old job periodic-openstack-ansible-deploy-aio-pike-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/pike + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "aio" "deploy" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-opensuse-423/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-opensuse-423/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-opensuse-423/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-opensuse-423/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-opensuse-423/run.yaml new file mode 100644 index 00000000..fe98fc7b --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-opensuse-423/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-deploy-aio-pike-opensuse-423 + from old job periodic-openstack-ansible-deploy-aio-pike-opensuse-423 + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/pike + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "aio" "deploy" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike/run.yaml new file mode 100644 index 00000000..bbf60cf3 --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-deploy-aio-pike from old + job periodic-openstack-ansible-deploy-aio-pike-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/pike + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "aio" "deploy" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master-centos-7/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master-centos-7/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master-centos-7/run.yaml new file mode 100644 index 00000000..aba2abcc --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master-centos-7/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-deploy-ceph-master-centos-7 + from old job periodic-openstack-ansible-deploy-ceph-master-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=master + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "ceph" "deploy" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master/run.yaml new file mode 100644 index 00000000..2dae34ae --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-deploy-ceph-master from + old job periodic-openstack-ansible-deploy-ceph-master-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=master + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "ceph" "deploy" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata-centos-7/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata-centos-7/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata-centos-7/run.yaml new file mode 100644 index 00000000..65ba81cf --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata-centos-7/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-deploy-ceph-ocata-centos-7 + from old job periodic-openstack-ansible-deploy-ceph-ocata-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/ocata + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "ceph" "deploy" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata/run.yaml new file mode 100644 index 00000000..c57f2a12 --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-deploy-ceph-ocata from + old job periodic-openstack-ansible-deploy-ceph-ocata-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/ocata + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "ceph" "deploy" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike-centos-7/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike-centos-7/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike-centos-7/run.yaml new file mode 100644 index 00000000..0a84bc5c --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike-centos-7/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-deploy-ceph-pike-centos-7 + from old job periodic-openstack-ansible-deploy-ceph-pike-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/pike + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "ceph" "deploy" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike/run.yaml new file mode 100644 index 00000000..99039ce5 --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-deploy-ceph-pike from + old job periodic-openstack-ansible-deploy-ceph-pike-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/pike + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "ceph" "deploy" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-translations-master/post.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-translations-master/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-translations-master/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-deploy-translations-master/run.yaml b/playbooks/legacy/periodic-openstack-ansible-deploy-translations-master/run.yaml new file mode 100644 index 00000000..6bb78bc1 --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-deploy-translations-master/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-deploy-translations-master + from old job periodic-openstack-ansible-deploy-translations-master-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=master + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "translations" "deploy" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master-centos-7/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master-centos-7/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master-centos-7/run.yaml new file mode 100644 index 00000000..f7267c84 --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master-centos-7/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-upgrade-aio-master-centos-7 + from old job periodic-openstack-ansible-upgrade-aio-master-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=master + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "aio" "upgrade" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master/post.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master/run.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master/run.yaml new file mode 100644 index 00000000..fbd573df --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-upgrade-aio-master from + old job periodic-openstack-ansible-upgrade-aio-master-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=master + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "aio" "upgrade" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-ocata/post.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-ocata/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-ocata/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-ocata/run.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-ocata/run.yaml new file mode 100644 index 00000000..098363cd --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-ocata/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-upgrade-aio-ocata from + old job periodic-openstack-ansible-upgrade-aio-ocata-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/ocata + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "aio" "upgrade" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike-centos-7/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike-centos-7/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike-centos-7/run.yaml new file mode 100644 index 00000000..1ad3fb4d --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike-centos-7/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-upgrade-aio-pike-centos-7 + from old job periodic-openstack-ansible-upgrade-aio-pike-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/pike + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "aio" "upgrade" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike/post.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike/run.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike/run.yaml new file mode 100644 index 00000000..c67441dc --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-upgrade-aio-pike from + old job periodic-openstack-ansible-upgrade-aio-pike-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/pike + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "aio" "upgrade" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master-centos-7/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master-centos-7/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master-centos-7/run.yaml new file mode 100644 index 00000000..f4a57f0e --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master-centos-7/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-upgrade-ceph-master-centos-7 + from old job periodic-openstack-ansible-upgrade-ceph-master-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=master + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "ceph" "upgrade" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master/post.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master/run.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master/run.yaml new file mode 100644 index 00000000..158fd15d --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-upgrade-ceph-master from + old job periodic-openstack-ansible-upgrade-ceph-master-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=master + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "ceph" "upgrade" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike-centos-7/post.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike-centos-7/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike-centos-7/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike-centos-7/run.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike-centos-7/run.yaml new file mode 100644 index 00000000..6533d00e --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike-centos-7/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-upgrade-ceph-pike-centos-7 + from old job periodic-openstack-ansible-upgrade-ceph-pike-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/pike + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "ceph" "upgrade" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike/post.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike/post.yaml new file mode 100644 index 00000000..948310fe --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike/run.yaml b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike/run.yaml new file mode 100644 index 00000000..3e45b1e3 --- /dev/null +++ b/playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-openstack-ansible-upgrade-ceph-pike from + old job periodic-openstack-ansible-upgrade-ceph-pike-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/pike + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo scripts/gate-check-commit.sh "ceph" "upgrade" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-package-stackviz-element/post.yaml b/playbooks/legacy/periodic-package-stackviz-element/post.yaml new file mode 100644 index 00000000..63337338 --- /dev/null +++ b/playbooks/legacy/periodic-package-stackviz-element/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/dist/*.tar.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-package-stackviz-element/run.yaml b/playbooks/legacy/periodic-package-stackviz-element/run.yaml new file mode 100644 index 00000000..ef8fa499 --- /dev/null +++ b/playbooks/legacy/periodic-package-stackviz-element/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-periodic-package-stackviz-element from old job periodic-package-stackviz-element + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=master + CLONEMAP=`mktemp` + function cleanup { + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # NOTE(pabelanger): Delete npm mirror, since it is currently broken. + rm -rf ~/.npmrc + export DISPLAY=:99 + # Because we want to publish the build folder, create an empty + # .npmignore file. + touch .npmignore + npm install --verbose + npm run prod --verbose + mv dist/stackviz*.tar.gz dist/stackviz-latest.tar.gz + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-py27-with-oslo-master/post.yaml b/playbooks/legacy/periodic-py27-with-oslo-master/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/periodic-py27-with-oslo-master/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-py27-with-oslo-master/run.yaml b/playbooks/legacy/periodic-py27-with-oslo-master/run.yaml new file mode 100644 index 00000000..6a0bc8f8 --- /dev/null +++ b/playbooks/legacy/periodic-py27-with-oslo-master/run.yaml @@ -0,0 +1,77 @@ +- hosts: all + name: Autoconverted job legacy-periodic-py27-with-oslo-master from old job periodic-{name}-py27-with-oslo-master + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=master + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox-with-oslo-master.sh py27 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-py35-with-neutron-lib-master/post.yaml b/playbooks/legacy/periodic-py35-with-neutron-lib-master/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/periodic-py35-with-neutron-lib-master/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-py35-with-neutron-lib-master/run.yaml b/playbooks/legacy/periodic-py35-with-neutron-lib-master/run.yaml new file mode 100644 index 00000000..916ffb5b --- /dev/null +++ b/playbooks/legacy/periodic-py35-with-neutron-lib-master/run.yaml @@ -0,0 +1,78 @@ +- hosts: all + name: Autoconverted job legacy-periodic-py35-with-neutron-lib-master from old job + periodic-{name}-py35-with-neutron-lib-master + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=master + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox-with-neutron-lib-master.sh py35 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-py35-with-oslo-master/post.yaml b/playbooks/legacy/periodic-py35-with-oslo-master/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/periodic-py35-with-oslo-master/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-py35-with-oslo-master/run.yaml b/playbooks/legacy/periodic-py35-with-oslo-master/run.yaml new file mode 100644 index 00000000..aa460934 --- /dev/null +++ b/playbooks/legacy/periodic-py35-with-oslo-master/run.yaml @@ -0,0 +1,77 @@ +- hosts: all + name: Autoconverted job legacy-periodic-py35-with-oslo-master from old job periodic-{name}-py35-with-oslo-master + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=master + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox-with-oslo-master.sh py35 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-py35-with-ovsdbapp-master/post.yaml b/playbooks/legacy/periodic-py35-with-ovsdbapp-master/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/periodic-py35-with-ovsdbapp-master/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-py35-with-ovsdbapp-master/run.yaml b/playbooks/legacy/periodic-py35-with-ovsdbapp-master/run.yaml new file mode 100644 index 00000000..0ddac739 --- /dev/null +++ b/playbooks/legacy/periodic-py35-with-ovsdbapp-master/run.yaml @@ -0,0 +1,71 @@ +- hosts: all + name: Autoconverted job legacy-periodic-py35-with-ovsdbapp-master from old job periodic-{name}-py35-with-ovsdbapp-master + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=master + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox-with-dependency-master.sh $ZUUL_SHORT_PROJECT_NAME + py35 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-python27-newton/post.yaml b/playbooks/legacy/periodic-python27-newton/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/periodic-python27-newton/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-python27-newton/run.yaml b/playbooks/legacy/periodic-python27-newton/run.yaml new file mode 100644 index 00000000..3c86205c --- /dev/null +++ b/playbooks/legacy/periodic-python27-newton/run.yaml @@ -0,0 +1,70 @@ +- hosts: all + name: Autoconverted job legacy-periodic-python27-newton from old job periodic-{name}-python27-newton + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/newton + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-python27-ocata/post.yaml b/playbooks/legacy/periodic-python27-ocata/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/periodic-python27-ocata/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-python27-ocata/run.yaml b/playbooks/legacy/periodic-python27-ocata/run.yaml new file mode 100644 index 00000000..0c427cf7 --- /dev/null +++ b/playbooks/legacy/periodic-python27-ocata/run.yaml @@ -0,0 +1,70 @@ +- hosts: all + name: Autoconverted job legacy-periodic-python27-ocata from old job periodic-{name}-python27-ocata + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/ocata + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-python27-pike/post.yaml b/playbooks/legacy/periodic-python27-pike/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/periodic-python27-pike/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-python27-pike/run.yaml b/playbooks/legacy/periodic-python27-pike/run.yaml new file mode 100644 index 00000000..384c5135 --- /dev/null +++ b/playbooks/legacy/periodic-python27-pike/run.yaml @@ -0,0 +1,70 @@ +- hosts: all + name: Autoconverted job legacy-periodic-python27-pike from old job periodic-{name}-python27-pike + tasks: + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/pike + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-all-master/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-all-master/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-all-master/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-all-master/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-all-master/run.yaml new file mode 100644 index 00000000..8f51778c --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-all-master/run.yaml @@ -0,0 +1,35 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-all-master from old job periodic-tempest-dsvm-all-master + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=master + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-full-test-accounts-master/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-full-test-accounts-master/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-full-test-accounts-master/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-full-test-accounts-master/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-full-test-accounts-master/run.yaml new file mode 100644 index 00000000..fee63486 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-full-test-accounts-master/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-full-test-accounts-master from + old job periodic-tempest-dsvm-full-test-accounts-ubuntu-xenial-master + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + TEMPEST_USE_TEST_ACCOUNTS=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export BRANCH_OVERRIDE=master + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-calico-master/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-calico-master/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-calico-master/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-calico-master/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-calico-master/run.yaml new file mode 100644 index 00000000..a535f5f5 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-calico-master/run.yaml @@ -0,0 +1,68 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-networking-calico-master from + old job periodic-tempest-dsvm-networking-calico-master + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-calico git://git.openstack.org/openstack/networking-calico + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=master + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/networking-calico $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/networking-calico/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-calico/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/networking-calico/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-calico/devstack/post_test_hook.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-calico/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ocata/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ocata/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ocata/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ocata/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ocata/run.yaml new file mode 100644 index 00000000..bbea06eb --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ocata/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ocata + from old job periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ubuntu-xenial-ocata + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=stable/ocata + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY=aio + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-midonet $PROJECTS" + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + export PROJECTS="openstack/networking-l2gw $PROJECTS" + export PROJECTS="openstack/tap-as-a-service $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh ml2-full + } + export -f gate_hook + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-midonet/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-newton/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-newton/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-newton/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-newton/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-newton/run.yaml new file mode 100644 index 00000000..d6e24e8b --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-newton/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-networking-midonet-aio-ml2-newton + from old job periodic-tempest-dsvm-networking-midonet-aio-ml2-ubuntu-xenial-newton + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=stable/newton + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY=aio + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-midonet $PROJECTS" + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + export PROJECTS="openstack/networking-l2gw $PROJECTS" + export PROJECTS="openstack/tap-as-a-service $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh ml2 + } + export -f gate_hook + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-midonet/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-full-ocata/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-full-ocata/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-full-ocata/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-full-ocata/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-full-ocata/run.yaml new file mode 100644 index 00000000..3ebe4306 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-full-ocata/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-networking-midonet-aio-v2-full-ocata + from old job periodic-tempest-dsvm-networking-midonet-aio-v2-full-ubuntu-xenial-ocata + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=stable/ocata + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY=aio + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-midonet $PROJECTS" + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + export PROJECTS="openstack/networking-l2gw $PROJECTS" + export PROJECTS="openstack/tap-as-a-service $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh v2-full + } + export -f gate_hook + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-midonet/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-newton/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-newton/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-newton/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-newton/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-newton/run.yaml new file mode 100644 index 00000000..df2b3749 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-newton/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-networking-midonet-aio-v2-newton + from old job periodic-tempest-dsvm-networking-midonet-aio-v2-ubuntu-xenial-newton + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=stable/newton + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY=aio + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-midonet $PROJECTS" + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + export PROJECTS="openstack/networking-l2gw $PROJECTS" + export PROJECTS="openstack/tap-as-a-service $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh v2 + } + export -f gate_hook + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-midonet/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-sfc/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-sfc/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-sfc/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-networking-sfc/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-networking-sfc/run.yaml new file mode 100644 index 00000000..1f1c0693 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-networking-sfc/run.yaml @@ -0,0 +1,80 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-networking-sfc from old job + periodic-tempest-dsvm-networking-sfc-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-sfc git://git.openstack.org/openstack/networking-sfc + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + # Make sure tempest is installed, but run it out of the post_test_hooks.sh + # script from the networking-sfc repository. + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + + export BRANCH_OVERRIDE=master + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-sfc $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/networking-sfc/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-sfc/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function gate_hook { + if [ -f $BASE/new/networking-sfc/networking_sfc/tests/contrib/gate_hook.sh ] ; then + bash -xe $BASE/new/networking-sfc/networking_sfc/tests/contrib/gate_hook.sh dsvm-networking-sfc + fi + } + export -f gate_hook + + function post_test_hook { + if [ -f $BASE/new/networking-sfc/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-sfc/devstack/post_test_hook.sh + fi + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-newton/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-newton/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-newton/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-newton/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-newton/run.yaml new file mode 100644 index 00000000..3750d779 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-newton/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-neutron-full-newton from old + job periodic-tempest-dsvm-neutron-full-ubuntu-xenial-newton + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_FILE_INJECTION=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=stable/newton + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-non-admin-master/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-non-admin-master/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-non-admin-master/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-non-admin-master/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-non-admin-master/run.yaml new file mode 100644 index 00000000..69b346ef --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-non-admin-master/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-neutron-full-non-admin-master + from old job periodic-tempest-dsvm-neutron-full-non-admin-ubuntu-xenial-master + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + TEMPEST_HAS_ADMIN=False + TEMPEST_USE_TEST_ACCOUNTS=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST_DISABLE_TENANT_ISOLATION=1 + export BRANCH_OVERRIDE=master + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-ocata/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-ocata/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-ocata/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-ocata/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-ocata/run.yaml new file mode 100644 index 00000000..a8591c66 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-ocata/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-neutron-full-ocata from old + job periodic-tempest-dsvm-neutron-full-ubuntu-xenial-ocata + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_FILE_INJECTION=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=stable/ocata + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-pike/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-pike/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-pike/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-pike/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-pike/run.yaml new file mode 100644 index 00000000..fcea5395 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-pike/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-neutron-full-pike from old + job periodic-tempest-dsvm-neutron-full-ubuntu-xenial-pike + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_FILE_INJECTION=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=stable/pike + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-test-accounts-master/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-test-accounts-master/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-test-accounts-master/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-full-test-accounts-master/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-test-accounts-master/run.yaml new file mode 100644 index 00000000..d1ebd19f --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-full-test-accounts-master/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-neutron-full-test-accounts-master + from old job periodic-tempest-dsvm-neutron-full-test-accounts-ubuntu-xenial-master + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + TEMPEST_USE_TEST_ACCOUNTS=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export BRANCH_OVERRIDE=master + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-pg-full/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-pg-full/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-pg-full/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-pg-full/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-pg-full/run.yaml new file mode 100644 index 00000000..784d6150 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-pg-full/run.yaml @@ -0,0 +1,39 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-neutron-pg-full from old job + periodic-tempest-dsvm-neutron-pg-full-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_POSTGRES=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=master + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-with-ryu-master/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-with-ryu-master/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-with-ryu-master/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-neutron-with-ryu-master/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-neutron-with-ryu-master/run.yaml new file mode 100644 index 00000000..83a15a77 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-neutron-with-ryu-master/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-neutron-with-ryu-master from + old job periodic-tempest-dsvm-neutron-with-ryu-master-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=master + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + local ryu_path=$BASE/new/ryu_master + if [ ! -d $ryu_path ]; then + git clone https://github.com/osrg/ryu $ryu_path + fi + sudo pip install -e $ryu_path + $BASE/new/devstack-gate/devstack-vm-gate.sh + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-nnet-newton/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-nnet-newton/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-nnet-newton/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-nnet-newton/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-nnet-newton/run.yaml new file mode 100644 index 00000000..ecf90cc2 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-nnet-newton/run.yaml @@ -0,0 +1,41 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-nnet-newton from old job periodic-tempest-dsvm-nnet-ubuntu-xenial-newton + tasks: + + - shell: + cmd: | + [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_TLSPROXY=1 + export DEVSTACK_GATE_NEUTRON=0 + export BRANCH_OVERRIDE=stable/newton + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-nnet-ocata/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-nnet-ocata/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-nnet-ocata/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-nnet-ocata/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-nnet-ocata/run.yaml new file mode 100644 index 00000000..a6b5c5e4 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-nnet-ocata/run.yaml @@ -0,0 +1,41 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-nnet-ocata from old job periodic-tempest-dsvm-nnet-ubuntu-xenial-ocata + tasks: + + - shell: + cmd: | + [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_TLSPROXY=1 + export DEVSTACK_GATE_NEUTRON=0 + export BRANCH_OVERRIDE=stable/ocata + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-nnet-pike/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-nnet-pike/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-nnet-pike/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-nnet-pike/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-nnet-pike/run.yaml new file mode 100644 index 00000000..5e71399f --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-nnet-pike/run.yaml @@ -0,0 +1,41 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-nnet-pike from old job periodic-tempest-dsvm-nnet-ubuntu-xenial-pike + tasks: + + - shell: + cmd: | + [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_TLSPROXY=1 + export DEVSTACK_GATE_NEUTRON=0 + export BRANCH_OVERRIDE=stable/pike + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tempest-dsvm-oslo-latest-full-master/post.yaml b/playbooks/legacy/periodic-tempest-dsvm-oslo-latest-full-master/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-oslo-latest-full-master/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tempest-dsvm-oslo-latest-full-master/run.yaml b/playbooks/legacy/periodic-tempest-dsvm-oslo-latest-full-master/run.yaml new file mode 100644 index 00000000..1f3db6cf --- /dev/null +++ b/playbooks/legacy/periodic-tempest-dsvm-oslo-latest-full-master/run.yaml @@ -0,0 +1,56 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tempest-dsvm-oslo-latest-full-master from + old job periodic-tempest-dsvm-oslo-latest-full-master + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=master + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export DEVSTACK_PROJECT_FROM_GIT="oslo.cache" + export DEVSTACK_PROJECT_FROM_GIT+=",oslo.concurrency" + export DEVSTACK_PROJECT_FROM_GIT+=",oslo.config" + export DEVSTACK_PROJECT_FROM_GIT+=",oslo.context" + export DEVSTACK_PROJECT_FROM_GIT+=",oslo.db" + export DEVSTACK_PROJECT_FROM_GIT+=",oslo.i18n" + export DEVSTACK_PROJECT_FROM_GIT+=",oslo.log" + export DEVSTACK_PROJECT_FROM_GIT+=",oslo.messaging" + export DEVSTACK_PROJECT_FROM_GIT+=",oslo.middleware" + export DEVSTACK_PROJECT_FROM_GIT+=",oslo.policy" + export DEVSTACK_PROJECT_FROM_GIT+=",oslo.privsep" + export DEVSTACK_PROJECT_FROM_GIT+=",oslo.reports" + export DEVSTACK_PROJECT_FROM_GIT+=",oslo.rootwrap" + export DEVSTACK_PROJECT_FROM_GIT+=",oslo.serialization" + export DEVSTACK_PROJECT_FROM_GIT+=",oslo.service" + export DEVSTACK_PROJECT_FROM_GIT+=",oslo.utils" + export DEVSTACK_PROJECT_FROM_GIT+=",oslo.versionedobjects" + export DEVSTACK_PROJECT_FROM_GIT+=",oslo.vmware" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/run.yaml new file mode 100644 index 00000000..1751c37f --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024 + from old job periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024 + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=periodic-ovb-1ctlr_1comp_1ceph-featureset024 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-fakeha-caserver/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-fakeha-caserver/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-fakeha-caserver/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-fakeha-caserver/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-fakeha-caserver/run.yaml new file mode 100644 index 00000000..4d4f0519 --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-fakeha-caserver/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tripleo-ci-centos-7-ovb-fakeha-caserver + from old job periodic-tripleo-ci-centos-7-ovb-fakeha-caserver + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=ovb-fakeha-caserver + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=master + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq/run.yaml new file mode 100644 index 00000000..fcab3dca --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq from + old job periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=periodic-ovb-3ctlr_1comp-featureset002 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=stable/newton + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq/run.yaml new file mode 100644 index 00000000..b0890c50 --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq from + old job periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=periodic-ovb-3ctlr_1comp-featureset002 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=stable/ocata + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-oooq/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-oooq/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-oooq/run.yaml new file mode 100644 index 00000000..9caec1a5 --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tripleo-ci-centos-7-ovb-ha-oooq from old + job periodic-tripleo-ci-centos-7-ovb-ha-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=periodic-ovb-3ctlr_1comp-featureset002 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq/run.yaml new file mode 100644 index 00000000..4cff1a60 --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq from + old job periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=periodic-ovb-3ctlr_1comp-featureset002 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=stable/pike + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-containers/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-containers/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-containers/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-containers/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-containers/run.yaml new file mode 100644 index 00000000..0c13ec0d --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-containers/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tripleo-ci-centos-7-ovb-nonha-containers + from old job periodic-tripleo-ci-centos-7-ovb-nonha-containers + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=periodic-ovb-1ctlr_1comp-featureset023 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master/run.yaml new file mode 100644 index 00000000..5f0f4873 --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master + from old job periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=periodic-ovb-1ctlr_1comp-featureset020 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata/run.yaml new file mode 100644 index 00000000..06c8da46 --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata + from old job periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=periodic-ovb-1ctlr_1comp-featureset020 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=stable/ocata + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike/run.yaml new file mode 100644 index 00000000..08d18e10 --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike + from old job periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=periodic-ovb-1ctlr_1comp-featureset020 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=stable/pike + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario001-multinode-oooq/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario001-multinode-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario001-multinode-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario001-multinode-oooq/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario001-multinode-oooq/run.yaml new file mode 100644 index 00000000..39362d82 --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario001-multinode-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tripleo-ci-centos-7-scenario001-multinode-oooq + from old job periodic-tripleo-ci-centos-7-scenario001-multinode-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=periodic-multinode-1ctlr-featureset005 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario002-multinode-oooq/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario002-multinode-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario002-multinode-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario002-multinode-oooq/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario002-multinode-oooq/run.yaml new file mode 100644 index 00000000..37c4348b --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario002-multinode-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tripleo-ci-centos-7-scenario002-multinode-oooq + from old job periodic-tripleo-ci-centos-7-scenario002-multinode-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=periodic-multinode-1ctlr-featureset006 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario003-multinode-oooq/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario003-multinode-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario003-multinode-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario003-multinode-oooq/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario003-multinode-oooq/run.yaml new file mode 100644 index 00000000..41ba2d49 --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario003-multinode-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tripleo-ci-centos-7-scenario003-multinode-oooq + from old job periodic-tripleo-ci-centos-7-scenario003-multinode-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=periodic-multinode-1ctlr-featureset007 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario004-multinode-oooq/post.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario004-multinode-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario004-multinode-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario004-multinode-oooq/run.yaml b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario004-multinode-oooq/run.yaml new file mode 100644 index 00000000..6a33850e --- /dev/null +++ b/playbooks/legacy/periodic-tripleo-ci-centos-7-scenario004-multinode-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-periodic-tripleo-ci-centos-7-scenario004-multinode-oooq + from old job periodic-tripleo-ci-centos-7-scenario004-multinode-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=periodic-multinode-1ctlr-featureset008 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/placement-api-ref/post.yaml b/playbooks/legacy/placement-api-ref/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/placement-api-ref/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/placement-api-ref/run.yaml b/playbooks/legacy/placement-api-ref/run.yaml new file mode 100644 index 00000000..a8766bba --- /dev/null +++ b/playbooks/legacy/placement-api-ref/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-placement-api-ref from old job placement-api-ref + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh placement-api-ref + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID Revision: $ZUUL_NEWREV" + echo $MARKER_TEXT > placement-api-ref/build/html/.root-marker + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/post-sahara-extra-artifacts/post.yaml b/playbooks/legacy/post-sahara-extra-artifacts/post.yaml new file mode 100644 index 00000000..eb4e0120 --- /dev/null +++ b/playbooks/legacy/post-sahara-extra-artifacts/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/dist/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/post-sahara-extra-artifacts/run.yaml b/playbooks/legacy/post-sahara-extra-artifacts/run.yaml new file mode 100644 index 00000000..fcc31acc --- /dev/null +++ b/playbooks/legacy/post-sahara-extra-artifacts/run.yaml @@ -0,0 +1,45 @@ +- hosts: all + name: Autoconverted job legacy-post-sahara-extra-artifacts from old job post-sahara-extra-artifacts + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export BRANCH=${ZUUL_BRANCH:-master} + # tell to script where it should place dist results + tools/build-all-artifacts.sh $BRANCH + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/project-config-jenkins-project/post.yaml b/playbooks/legacy/project-config-jenkins-project/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/project-config-jenkins-project/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/project-config-jenkins-project/run.yaml b/playbooks/legacy/project-config-jenkins-project/run.yaml new file mode 100644 index 00000000..8032fb10 --- /dev/null +++ b/playbooks/legacy/project-config-jenkins-project/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-project-config-jenkins-project from old job gate-project-config-jenkins-project + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh jenkins-project + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/project-config-layout/post.yaml b/playbooks/legacy/project-config-layout/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/project-config-layout/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/project-config-layout/run.yaml b/playbooks/legacy/project-config-layout/run.yaml new file mode 100644 index 00000000..2184cda4 --- /dev/null +++ b/playbooks/legacy/project-config-layout/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-project-config-layout from old job gate-project-config-layout + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh zuul + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/project-navigator-data-tox-validate/post.yaml b/playbooks/legacy/project-navigator-data-tox-validate/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/project-navigator-data-tox-validate/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/project-navigator-data-tox-validate/run.yaml b/playbooks/legacy/project-navigator-data-tox-validate/run.yaml new file mode 100644 index 00000000..d90de934 --- /dev/null +++ b/playbooks/legacy/project-navigator-data-tox-validate/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-project-navigator-data-tox-validate from old job + gate-project-navigator-data-tox-validate-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh validate + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/project-team-guide-publish/run.yaml b/playbooks/legacy/project-team-guide-publish/run.yaml new file mode 100644 index 00000000..980350d9 --- /dev/null +++ b/playbooks/legacy/project-team-guide-publish/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-project-team-guide-publish from old job project-team-guide-publish + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/propose-requirements-constraints-master/run.yaml b/playbooks/legacy/propose-requirements-constraints-master/run.yaml new file mode 100644 index 00000000..94d412d9 --- /dev/null +++ b/playbooks/legacy/propose-requirements-constraints-master/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-propose-requirements-constraints-master from old + job propose-requirements-constraints-master + tasks: + + - shell: + cmd: | + cd / + rm -rf `dirname $WORKSPACE`/* + mkdir $WORKSPACE + cd $WORKSPACE + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export BRANCH=master + CLONEMAP=`mktemp` + function cleanup { + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + export ZUUL_REFNAME=master + /usr/local/jenkins/slave_scripts/propose_update.sh \ + requirements-constraints + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/propose-translation-update-ocata/post.yaml b/playbooks/legacy/propose-translation-update-ocata/post.yaml new file mode 100644 index 00000000..3a9a82f1 --- /dev/null +++ b/playbooks/legacy/propose-translation-update-ocata/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/propose-translation-update-ocata/run.yaml b/playbooks/legacy/propose-translation-update-ocata/run.yaml new file mode 100644 index 00000000..d9e4e4c9 --- /dev/null +++ b/playbooks/legacy/propose-translation-update-ocata/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-propose-translation-update-ocata from old job {name}-propose-translation-update-ocata + tasks: + + - shell: + cmd: | + cd / + rm -rf `dirname $WORKSPACE`/* + mkdir $WORKSPACE + cd $WORKSPACE + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/ocata + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/propose_translation_update.sh $ZUUL_SHORT_PROJECT_NAME stable/ocata {name}-propose-translation-update{suffix} + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/propose-translation-update-pike/post.yaml b/playbooks/legacy/propose-translation-update-pike/post.yaml new file mode 100644 index 00000000..3a9a82f1 --- /dev/null +++ b/playbooks/legacy/propose-translation-update-pike/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/propose-translation-update-pike/run.yaml b/playbooks/legacy/propose-translation-update-pike/run.yaml new file mode 100644 index 00000000..4e39f6ec --- /dev/null +++ b/playbooks/legacy/propose-translation-update-pike/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-propose-translation-update-pike from old job {name}-propose-translation-update-pike + tasks: + + - shell: + cmd: | + cd / + rm -rf `dirname $WORKSPACE`/* + mkdir $WORKSPACE + cd $WORKSPACE + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export BRANCH=stable/pike + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/propose_translation_update.sh $ZUUL_SHORT_PROJECT_NAME stable/pike {name}-propose-translation-update{suffix} + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/propose-translation-update/post.yaml b/playbooks/legacy/propose-translation-update/post.yaml new file mode 100644 index 00000000..3a9a82f1 --- /dev/null +++ b/playbooks/legacy/propose-translation-update/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/propose-translation-update/run.yaml b/playbooks/legacy/propose-translation-update/run.yaml new file mode 100644 index 00000000..12b29233 --- /dev/null +++ b/playbooks/legacy/propose-translation-update/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-propose-translation-update from old job {name}-propose-translation-update + tasks: + + - shell: + cmd: | + cd / + rm -rf `dirname $WORKSPACE`/* + mkdir $WORKSPACE + cd $WORKSPACE + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export BRANCH=master + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + --branch=$BRANCH \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/propose_translation_update.sh $ZUUL_SHORT_PROJECT_NAME master {name}-propose-translation-update{suffix} + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/propose-update-constraints/post.yaml b/playbooks/legacy/propose-update-constraints/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/propose-update-constraints/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/propose-update-constraints/run.yaml b/playbooks/legacy/propose-update-constraints/run.yaml new file mode 100644 index 00000000..9aa79697 --- /dev/null +++ b/playbooks/legacy/propose-update-constraints/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-propose-update-constraints from old job propose-{name}-update-constraints + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + + # Save the version that was just tagged by parsing + # ref/tags/VALUE to get VALUE. + VERSION=$(echo $ZUUL_REF | cut -f3 -d/) + + /usr/local/jenkins/slave_scripts/release-tools/update_constraints.sh $VERSION + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml b/playbooks/legacy/publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml new file mode 100644 index 00000000..c6da5f0b --- /dev/null +++ b/playbooks/legacy/publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/tmp' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/*.txt + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml b/playbooks/legacy/publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml new file mode 100644 index 00000000..d285a1e3 --- /dev/null +++ b/playbooks/legacy/publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node + from old job publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ORCH_ENGINE=ansible + export ACTION=deploy-multinode + export BASE_DISTRO=ubuntu + export INSTALL_TYPE=source + + tools/publisher.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/publish-kolla-dsvm-build-ubuntu-source/post.yaml b/playbooks/legacy/publish-kolla-dsvm-build-ubuntu-source/post.yaml new file mode 100644 index 00000000..f7bf43a5 --- /dev/null +++ b/playbooks/legacy/publish-kolla-dsvm-build-ubuntu-source/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/tmp' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/publish-kolla-dsvm-build-ubuntu-source/run.yaml b/playbooks/legacy/publish-kolla-dsvm-build-ubuntu-source/run.yaml new file mode 100644 index 00000000..15032a2a --- /dev/null +++ b/playbooks/legacy/publish-kolla-dsvm-build-ubuntu-source/run.yaml @@ -0,0 +1,56 @@ +- hosts: all + name: Autoconverted job legacy-publish-kolla-dsvm-build-ubuntu-source from old job + publish-kolla-dsvm-build-ubuntu-source-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=build + export BASE_DISTRO=ubuntu + export INSTALL_TYPE=source + export PACK_REGISTRY=1 + export PUBLISHER=1 + + tools/publisher.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml b/playbooks/legacy/publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml new file mode 100644 index 00000000..c6da5f0b --- /dev/null +++ b/playbooks/legacy/publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/tmp' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/*.txt + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml b/playbooks/legacy/publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml new file mode 100644 index 00000000..16d1a978 --- /dev/null +++ b/playbooks/legacy/publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node + from old job publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ORCH_ENGINE=kubernetes + export ACTION=deploy-multinode + export BASE_DISTRO=ubuntu + export INSTALL_TYPE=source + + tools/publisher.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/publish-kolla-dsvm-save-ubuntu-source/post.yaml b/playbooks/legacy/publish-kolla-dsvm-save-ubuntu-source/post.yaml new file mode 100644 index 00000000..f7bf43a5 --- /dev/null +++ b/playbooks/legacy/publish-kolla-dsvm-save-ubuntu-source/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/tmp' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/publish-kolla-dsvm-save-ubuntu-source/run.yaml b/playbooks/legacy/publish-kolla-dsvm-save-ubuntu-source/run.yaml new file mode 100644 index 00000000..0ad71560 --- /dev/null +++ b/playbooks/legacy/publish-kolla-dsvm-save-ubuntu-source/run.yaml @@ -0,0 +1,56 @@ +- hosts: all + name: Autoconverted job legacy-publish-kolla-dsvm-save-ubuntu-source from old job + publish-kolla-dsvm-save-ubuntu-source-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export ACTION=save + export BASE_DISTRO=ubuntu + export INSTALL_TYPE=source + export PACK_REGISTRY=1 + export PUBLISHER=1 + + tools/publisher.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-beaker-rspec-centos-7/post.yaml b/playbooks/legacy/puppet-beaker-rspec-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-beaker-rspec-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-beaker-rspec-centos-7/run.yaml b/playbooks/legacy/puppet-beaker-rspec-centos-7/run.yaml new file mode 100644 index 00000000..dc625cec --- /dev/null +++ b/playbooks/legacy/puppet-beaker-rspec-centos-7/run.yaml @@ -0,0 +1,122 @@ +- hosts: all + name: Autoconverted job legacy-puppet-beaker-rspec-centos-7 from old job gate-{name}-puppet-beaker-rspec-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address 127.0.0.1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address ::1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + mkdir -p .ssh + ssh-keygen -f ~/.ssh/id_rsa -b 2048 -P "" + sudo mkdir -p /root/.ssh + cat ~/.ssh/id_rsa.pub | sudo tee -a /root/.ssh/authorized_keys + if [ -f /usr/bin/yum ]; then + sudo systemctl reload sshd + elif [ -f /usr/bin/apt-get ]; then + sudo service ssh restart + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + trap "puppet-openstack-integration/copy_logs.sh" EXIT + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + export BEAKER_set=nodepool-centos7 + export BEAKER_debug=yes + export BEAKER_color=no + # deploy puppet4 on experimental beaker jobs + # https://tickets.puppetlabs.com/browse/BKR-821 + if [ "centos-7" == "ubuntu-xenial" ]; then + export PUPPET_INSTALL_TYPE=agent + export PUPPET_MAJ_VERSION=4 + fi + $GEM_HOME/bin/bundle exec rspec spec/acceptance + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-beaker-rspec-ubuntu-trusty/post.yaml b/playbooks/legacy/puppet-beaker-rspec-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-beaker-rspec-ubuntu-trusty/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-beaker-rspec-ubuntu-trusty/run.yaml b/playbooks/legacy/puppet-beaker-rspec-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..83d61b96 --- /dev/null +++ b/playbooks/legacy/puppet-beaker-rspec-ubuntu-trusty/run.yaml @@ -0,0 +1,122 @@ +- hosts: all + name: Autoconverted job legacy-puppet-beaker-rspec-ubuntu-trusty from old job gate-{name}-puppet-beaker-rspec-ubuntu-trusty-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address 127.0.0.1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address ::1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + mkdir -p .ssh + ssh-keygen -f ~/.ssh/id_rsa -b 2048 -P "" + sudo mkdir -p /root/.ssh + cat ~/.ssh/id_rsa.pub | sudo tee -a /root/.ssh/authorized_keys + if [ -f /usr/bin/yum ]; then + sudo systemctl reload sshd + elif [ -f /usr/bin/apt-get ]; then + sudo service ssh restart + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + trap "puppet-openstack-integration/copy_logs.sh" EXIT + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + export BEAKER_set=nodepool-trusty + export BEAKER_debug=yes + export BEAKER_color=no + # deploy puppet4 on experimental beaker jobs + # https://tickets.puppetlabs.com/browse/BKR-821 + if [ "ubuntu-trusty" == "ubuntu-xenial" ]; then + export PUPPET_INSTALL_TYPE=agent + export PUPPET_MAJ_VERSION=4 + fi + $GEM_HOME/bin/bundle exec rspec spec/acceptance + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-beaker-rspec/post.yaml b/playbooks/legacy/puppet-beaker-rspec/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-beaker-rspec/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-beaker-rspec/run.yaml b/playbooks/legacy/puppet-beaker-rspec/run.yaml new file mode 100644 index 00000000..57ee368d --- /dev/null +++ b/playbooks/legacy/puppet-beaker-rspec/run.yaml @@ -0,0 +1,122 @@ +- hosts: all + name: Autoconverted job legacy-puppet-beaker-rspec from old job gate-{name}-puppet-beaker-rspec-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address 127.0.0.1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address ::1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + mkdir -p .ssh + ssh-keygen -f ~/.ssh/id_rsa -b 2048 -P "" + sudo mkdir -p /root/.ssh + cat ~/.ssh/id_rsa.pub | sudo tee -a /root/.ssh/authorized_keys + if [ -f /usr/bin/yum ]; then + sudo systemctl reload sshd + elif [ -f /usr/bin/apt-get ]; then + sudo service ssh restart + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + trap "puppet-openstack-integration/copy_logs.sh" EXIT + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + export BEAKER_set=nodepool-xenial + export BEAKER_debug=yes + export BEAKER_color=no + # deploy puppet4 on experimental beaker jobs + # https://tickets.puppetlabs.com/browse/BKR-821 + if [ "ubuntu-xenial" == "ubuntu-xenial" ]; then + export PUPPET_INSTALL_TYPE=agent + export PUPPET_MAJ_VERSION=4 + fi + $GEM_HOME/bin/bundle exec rspec spec/acceptance + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-httpd-forge-upload/run.yaml b/playbooks/legacy/puppet-httpd-forge-upload/run.yaml new file mode 100644 index 00000000..328b8a70 --- /dev/null +++ b/playbooks/legacy/puppet-httpd-forge-upload/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-puppet-httpd-forge-upload from old job puppet-httpd-forge-upload + tasks: + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat > Rakefile << EOF + require 'puppet_blacksmith/rake_tasks' + EOF + TAG=${ZUUL_REF:10} + sed -i -e 's/ "version":.*/ "version": "'$TAG'",/' metadata.json + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install --no-ri --no-rdoc puppetlabs_spec_helper puppet-blacksmith + rake module:push + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-lint/run.yaml b/playbooks/legacy/puppet-lint/run.yaml new file mode 100644 index 00000000..ce6460c0 --- /dev/null +++ b/playbooks/legacy/puppet-lint/run.yaml @@ -0,0 +1,92 @@ +- hosts: all + name: Autoconverted job legacy-puppet-lint from old job gate-{name}-puppet-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -f Modulefile -o -f metadata.json ]; then + if [ -f Modulefile ]; then + MODULE=$(awk '/^name/ {print $NF}' Modulefile |tr -d \"\') + elif [ -f metadata.json ]; then + MODULE=$(python -c 'import json;print json.load(open("metadata.json"))["name"]') + fi + if [ -z "$MODULE" ]; then + echo "Module name not defined in Modulefile or metadata.json" + else + mkdir -p "$MODULE" + rsync -a --exclude="$MODULE" --exclude ".*" . "$MODULE" + cd "$MODULE" + fi + fi + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + if [ -f Gemfile ]; then + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --without system_tests + $GEM_HOME/bin/bundle exec rake lint 2>&1 + else + gem install rake -n ./.bundled_gems/ + gem install puppet-lint + gem install puppetlabs_spec_helper + ./.bundled_gems/rake lint 2>&1 + fi + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-midonet-puppet-unit-3.6-centos-7/run.yaml b/playbooks/legacy/puppet-midonet-puppet-unit-3.6-centos-7/run.yaml new file mode 100644 index 00000000..08772beb --- /dev/null +++ b/playbooks/legacy/puppet-midonet-puppet-unit-3.6-centos-7/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-puppet-midonet-puppet-unit-3.6-centos-7 from old + job gate-puppet-midonet-puppet-unit-3.6-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ "3.6" != "latest" ]; then + export PUPPET_GEM_VERSION='~> 3.6.0' + fi + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-midonet-puppet-unit-3.8-centos-7/run.yaml b/playbooks/legacy/puppet-midonet-puppet-unit-3.8-centos-7/run.yaml new file mode 100644 index 00000000..4aaa1966 --- /dev/null +++ b/playbooks/legacy/puppet-midonet-puppet-unit-3.8-centos-7/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-puppet-midonet-puppet-unit-3.8-centos-7 from old + job gate-puppet-midonet-puppet-unit-3.8-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ "3.8" != "latest" ]; then + export PUPPET_GEM_VERSION='~> 3.8.0' + fi + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-midonet-puppet-unit-4.5-centos-7/run.yaml b/playbooks/legacy/puppet-midonet-puppet-unit-4.5-centos-7/run.yaml new file mode 100644 index 00000000..50651bb4 --- /dev/null +++ b/playbooks/legacy/puppet-midonet-puppet-unit-4.5-centos-7/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-puppet-midonet-puppet-unit-4.5-centos-7 from old + job gate-puppet-midonet-puppet-unit-4.5-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ "4.5" != "latest" ]; then + export PUPPET_GEM_VERSION='~> 4.5.0' + fi + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-midonet-puppet-unit-latest-centos-7/run.yaml b/playbooks/legacy/puppet-midonet-puppet-unit-latest-centos-7/run.yaml new file mode 100644 index 00000000..16ccd0be --- /dev/null +++ b/playbooks/legacy/puppet-midonet-puppet-unit-latest-centos-7/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-puppet-midonet-puppet-unit-latest-centos-7 from old + job gate-puppet-midonet-puppet-unit-latest-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ "latest" != "latest" ]; then + export PUPPET_GEM_VERSION='~> latest.0' + fi + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-module-build/run.yaml b/playbooks/legacy/puppet-module-build/run.yaml new file mode 100644 index 00000000..f82f3732 --- /dev/null +++ b/playbooks/legacy/puppet-module-build/run.yaml @@ -0,0 +1,40 @@ +- hosts: all + name: Autoconverted job legacy-puppet-module-build from old job gate-{name}-puppet-module-build + tasks: + + - shell: + cmd: | + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum install -y https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm + sudo yum install -y puppet-agent + elif [ -f /usr/bin/apt-get ]; then + wget https://apt.puppetlabs.com/puppetlabs-release-pc1-xenial.deb -O /tmp/puppet.deb + sudo dpkg -i /tmp/puppet.deb + sudo apt-get update + sudo apt-get install puppet-agent + rm -rf /tmp/puppet.deb + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd $ZUUL_PROJECT + puppet module build . + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-murano-puppet-beaker-rspec/post.yaml b/playbooks/legacy/puppet-murano-puppet-beaker-rspec/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-murano-puppet-beaker-rspec/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-murano-puppet-beaker-rspec/run.yaml b/playbooks/legacy/puppet-murano-puppet-beaker-rspec/run.yaml new file mode 100644 index 00000000..e3f2a589 --- /dev/null +++ b/playbooks/legacy/puppet-murano-puppet-beaker-rspec/run.yaml @@ -0,0 +1,122 @@ +- hosts: all + name: Autoconverted job legacy-puppet-murano-puppet-beaker-rspec from old job gate-puppet-murano-puppet-beaker-rspec-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address 127.0.0.1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address ::1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + mkdir -p .ssh + ssh-keygen -f ~/.ssh/id_rsa -b 2048 -P "" + sudo mkdir -p /root/.ssh + cat ~/.ssh/id_rsa.pub | sudo tee -a /root/.ssh/authorized_keys + if [ -f /usr/bin/yum ]; then + sudo systemctl reload sshd + elif [ -f /usr/bin/apt-get ]; then + sudo service ssh restart + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + trap "puppet-openstack-integration/copy_logs.sh" EXIT + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + export BEAKER_set=nodepool-xenial + export BEAKER_debug=yes + export BEAKER_color=no + # deploy puppet4 on experimental beaker jobs + # https://tickets.puppetlabs.com/browse/BKR-821 + if [ "ubuntu-xenial" == "ubuntu-xenial" ]; then + export PUPPET_INSTALL_TYPE=agent + export PUPPET_MAJ_VERSION=4 + fi + $GEM_HOME/bin/bundle exec rspec spec/acceptance + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-infra-spec-helper-unit-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-infra-spec-helper-unit-centos-7/run.yaml new file mode 100644 index 00000000..46fba85f --- /dev/null +++ b/playbooks/legacy/puppet-openstack-infra-spec-helper-unit-centos-7/run.yaml @@ -0,0 +1,42 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-infra-spec-helper-unit-centos-7 + from old job gate-puppet-openstack-infra-spec-helper-unit-centos-7 + tasks: + + - shell: + cmd: | + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org openstack-infra/puppet-openstack_infra_spec_helper + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd openstack-infra/puppet-openstack_infra_spec_helper + ./run_unit_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-infra-spec-helper-unit-ubuntu-trusty/run.yaml b/playbooks/legacy/puppet-openstack-infra-spec-helper-unit-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..02c67d42 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-infra-spec-helper-unit-ubuntu-trusty/run.yaml @@ -0,0 +1,42 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-infra-spec-helper-unit-ubuntu-trusty + from old job gate-puppet-openstack-infra-spec-helper-unit-ubuntu-trusty + tasks: + + - shell: + cmd: | + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org openstack-infra/puppet-openstack_infra_spec_helper + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd openstack-infra/puppet-openstack_infra_spec_helper + ./run_unit_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-infra-spec-helper-unit/run.yaml b/playbooks/legacy/puppet-openstack-infra-spec-helper-unit/run.yaml new file mode 100644 index 00000000..696529b0 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-infra-spec-helper-unit/run.yaml @@ -0,0 +1,42 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-infra-spec-helper-unit from old + job gate-puppet-openstack-infra-spec-helper-unit-ubuntu-xenial + tasks: + + - shell: + cmd: | + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org openstack-infra/puppet-openstack_infra_spec_helper + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd openstack-infra/puppet-openstack_infra_spec_helper + ./run_unit_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest-centos-7/post.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest-centos-7/run.yaml new file mode 100644 index 00000000..6e50772e --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest-centos-7/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-integration-4-scenario001-tempest-centos-7 + from old job gate-puppet-openstack-integration-4-scenario001-tempest-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + trap "./copy_logs.sh" EXIT + export PUPPET_MAJ_VERSION=4 + export SCENARIO=scenario001 + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest/post.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest/run.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest/run.yaml new file mode 100644 index 00000000..b4c226f7 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-integration-4-scenario001-tempest + from old job gate-puppet-openstack-integration-4-scenario001-tempest-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + trap "./copy_logs.sh" EXIT + export PUPPET_MAJ_VERSION=4 + export SCENARIO=scenario001 + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest-centos-7/post.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest-centos-7/run.yaml new file mode 100644 index 00000000..baba922f --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest-centos-7/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-integration-4-scenario002-tempest-centos-7 + from old job gate-puppet-openstack-integration-4-scenario002-tempest-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + trap "./copy_logs.sh" EXIT + export PUPPET_MAJ_VERSION=4 + export SCENARIO=scenario002 + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest/post.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest/run.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest/run.yaml new file mode 100644 index 00000000..b44e9c84 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-integration-4-scenario002-tempest + from old job gate-puppet-openstack-integration-4-scenario002-tempest-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + trap "./copy_logs.sh" EXIT + export PUPPET_MAJ_VERSION=4 + export SCENARIO=scenario002 + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest-centos-7/post.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest-centos-7/run.yaml new file mode 100644 index 00000000..7cda3797 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest-centos-7/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-integration-4-scenario003-tempest-centos-7 + from old job gate-puppet-openstack-integration-4-scenario003-tempest-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + trap "./copy_logs.sh" EXIT + export PUPPET_MAJ_VERSION=4 + export SCENARIO=scenario003 + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest/post.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest/run.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest/run.yaml new file mode 100644 index 00000000..c4799b0a --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-integration-4-scenario003-tempest + from old job gate-puppet-openstack-integration-4-scenario003-tempest-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + trap "./copy_logs.sh" EXIT + export PUPPET_MAJ_VERSION=4 + export SCENARIO=scenario003 + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest-centos-7/post.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest-centos-7/run.yaml new file mode 100644 index 00000000..a22a1ee5 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest-centos-7/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-integration-4-scenario004-tempest-centos-7 + from old job gate-puppet-openstack-integration-4-scenario004-tempest-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + trap "./copy_logs.sh" EXIT + export PUPPET_MAJ_VERSION=4 + export SCENARIO=scenario004 + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest/post.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest/run.yaml b/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest/run.yaml new file mode 100644 index 00000000..463fd132 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-integration-4-scenario004-tempest + from old job gate-puppet-openstack-integration-4-scenario004-tempest-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + trap "./copy_logs.sh" EXIT + export PUPPET_MAJ_VERSION=4 + export SCENARIO=scenario004 + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest-centos-7/post.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest-centos-7/run.yaml new file mode 100644 index 00000000..edd4dd72 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest-centos-7/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-integration-5-scenario001-tempest-centos-7 + from old job gate-puppet-openstack-integration-5-scenario001-tempest-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + trap "./copy_logs.sh" EXIT + export PUPPET_MAJ_VERSION=5 + export SCENARIO=scenario001 + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest/post.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest/run.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest/run.yaml new file mode 100644 index 00000000..32bcf67d --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-integration-5-scenario001-tempest + from old job gate-puppet-openstack-integration-5-scenario001-tempest-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + trap "./copy_logs.sh" EXIT + export PUPPET_MAJ_VERSION=5 + export SCENARIO=scenario001 + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest-centos-7/post.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest-centos-7/run.yaml new file mode 100644 index 00000000..894b44a2 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest-centos-7/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-integration-5-scenario002-tempest-centos-7 + from old job gate-puppet-openstack-integration-5-scenario002-tempest-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + trap "./copy_logs.sh" EXIT + export PUPPET_MAJ_VERSION=5 + export SCENARIO=scenario002 + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest/post.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest/run.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest/run.yaml new file mode 100644 index 00000000..27db8dbc --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-integration-5-scenario002-tempest + from old job gate-puppet-openstack-integration-5-scenario002-tempest-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + trap "./copy_logs.sh" EXIT + export PUPPET_MAJ_VERSION=5 + export SCENARIO=scenario002 + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest-centos-7/post.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest-centos-7/run.yaml new file mode 100644 index 00000000..d7553e28 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest-centos-7/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-integration-5-scenario003-tempest-centos-7 + from old job gate-puppet-openstack-integration-5-scenario003-tempest-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + trap "./copy_logs.sh" EXIT + export PUPPET_MAJ_VERSION=5 + export SCENARIO=scenario003 + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest/post.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest/run.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest/run.yaml new file mode 100644 index 00000000..0f6514a4 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-integration-5-scenario003-tempest + from old job gate-puppet-openstack-integration-5-scenario003-tempest-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + trap "./copy_logs.sh" EXIT + export PUPPET_MAJ_VERSION=5 + export SCENARIO=scenario003 + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest-centos-7/post.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest-centos-7/run.yaml new file mode 100644 index 00000000..8a851e21 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest-centos-7/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-integration-5-scenario004-tempest-centos-7 + from old job gate-puppet-openstack-integration-5-scenario004-tempest-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + trap "./copy_logs.sh" EXIT + export PUPPET_MAJ_VERSION=5 + export SCENARIO=scenario004 + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest/post.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest/run.yaml b/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest/run.yaml new file mode 100644 index 00000000..c5445062 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-integration-5-scenario004-tempest + from old job gate-puppet-openstack-integration-5-scenario004-tempest-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd puppet-openstack-integration + trap "./copy_logs.sh" EXIT + export PUPPET_MAJ_VERSION=5 + export SCENARIO=scenario004 + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + ./run_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-libraries-puppet-beaker-rspec-centos-7/post.yaml b/playbooks/legacy/puppet-openstack-libraries-puppet-beaker-rspec-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-libraries-puppet-beaker-rspec-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstack-libraries-puppet-beaker-rspec-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-libraries-puppet-beaker-rspec-centos-7/run.yaml new file mode 100644 index 00000000..8e14a470 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-libraries-puppet-beaker-rspec-centos-7/run.yaml @@ -0,0 +1,93 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-libraries-puppet-beaker-rspec-centos-7 + from old job gate-puppet-openstack-libraries-puppet-beaker-rspec-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address 127.0.0.1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address ::1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + mkdir -p .ssh + ssh-keygen -f ~/.ssh/id_rsa -b 2048 -P "" + sudo mkdir -p /root/.ssh + cat ~/.ssh/id_rsa.pub | sudo tee -a /root/.ssh/authorized_keys + if [ -f /usr/bin/yum ]; then + sudo systemctl reload sshd + elif [ -f /usr/bin/apt-get ]; then + sudo service ssh restart + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd $ZUUL_PROJECT + trap "../../puppet-openstack-integration/copy_logs.sh" EXIT + ./run_beaker_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-libraries-puppet-lint-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-libraries-puppet-lint-centos-7/run.yaml new file mode 100644 index 00000000..2a5112a1 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-libraries-puppet-lint-centos-7/run.yaml @@ -0,0 +1,42 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-libraries-puppet-lint-centos-7 from + old job gate-puppet-openstack-libraries-puppet-lint-centos-7 + tasks: + + - shell: + cmd: | + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd $ZUUL_PROJECT + ./run_lint_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-libraries-puppet-syntax-3-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-libraries-puppet-syntax-3-centos-7/run.yaml new file mode 100644 index 00000000..51443a90 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-libraries-puppet-syntax-3-centos-7/run.yaml @@ -0,0 +1,43 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-libraries-puppet-syntax-3-legacy-centos-7 + from old job gate-puppet-openstack-libraries-puppet-syntax-3-legacy-centos-7 + tasks: + + - shell: + cmd: | + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd $ZUUL_PROJECT + export PUPPET_VERSION="3" + ./run_syntax_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-libraries-puppet-syntax-4-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-libraries-puppet-syntax-4-centos-7/run.yaml new file mode 100644 index 00000000..4af27271 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-libraries-puppet-syntax-4-centos-7/run.yaml @@ -0,0 +1,43 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-libraries-puppet-syntax-4-centos-7 + from old job gate-puppet-openstack-libraries-puppet-syntax-4-centos-7 + tasks: + + - shell: + cmd: | + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd $ZUUL_PROJECT + export PUPPET_VERSION="4" + ./run_syntax_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstack-libraries-puppet-unit-centos-7/run.yaml b/playbooks/legacy/puppet-openstack-libraries-puppet-unit-centos-7/run.yaml new file mode 100644 index 00000000..e0b18db9 --- /dev/null +++ b/playbooks/legacy/puppet-openstack-libraries-puppet-unit-centos-7/run.yaml @@ -0,0 +1,42 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstack-libraries-puppet-unit-centos-7 from + old job gate-puppet-openstack-libraries-puppet-unit-centos-7 + tasks: + + - shell: + cmd: | + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd $ZUUL_PROJECT + ./run_unit_tests.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-centos-7/post.yaml b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-centos-7/run.yaml b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-centos-7/run.yaml new file mode 100644 index 00000000..3b309177 --- /dev/null +++ b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-centos-7/run.yaml @@ -0,0 +1,123 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstackci-puppet-beaker-rspec-centos-7 from + old job gate-puppet-openstackci-puppet-beaker-rspec-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address 127.0.0.1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address ::1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + mkdir -p .ssh + ssh-keygen -f ~/.ssh/id_rsa -b 2048 -P "" + sudo mkdir -p /root/.ssh + cat ~/.ssh/id_rsa.pub | sudo tee -a /root/.ssh/authorized_keys + if [ -f /usr/bin/yum ]; then + sudo systemctl reload sshd + elif [ -f /usr/bin/apt-get ]; then + sudo service ssh restart + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + trap "puppet-openstack-integration/copy_logs.sh" EXIT + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + export BEAKER_set=nodepool-centos7 + export BEAKER_debug=yes + export BEAKER_color=no + # deploy puppet4 on experimental beaker jobs + # https://tickets.puppetlabs.com/browse/BKR-821 + if [ "centos-7" == "ubuntu-xenial" ]; then + export PUPPET_INSTALL_TYPE=agent + export PUPPET_MAJ_VERSION=4 + fi + $GEM_HOME/bin/bundle exec rspec spec/acceptance + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty/post.yaml b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty/run.yaml b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..eb843e97 --- /dev/null +++ b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty/run.yaml @@ -0,0 +1,123 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty + from old job gate-puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address 127.0.0.1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address ::1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + mkdir -p .ssh + ssh-keygen -f ~/.ssh/id_rsa -b 2048 -P "" + sudo mkdir -p /root/.ssh + cat ~/.ssh/id_rsa.pub | sudo tee -a /root/.ssh/authorized_keys + if [ -f /usr/bin/yum ]; then + sudo systemctl reload sshd + elif [ -f /usr/bin/apt-get ]; then + sudo service ssh restart + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + trap "puppet-openstack-integration/copy_logs.sh" EXIT + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + export BEAKER_set=nodepool-trusty + export BEAKER_debug=yes + export BEAKER_color=no + # deploy puppet4 on experimental beaker jobs + # https://tickets.puppetlabs.com/browse/BKR-821 + if [ "ubuntu-trusty" == "ubuntu-xenial" ]; then + export PUPPET_INSTALL_TYPE=agent + export PUPPET_MAJ_VERSION=4 + fi + $GEM_HOME/bin/bundle exec rspec spec/acceptance + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec/post.yaml b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec/run.yaml b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec/run.yaml new file mode 100644 index 00000000..427fa495 --- /dev/null +++ b/playbooks/legacy/puppet-openstackci-puppet-beaker-rspec/run.yaml @@ -0,0 +1,123 @@ +- hosts: all + name: Autoconverted job legacy-puppet-openstackci-puppet-beaker-rspec from old job + gate-puppet-openstackci-puppet-beaker-rspec-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ZUUL_BRANCH_REAL=${ZUUL_BRANCH:-master} + # Workaround for puppet-ceph, where we need to checkout + # puppet-openstack-integration from stable/pike when working on + # stable/jewel. + # Ceph Jewel works with Newton to Pike + if [[ "$ZUUL_BRANCH" == "stable/jewel" ]]; then + ZUUL_BRANCH_REAL='stable/pike' + fi + export ZUUL_REF=${ZUUL_REF:-None} + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/puppet-openstack-integration + dest: puppet-openstack-integration + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + --zuul-branch $ZUUL_BRANCH_REAL \ + git://git.openstack.org openstack/puppet-openstack-integration + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address 127.0.0.1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + echo "" | sudo tee -a /etc/ssh/sshd_config + echo "Match address ::1" | sudo tee -a /etc/ssh/sshd_config + echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config + mkdir -p .ssh + ssh-keygen -f ~/.ssh/id_rsa -b 2048 -P "" + sudo mkdir -p /root/.ssh + cat ~/.ssh/id_rsa.pub | sudo tee -a /root/.ssh/authorized_keys + if [ -f /usr/bin/yum ]; then + sudo systemctl reload sshd + elif [ -f /usr/bin/apt-get ]; then + sudo service ssh restart + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + trap "puppet-openstack-integration/copy_logs.sh" EXIT + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + export BEAKER_set=nodepool-xenial + export BEAKER_debug=yes + export BEAKER_color=no + # deploy puppet4 on experimental beaker jobs + # https://tickets.puppetlabs.com/browse/BKR-821 + if [ "ubuntu-xenial" == "ubuntu-xenial" ]; then + export PUPPET_INSTALL_TYPE=agent + export PUPPET_MAJ_VERSION=4 + fi + $GEM_HOME/bin/bundle exec rspec spec/acceptance + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-storyboard-forge-upload/run.yaml b/playbooks/legacy/puppet-storyboard-forge-upload/run.yaml new file mode 100644 index 00000000..2f07989b --- /dev/null +++ b/playbooks/legacy/puppet-storyboard-forge-upload/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-puppet-storyboard-forge-upload from old job puppet-storyboard-forge-upload + tasks: + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat > Rakefile << EOF + require 'puppet_blacksmith/rake_tasks' + EOF + TAG=${ZUUL_REF:10} + sed -i -e 's/ "version":.*/ "version": "'$TAG'",/' metadata.json + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install --no-ri --no-rdoc puppetlabs_spec_helper puppet-blacksmith + rake module:push + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-syntax-3-centos-7/run.yaml b/playbooks/legacy/puppet-syntax-3-centos-7/run.yaml new file mode 100644 index 00000000..172e807f --- /dev/null +++ b/playbooks/legacy/puppet-syntax-3-centos-7/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-syntax-3-legacy-centos-7 from old job gate-{name}-puppet-syntax-3-legacy-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + export PUPPET_GEM_VERSION='~> 3' + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + # FUTURE_PARSER=yes is only supported by Puppet 3.x + if [ "3" -lt "4" ]; then + export FUTURE_PARSER=yes + fi + $GEM_HOME/bin/bundle exec rake syntax + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-syntax-3/run.yaml b/playbooks/legacy/puppet-syntax-3/run.yaml new file mode 100644 index 00000000..5993a550 --- /dev/null +++ b/playbooks/legacy/puppet-syntax-3/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-syntax-3 from old job gate-{name}-puppet-syntax-3-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + export PUPPET_GEM_VERSION='~> 3' + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + # FUTURE_PARSER=yes is only supported by Puppet 3.x + if [ "3" -lt "4" ]; then + export FUTURE_PARSER=yes + fi + $GEM_HOME/bin/bundle exec rake syntax + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-syntax-4-centos-7/run.yaml b/playbooks/legacy/puppet-syntax-4-centos-7/run.yaml new file mode 100644 index 00000000..3b5fe6ed --- /dev/null +++ b/playbooks/legacy/puppet-syntax-4-centos-7/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-puppet-syntax-4-centos-7 from old job gate-{name}-puppet-syntax-4-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + export PUPPET_GEM_VERSION='~> 4' + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + # FUTURE_PARSER=yes is only supported by Puppet 3.x + if [ "4" -lt "4" ]; then + export FUTURE_PARSER=yes + fi + $GEM_HOME/bin/bundle exec rake syntax + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-tripleo-puppet-unit-4.8-centos-7/run.yaml b/playbooks/legacy/puppet-tripleo-puppet-unit-4.8-centos-7/run.yaml new file mode 100644 index 00000000..0d9d20db --- /dev/null +++ b/playbooks/legacy/puppet-tripleo-puppet-unit-4.8-centos-7/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-puppet-tripleo-puppet-unit-4.8-centos-7 from old + job gate-puppet-tripleo-puppet-unit-4.8-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ "4.8" != "latest" ]; then + export PUPPET_GEM_VERSION='~> 4.8.0' + fi + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-tripleo-puppet-unit-latest-centos-7/run.yaml b/playbooks/legacy/puppet-tripleo-puppet-unit-latest-centos-7/run.yaml new file mode 100644 index 00000000..5fff4a2b --- /dev/null +++ b/playbooks/legacy/puppet-tripleo-puppet-unit-latest-centos-7/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-puppet-tripleo-puppet-unit-latest-centos-7 from old + job gate-puppet-tripleo-puppet-unit-latest-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ "latest" != "latest" ]; then + export PUPPET_GEM_VERSION='~> latest.0' + fi + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-unit-3.6-centos-7/run.yaml b/playbooks/legacy/puppet-unit-3.6-centos-7/run.yaml new file mode 100644 index 00000000..a3f2f584 --- /dev/null +++ b/playbooks/legacy/puppet-unit-3.6-centos-7/run.yaml @@ -0,0 +1,74 @@ +- hosts: all + name: Autoconverted job legacy-puppet-unit-3.6-legacy-centos-7 from old job gate-{name}-puppet-unit-3.6-legacy-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ "3.6" != "latest" ]; then + export PUPPET_GEM_VERSION='~> 3.6.0' + fi + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-unit-3.8-centos-7/run.yaml b/playbooks/legacy/puppet-unit-3.8-centos-7/run.yaml new file mode 100644 index 00000000..e23a52af --- /dev/null +++ b/playbooks/legacy/puppet-unit-3.8-centos-7/run.yaml @@ -0,0 +1,74 @@ +- hosts: all + name: Autoconverted job legacy-puppet-unit-3.8-legacy-centos-7 from old job gate-{name}-puppet-unit-3.8-legacy-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ "3.8" != "latest" ]; then + export PUPPET_GEM_VERSION='~> 3.8.0' + fi + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-unit-4.8-centos-7/run.yaml b/playbooks/legacy/puppet-unit-4.8-centos-7/run.yaml new file mode 100644 index 00000000..9bb0135c --- /dev/null +++ b/playbooks/legacy/puppet-unit-4.8-centos-7/run.yaml @@ -0,0 +1,74 @@ +- hosts: all + name: Autoconverted job legacy-puppet-unit-4.8-centos-7 from old job gate-{name}-puppet-unit-4.8-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ "4.8" != "latest" ]; then + export PUPPET_GEM_VERSION='~> 4.8.0' + fi + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/puppet-unit-latest-centos-7/run.yaml b/playbooks/legacy/puppet-unit-latest-centos-7/run.yaml new file mode 100644 index 00000000..bf035ec5 --- /dev/null +++ b/playbooks/legacy/puppet-unit-latest-centos-7/run.yaml @@ -0,0 +1,74 @@ +- hosts: all + name: Autoconverted job legacy-puppet-unit-latest-centos-7 from old job gate-{name}-puppet-unit-latest-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ "latest" != "latest" ]; then + export PUPPET_GEM_VERSION='~> latest.0' + fi + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + $GEM_HOME/bin/bundle exec rake spec SPEC_OPTS='--format documentation' + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/pyeclib-python35/post.yaml b/playbooks/legacy/pyeclib-python35/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/pyeclib-python35/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/pyeclib-python35/run.yaml b/playbooks/legacy/pyeclib-python35/run.yaml new file mode 100644 index 00000000..c744fd75 --- /dev/null +++ b/playbooks/legacy/pyeclib-python35/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-pyeclib-python35 from old job gate-pyeclib-python35 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/pyeclib-tox-py27-centos-7/post.yaml b/playbooks/legacy/pyeclib-tox-py27-centos-7/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/pyeclib-tox-py27-centos-7/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/pyeclib-tox-py27-centos-7/run.yaml b/playbooks/legacy/pyeclib-tox-py27-centos-7/run.yaml new file mode 100644 index 00000000..7fc79715 --- /dev/null +++ b/playbooks/legacy/pyeclib-tox-py27-centos-7/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-pyeclib-tox-py27-centos-7 from old job gate-pyeclib-tox-py27-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/pypi-both-upload/run.yaml b/playbooks/legacy/pypi-both-upload/run.yaml new file mode 100644 index 00000000..bbdbc40e --- /dev/null +++ b/playbooks/legacy/pypi-both-upload/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-pypi-both-upload from old job {name}-pypi-both-upload + tasks: + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + # Note we upload the wheel first because pip prefers wheels + # and there is a mirroring issue where sometimes the first + # artifact uploaded is the only one you get. Since pip prefers + # wheels it is best to make the wheel the one we get. + /usr/local/jenkins/slave_scripts/pypi-wheel-upload.sh $ZUUL_SHORT_PROJECT_NAME tarballs.openstack.org + /usr/local/jenkins/slave_scripts/pypi-tarball-upload.sh $ZUUL_SHORT_PROJECT_NAME tarballs.openstack.org + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python-barbicanclient-devstack/post.yaml b/playbooks/legacy/python-barbicanclient-devstack/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/python-barbicanclient-devstack/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/python-barbicanclient-devstack/run.yaml b/playbooks/legacy/python-barbicanclient-devstack/run.yaml new file mode 100644 index 00000000..01fac9d2 --- /dev/null +++ b/playbooks/legacy/python-barbicanclient-devstack/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-python-barbicanclient-devstack from old job gate-python-barbicanclient-devstack-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export ENABLED_SERVICES=barbican,tempest,keystone + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + + function gate_hook { + $BASE/new/barbican/devstack/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/python-barbicanclient/functionaltests + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python-barbicanclient-dsvm/post.yaml b/playbooks/legacy/python-barbicanclient-dsvm/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/python-barbicanclient-dsvm/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/python-barbicanclient-dsvm/run.yaml b/playbooks/legacy/python-barbicanclient-dsvm/run.yaml new file mode 100644 index 00000000..8b7d18d7 --- /dev/null +++ b/playbooks/legacy/python-barbicanclient-dsvm/run.yaml @@ -0,0 +1,56 @@ +- hosts: all + name: Autoconverted job legacy-python-barbicanclient-dsvm from old job gate-python-barbicanclient-dsvm-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin barbican git://git.openstack.org/openstack/barbican + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export OVERRIDE_ENABLED_SERVICES=tempest,rabbit,mysql,key + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS" + + function gate_hook { + $BASE/new/barbican/devstack/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/python-barbicanclient/functionaltests + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python-cinderclient-pylint/post.yaml b/playbooks/legacy/python-cinderclient-pylint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/python-cinderclient-pylint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/python-cinderclient-pylint/run.yaml b/playbooks/legacy/python-cinderclient-pylint/run.yaml new file mode 100644 index 00000000..282ea287 --- /dev/null +++ b/playbooks/legacy/python-cinderclient-pylint/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-python-cinderclient-pylint from old job gate-python-cinderclient-pylint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python-freezerclient-pylint/post.yaml b/playbooks/legacy/python-freezerclient-pylint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/python-freezerclient-pylint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/python-freezerclient-pylint/run.yaml b/playbooks/legacy/python-freezerclient-pylint/run.yaml new file mode 100644 index 00000000..0d6310e2 --- /dev/null +++ b/playbooks/legacy/python-freezerclient-pylint/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-python-freezerclient-pylint from old job gate-python-freezerclient-pylint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python-ironic-inspector-client-tox-func/post.yaml b/playbooks/legacy/python-ironic-inspector-client-tox-func/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/python-ironic-inspector-client-tox-func/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/python-ironic-inspector-client-tox-func/run.yaml b/playbooks/legacy/python-ironic-inspector-client-tox-func/run.yaml new file mode 100644 index 00000000..2087c0bf --- /dev/null +++ b/playbooks/legacy/python-ironic-inspector-client-tox-func/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-python-ironic-inspector-client-tox-func from old + job gate-python-ironic-inspector-client-tox-func-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh func + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python-mistralclient-devstack-dsvm/post.yaml b/playbooks/legacy/python-mistralclient-devstack-dsvm/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/python-mistralclient-devstack-dsvm/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/python-mistralclient-devstack-dsvm/run.yaml b/playbooks/legacy/python-mistralclient-devstack-dsvm/run.yaml new file mode 100644 index 00000000..5200a697 --- /dev/null +++ b/playbooks/legacy/python-mistralclient-devstack-dsvm/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-python-mistralclient-devstack-dsvm from old job gate-python-mistralclient-devstack-dsvm-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + + if [ "python-mistralclient" = "python-mistralclient" ] ; then + # This puts the repo in PROJECTS + export DEVSTACK_PROJECT_FROM_GIT="python-mistralclient" + else + export PROJECTS="openstack/python-mistralclient $PROJECTS" + fi + + export ENABLED_SERVICES=heat,h-api,h-api-cfn,h-api-cw,h-eng,tempest + export PROJECTS="openstack/heat $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + export PROJECTS="openstack/mistral-dashboard $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin mistral https://git.openstack.org/openstack/mistral" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + if [ "" == "-non-apache" ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"MISTRAL_USE_MOD_WSGI=False" + fi + + if [ "" == "-kombu" ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"MISTRAL_RPC_IMPLEMENTATION=kombu" + fi + + function post_test_hook { + cd /opt/stack/new/python-mistralclient/functionaltests + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python-openstacksdk-docs/post.yaml b/playbooks/legacy/python-openstacksdk-docs/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/python-openstacksdk-docs/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/python-openstacksdk-docs/run.yaml b/playbooks/legacy/python-openstacksdk-docs/run.yaml new file mode 100644 index 00000000..66e32f8e --- /dev/null +++ b/playbooks/legacy/python-openstacksdk-docs/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-python-openstacksdk-docs from old job python-openstacksdk-docs + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python-swiftclient-python36-fedora-26/post.yaml b/playbooks/legacy/python-swiftclient-python36-fedora-26/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/python-swiftclient-python36-fedora-26/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/python-swiftclient-python36-fedora-26/run.yaml b/playbooks/legacy/python-swiftclient-python36-fedora-26/run.yaml new file mode 100644 index 00000000..5d053090 --- /dev/null +++ b/playbooks/legacy/python-swiftclient-python36-fedora-26/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-python-swiftclient-python36-fedora-26 from old job + gate-python-swiftclient-python36-fedora-26-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py36 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python34/post.yaml b/playbooks/legacy/python34/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/python34/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/python34/run.yaml b/playbooks/legacy/python34/run.yaml new file mode 100644 index 00000000..7092a692 --- /dev/null +++ b/playbooks/legacy/python34/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-python34 from old job gate-{name}-python34 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py34 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/python35/post.yaml b/playbooks/legacy/python35/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/python35/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/python35/run.yaml b/playbooks/legacy/python35/run.yaml new file mode 100644 index 00000000..c1daa23f --- /dev/null +++ b/playbooks/legacy/python35/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-python35 from old job gate-{name}-python35-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/qinling-dsvm-tempest/post.yaml b/playbooks/legacy/qinling-dsvm-tempest/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/qinling-dsvm-tempest/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/qinling-dsvm-tempest/run.yaml b/playbooks/legacy/qinling-dsvm-tempest/run.yaml new file mode 100644 index 00000000..fff5df3b --- /dev/null +++ b/playbooks/legacy/qinling-dsvm-tempest/run.yaml @@ -0,0 +1,45 @@ +- hosts: all + name: Autoconverted job legacy-qinling-dsvm-tempest from old job gate-qinling-dsvm-tempest-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export PYTHONUNBUFFERED=True + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export KEEP_LOCALRC=1 + export DEVSTACK_PROJECT_FROM_GIT="python-qinlingclient" + export OVERRIDE_ENABLED_SERVICES=dstat,rabbit,mysql,key,tempest + export PROJECTS="openstack/qinling $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin qinling https://git.openstack.org/openstack/qinling" + + function post_test_hook { + cd $BASE/new/qinling/qinling_tempest_plugin/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-certification-with-keystone-v3/post.yaml b/playbooks/legacy/rally-dsvm-certification-with-keystone-v3/post.yaml new file mode 100644 index 00000000..72e84d15 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-certification-with-keystone-v3/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-certification-with-keystone-v3/run.yaml b/playbooks/legacy/rally-dsvm-certification-with-keystone-v3/run.yaml new file mode 100644 index 00000000..b45a7a90 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-certification-with-keystone-v3/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-certification-with-keystone-v3 from old + job gate-rally-dsvm-certification-with-keystone-v3-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + #/bin/bash -xe + + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export IDENTITY_VERSION=v3 + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + if [ $IDENTITY_VERSION == "v3" ]; then + DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + export DEVSTACK_LOCAL_CONFIG + + function post_test_hook { + $BASE/new/rally/tests/ci/hooks/certification_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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-cinder/post.yaml b/playbooks/legacy/rally-dsvm-cinder/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-cinder/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-cinder/run.yaml b/playbooks/legacy/rally-dsvm-cinder/run.yaml new file mode 100644 index 00000000..61c0c135 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-cinder/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-cinder from old job gate-rally-dsvm-cinder-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-cli/post.yaml b/playbooks/legacy/rally-dsvm-cli/post.yaml new file mode 100644 index 00000000..c40e62f5 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-cli/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-cli-output-files/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-cli/run.yaml b/playbooks/legacy/rally-dsvm-cli/run.yaml new file mode 100644 index 00000000..51f710cc --- /dev/null +++ b/playbooks/legacy/rally-dsvm-cli/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-cli from old job gate-rally-dsvm-cli + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin rally git://git.openstack.org/openstack/rally + CINDER_ENABLE_V1_API=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + #/bin/bash -xe + + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + + function post_test_hook { + cd $BASE/new/rally + sudo -H -u stack tox -ecli -v + EXIT_CODE=$? + cp -r $BASE/new/rally/rally-cli-output-files $WORKSPACE/ + return $EXIT_CODE + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-cue-rabbitmq/post.yaml b/playbooks/legacy/rally-dsvm-cue-rabbitmq/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-cue-rabbitmq/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-cue-rabbitmq/run.yaml b/playbooks/legacy/rally-dsvm-cue-rabbitmq/run.yaml new file mode 100644 index 00000000..0cabe63c --- /dev/null +++ b/playbooks/legacy/rally-dsvm-cue-rabbitmq/run.yaml @@ -0,0 +1,69 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-cue-rabbitmq from old job gate-rally-dsvm-cue-rabbitmq-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin rally git://git.openstack.org/openstack/rally + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + export PROJECTS="openstack/cue openstack/python-cueclient openstack/cue-dashboard $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export RALLY_SCENARIO=rabbitmq-scenarios-gate + + export IDENTITY_API_VERSION=3 + + function pre_test_hook { + # Install cue-devstack integration + cd /opt/stack/new/cue/tests + ./pre_test_hook.sh rabbitmq + } + export -f pre_test_hook + function gate_hook { + cd /opt/stack/new/cue/tests + ./gate_hook.sh rabbitmq + } + export -f gate_hook + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-designate-designate-pdns4/post.yaml b/playbooks/legacy/rally-dsvm-designate-designate-pdns4/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-designate-designate-pdns4/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-designate-designate-pdns4/run.yaml b/playbooks/legacy/rally-dsvm-designate-designate-pdns4/run.yaml new file mode 100644 index 00000000..2fb89a0c --- /dev/null +++ b/playbooks/legacy/rally-dsvm-designate-designate-pdns4/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-designate-designate-pdns4 from old job + gate-rally-dsvm-designate-designate-pdns4-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + DESIGNATE_SERVICE_PORT_DNS=5322 + DESIGNATE_BACKEND_DRIVER=pdns4 + enable_plugin rally git://git.openstack.org/openstack/rally + enable_plugin designate git://git.openstack.org/openstack/designate + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + export PROJECTS="openstack/designate $PROJECTS" + export PROJECTS="openstack/python-designateclient $PROJECTS" + export PROJECTS="openstack/designate-dashboard $PROJECTS" + + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-designate + + export IDENTITY_API_VERSION=3 + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-designate-rally-pdns4/post.yaml b/playbooks/legacy/rally-dsvm-designate-rally-pdns4/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-designate-rally-pdns4/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-designate-rally-pdns4/run.yaml b/playbooks/legacy/rally-dsvm-designate-rally-pdns4/run.yaml new file mode 100644 index 00000000..280d5f10 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-designate-rally-pdns4/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-designate-rally-pdns4 from old job gate-rally-dsvm-designate-rally-pdns4-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + DESIGNATE_SERVICE_PORT_DNS=5322 + DESIGNATE_BACKEND_DRIVER=pdns4 + enable_plugin rally git://git.openstack.org/openstack/rally + enable_plugin designate git://git.openstack.org/openstack/designate + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + export PROJECTS="openstack/designate $PROJECTS" + export PROJECTS="openstack/python-designateclient $PROJECTS" + export PROJECTS="openstack/designate-dashboard $PROJECTS" + + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-designate + + export IDENTITY_API_VERSION=3 + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-fakevirt-ceilometer/post.yaml b/playbooks/legacy/rally-dsvm-fakevirt-ceilometer/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-fakevirt-ceilometer/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-fakevirt-ceilometer/run.yaml b/playbooks/legacy/rally-dsvm-fakevirt-ceilometer/run.yaml new file mode 100644 index 00000000..80e5963f --- /dev/null +++ b/playbooks/legacy/rally-dsvm-fakevirt-ceilometer/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-fakevirt-ceilometer from old job gate-rally-dsvm-fakevirt-ceilometer-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=10 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-fakevirt + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME-fakevirt + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-fakevirt-heat/post.yaml b/playbooks/legacy/rally-dsvm-fakevirt-heat/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-fakevirt-heat/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-fakevirt-heat/run.yaml b/playbooks/legacy/rally-dsvm-fakevirt-heat/run.yaml new file mode 100644 index 00000000..f255d8a2 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-fakevirt-heat/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-fakevirt-heat from old job gate-rally-dsvm-fakevirt-heat-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=10 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-fakevirt + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME-fakevirt + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-glance/post.yaml b/playbooks/legacy/rally-dsvm-glance/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-glance/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-glance/run.yaml b/playbooks/legacy/rally-dsvm-glance/run.yaml new file mode 100644 index 00000000..d5ebbf5c --- /dev/null +++ b/playbooks/legacy/rally-dsvm-glance/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-glance from old job gate-rally-dsvm-glance-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-ironic-rally/post.yaml b/playbooks/legacy/rally-dsvm-ironic-rally/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-ironic-rally/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-ironic-rally/run.yaml b/playbooks/legacy/rally-dsvm-ironic-rally/run.yaml new file mode 100644 index 00000000..77cd2480 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-ironic-rally/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-ironic-rally from old job gate-rally-dsvm-ironic-rally-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=0 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-ironic + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME-ironic + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-keystone-v2api-rally/post.yaml b/playbooks/legacy/rally-dsvm-keystone-v2api-rally/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-keystone-v2api-rally/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-keystone-v2api-rally/run.yaml b/playbooks/legacy/rally-dsvm-keystone-v2api-rally/run.yaml new file mode 100644 index 00000000..221d6222 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-keystone-v2api-rally/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-keystone-v2api-rally from old job gate-rally-dsvm-keystone-v2api-rally + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_SWIFT=0 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=1 + export RALLY_SCENARIO=rally-keystone-api-v2 + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally rally-keystone-api-v2 + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-keystone/post.yaml b/playbooks/legacy/rally-dsvm-keystone/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-keystone/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-keystone/run.yaml b/playbooks/legacy/rally-dsvm-keystone/run.yaml new file mode 100644 index 00000000..9f386cc3 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-keystone/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-keystone from old job gate-rally-dsvm-keystone-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-magnum-rally/post.yaml b/playbooks/legacy/rally-dsvm-magnum-rally/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-magnum-rally/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-magnum-rally/run.yaml b/playbooks/legacy/rally-dsvm-magnum-rally/run.yaml new file mode 100644 index 00000000..d764dc79 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-magnum-rally/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-magnum-rally from old job gate-rally-dsvm-magnum-rally-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=1 + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_SWIFT=0 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-magnum + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME-magnum + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/post.yaml b/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/run.yaml b/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/run.yaml new file mode 100644 index 00000000..d51dddba --- /dev/null +++ b/playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/run.yaml @@ -0,0 +1,78 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-manila-multibackend-no-ss from old job + gate-rally-dsvm-manila-multibackend-no-ss + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + enable_plugin rally git://git.openstack.org/openstack/rally + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Run only manila services, because only main manila functionality + # will be tested with 'dummy' share driver that does not use real + # storage back ends. Also, it will speed up devstack installation. + export OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit + + export IDENTITY_API_VERSION=3 + + export DEVSTACK_GATE_NEUTRON=1 + export RALLY_SCENARIO=rally-manila-no-ss + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Install manila-devstack integration + # 'dhss' means 'drivers handle share servers' + # 'driver' is codename of shar driver in manila + # that is used for proper configuration of storage backend. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh 0 dummy 'multibackend' + } + export -f pre_test_hook + + function post_test_hook { + source $BASE/new/manila/contrib/ci/common.sh + manila_wait_for_drivers_init /etc/manila/manila.conf + $BASE/new/rally/tests/ci/rally-gate.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-manila-multibackend/post.yaml b/playbooks/legacy/rally-dsvm-manila-multibackend/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-manila-multibackend/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-manila-multibackend/run.yaml b/playbooks/legacy/rally-dsvm-manila-multibackend/run.yaml new file mode 100644 index 00000000..b364868c --- /dev/null +++ b/playbooks/legacy/rally-dsvm-manila-multibackend/run.yaml @@ -0,0 +1,77 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-manila-multibackend from old job gate-rally-dsvm-manila-multibackend + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin manila git://git.openstack.org/openstack/manila + enable_plugin rally git://git.openstack.org/openstack/rally + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT="python-manilaclient" + + # Run only manila services, because only main manila functionality + # will be tested with 'dummy' share driver that does not use real + # storage back ends. Also, it will speed up devstack installation. + export OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit + + export IDENTITY_API_VERSION=3 + + export DEVSTACK_GATE_NEUTRON=1 + export RALLY_SCENARIO=rally-manila + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + # Install manila-devstack integration + # 'dhss' means 'drivers handle share servers' + # 'driver' is codename of shar driver in manila + # that is used for proper configuration of storage backend. + source $BASE/new/manila/contrib/ci/pre_test_hook.sh 1 dummy 'multibackend' + } + export -f pre_test_hook + + function post_test_hook { + source $BASE/new/manila/contrib/ci/common.sh + manila_wait_for_drivers_init /etc/manila/manila.conf + $BASE/new/rally/tests/ci/rally-gate.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-mistral-rally/post.yaml b/playbooks/legacy/rally-dsvm-mistral-rally/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-mistral-rally/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-mistral-rally/run.yaml b/playbooks/legacy/rally-dsvm-mistral-rally/run.yaml new file mode 100644 index 00000000..c710d3ef --- /dev/null +++ b/playbooks/legacy/rally-dsvm-mistral-rally/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-mistral-rally from old job gate-rally-dsvm-mistral-rally-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin rally git://git.openstack.org/openstack/rally + enable_plugin mistral https://git.openstack.org/openstack/mistral + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + export PROJECTS="openstack/mistral-dashboard $PROJECTS" + export PROJECTS="openstack/python-mistralclient $PROJECTS" + + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-mistral + + export IDENTITY_API_VERSION=3 + + export ENABLED_SERVICES=h-api,h-api-cfn,h-api-cw,h-eng,heat, + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-mistral-task/post.yaml b/playbooks/legacy/rally-dsvm-mistral-task/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-mistral-task/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-mistral-task/run.yaml b/playbooks/legacy/rally-dsvm-mistral-task/run.yaml new file mode 100644 index 00000000..8d0adf2b --- /dev/null +++ b/playbooks/legacy/rally-dsvm-mistral-task/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-mistral-task from old job gate-rally-dsvm-mistral-task-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin rally git://git.openstack.org/openstack/rally + enable_plugin mistral https://git.openstack.org/openstack/mistral + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + export PROJECTS="openstack/mistral-dashboard $PROJECTS" + export PROJECTS="openstack/python-mistralclient $PROJECTS" + + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-mistral + + export IDENTITY_API_VERSION=3 + + export ENABLED_SERVICES=h-api,h-api-cfn,h-api-cw,h-eng,heat, + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-monasca-rally/post.yaml b/playbooks/legacy/rally-dsvm-monasca-rally/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-monasca-rally/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-monasca-rally/run.yaml b/playbooks/legacy/rally-dsvm-monasca-rally/run.yaml new file mode 100644 index 00000000..074f0b6a --- /dev/null +++ b/playbooks/legacy/rally-dsvm-monasca-rally/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-monasca-rally from old job gate-rally-dsvm-monasca-rally-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PYTHONUNBUFFERED=true + services=key,mysql,rabbit,n-api,n-cond,n-cpu,n-crt,n-sch,g-api,g-reg,q-agt,q-dhcp,q-l3,q-meta,q-svc + export OVERRIDE_ENABLED_SERVICES=$services + + export PROJECTS="openstack/rally $PROJECTS" + export PROJECTS="openstack/monasca-api $PROJECTS" + export PROJECTS="openstack/monasca-persister $PROJECTS" + export PROJECTS="openstack/monasca-common $PROJECTS" + export PROJECTS="openstack/monasca-agent $PROJECTS" + export PROJECTS="openstack/monasca-notification $PROJECTS" + export PROJECTS="openstack/monasca-thresh $PROJECTS" + export PROJECTS="openstack/monasca-statsd $PROJECTS" + export PROJECTS="openstack/python-monascaclient $PROJECTS" + + export IDENTITY_API_VERSION=3 + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_EXERCISES=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-monasca + + export DEVSTACK_LOCAL_CONFIG="enable_plugin monasca-api git://git.openstack.org/openstack/monasca-api" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin rally git://git.openstack.org/openstack/rally" + + function pre_test_hook { + source $BASE/new/monasca-api/devstack/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-murano-rally/post.yaml b/playbooks/legacy/rally-dsvm-murano-rally/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-murano-rally/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-murano-rally/run.yaml b/playbooks/legacy/rally-dsvm-murano-rally/run.yaml new file mode 100644 index 00000000..077890fe --- /dev/null +++ b/playbooks/legacy/rally-dsvm-murano-rally/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-murano-rally from old job gate-rally-dsvm-murano-rally-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin rally git://git.openstack.org/openstack/rally + enable_plugin heat git://git.openstack.org/openstack/heat + enable_plugin murano git://git.openstack.org/openstack/murano + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + export PROJECTS="openstack/murano $PROJECTS" + export PROJECTS="openstack/murano-dashboard $PROJECTS" + export PROJECTS="openstack/python-muranoclient $PROJECTS" + export PROJECTS="openstack/heat $PROJECTS" + export PROJECTS="openstack/python-heatclient $PROJECTS" + + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-murano + + export IDENTITY_API_VERSION=3 + + export ENABLED_SERVICES + + function pre_test_hook { + # Install murano-devstack integration + cd /opt/stack/new/murano/functionaltests + ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-murano-task/post.yaml b/playbooks/legacy/rally-dsvm-murano-task/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-murano-task/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-murano-task/run.yaml b/playbooks/legacy/rally-dsvm-murano-task/run.yaml new file mode 100644 index 00000000..c8661c83 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-murano-task/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-murano-task from old job gate-rally-dsvm-murano-task-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin rally git://git.openstack.org/openstack/rally + enable_plugin heat git://git.openstack.org/openstack/heat + enable_plugin murano git://git.openstack.org/openstack/murano + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + export PROJECTS="openstack/murano $PROJECTS" + export PROJECTS="openstack/murano-dashboard $PROJECTS" + export PROJECTS="openstack/python-muranoclient $PROJECTS" + export PROJECTS="openstack/heat $PROJECTS" + export PROJECTS="openstack/python-heatclient $PROJECTS" + + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-murano + + export IDENTITY_API_VERSION=3 + + export ENABLED_SERVICES + + function pre_test_hook { + # Install murano-devstack integration + cd /opt/stack/new/murano/functionaltests + ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-networking-odl-carbon-snapshot/post.yaml b/playbooks/legacy/rally-dsvm-networking-odl-carbon-snapshot/post.yaml new file mode 100644 index 00000000..86dc5ca5 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-networking-odl-carbon-snapshot/post.yaml @@ -0,0 +1,106 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-networking-odl-carbon-snapshot/run.yaml b/playbooks/legacy/rally-dsvm-networking-odl-carbon-snapshot/run.yaml new file mode 100644 index 00000000..6ec253c6 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-networking-odl-carbon-snapshot/run.yaml @@ -0,0 +1,68 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-networking-odl-carbon-snapshot from old + job gate-rally-dsvm-networking-odl-carbon-snapshot + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-odl git://git.openstack.org/openstack/networking-odl + enable_plugin rally git://git.openstack.org/openstack/rally + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export RALLY_SCENARIO=odl + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/networking-odl $PROJECTS" + export PROJECTS="openstack/rally $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + # specify ODL release to use + export ODL_RELEASE_BASE=carbon-snapshot + + function pre_test_hook { + . $BASE/new/networking-odl/devstack/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-odl/devstack/devstackgaterc + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-networking-odl-nitrogen-snapshot/post.yaml b/playbooks/legacy/rally-dsvm-networking-odl-nitrogen-snapshot/post.yaml new file mode 100644 index 00000000..86dc5ca5 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-networking-odl-nitrogen-snapshot/post.yaml @@ -0,0 +1,106 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-networking-odl-nitrogen-snapshot/run.yaml b/playbooks/legacy/rally-dsvm-networking-odl-nitrogen-snapshot/run.yaml new file mode 100644 index 00000000..efd23b13 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-networking-odl-nitrogen-snapshot/run.yaml @@ -0,0 +1,68 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-networking-odl-nitrogen-snapshot from + old job gate-rally-dsvm-networking-odl-nitrogen-snapshot + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-odl git://git.openstack.org/openstack/networking-odl + enable_plugin rally git://git.openstack.org/openstack/rally + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export RALLY_SCENARIO=odl + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/networking-odl $PROJECTS" + export PROJECTS="openstack/rally $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + # specify ODL release to use + export ODL_RELEASE_BASE=nitrogen-snapshot + + function pre_test_hook { + . $BASE/new/networking-odl/devstack/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-odl/devstack/devstackgaterc + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-networking-ovn/post.yaml b/playbooks/legacy/rally-dsvm-networking-ovn/post.yaml new file mode 100644 index 00000000..86dc5ca5 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-networking-ovn/post.yaml @@ -0,0 +1,106 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-networking-ovn/run.yaml b/playbooks/legacy/rally-dsvm-networking-ovn/run.yaml new file mode 100644 index 00000000..e8aa4372 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-networking-ovn/run.yaml @@ -0,0 +1,57 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-networking-ovn from old job gate-rally-dsvm-networking-ovn + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-ovn git://git.openstack.org/openstack/networking-ovn + enable_plugin rally git://git.openstack.org/openstack/rally + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export RALLY_SCENARIO=ovn + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/networking-ovn $PROJECTS" + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-ovn/devstack/devstackgaterc + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-neutron-existing-users-rally/post.yaml b/playbooks/legacy/rally-dsvm-neutron-existing-users-rally/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-neutron-existing-users-rally/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-neutron-existing-users-rally/run.yaml b/playbooks/legacy/rally-dsvm-neutron-existing-users-rally/run.yaml new file mode 100644 index 00000000..5f2bc5bf --- /dev/null +++ b/playbooks/legacy/rally-dsvm-neutron-existing-users-rally/run.yaml @@ -0,0 +1,169 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-neutron-existing-users-rally from old + job gate-rally-dsvm-neutron-existing-users-rally + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=1 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-neutron-existing-users + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME-neutron-existing-users + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-neutron-extensions-rally/post.yaml b/playbooks/legacy/rally-dsvm-neutron-extensions-rally/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-neutron-extensions-rally/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-neutron-extensions-rally/run.yaml b/playbooks/legacy/rally-dsvm-neutron-extensions-rally/run.yaml new file mode 100644 index 00000000..f001e932 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-neutron-extensions-rally/run.yaml @@ -0,0 +1,169 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-neutron-extensions-rally from old job + gate-rally-dsvm-neutron-extensions-rally-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=1 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-neutron-extensions + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME-neutron-extensions + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-neutron-neutron/post.yaml b/playbooks/legacy/rally-dsvm-neutron-neutron/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-neutron-neutron/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-neutron-neutron/run.yaml b/playbooks/legacy/rally-dsvm-neutron-neutron/run.yaml new file mode 100644 index 00000000..7ba98e16 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-neutron-neutron/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-neutron-neutron from old job gate-rally-dsvm-neutron-neutron-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-neutron + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME-neutron + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-neutron-rally/post.yaml b/playbooks/legacy/rally-dsvm-neutron-rally/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-neutron-rally/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-neutron-rally/run.yaml b/playbooks/legacy/rally-dsvm-neutron-rally/run.yaml new file mode 100644 index 00000000..91886f7a --- /dev/null +++ b/playbooks/legacy/rally-dsvm-neutron-rally/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-neutron-rally from old job gate-rally-dsvm-neutron-rally-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-neutron + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME-neutron + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-neutron-telemetry/post.yaml b/playbooks/legacy/rally-dsvm-neutron-telemetry/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-neutron-telemetry/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-neutron-telemetry/run.yaml b/playbooks/legacy/rally-dsvm-neutron-telemetry/run.yaml new file mode 100644 index 00000000..6c4aa25f --- /dev/null +++ b/playbooks/legacy/rally-dsvm-neutron-telemetry/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-neutron-telemetry from old job gate-rally-dsvm-neutron-telemetry-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_TELEMETRY=1 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-neutron + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME-neutron + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-py35-cinder/post.yaml b/playbooks/legacy/rally-dsvm-py35-cinder/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-py35-cinder/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-py35-cinder/run.yaml b/playbooks/legacy/rally-dsvm-py35-cinder/run.yaml new file mode 100644 index 00000000..de6a46cb --- /dev/null +++ b/playbooks/legacy/rally-dsvm-py35-cinder/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-py35-cinder from old job gate-rally-dsvm-py35-cinder-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_SWIFT=0 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=True + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-py35-glance/post.yaml b/playbooks/legacy/rally-dsvm-py35-glance/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-py35-glance/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-py35-glance/run.yaml b/playbooks/legacy/rally-dsvm-py35-glance/run.yaml new file mode 100644 index 00000000..7b7b4c0d --- /dev/null +++ b/playbooks/legacy/rally-dsvm-py35-glance/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-py35-glance from old job gate-rally-dsvm-py35-glance-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_SWIFT=0 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=True + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-py35-neutron-neutron/post.yaml b/playbooks/legacy/rally-dsvm-py35-neutron-neutron/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-py35-neutron-neutron/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-py35-neutron-neutron/run.yaml b/playbooks/legacy/rally-dsvm-py35-neutron-neutron/run.yaml new file mode 100644 index 00000000..afe3f245 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-py35-neutron-neutron/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-py35-neutron-neutron from old job gate-rally-dsvm-py35-neutron-neutron-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=0 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=True + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-neutron + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME-neutron + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-py35-rally-nova/post.yaml b/playbooks/legacy/rally-dsvm-py35-rally-nova/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-py35-rally-nova/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-py35-rally-nova/run.yaml b/playbooks/legacy/rally-dsvm-py35-rally-nova/run.yaml new file mode 100644 index 00000000..70abb587 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-py35-rally-nova/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-py35-rally-nova from old job gate-rally-dsvm-py35-rally-nova-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=0 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=True + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=nova + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally nova + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-rally-cinder/post.yaml b/playbooks/legacy/rally-dsvm-rally-cinder/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-rally-cinder/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-rally-cinder/run.yaml b/playbooks/legacy/rally-dsvm-rally-cinder/run.yaml new file mode 100644 index 00000000..75f198f5 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-rally-cinder/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-rally-cinder from old job gate-rally-dsvm-rally-cinder + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=cinder + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally cinder + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-rally-heat/post.yaml b/playbooks/legacy/rally-dsvm-rally-heat/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-rally-heat/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-rally-heat/run.yaml b/playbooks/legacy/rally-dsvm-rally-heat/run.yaml new file mode 100644 index 00000000..24063dbe --- /dev/null +++ b/playbooks/legacy/rally-dsvm-rally-heat/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-rally-heat from old job gate-rally-dsvm-rally-heat-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=heat + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally heat + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-rally-nova/post.yaml b/playbooks/legacy/rally-dsvm-rally-nova/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-rally-nova/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-rally-nova/run.yaml b/playbooks/legacy/rally-dsvm-rally-nova/run.yaml new file mode 100644 index 00000000..b6f69a89 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-rally-nova/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-rally-nova from old job gate-rally-dsvm-rally-nova-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=nova + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally nova + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-rally/post.yaml b/playbooks/legacy/rally-dsvm-rally/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-rally/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-rally/run.yaml b/playbooks/legacy/rally-dsvm-rally/run.yaml new file mode 100644 index 00000000..b4d04f8f --- /dev/null +++ b/playbooks/legacy/rally-dsvm-rally/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-rally from old job gate-rally-dsvm-rally-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-senlin-rally/post.yaml b/playbooks/legacy/rally-dsvm-senlin-rally/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-senlin-rally/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-senlin-rally/run.yaml b/playbooks/legacy/rally-dsvm-senlin-rally/run.yaml new file mode 100644 index 00000000..22eac1ed --- /dev/null +++ b/playbooks/legacy/rally-dsvm-senlin-rally/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-senlin-rally from old job gate-rally-dsvm-senlin-rally-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=1 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=0 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-senlin + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME-senlin + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-senlin-senlin/post.yaml b/playbooks/legacy/rally-dsvm-senlin-senlin/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-senlin-senlin/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-senlin-senlin/run.yaml b/playbooks/legacy/rally-dsvm-senlin-senlin/run.yaml new file mode 100644 index 00000000..dfdd655c --- /dev/null +++ b/playbooks/legacy/rally-dsvm-senlin-senlin/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-senlin-senlin from old job gate-rally-dsvm-senlin-senlin-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=1 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=0 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-senlin + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME-senlin + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-verify-full-create-resources/post.yaml b/playbooks/legacy/rally-dsvm-verify-full-create-resources/post.yaml new file mode 100644 index 00000000..e257b8ea --- /dev/null +++ b/playbooks/legacy/rally-dsvm-verify-full-create-resources/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-verify/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-verify/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-verify-full-create-resources/run.yaml b/playbooks/legacy/rally-dsvm-verify-full-create-resources/run.yaml new file mode 100644 index 00000000..ac212116 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-verify-full-create-resources/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-verify-full-create-resources from old + job gate-rally-dsvm-verify-full-create-resources-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + #/bin/bash -xe + + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_CEILOMETER=1 + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_SAHARA=1 + export DEVSTACK_GATE_EXERCISES=0 + + export RALLY_VERIFY_JOB_MODE=full + export RALLY_VERIFY_CTX_MODE=create-resources + export RALLY_DO_COMPARE=0 + + export IDENTITY_API_VERSION=3 + + DEVSTACK_LOCAL_CONFIG=$"enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + + if [ $DEVSTACK_GATE_CEILOMETER -ne 0 ]; then + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + + DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + + ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + ENABLED_SERVICES+=heat,h-api,h-api-cfn,h-api-cw,h-eng, + fi + if [ $DEVSTACK_GATE_SAHARA -ne 0 ]; then + DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin sahara git://git.openstack.org/openstack/sahara" + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + function post_test_hook { + local cmd="$BASE/new/rally/tests/ci/rally_verify.py --mode $RALLY_VERIFY_JOB_MODE" + if [ $RALLY_VERIFY_CTX_MODE = "create-resources" ]; then + cmd+=" --ctx-create-resources" + fi + if [ $RALLY_DO_COMPARE -ne 0 ]; then + cmd+=" --compare" + fi + $cmd + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-verify-full-discover-resources/post.yaml b/playbooks/legacy/rally-dsvm-verify-full-discover-resources/post.yaml new file mode 100644 index 00000000..e257b8ea --- /dev/null +++ b/playbooks/legacy/rally-dsvm-verify-full-discover-resources/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-verify/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-verify/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-verify-full-discover-resources/run.yaml b/playbooks/legacy/rally-dsvm-verify-full-discover-resources/run.yaml new file mode 100644 index 00000000..bf9cb25f --- /dev/null +++ b/playbooks/legacy/rally-dsvm-verify-full-discover-resources/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-verify-full-discover-resources from old + job gate-rally-dsvm-verify-full-discover-resources + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + #/bin/bash -xe + + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_CEILOMETER=1 + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_SAHARA=1 + export DEVSTACK_GATE_EXERCISES=0 + + export RALLY_VERIFY_JOB_MODE=full + export RALLY_VERIFY_CTX_MODE=discover-resources + export RALLY_DO_COMPARE=0 + + export IDENTITY_API_VERSION=3 + + DEVSTACK_LOCAL_CONFIG=$"enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + + if [ $DEVSTACK_GATE_CEILOMETER -ne 0 ]; then + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + + DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + + ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + ENABLED_SERVICES+=heat,h-api,h-api-cfn,h-api-cw,h-eng, + fi + if [ $DEVSTACK_GATE_SAHARA -ne 0 ]; then + DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin sahara git://git.openstack.org/openstack/sahara" + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + function post_test_hook { + local cmd="$BASE/new/rally/tests/ci/rally_verify.py --mode $RALLY_VERIFY_JOB_MODE" + if [ $RALLY_VERIFY_CTX_MODE = "create-resources" ]; then + cmd+=" --ctx-create-resources" + fi + if [ $RALLY_DO_COMPARE -ne 0 ]; then + cmd+=" --compare" + fi + $cmd + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-verify-light-create-resources/post.yaml b/playbooks/legacy/rally-dsvm-verify-light-create-resources/post.yaml new file mode 100644 index 00000000..e257b8ea --- /dev/null +++ b/playbooks/legacy/rally-dsvm-verify-light-create-resources/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-verify/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-verify/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-verify-light-create-resources/run.yaml b/playbooks/legacy/rally-dsvm-verify-light-create-resources/run.yaml new file mode 100644 index 00000000..770797eb --- /dev/null +++ b/playbooks/legacy/rally-dsvm-verify-light-create-resources/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-verify-light-create-resources from old + job gate-rally-dsvm-verify-light-create-resources-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + #/bin/bash -xe + + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_CEILOMETER=1 + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_SAHARA=1 + export DEVSTACK_GATE_EXERCISES=0 + + export RALLY_VERIFY_JOB_MODE=light + export RALLY_VERIFY_CTX_MODE=create-resources + export RALLY_DO_COMPARE=1 + + export IDENTITY_API_VERSION=3 + + DEVSTACK_LOCAL_CONFIG=$"enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + + if [ $DEVSTACK_GATE_CEILOMETER -ne 0 ]; then + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + + DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + + ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + ENABLED_SERVICES+=heat,h-api,h-api-cfn,h-api-cw,h-eng, + fi + if [ $DEVSTACK_GATE_SAHARA -ne 0 ]; then + DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin sahara git://git.openstack.org/openstack/sahara" + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + function post_test_hook { + local cmd="$BASE/new/rally/tests/ci/rally_verify.py --mode $RALLY_VERIFY_JOB_MODE" + if [ $RALLY_VERIFY_CTX_MODE = "create-resources" ]; then + cmd+=" --ctx-create-resources" + fi + if [ $RALLY_DO_COMPARE -ne 0 ]; then + cmd+=" --compare" + fi + $cmd + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-verify-light-discover-resources/post.yaml b/playbooks/legacy/rally-dsvm-verify-light-discover-resources/post.yaml new file mode 100644 index 00000000..e257b8ea --- /dev/null +++ b/playbooks/legacy/rally-dsvm-verify-light-discover-resources/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-verify/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-verify/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-verify-light-discover-resources/run.yaml b/playbooks/legacy/rally-dsvm-verify-light-discover-resources/run.yaml new file mode 100644 index 00000000..70962b0a --- /dev/null +++ b/playbooks/legacy/rally-dsvm-verify-light-discover-resources/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-verify-light-discover-resources from old + job gate-rally-dsvm-verify-light-discover-resources + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + #/bin/bash -xe + + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_CEILOMETER=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SAHARA=0 + export DEVSTACK_GATE_EXERCISES=0 + + export RALLY_VERIFY_JOB_MODE=light + export RALLY_VERIFY_CTX_MODE=discover-resources + export RALLY_DO_COMPARE=1 + + export IDENTITY_API_VERSION=3 + + DEVSTACK_LOCAL_CONFIG=$"enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + + if [ $DEVSTACK_GATE_CEILOMETER -ne 0 ]; then + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + + DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + + ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + ENABLED_SERVICES+=heat,h-api,h-api-cfn,h-api-cw,h-eng, + fi + if [ $DEVSTACK_GATE_SAHARA -ne 0 ]; then + DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin sahara git://git.openstack.org/openstack/sahara" + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + function post_test_hook { + local cmd="$BASE/new/rally/tests/ci/rally_verify.py --mode $RALLY_VERIFY_JOB_MODE" + if [ $RALLY_VERIFY_CTX_MODE = "create-resources" ]; then + cmd+=" --ctx-create-resources" + fi + if [ $RALLY_DO_COMPARE -ne 0 ]; then + cmd+=" --compare" + fi + $cmd + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-watcher-rally/post.yaml b/playbooks/legacy/rally-dsvm-watcher-rally/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-watcher-rally/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-watcher-rally/run.yaml b/playbooks/legacy/rally-dsvm-watcher-rally/run.yaml new file mode 100644 index 00000000..33abfc46 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-watcher-rally/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-watcher-rally from old job gate-rally-dsvm-watcher-rally-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=1 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=0 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-watcher + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME-watcher + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-watcher-watcher/post.yaml b/playbooks/legacy/rally-dsvm-watcher-watcher/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-watcher-watcher/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-watcher-watcher/run.yaml b/playbooks/legacy/rally-dsvm-watcher-watcher/run.yaml new file mode 100644 index 00000000..da14bf09 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-watcher-watcher/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-watcher-watcher from old job gate-rally-dsvm-watcher-watcher-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=0 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=1 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=0 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-watcher + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME-watcher + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-zaqar-rally/post.yaml b/playbooks/legacy/rally-dsvm-zaqar-rally/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-zaqar-rally/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-zaqar-rally/run.yaml b/playbooks/legacy/rally-dsvm-zaqar-rally/run.yaml new file mode 100644 index 00000000..0c480471 --- /dev/null +++ b/playbooks/legacy/rally-dsvm-zaqar-rally/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-zaqar-rally from old job gate-rally-dsvm-zaqar-rally-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=1 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-zaqar + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME-zaqar + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-dsvm-zaqar-zaqar/post.yaml b/playbooks/legacy/rally-dsvm-zaqar-zaqar/post.yaml new file mode 100644 index 00000000..9a2e75fd --- /dev/null +++ b/playbooks/legacy/rally-dsvm-zaqar-zaqar/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/rally-plot/extra/index.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-dsvm-zaqar-zaqar/run.yaml b/playbooks/legacy/rally-dsvm-zaqar-zaqar/run.yaml new file mode 100644 index 00000000..976d9fad --- /dev/null +++ b/playbooks/legacy/rally-dsvm-zaqar-zaqar/run.yaml @@ -0,0 +1,168 @@ +- hosts: all + name: Autoconverted job legacy-rally-dsvm-zaqar-zaqar from old job gate-rally-dsvm-zaqar-zaqar-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ $ZUUL_PROJECT == "openstack/rally" ] && [ $ZUUL_BRANCH != "master" ]; then + export DEVSTACK_GATE_FEATURE_MATRIX="/opt/stack/new/rally/devstack/features.yaml" + fi + + export PROJECTS="openstack/rally $PROJECTS" + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_NEUTRON_EXTENSIONS=0 + export DEVSTACK_GATE_IRONIC=0 + export DEVSTACK_GATE_ZAQAR=1 + export DEVSTACK_GATE_SENLIN=0 + export DEVSTACK_GATE_WATCHER=0 + export DEVSTACK_GATE_MAGNUM=0 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_TELEMETRY=0 + export DEVSTACK_GATE_TEMPEST_LARGE_OPS=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_PREPOPULATE_USERS=0 + + export DEVSTACK_GATE_USE_PYTHON3=False + export USE_KEYSTONE_V2API=0 + export RALLY_SCENARIO=$ZUUL_SHORT_PROJECT_NAME-zaqar + + if [ $USE_KEYSTONE_V2API -eq 1 ]; then + export IDENTITY_API_VERSION=2.0 + else + export IDENTITY_API_VERSION=3 + fi + + DEVSTACK_LOCAL_CONFIG="enable_plugin rally git://git.openstack.org/openstack/rally" + DEVSTACK_LOCAL_CONFIG+=$'\n'"CINDER_ENABLE_V1_API=True" + DEVSTACK_LOCAL_CONFIG+=$'\n'"IDENTITY_API_VERSION=$IDENTITY_API_VERSION" + + ENABLED_SERVICES=key,horizon, + ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak, + ENABLED_SERVICES+=g-api,g-reg, + ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond, + ENABLED_SERVICES+=q-qos, + + if [ $DEVSTACK_GATE_SWIFT -eq 1 ]; + then + ENABLED_SERVICES+=s-proxy,s-account,s-container,s-object, + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy" + fi + + if [ $DEVSTACK_GATE_HEAT -ne 0 ]; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat https://git.openstack.org/openstack/heat" + fi + + export PROJECTS="openstack/neutron $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron git://git.openstack.org/openstack/neutron" + if [ $DEVSTACK_GATE_NEUTRON_EXTENSIONS -ne 0 ]; then + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin octavia https://git.openstack.org/openstack/octavia" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-fwaas https://git.openstack.org/openstack/neutron-fwaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://git.openstack.org/openstack/neutron-vpnaas" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-bgpvpn https://git.openstack.org/openstack/networking-bgpvpn.git" + export ENABLED_SERVICES+=q-lbaasv2,octavia,o-cw,o-hk,o-hm,o-api,q-fwaas,q-svc,q-agt,q-dhcp,q-l3,q-meta, + fi + if [ $DEVSTACK_GATE_IRONIC -ne 0 ]; then + export PROJECTS="openstack/ironic $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + fi + if [ $DEVSTACK_GATE_ZAQAR -ne 0 ]; then + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + if [ $DEVSTACK_GATE_SENLIN -ne 0 ]; then + export PROJECTS="openstack/senlin $PROJECTS" + export PROJECTS="openstack/python-senlinclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin senlin git://git.openstack.org/openstack/senlin" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng" + fi + if [ $DEVSTACK_GATE_WATCHER -ne 0 ]; then + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin watcher git://git.openstack.org/openstack/watcher" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service watcher-api watcher-decision-engine watcher-applier" + fi + if [ $DEVSTACK_GATE_MAGNUM -ne 0 ]||[ $RALLY_SCENARIO = "magnum" ]; then + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin magnum https://git.openstack.org/openstack/magnum" + fi + if [ $DEVSTACK_GATE_TELEMETRY -ne 0 ]; then + export PROJECTS="openstack/panko $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export ENABLED_SERVICES+=panko-api, + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/gnocchi $PROJECTS" + + export CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export ENABLED_SERVICES+=ceilometer-acompute,ceilometer-acentral,ceilometer-api, + export ENABLED_SERVICES+=ceilometer-anotification,ceilometer-collector, + export ENABLED_SERVICES+=aodh-api,aodh-evaluator,aodh-notifier, + fi + export ENABLED_SERVICES + export DEVSTACK_LOCAL_CONFIG + + if [[ "$ZUUL_PROJECT" = "openstack/neutron" ]]; then + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh rally $ZUUL_SHORT_PROJECT_NAME-zaqar + } + export -f gate_hook + fi + + function post_test_hook { + $BASE/new/rally/tests/ci/rally-gate.sh + } + export -f post_test_hook + + if [[ "$DEVSTACK_GATE_USE_PYTHON3" = "True" ]]; then + # Switch off glance->swift communication as swift fails under py3.x + function pre_test_hook { + local localconf=$BASE/new/devstack/local.conf + echo "[[post-config|\$GLANCE_API_CONF]]" >> $localconf + echo "[glance_store]" >> $localconf + echo "default_store=file" >> $localconf + } + export -f pre_test_hook + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-install-centos-7/run.yaml b/playbooks/legacy/rally-install-centos-7/run.yaml new file mode 100644 index 00000000..5afc1166 --- /dev/null +++ b/playbooks/legacy/rally-install-centos-7/run.yaml @@ -0,0 +1,39 @@ +- hosts: all + name: Autoconverted job legacy-rally-install-centos-7 from old job gate-rally-install-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: tests/ci/test_install.sh + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-install/run.yaml b/playbooks/legacy/rally-install/run.yaml new file mode 100644 index 00000000..17b39af2 --- /dev/null +++ b/playbooks/legacy/rally-install/run.yaml @@ -0,0 +1,39 @@ +- hosts: all + name: Autoconverted job legacy-rally-install from old job gate-rally-install-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: tests/ci/test_install.sh + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rally-tox-self/post.yaml b/playbooks/legacy/rally-tox-self/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/rally-tox-self/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rally-tox-self/run.yaml b/playbooks/legacy/rally-tox-self/run.yaml new file mode 100644 index 00000000..1d5e1d11 --- /dev/null +++ b/playbooks/legacy/rally-tox-self/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-rally-tox-self from old job gate-rally-tox-self-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh self + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/refstack-tox-py27-func-mysql/post.yaml b/playbooks/legacy/refstack-tox-py27-func-mysql/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/refstack-tox-py27-func-mysql/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/refstack-tox-py27-func-mysql/run.yaml b/playbooks/legacy/refstack-tox-py27-func-mysql/run.yaml new file mode 100644 index 00000000..5408a5ef --- /dev/null +++ b/playbooks/legacy/refstack-tox-py27-func-mysql/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-refstack-tox-py27-func-mysql from old job gate-refstack-tox-py27-func-mysql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-func-mysql + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/refstack-tox-py35-func-mysql/post.yaml b/playbooks/legacy/refstack-tox-py35-func-mysql/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/refstack-tox-py35-func-mysql/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/refstack-tox-py35-func-mysql/run.yaml b/playbooks/legacy/refstack-tox-py35-func-mysql/run.yaml new file mode 100644 index 00000000..ebd70692 --- /dev/null +++ b/playbooks/legacy/refstack-tox-py35-func-mysql/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-refstack-tox-py35-func-mysql from old job gate-refstack-tox-py35-func-mysql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-func-mysql + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/releasenotes/post.yaml b/playbooks/legacy/releasenotes/post.yaml new file mode 100644 index 00000000..c86f36f5 --- /dev/null +++ b/playbooks/legacy/releasenotes/post.yaml @@ -0,0 +1,10 @@ +- hosts: all + tasks: + + - name: Copy files from releasenotes/build/html/ on node + synchronize: + src: releasenotes/build/html/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true diff --git a/playbooks/legacy/releasenotes/run.yaml b/playbooks/legacy/releasenotes/run.yaml new file mode 100644 index 00000000..a8b35876 --- /dev/null +++ b/playbooks/legacy/releasenotes/run.yaml @@ -0,0 +1,192 @@ +- hosts: all + name: Autoconverted job legacy-releasenotes from old job gate-{name}-releasenotes + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + # + # Licensed under the Apache License, Version 2.0 (the "License"); you may + # not use this file except in compliance with the License. You may obtain + # a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + # License for the specific language governing permissions and limitations + # under the License. + + DOCNAME=releasenotes + DIRECTORY=releasenotes + + script_path=/usr/local/jenkins/slave_scripts + + # Mapping of language codes to language names + declare -A LANG_NAME=( + ["de"]="German" + ["en_AU"]="English (Australian)" + ["en_GB"]="English (United Kingdom)" + ["es"]="Spanish" + ["fr"]="French" + ["id"]="Indonesian" + ["it"]="Italian" + ["ja"]="Japanese" + ["ko_KR"]="Korean (South Korea)" + ["pt_BR"]="Portuguese (Brazil)" + ["ru"]="Russian" + ["tr_TR"]="Turkish (Turkey)" + ["zh_CN"]="Chinese (China)" + ) + + # This file always exists in OpenStack CI jobs, check for it so that + # it can be used manually as well. + if [ -e "$(pwd)/upper-constraints.txt" ]; then + export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt + fi + + if [ ! -e ${DIRECTORY}/source/locale/ ]; then + echo "No translations found, only building normal release notes" + $script_path/run-tox.sh releasenotes + exit 0 + fi + + # Check that locale_dirs is really set, otherwise translations + # will not work. + if ! grep -q -E '^locale_dirs *=' $DIRECTORY/source/conf.py; then + echo "Translations exist and locale_dirs missing in source/conf.py" + exit 1 + fi + + + REFERENCES=`mktemp` + trap "rm -f -- '$REFERENCES'" EXIT + + # Extract translations + tox -e venv -- sphinx-build -b gettext \ + -d ${DIRECTORY}/build/doctrees.gettext \ + ${DIRECTORY}/source/ \ + ${DIRECTORY}/source/locale/ + + # Add links for translations to index file + cat <> ${REFERENCES} + + Translated Release Notes + ======================== + + EOF + + # Check all language translation resources + for locale in `find ${DIRECTORY}/source/locale/ -maxdepth 1 -type d` ; do + # Skip if it is not a valid language translation resource. + if [ ! -e ${locale}/LC_MESSAGES/${DOCNAME}.po ]; then + continue + fi + language=$(basename $locale) + + echo "Building $language translation" + + # Prepare all translation resources + for pot in ${DIRECTORY}/source/locale/*.pot ; do + # Get filename + resname=$(basename ${pot} .pot) + + # Merge all translation resources. Note this is done the same + # way as done in common_translation_update.sh where we merge + # all strings together in a single file. + msgmerge --silent -o \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.po \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po \ + ${pot} + # Compile all translation resources + msgfmt -o \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.mo \ + ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${resname}.po + done + + # Build translated document + tox -e venv -- sphinx-build -b html -D language=${language} \ + -d "${DIRECTORY}/build/doctrees.${language}" \ + ${DIRECTORY}/source/ ${DIRECTORY}/build/html/${language} + + # Reference translated document from index file + if [ ${LANG_NAME["${language}"]+_} ] ; then + name=${LANG_NAME["${language}"]} + name+=" (${language})" + echo "* \`$name <${language}/index.html>\`__" >> ${REFERENCES} + else + echo "* \`${language} <${language}/index.html>\`__" >> ${REFERENCES} + fi + + # Remove newly created files + git clean -f -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/*.po + git clean -f -x -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/*.mo + # revert changes to po file + git reset -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po + git checkout -- ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/${DOCNAME}.po + done + + # Now append our references to the index file. We cannot do this + # earlier since the sphinx commands will read this file. + cat ${REFERENCES} >> ${DIRECTORY}/source/index.rst + + # Remove newly created pot files + rm -f ${DIRECTORY}/source/locale/*.pot + + # Now build releasenotes with reference to translations + $script_path/run-tox.sh releasenotes + + # Revert any changes to the index file. + git checkout -- ${DIRECTORY}/source/index.rst + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/releases-python35/post.yaml b/playbooks/legacy/releases-python35/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/releases-python35/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/releases-python35/run.yaml b/playbooks/legacy/releases-python35/run.yaml new file mode 100644 index 00000000..b126ca54 --- /dev/null +++ b/playbooks/legacy/releases-python35/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-releases-python35 from old job gate-releases-python35 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/releases-tox-list-changes/post.yaml b/playbooks/legacy/releases-tox-list-changes/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/releases-tox-list-changes/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/releases-tox-list-changes/run.yaml b/playbooks/legacy/releases-tox-list-changes/run.yaml new file mode 100644 index 00000000..567d2ebd --- /dev/null +++ b/playbooks/legacy/releases-tox-list-changes/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-releases-tox-list-changes from old job gate-releases-tox-list-changes-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh list-changes + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/releases-tox-validate/post.yaml b/playbooks/legacy/releases-tox-validate/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/releases-tox-validate/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/releases-tox-validate/run.yaml b/playbooks/legacy/releases-tox-validate/run.yaml new file mode 100644 index 00000000..4426339e --- /dev/null +++ b/playbooks/legacy/releases-tox-validate/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-releases-tox-validate from old job gate-releases-tox-validate-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh validate + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requests-mock-tox-keystoneclient-tip/post.yaml b/playbooks/legacy/requests-mock-tox-keystoneclient-tip/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/requests-mock-tox-keystoneclient-tip/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/requests-mock-tox-keystoneclient-tip/run.yaml b/playbooks/legacy/requests-mock-tox-keystoneclient-tip/run.yaml new file mode 100644 index 00000000..ce3c4c70 --- /dev/null +++ b/playbooks/legacy/requests-mock-tox-keystoneclient-tip/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-requests-mock-tox-keystoneclient-tip from old job + gate-requests-mock-tox-keystoneclient-tip-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh keystoneclient-tip + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requests-mock-tox-novaclient-tip/post.yaml b/playbooks/legacy/requests-mock-tox-novaclient-tip/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/requests-mock-tox-novaclient-tip/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/requests-mock-tox-novaclient-tip/run.yaml b/playbooks/legacy/requests-mock-tox-novaclient-tip/run.yaml new file mode 100644 index 00000000..3042ca1c --- /dev/null +++ b/playbooks/legacy/requests-mock-tox-novaclient-tip/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-requests-mock-tox-novaclient-tip from old job gate-requests-mock-tox-novaclient-tip-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh novaclient-tip + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requirements-integration-dsvm-ubuntu-trusty/post.yaml b/playbooks/legacy/requirements-integration-dsvm-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/requirements-integration-dsvm-ubuntu-trusty/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/requirements-integration-dsvm-ubuntu-trusty/run.yaml b/playbooks/legacy/requirements-integration-dsvm-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..6f54d487 --- /dev/null +++ b/playbooks/legacy/requirements-integration-dsvm-ubuntu-trusty/run.yaml @@ -0,0 +1,132 @@ +- hosts: all + name: Autoconverted job legacy-requirements-integration-dsvm-ubuntu-trusty from + old job gate-requirements-integration-dsvm-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # Define the entire projects list here so that what we + # test requirements against is independent of what d-g + # thinks is relevant. + export PROJECTS="openstack-infra/devstack-gate $PROJECTS" + export PROJECTS="openstack-dev/devstack $PROJECTS" + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PROJECTS="openstack-dev/pbr $PROJECTS" + export PROJECTS="openstack-infra/tripleo-ci $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/automaton $PROJECTS" + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/ceilometermiddleware $PROJECTS" + export PROJECTS="openstack/cinder $PROJECTS" + export PROJECTS="openstack/cliff $PROJECTS" + export PROJECTS="openstack/debtcollector $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/django_openstack_auth $PROJECTS" + export PROJECTS="openstack/futurist $PROJECTS" + export PROJECTS="openstack/glance $PROJECTS" + export PROJECTS="openstack/glance_store $PROJECTS" + export PROJECTS="openstack/heat $PROJECTS" + export PROJECTS="openstack/heat-cfntools $PROJECTS" + export PROJECTS="openstack/heat-templates $PROJECTS" + export PROJECTS="openstack/horizon $PROJECTS" + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/keystone $PROJECTS" + export PROJECTS="openstack/keystoneauth $PROJECTS" + export PROJECTS="openstack/keystonemiddleware $PROJECTS" + export PROJECTS="openstack/manila $PROJECTS" + export PROJECTS="openstack/manila-ui $PROJECTS" + export PROJECTS="openstack/zaqar $PROJECTS" + export PROJECTS="openstack/neutron $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/nova $PROJECTS" + export PROJECTS="openstack/os-apply-config $PROJECTS" + export PROJECTS="openstack/os-brick $PROJECTS" + export PROJECTS="openstack/os-client-config $PROJECTS" + export PROJECTS="openstack/os-collect-config $PROJECTS" + export PROJECTS="openstack/os-net-config $PROJECTS" + export PROJECTS="openstack/os-refresh-config $PROJECTS" + export PROJECTS="openstack/osc-lib $PROJECTS" + export PROJECTS="openstack/oslo.cache $PROJECTS" + export PROJECTS="openstack/oslo.concurrency $PROJECTS" + export PROJECTS="openstack/oslo.config $PROJECTS" + export PROJECTS="openstack/oslo.context $PROJECTS" + export PROJECTS="openstack/oslo.db $PROJECTS" + export PROJECTS="openstack/oslo.i18n $PROJECTS" + export PROJECTS="openstack/oslo.log $PROJECTS" + export PROJECTS="openstack/oslo.messaging $PROJECTS" + export PROJECTS="openstack/oslo.middleware $PROJECTS" + export PROJECTS="openstack/oslo.policy $PROJECTS" + export PROJECTS="openstack/oslo.reports $PROJECTS" + export PROJECTS="openstack/oslo.rootwrap $PROJECTS" + export PROJECTS="openstack/oslo.utils $PROJECTS" + export PROJECTS="openstack/oslo.serialization $PROJECTS" + export PROJECTS="openstack/oslo.service $PROJECTS" + export PROJECTS="openstack/oslo.versionedobjects $PROJECTS" + export PROJECTS="openstack/oslo.vmware $PROJECTS" + export PROJECTS="openstack/pycadf $PROJECTS" + export PROJECTS="openstack/python-ceilometerclient $PROJECTS" + export PROJECTS="openstack/python-cinderclient $PROJECTS" + export PROJECTS="openstack/python-glanceclient $PROJECTS" + export PROJECTS="openstack/python-heatclient $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/python-keystoneclient $PROJECTS" + export PROJECTS="openstack/python-manilaclient $PROJECTS" + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/python-neutronclient $PROJECTS" + export PROJECTS="openstack/python-novaclient $PROJECTS" + export PROJECTS="openstack/python-openstackclient $PROJECTS" + export PROJECTS="openstack/python-saharaclient $PROJECTS" + export PROJECTS="openstack/python-swiftclient $PROJECTS" + export PROJECTS="openstack/python-troveclient $PROJECTS" + export PROJECTS="openstack/requirements $PROJECTS" + export PROJECTS="openstack/sahara $PROJECTS" + export PROJECTS="openstack/sahara-dashboard $PROJECTS" + export PROJECTS="openstack/stevedore $PROJECTS" + export PROJECTS="openstack/swift $PROJECTS" + export PROJECTS="openstack/taskflow $PROJECTS" + export PROJECTS="openstack/tempest $PROJECTS" + export PROJECTS="openstack/tempest-lib $PROJECTS" + export PROJECTS="openstack/tooz $PROJECTS" + export PROJECTS="openstack/tripleo-heat-templates $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/tripleo-incubator $PROJECTS" + export PROJECTS="openstack/trove $PROJECTS" + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_REQS_INTEGRATION=1 + export PIP_PROCESS_DEPENDENCY_LINKS=1 + function gate_hook { + set -x + bash $BASE/new/devstack-gate/devstack-vm-gate.sh && \ + bash -xe $BASE/new/requirements/tools/integration.sh $(cat $BASE/new/requirements/projects.txt) + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requirements-integration-dsvm/post.yaml b/playbooks/legacy/requirements-integration-dsvm/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/requirements-integration-dsvm/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/requirements-integration-dsvm/run.yaml b/playbooks/legacy/requirements-integration-dsvm/run.yaml new file mode 100644 index 00000000..897bbbbc --- /dev/null +++ b/playbooks/legacy/requirements-integration-dsvm/run.yaml @@ -0,0 +1,131 @@ +- hosts: all + name: Autoconverted job legacy-requirements-integration-dsvm from old job gate-requirements-integration-dsvm-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # Define the entire projects list here so that what we + # test requirements against is independent of what d-g + # thinks is relevant. + export PROJECTS="openstack-infra/devstack-gate $PROJECTS" + export PROJECTS="openstack-dev/devstack $PROJECTS" + export PROJECTS="openstack-dev/grenade $PROJECTS" + export PROJECTS="openstack-dev/pbr $PROJECTS" + export PROJECTS="openstack-infra/tripleo-ci $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/automaton $PROJECTS" + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/ceilometermiddleware $PROJECTS" + export PROJECTS="openstack/cinder $PROJECTS" + export PROJECTS="openstack/cliff $PROJECTS" + export PROJECTS="openstack/debtcollector $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/django_openstack_auth $PROJECTS" + export PROJECTS="openstack/futurist $PROJECTS" + export PROJECTS="openstack/glance $PROJECTS" + export PROJECTS="openstack/glance_store $PROJECTS" + export PROJECTS="openstack/heat $PROJECTS" + export PROJECTS="openstack/heat-cfntools $PROJECTS" + export PROJECTS="openstack/heat-templates $PROJECTS" + export PROJECTS="openstack/horizon $PROJECTS" + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/keystone $PROJECTS" + export PROJECTS="openstack/keystoneauth $PROJECTS" + export PROJECTS="openstack/keystonemiddleware $PROJECTS" + export PROJECTS="openstack/manila $PROJECTS" + export PROJECTS="openstack/manila-ui $PROJECTS" + export PROJECTS="openstack/zaqar $PROJECTS" + export PROJECTS="openstack/neutron $PROJECTS" + export PROJECTS="openstack/neutron-fwaas $PROJECTS" + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/neutron-vpnaas $PROJECTS" + export PROJECTS="openstack/nova $PROJECTS" + export PROJECTS="openstack/os-apply-config $PROJECTS" + export PROJECTS="openstack/os-brick $PROJECTS" + export PROJECTS="openstack/os-client-config $PROJECTS" + export PROJECTS="openstack/os-collect-config $PROJECTS" + export PROJECTS="openstack/os-net-config $PROJECTS" + export PROJECTS="openstack/os-refresh-config $PROJECTS" + export PROJECTS="openstack/osc-lib $PROJECTS" + export PROJECTS="openstack/oslo.cache $PROJECTS" + export PROJECTS="openstack/oslo.concurrency $PROJECTS" + export PROJECTS="openstack/oslo.config $PROJECTS" + export PROJECTS="openstack/oslo.context $PROJECTS" + export PROJECTS="openstack/oslo.db $PROJECTS" + export PROJECTS="openstack/oslo.i18n $PROJECTS" + export PROJECTS="openstack/oslo.log $PROJECTS" + export PROJECTS="openstack/oslo.messaging $PROJECTS" + export PROJECTS="openstack/oslo.middleware $PROJECTS" + export PROJECTS="openstack/oslo.policy $PROJECTS" + export PROJECTS="openstack/oslo.reports $PROJECTS" + export PROJECTS="openstack/oslo.rootwrap $PROJECTS" + export PROJECTS="openstack/oslo.utils $PROJECTS" + export PROJECTS="openstack/oslo.serialization $PROJECTS" + export PROJECTS="openstack/oslo.service $PROJECTS" + export PROJECTS="openstack/oslo.versionedobjects $PROJECTS" + export PROJECTS="openstack/oslo.vmware $PROJECTS" + export PROJECTS="openstack/pycadf $PROJECTS" + export PROJECTS="openstack/python-ceilometerclient $PROJECTS" + export PROJECTS="openstack/python-cinderclient $PROJECTS" + export PROJECTS="openstack/python-glanceclient $PROJECTS" + export PROJECTS="openstack/python-heatclient $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/python-keystoneclient $PROJECTS" + export PROJECTS="openstack/python-manilaclient $PROJECTS" + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/python-neutronclient $PROJECTS" + export PROJECTS="openstack/python-novaclient $PROJECTS" + export PROJECTS="openstack/python-openstackclient $PROJECTS" + export PROJECTS="openstack/python-saharaclient $PROJECTS" + export PROJECTS="openstack/python-swiftclient $PROJECTS" + export PROJECTS="openstack/python-troveclient $PROJECTS" + export PROJECTS="openstack/requirements $PROJECTS" + export PROJECTS="openstack/sahara $PROJECTS" + export PROJECTS="openstack/sahara-dashboard $PROJECTS" + export PROJECTS="openstack/stevedore $PROJECTS" + export PROJECTS="openstack/swift $PROJECTS" + export PROJECTS="openstack/taskflow $PROJECTS" + export PROJECTS="openstack/tempest $PROJECTS" + export PROJECTS="openstack/tempest-lib $PROJECTS" + export PROJECTS="openstack/tooz $PROJECTS" + export PROJECTS="openstack/tripleo-heat-templates $PROJECTS" + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/tripleo-incubator $PROJECTS" + export PROJECTS="openstack/trove $PROJECTS" + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_REQS_INTEGRATION=1 + export PIP_PROCESS_DEPENDENCY_LINKS=1 + function gate_hook { + set -x + bash $BASE/new/devstack-gate/devstack-vm-gate.sh && \ + bash -xe $BASE/new/requirements/tools/integration.sh $(cat $BASE/new/requirements/projects.txt) + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requirements-python34/post.yaml b/playbooks/legacy/requirements-python34/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/requirements-python34/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/requirements-python34/run.yaml b/playbooks/legacy/requirements-python34/run.yaml new file mode 100644 index 00000000..f2e36c5a --- /dev/null +++ b/playbooks/legacy/requirements-python34/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-requirements-python34 from old job gate-requirements-python34 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py34 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requirements-tox-babel/post.yaml b/playbooks/legacy/requirements-tox-babel/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/requirements-tox-babel/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/requirements-tox-babel/run.yaml b/playbooks/legacy/requirements-tox-babel/run.yaml new file mode 100644 index 00000000..85a5696c --- /dev/null +++ b/playbooks/legacy/requirements-tox-babel/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-requirements-tox-babel from old job gate-requirements-tox-babel-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh babel + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requirements-tox-py27-check-uc/post.yaml b/playbooks/legacy/requirements-tox-py27-check-uc/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/requirements-tox-py27-check-uc/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/requirements-tox-py27-check-uc/run.yaml b/playbooks/legacy/requirements-tox-py27-check-uc/run.yaml new file mode 100644 index 00000000..faf96887 --- /dev/null +++ b/playbooks/legacy/requirements-tox-py27-check-uc/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-requirements-tox-py27-check-uc from old job gate-requirements-tox-py27-check-uc-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-check-uc + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requirements-tox-py35-check-uc/post.yaml b/playbooks/legacy/requirements-tox-py35-check-uc/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/requirements-tox-py35-check-uc/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/requirements-tox-py35-check-uc/run.yaml b/playbooks/legacy/requirements-tox-py35-check-uc/run.yaml new file mode 100644 index 00000000..62209790 --- /dev/null +++ b/playbooks/legacy/requirements-tox-py35-check-uc/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-requirements-tox-py35-check-uc from old job gate-requirements-tox-py35-check-uc-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-check-uc + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requirements-tox-validate-projects/post.yaml b/playbooks/legacy/requirements-tox-validate-projects/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/requirements-tox-validate-projects/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/requirements-tox-validate-projects/run.yaml b/playbooks/legacy/requirements-tox-validate-projects/run.yaml new file mode 100644 index 00000000..425a12d2 --- /dev/null +++ b/playbooks/legacy/requirements-tox-validate-projects/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-requirements-tox-validate-projects from old job gate-requirements-tox-validate-projects-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh validate-projects + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requirements-tox-validate/post.yaml b/playbooks/legacy/requirements-tox-validate/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/requirements-tox-validate/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/requirements-tox-validate/run.yaml b/playbooks/legacy/requirements-tox-validate/run.yaml new file mode 100644 index 00000000..4a0fee18 --- /dev/null +++ b/playbooks/legacy/requirements-tox-validate/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-requirements-tox-validate from old job gate-requirements-tox-validate-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh validate + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/requirements/post.yaml b/playbooks/legacy/requirements/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/requirements/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/requirements/run.yaml b/playbooks/legacy/requirements/run.yaml new file mode 100644 index 00000000..279bee9a --- /dev/null +++ b/playbooks/legacy/requirements/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-requirements from old job gate-{name}-requirements + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/project-requirements-change.py $ZUUL_BRANCH + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/rpm-packaging-tox-lint/post.yaml b/playbooks/legacy/rpm-packaging-tox-lint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/rpm-packaging-tox-lint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/rpm-packaging-tox-lint/run.yaml b/playbooks/legacy/rpm-packaging-tox-lint/run.yaml new file mode 100644 index 00000000..08b2d3c5 --- /dev/null +++ b/playbooks/legacy/rpm-packaging-tox-lint/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-rpm-packaging-tox-lint from old job gate-rpm-packaging-tox-lint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh lint + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-buildimages-ambari-centos-7/run.yaml b/playbooks/legacy/sahara-buildimages-ambari-centos-7/run.yaml new file mode 100644 index 00000000..774ce241 --- /dev/null +++ b/playbooks/legacy/sahara-buildimages-ambari-centos-7/run.yaml @@ -0,0 +1,46 @@ +- hosts: all + name: Autoconverted job legacy-sahara-buildimages-ambari-centos-7 from old job gate-sahara-buildimages-ambari-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo mkdir -p /opt/sahara-image-build + sudo chown $(whoami) /opt/sahara-image-build + export DEST=/opt/sahara-image-build + ./tools/gate/build-images ambari + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-buildimages-cloudera-centos-7/run.yaml b/playbooks/legacy/sahara-buildimages-cloudera-centos-7/run.yaml new file mode 100644 index 00000000..8b883c29 --- /dev/null +++ b/playbooks/legacy/sahara-buildimages-cloudera-centos-7/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-sahara-buildimages-cloudera-centos-7 from old job + gate-sahara-buildimages-cloudera-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo mkdir -p /opt/sahara-image-build + sudo chown $(whoami) /opt/sahara-image-build + export DEST=/opt/sahara-image-build + ./tools/gate/build-images cloudera + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-cli/post.yaml b/playbooks/legacy/sahara-cli/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/sahara-cli/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/sahara-cli/run.yaml b/playbooks/legacy/sahara-cli/run.yaml new file mode 100644 index 00000000..a092c987 --- /dev/null +++ b/playbooks/legacy/sahara-cli/run.yaml @@ -0,0 +1,60 @@ +- hosts: all + name: Autoconverted job legacy-sahara-cli from old job gate-sahara-cli-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin sahara git://git.openstack.org/openstack/sahara + enable_plugin heat git://git.openstack.org/openstack/heat + TEMPEST_PLUGINS='/opt/stack/new/sahara-tests' + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="sahara_tempest_plugin.tests.cli" + export KEEP_LOCALRC=1 + export PROJECTS="openstack/sahara $PROJECTS" + export PROJECTS="openstack/sahara-tests $PROJECTS" + + if [ "$ZUUL_PROJECT" = "openstack/python-saharaclient" ]; then + export DEVSTACK_PROJECT_FROM_GIT=python-saharaclient + fi + + function pre_test_hook { + cd /opt/stack/new/sahara-tests/tools/gate/cli_tests + ./pre_test_hook.sh + } + + export -f pre_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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-dashboard-dsvm-integration/post.yaml b/playbooks/legacy/sahara-dashboard-dsvm-integration/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/sahara-dashboard-dsvm-integration/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/sahara-dashboard-dsvm-integration/run.yaml b/playbooks/legacy/sahara-dashboard-dsvm-integration/run.yaml new file mode 100644 index 00000000..fbe32ed3 --- /dev/null +++ b/playbooks/legacy/sahara-dashboard-dsvm-integration/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-sahara-dashboard-dsvm-integration from old job gate-sahara-dashboard-dsvm-integration-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin sahara git://git.openstack.org/openstack/sahara + enable_plugin sahara-dashboard git://git.openstack.org/openstack/sahara-dashboard + enable_plugin heat git://git.openstack.org/openstack/heat + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_GATE_NEUTRON=1 + export PROJECTS="openstack/sahara $PROJECTS" + export PROJECTS="openstack/sahara-dashboard $PROJECTS" + + function pre_test_hook { + cd /opt/stack/new/sahara-dashboard/tools/gate/integration + ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/sahara-dashboard/tools/gate/integration + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-dashboard-tox-py27dj110/post.yaml b/playbooks/legacy/sahara-dashboard-tox-py27dj110/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/sahara-dashboard-tox-py27dj110/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/sahara-dashboard-tox-py27dj110/run.yaml b/playbooks/legacy/sahara-dashboard-tox-py27dj110/run.yaml new file mode 100644 index 00000000..4de1f312 --- /dev/null +++ b/playbooks/legacy/sahara-dashboard-tox-py27dj110/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-sahara-dashboard-tox-py27dj110 from old job gate-sahara-dashboard-tox-py27dj110-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj110 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-dashboard-tox-py27dj19/post.yaml b/playbooks/legacy/sahara-dashboard-tox-py27dj19/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/sahara-dashboard-tox-py27dj19/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/sahara-dashboard-tox-py27dj19/run.yaml b/playbooks/legacy/sahara-dashboard-tox-py27dj19/run.yaml new file mode 100644 index 00000000..e2692065 --- /dev/null +++ b/playbooks/legacy/sahara-dashboard-tox-py27dj19/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-sahara-dashboard-tox-py27dj19 from old job gate-sahara-dashboard-tox-py27dj19-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27dj19 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-dsvm-scenario-mod-wsgi/post.yaml b/playbooks/legacy/sahara-dsvm-scenario-mod-wsgi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/sahara-dsvm-scenario-mod-wsgi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/sahara-dsvm-scenario-mod-wsgi/run.yaml b/playbooks/legacy/sahara-dsvm-scenario-mod-wsgi/run.yaml new file mode 100644 index 00000000..907b1edf --- /dev/null +++ b/playbooks/legacy/sahara-dsvm-scenario-mod-wsgi/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-sahara-dsvm-scenario-mod-wsgi from old job gate-sahara-dsvm-scenario-mod-wsgi-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_SUBNODE_CONFIG=" " + export DEVSTACK_LOCAL_CONFIG="enable_plugin sahara git://git.openstack.org/openstack/sahara" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export KEEP_LOCALRC=1 + export PROJECTS="openstack/sahara $PROJECTS" + export PROJECTS="openstack/sahara-tests $PROJECTS" + export PROJECTS="openstack/sahara-image-elements openstack/sahara-extra $PROJECTS" + if [ "neutron" == "nova" ] ; then + export DEVSTACK_GATE_NEUTRON=0 + else + export DEVSTACK_GATE_NEUTRON=1 + fi + if [ "$ZUUL_PROJECT" = "openstack/python-saharaclient" ]; then + export DEVSTACK_PROJECT_FROM_GIT=python-saharaclient + fi + if [ "0" -eq 1 ] ; then + export DEVSTACK_GATE_TOPOLOGY="multinode" + fi + if [ "1" -eq 1 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"SAHARA_USE_MOD_WSGI=True" + fi + if [ "0" -eq 1 ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + fi + export BRANCH_OVERRIDE=default + if [ "default" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function pre_test_hook { + cd /opt/stack/new/sahara-tests/tools/gate/scenario + ./pre_test_hook.sh neutron fake + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/sahara-tests/tools/gate/scenario + ./post_test_hook.sh neutron fake + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-dsvm-scenario-multinode-spark/post.yaml b/playbooks/legacy/sahara-dsvm-scenario-multinode-spark/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/sahara-dsvm-scenario-multinode-spark/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/sahara-dsvm-scenario-multinode-spark/run.yaml b/playbooks/legacy/sahara-dsvm-scenario-multinode-spark/run.yaml new file mode 100644 index 00000000..b8b52f34 --- /dev/null +++ b/playbooks/legacy/sahara-dsvm-scenario-multinode-spark/run.yaml @@ -0,0 +1,74 @@ +- hosts: all + name: Autoconverted job legacy-sahara-dsvm-scenario-multinode-spark from old job + gate-sahara-dsvm-scenario-multinode-spark-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_SUBNODE_CONFIG=" " + export DEVSTACK_LOCAL_CONFIG="enable_plugin sahara git://git.openstack.org/openstack/sahara" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export KEEP_LOCALRC=1 + export PROJECTS="openstack/sahara $PROJECTS" + export PROJECTS="openstack/sahara-tests $PROJECTS" + export PROJECTS="openstack/sahara-image-elements openstack/sahara-extra $PROJECTS" + if [ "neutron" == "nova" ] ; then + export DEVSTACK_GATE_NEUTRON=0 + else + export DEVSTACK_GATE_NEUTRON=1 + fi + if [ "$ZUUL_PROJECT" = "openstack/python-saharaclient" ]; then + export DEVSTACK_PROJECT_FROM_GIT=python-saharaclient + fi + if [ "1" -eq 1 ] ; then + export DEVSTACK_GATE_TOPOLOGY="multinode" + fi + if [ "0" -eq 1 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"SAHARA_USE_MOD_WSGI=True" + fi + if [ "0" -eq 1 ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + fi + export BRANCH_OVERRIDE=default + if [ "default" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function pre_test_hook { + cd /opt/stack/new/sahara-tests/tools/gate/scenario + ./pre_test_hook.sh neutron spark + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/sahara-tests/tools/gate/scenario + ./post_test_hook.sh neutron spark + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-dsvm-scenario-neutron/post.yaml b/playbooks/legacy/sahara-dsvm-scenario-neutron/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/sahara-dsvm-scenario-neutron/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/sahara-dsvm-scenario-neutron/run.yaml b/playbooks/legacy/sahara-dsvm-scenario-neutron/run.yaml new file mode 100644 index 00000000..dd3550ef --- /dev/null +++ b/playbooks/legacy/sahara-dsvm-scenario-neutron/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-sahara-dsvm-scenario-neutron from old job gate-sahara-dsvm-scenario-neutron-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_SUBNODE_CONFIG=" " + export DEVSTACK_LOCAL_CONFIG="enable_plugin sahara git://git.openstack.org/openstack/sahara" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export KEEP_LOCALRC=1 + export PROJECTS="openstack/sahara $PROJECTS" + export PROJECTS="openstack/sahara-tests $PROJECTS" + export PROJECTS="openstack/sahara-image-elements openstack/sahara-extra $PROJECTS" + if [ "neutron" == "nova" ] ; then + export DEVSTACK_GATE_NEUTRON=0 + else + export DEVSTACK_GATE_NEUTRON=1 + fi + if [ "$ZUUL_PROJECT" = "openstack/python-saharaclient" ]; then + export DEVSTACK_PROJECT_FROM_GIT=python-saharaclient + fi + if [ "0" -eq 1 ] ; then + export DEVSTACK_GATE_TOPOLOGY="multinode" + fi + if [ "0" -eq 1 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"SAHARA_USE_MOD_WSGI=True" + fi + if [ "0" -eq 1 ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + fi + export BRANCH_OVERRIDE=default + if [ "default" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function pre_test_hook { + cd /opt/stack/new/sahara-tests/tools/gate/scenario + ./pre_test_hook.sh neutron fake + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/sahara-tests/tools/gate/scenario + ./post_test_hook.sh neutron fake + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-dsvm-scenario-py3/post.yaml b/playbooks/legacy/sahara-dsvm-scenario-py3/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/sahara-dsvm-scenario-py3/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/sahara-dsvm-scenario-py3/run.yaml b/playbooks/legacy/sahara-dsvm-scenario-py3/run.yaml new file mode 100644 index 00000000..d776b20b --- /dev/null +++ b/playbooks/legacy/sahara-dsvm-scenario-py3/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-sahara-dsvm-scenario-py3 from old job gate-sahara-dsvm-scenario-py3-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_SUBNODE_CONFIG=" " + export DEVSTACK_LOCAL_CONFIG="enable_plugin sahara git://git.openstack.org/openstack/sahara" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export KEEP_LOCALRC=1 + export PROJECTS="openstack/sahara $PROJECTS" + export PROJECTS="openstack/sahara-tests $PROJECTS" + export PROJECTS="openstack/sahara-image-elements openstack/sahara-extra $PROJECTS" + if [ "neutron" == "nova" ] ; then + export DEVSTACK_GATE_NEUTRON=0 + else + export DEVSTACK_GATE_NEUTRON=1 + fi + if [ "$ZUUL_PROJECT" = "openstack/python-saharaclient" ]; then + export DEVSTACK_PROJECT_FROM_GIT=python-saharaclient + fi + if [ "0" -eq 1 ] ; then + export DEVSTACK_GATE_TOPOLOGY="multinode" + fi + if [ "0" -eq 1 ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"SAHARA_USE_MOD_WSGI=True" + fi + if [ "1" -eq 1 ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + fi + export BRANCH_OVERRIDE=default + if [ "default" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function pre_test_hook { + cd /opt/stack/new/sahara-tests/tools/gate/scenario + ./pre_test_hook.sh neutron fake + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/sahara-tests/tools/gate/scenario + ./post_test_hook.sh neutron fake + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-extra-artifacts/run.yaml b/playbooks/legacy/sahara-extra-artifacts/run.yaml new file mode 100644 index 00000000..1d7e10fa --- /dev/null +++ b/playbooks/legacy/sahara-extra-artifacts/run.yaml @@ -0,0 +1,45 @@ +- hosts: all + name: Autoconverted job legacy-sahara-extra-artifacts from old job gate-sahara-extra-artifacts + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export BRANCH=${ZUUL_BRANCH:-master} + # tell to script where it should place dist results + tools/build-all-artifacts.sh $BRANCH + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-image-elements-buildimages-ambari/run.yaml b/playbooks/legacy/sahara-image-elements-buildimages-ambari/run.yaml new file mode 100644 index 00000000..fa965140 --- /dev/null +++ b/playbooks/legacy/sahara-image-elements-buildimages-ambari/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-sahara-image-elements-buildimages-ambari from old + job gate-sahara-image-elements-buildimages-ambari-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo mkdir -p /opt/sahara-image-build + sudo chown $(whoami) /opt/sahara-image-build + export DEST=/opt/sahara-image-build + ./tools/gate/build-images ambari + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-image-elements-buildimages-cloudera/run.yaml b/playbooks/legacy/sahara-image-elements-buildimages-cloudera/run.yaml new file mode 100644 index 00000000..4a2e28e6 --- /dev/null +++ b/playbooks/legacy/sahara-image-elements-buildimages-cloudera/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-sahara-image-elements-buildimages-cloudera from old + job gate-sahara-image-elements-buildimages-cloudera-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo mkdir -p /opt/sahara-image-build + sudo chown $(whoami) /opt/sahara-image-build + export DEST=/opt/sahara-image-build + ./tools/gate/build-images cloudera + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-image-elements-buildimages-mapr/run.yaml b/playbooks/legacy/sahara-image-elements-buildimages-mapr/run.yaml new file mode 100644 index 00000000..5980ad0c --- /dev/null +++ b/playbooks/legacy/sahara-image-elements-buildimages-mapr/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-sahara-image-elements-buildimages-mapr from old job + gate-sahara-image-elements-buildimages-mapr-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo mkdir -p /opt/sahara-image-build + sudo chown $(whoami) /opt/sahara-image-build + export DEST=/opt/sahara-image-build + ./tools/gate/build-images mapr + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-image-elements-buildimages-plain/run.yaml b/playbooks/legacy/sahara-image-elements-buildimages-plain/run.yaml new file mode 100644 index 00000000..f09e286c --- /dev/null +++ b/playbooks/legacy/sahara-image-elements-buildimages-plain/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-sahara-image-elements-buildimages-plain from old + job gate-sahara-image-elements-buildimages-plain-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo mkdir -p /opt/sahara-image-build + sudo chown $(whoami) /opt/sahara-image-build + export DEST=/opt/sahara-image-build + ./tools/gate/build-images plain + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-image-elements-buildimages-spark/run.yaml b/playbooks/legacy/sahara-image-elements-buildimages-spark/run.yaml new file mode 100644 index 00000000..0c08b977 --- /dev/null +++ b/playbooks/legacy/sahara-image-elements-buildimages-spark/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-sahara-image-elements-buildimages-spark from old + job gate-sahara-image-elements-buildimages-spark-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo mkdir -p /opt/sahara-image-build + sudo chown $(whoami) /opt/sahara-image-build + export DEST=/opt/sahara-image-build + ./tools/gate/build-images spark + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-image-elements-buildimages-storm/run.yaml b/playbooks/legacy/sahara-image-elements-buildimages-storm/run.yaml new file mode 100644 index 00000000..65fecd83 --- /dev/null +++ b/playbooks/legacy/sahara-image-elements-buildimages-storm/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-sahara-image-elements-buildimages-storm from old + job gate-sahara-image-elements-buildimages-storm-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo mkdir -p /opt/sahara-image-build + sudo chown $(whoami) /opt/sahara-image-build + export DEST=/opt/sahara-image-build + ./tools/gate/build-images storm + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-image-elements-buildimages-vanilla/run.yaml b/playbooks/legacy/sahara-image-elements-buildimages-vanilla/run.yaml new file mode 100644 index 00000000..66902c6e --- /dev/null +++ b/playbooks/legacy/sahara-image-elements-buildimages-vanilla/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-sahara-image-elements-buildimages-vanilla from old + job gate-sahara-image-elements-buildimages-vanilla-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + sudo mkdir -p /opt/sahara-image-build + sudo chown $(whoami) /opt/sahara-image-build + export DEST=/opt/sahara-image-build + ./tools/gate/build-images vanilla + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-pylint/post.yaml b/playbooks/legacy/sahara-pylint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/sahara-pylint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/sahara-pylint/run.yaml b/playbooks/legacy/sahara-pylint/run.yaml new file mode 100644 index 00000000..0d1af96e --- /dev/null +++ b/playbooks/legacy/sahara-pylint/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-sahara-pylint from old job gate-sahara-pylint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sahara-tests-pylint/post.yaml b/playbooks/legacy/sahara-tests-pylint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/sahara-tests-pylint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/sahara-tests-pylint/run.yaml b/playbooks/legacy/sahara-tests-pylint/run.yaml new file mode 100644 index 00000000..9e927d77 --- /dev/null +++ b/playbooks/legacy/sahara-tests-pylint/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-sahara-tests-pylint from old job gate-sahara-tests-pylint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sandbox-tag/run.yaml b/playbooks/legacy/sandbox-tag/run.yaml new file mode 100644 index 00000000..4db2f581 --- /dev/null +++ b/playbooks/legacy/sandbox-tag/run.yaml @@ -0,0 +1,44 @@ +- hosts: all + name: Autoconverted job legacy-sandbox-tag from old job sandbox-tag + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/scalpels-dsvm-neutron/post.yaml b/playbooks/legacy/scalpels-dsvm-neutron/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/scalpels-dsvm-neutron/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/scalpels-dsvm-neutron/run.yaml b/playbooks/legacy/scalpels-dsvm-neutron/run.yaml new file mode 100644 index 00000000..00081e98 --- /dev/null +++ b/playbooks/legacy/scalpels-dsvm-neutron/run.yaml @@ -0,0 +1,60 @@ +- hosts: all + name: Autoconverted job legacy-scalpels-dsvm-neutron from old job gate-scalpels-dsvm-neutron-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin scalpels git://git.openstack.org/openstack/scalpels + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_NEUTRON_DVR=1 + export BRANCH_OVERRIDE=default + export PROJECTS="openstack/scalpels $PROJECTS" + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function pre_test_hook { + # setup DEVSTACK_GATE_* options here + $BASE/new/scalpels/tests/ci/pre-test-hook.sh + } + export -f pre_test_hook + + function post_test_hook { + $BASE/new/scalpels/tests/ci/scalpels-ci.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sdk-dsvm-functional/post.yaml b/playbooks/legacy/sdk-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/sdk-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/sdk-dsvm-functional/run.yaml b/playbooks/legacy/sdk-dsvm-functional/run.yaml new file mode 100644 index 00000000..f9c54386 --- /dev/null +++ b/playbooks/legacy/sdk-dsvm-functional/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-sdk-dsvm-functional from old job gate-sdk-dsvm-functional-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer + enable_plugin neutron https://git.openstack.org/openstack/neutron + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + export PROJECTS="openstack/python-openstacksdk $PROJECTS" + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export ENABLED_SERVICES=q-qos + function post_test_hook { + bash -xe $BASE/new/python-openstacksdk/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sdk-dsvm-load-balancer-functional/post.yaml b/playbooks/legacy/sdk-dsvm-load-balancer-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/sdk-dsvm-load-balancer-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/sdk-dsvm-load-balancer-functional/run.yaml b/playbooks/legacy/sdk-dsvm-load-balancer-functional/run.yaml new file mode 100644 index 00000000..8909bacf --- /dev/null +++ b/playbooks/legacy/sdk-dsvm-load-balancer-functional/run.yaml @@ -0,0 +1,61 @@ +- hosts: all + name: Autoconverted job legacy-sdk-dsvm-load-balancer-functional from old job gate-sdk-dsvm-load-balancer-functional-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin neutron https://git.openstack.org/openstack/neutron + enable_plugin octavia https://git.openstack.org/openstack/octavia + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_UNSTACK=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HEAT=0 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + export PROJECTS="openstack/python-openstacksdk $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export ENABLED_SERVICES=octavia,o-cw,o-hk,o-hm,o-api + function post_test_hook { + bash -xe $BASE/new/python-openstacksdk/post_test_hook.sh openstack.tests.functional.load_balancer + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/searchlight-ui-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/searchlight-ui-nodejs4-npm-run-lint/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/searchlight-ui-nodejs4-npm-run-lint/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/searchlight-ui-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/searchlight-ui-nodejs4-npm-run-lint/run.yaml new file mode 100644 index 00000000..8fc9a905 --- /dev/null +++ b/playbooks/legacy/searchlight-ui-nodejs4-npm-run-lint/run.yaml @@ -0,0 +1,134 @@ +- hosts: all + name: Autoconverted job legacy-searchlight-ui-nodejs4-npm-run-lint from old job + gate-searchlight-ui-nodejs4-npm-run-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )lint($| ) ]]; then + npm lint --verbose + else + npm run lint --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/searchlight-ui-nodejs4-npm-run-test/post.yaml b/playbooks/legacy/searchlight-ui-nodejs4-npm-run-test/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/searchlight-ui-nodejs4-npm-run-test/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/searchlight-ui-nodejs4-npm-run-test/run.yaml b/playbooks/legacy/searchlight-ui-nodejs4-npm-run-test/run.yaml new file mode 100644 index 00000000..7e06a894 --- /dev/null +++ b/playbooks/legacy/searchlight-ui-nodejs4-npm-run-test/run.yaml @@ -0,0 +1,134 @@ +- hosts: all + name: Autoconverted job legacy-searchlight-ui-nodejs4-npm-run-test from old job + gate-searchlight-ui-nodejs4-npm-run-test + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )test($| ) ]]; then + npm test --verbose + else + npm run test --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/security-doc-tox-doc-publishdocs/post.yaml b/playbooks/legacy/security-doc-tox-doc-publishdocs/post.yaml new file mode 100644 index 00000000..fe356df3 --- /dev/null +++ b/playbooks/legacy/security-doc-tox-doc-publishdocs/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/build-*.log.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/security-doc-tox-doc-publishdocs/run.yaml b/playbooks/legacy/security-doc-tox-doc-publishdocs/run.yaml new file mode 100644 index 00000000..c6cc7e33 --- /dev/null +++ b/playbooks/legacy/security-doc-tox-doc-publishdocs/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-security-doc-tox-doc-publishdocs from old job security-doc-tox-doc-publishdocs + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh publishdocs + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-lint/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-lint/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-lint/run.yaml new file mode 100644 index 00000000..bd53e899 --- /dev/null +++ b/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-lint/run.yaml @@ -0,0 +1,134 @@ +- hosts: all + name: Autoconverted job legacy-senlin-dashboard-nodejs4-npm-run-lint from old job + gate-senlin-dashboard-nodejs4-npm-run-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )lint($| ) ]]; then + npm lint --verbose + else + npm run lint --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-test/post.yaml b/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-test/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-test/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-test/run.yaml b/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-test/run.yaml new file mode 100644 index 00000000..6238f2f6 --- /dev/null +++ b/playbooks/legacy/senlin-dashboard-nodejs4-npm-run-test/run.yaml @@ -0,0 +1,134 @@ +- hosts: all + name: Autoconverted job legacy-senlin-dashboard-nodejs4-npm-run-test from old job + gate-senlin-dashboard-nodejs4-npm-run-test + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )test($| ) ]]; then + npm test --verbose + else + npm run test --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/senlin-dsvm-tempest-py27-api/post.yaml b/playbooks/legacy/senlin-dsvm-tempest-py27-api/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/senlin-dsvm-tempest-py27-api/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/senlin-dsvm-tempest-py27-api/run.yaml b/playbooks/legacy/senlin-dsvm-tempest-py27-api/run.yaml new file mode 100644 index 00000000..b138dbca --- /dev/null +++ b/playbooks/legacy/senlin-dsvm-tempest-py27-api/run.yaml @@ -0,0 +1,94 @@ +- hosts: all + name: Autoconverted job legacy-senlin-dsvm-tempest-py27-api from old job gate-senlin-dsvm-tempest-py27-api + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export PYTHONUNBUFFERED=True + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export KEEP_LOCALRC=1 + + if [ "py27" == "py35" ]; then + export DEVSTACK_GATE_USE_PYTHON3=True + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + export DEVSTACK_GATE_TEMPEST_REGEX="senlin.tests.tempest.api" + + services=rabbit,mysql,dstat,key,tempest + services+=,g-api,g-reg + services+=,n-api,n-cpu,n-cond,n-sch,n-crt + # placement services mandatory for nova from ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + services+=,placement-api,placement-client + fi + services+=,c-sch,c-api,c-vol,c-bak + services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 + + export PROJECTS="openstack/senlin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin senlin https://git.openstack.org/openstack/senlin" + + if [ "api" == "api" ]||[ "api" == "functional" ]; then + export SENLIN_BACKEND="openstack_test" + else + export SENLIN_BACKEND="openstack" + export PROJECTS="openstack/heat $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + # Enable LBaaS V2 plugin + services+=,q-lbaasv2 + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas" + + # Enable Zaqar + export PROJECTS="openstack/zaqar $PROJECTS" + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + + export OVERRIDE_ENABLED_SERVICES=$services + + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function pre_test_hook { + cd /opt/stack/new/senlin/senlin/tests/tempest/ + ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/senlin/senlin/tests/tempest/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/senlin-dsvm-tempest-py27-functional/post.yaml b/playbooks/legacy/senlin-dsvm-tempest-py27-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/senlin-dsvm-tempest-py27-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/senlin-dsvm-tempest-py27-functional/run.yaml b/playbooks/legacy/senlin-dsvm-tempest-py27-functional/run.yaml new file mode 100644 index 00000000..888556de --- /dev/null +++ b/playbooks/legacy/senlin-dsvm-tempest-py27-functional/run.yaml @@ -0,0 +1,95 @@ +- hosts: all + name: Autoconverted job legacy-senlin-dsvm-tempest-py27-functional from old job + gate-senlin-dsvm-tempest-py27-functional + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export PYTHONUNBUFFERED=True + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export KEEP_LOCALRC=1 + + if [ "py27" == "py35" ]; then + export DEVSTACK_GATE_USE_PYTHON3=True + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + export DEVSTACK_GATE_TEMPEST_REGEX="senlin.tests.tempest.functional" + + services=rabbit,mysql,dstat,key,tempest + services+=,g-api,g-reg + services+=,n-api,n-cpu,n-cond,n-sch,n-crt + # placement services mandatory for nova from ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + services+=,placement-api,placement-client + fi + services+=,c-sch,c-api,c-vol,c-bak + services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 + + export PROJECTS="openstack/senlin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin senlin https://git.openstack.org/openstack/senlin" + + if [ "functional" == "api" ]||[ "functional" == "functional" ]; then + export SENLIN_BACKEND="openstack_test" + else + export SENLIN_BACKEND="openstack" + export PROJECTS="openstack/heat $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + # Enable LBaaS V2 plugin + services+=,q-lbaasv2 + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas" + + # Enable Zaqar + export PROJECTS="openstack/zaqar $PROJECTS" + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + + export OVERRIDE_ENABLED_SERVICES=$services + + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function pre_test_hook { + cd /opt/stack/new/senlin/senlin/tests/tempest/ + ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/senlin/senlin/tests/tempest/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/senlin-dsvm-tempest-py27-integration/post.yaml b/playbooks/legacy/senlin-dsvm-tempest-py27-integration/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/senlin-dsvm-tempest-py27-integration/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/senlin-dsvm-tempest-py27-integration/run.yaml b/playbooks/legacy/senlin-dsvm-tempest-py27-integration/run.yaml new file mode 100644 index 00000000..9d6b297d --- /dev/null +++ b/playbooks/legacy/senlin-dsvm-tempest-py27-integration/run.yaml @@ -0,0 +1,95 @@ +- hosts: all + name: Autoconverted job legacy-senlin-dsvm-tempest-py27-integration from old job + gate-senlin-dsvm-tempest-py27-integration-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export PYTHONUNBUFFERED=True + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export KEEP_LOCALRC=1 + + if [ "py27" == "py35" ]; then + export DEVSTACK_GATE_USE_PYTHON3=True + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + export DEVSTACK_GATE_TEMPEST_REGEX="senlin.tests.tempest.integration" + + services=rabbit,mysql,dstat,key,tempest + services+=,g-api,g-reg + services+=,n-api,n-cpu,n-cond,n-sch,n-crt + # placement services mandatory for nova from ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + services+=,placement-api,placement-client + fi + services+=,c-sch,c-api,c-vol,c-bak + services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 + + export PROJECTS="openstack/senlin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin senlin https://git.openstack.org/openstack/senlin" + + if [ "integration" == "api" ]||[ "integration" == "functional" ]; then + export SENLIN_BACKEND="openstack_test" + else + export SENLIN_BACKEND="openstack" + export PROJECTS="openstack/heat $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + # Enable LBaaS V2 plugin + services+=,q-lbaasv2 + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas" + + # Enable Zaqar + export PROJECTS="openstack/zaqar $PROJECTS" + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + + export OVERRIDE_ENABLED_SERVICES=$services + + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function pre_test_hook { + cd /opt/stack/new/senlin/senlin/tests/tempest/ + ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/senlin/senlin/tests/tempest/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/senlin-dsvm-tempest-py35-api/post.yaml b/playbooks/legacy/senlin-dsvm-tempest-py35-api/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/senlin-dsvm-tempest-py35-api/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/senlin-dsvm-tempest-py35-api/run.yaml b/playbooks/legacy/senlin-dsvm-tempest-py35-api/run.yaml new file mode 100644 index 00000000..9ebcbe0c --- /dev/null +++ b/playbooks/legacy/senlin-dsvm-tempest-py35-api/run.yaml @@ -0,0 +1,94 @@ +- hosts: all + name: Autoconverted job legacy-senlin-dsvm-tempest-py35-api from old job gate-senlin-dsvm-tempest-py35-api-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export PYTHONUNBUFFERED=True + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export KEEP_LOCALRC=1 + + if [ "py35" == "py35" ]; then + export DEVSTACK_GATE_USE_PYTHON3=True + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + export DEVSTACK_GATE_TEMPEST_REGEX="senlin.tests.tempest.api" + + services=rabbit,mysql,dstat,key,tempest + services+=,g-api,g-reg + services+=,n-api,n-cpu,n-cond,n-sch,n-crt + # placement services mandatory for nova from ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + services+=,placement-api,placement-client + fi + services+=,c-sch,c-api,c-vol,c-bak + services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 + + export PROJECTS="openstack/senlin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin senlin https://git.openstack.org/openstack/senlin" + + if [ "api" == "api" ]||[ "api" == "functional" ]; then + export SENLIN_BACKEND="openstack_test" + else + export SENLIN_BACKEND="openstack" + export PROJECTS="openstack/heat $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + # Enable LBaaS V2 plugin + services+=,q-lbaasv2 + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas" + + # Enable Zaqar + export PROJECTS="openstack/zaqar $PROJECTS" + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + + export OVERRIDE_ENABLED_SERVICES=$services + + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function pre_test_hook { + cd /opt/stack/new/senlin/senlin/tests/tempest/ + ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/senlin/senlin/tests/tempest/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/senlin-dsvm-tempest-py35-functional/post.yaml b/playbooks/legacy/senlin-dsvm-tempest-py35-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/senlin-dsvm-tempest-py35-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/senlin-dsvm-tempest-py35-functional/run.yaml b/playbooks/legacy/senlin-dsvm-tempest-py35-functional/run.yaml new file mode 100644 index 00000000..ee809d8b --- /dev/null +++ b/playbooks/legacy/senlin-dsvm-tempest-py35-functional/run.yaml @@ -0,0 +1,95 @@ +- hosts: all + name: Autoconverted job legacy-senlin-dsvm-tempest-py35-functional from old job + gate-senlin-dsvm-tempest-py35-functional-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export PYTHONUNBUFFERED=True + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export KEEP_LOCALRC=1 + + if [ "py35" == "py35" ]; then + export DEVSTACK_GATE_USE_PYTHON3=True + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + export DEVSTACK_GATE_TEMPEST_REGEX="senlin.tests.tempest.functional" + + services=rabbit,mysql,dstat,key,tempest + services+=,g-api,g-reg + services+=,n-api,n-cpu,n-cond,n-sch,n-crt + # placement services mandatory for nova from ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + services+=,placement-api,placement-client + fi + services+=,c-sch,c-api,c-vol,c-bak + services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 + + export PROJECTS="openstack/senlin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin senlin https://git.openstack.org/openstack/senlin" + + if [ "functional" == "api" ]||[ "functional" == "functional" ]; then + export SENLIN_BACKEND="openstack_test" + else + export SENLIN_BACKEND="openstack" + export PROJECTS="openstack/heat $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + # Enable LBaaS V2 plugin + services+=,q-lbaasv2 + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas" + + # Enable Zaqar + export PROJECTS="openstack/zaqar $PROJECTS" + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + + export OVERRIDE_ENABLED_SERVICES=$services + + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function pre_test_hook { + cd /opt/stack/new/senlin/senlin/tests/tempest/ + ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/senlin/senlin/tests/tempest/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/senlin-dsvm-tempest-py35-integration/post.yaml b/playbooks/legacy/senlin-dsvm-tempest-py35-integration/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/senlin-dsvm-tempest-py35-integration/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/senlin-dsvm-tempest-py35-integration/run.yaml b/playbooks/legacy/senlin-dsvm-tempest-py35-integration/run.yaml new file mode 100644 index 00000000..d0b68c2e --- /dev/null +++ b/playbooks/legacy/senlin-dsvm-tempest-py35-integration/run.yaml @@ -0,0 +1,95 @@ +- hosts: all + name: Autoconverted job legacy-senlin-dsvm-tempest-py35-integration from old job + gate-senlin-dsvm-tempest-py35-integration-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export PYTHONUNBUFFERED=True + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export KEEP_LOCALRC=1 + + if [ "py35" == "py35" ]; then + export DEVSTACK_GATE_USE_PYTHON3=True + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + export DEVSTACK_GATE_TEMPEST_REGEX="senlin.tests.tempest.integration" + + services=rabbit,mysql,dstat,key,tempest + services+=,g-api,g-reg + services+=,n-api,n-cpu,n-cond,n-sch,n-crt + # placement services mandatory for nova from ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + services+=,placement-api,placement-client + fi + services+=,c-sch,c-api,c-vol,c-bak + services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 + + export PROJECTS="openstack/senlin $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin senlin https://git.openstack.org/openstack/senlin" + + if [ "integration" == "api" ]||[ "integration" == "functional" ]; then + export SENLIN_BACKEND="openstack_test" + else + export SENLIN_BACKEND="openstack" + export PROJECTS="openstack/heat $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + # Enable LBaaS V2 plugin + services+=,q-lbaasv2 + export PROJECTS="openstack/neutron-lbaas $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas" + + # Enable Zaqar + export PROJECTS="openstack/zaqar $PROJECTS" + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin zaqar git://git.openstack.org/openstack/zaqar" + fi + + export OVERRIDE_ENABLED_SERVICES=$services + + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function pre_test_hook { + cd /opt/stack/new/senlin/senlin/tests/tempest/ + ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/senlin/senlin/tests/tempest/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/senlinclient-dsvm-functional/post.yaml b/playbooks/legacy/senlinclient-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/senlinclient-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/senlinclient-dsvm-functional/run.yaml b/playbooks/legacy/senlinclient-dsvm-functional/run.yaml new file mode 100644 index 00000000..0a45be33 --- /dev/null +++ b/playbooks/legacy/senlinclient-dsvm-functional/run.yaml @@ -0,0 +1,62 @@ +- hosts: all + name: Autoconverted job legacy-senlinclient-dsvm-functional from old job gate-senlinclient-dsvm-functional-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin senlin https://git.openstack.org/openstack/senlin + enable_service sl-api sl-eng + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE=default + export KEEP_LOCALRC=1 + export PROJECTS="openstack/senlin $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-senlinclient + export SENLIN_BACKEND="openstack_test" + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function pre_test_hook { + cd /opt/stack/new/python-senlinclient/senlinclient/tests/functional/ + ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/python-senlinclient/senlinclient/tests/functional/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/service-types-authority-validate/post.yaml b/playbooks/legacy/service-types-authority-validate/post.yaml new file mode 100644 index 00000000..0744a27c --- /dev/null +++ b/playbooks/legacy/service-types-authority-validate/post.yaml @@ -0,0 +1,93 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/publish/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/service-types.json* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/service-types-authority-validate/run.yaml b/playbooks/legacy/service-types-authority-validate/run.yaml new file mode 100644 index 00000000..d04f5757 --- /dev/null +++ b/playbooks/legacy/service-types-authority-validate/run.yaml @@ -0,0 +1,69 @@ +- hosts: all + name: Autoconverted job legacy-service-types-authority-validate from old job gate-service-types-authority-validate + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh publish + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/shade-ansible-dev/post.yaml b/playbooks/legacy/shade-ansible-dev/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/shade-ansible-dev/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/shade-ansible-dev/run.yaml b/playbooks/legacy/shade-ansible-dev/run.yaml new file mode 100644 index 00000000..1953a630 --- /dev/null +++ b/playbooks/legacy/shade-ansible-dev/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-shade-ansible-dev from old job gate-shade-ansible-dev-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_IDENTITY_V2=False + Q_SERVICE_PLUGIN_CLASSES="qos" + Q_ML2_PLUGIN_EXT_DRIVERS="qos,port_security" + enable_plugin heat https://git.openstack.org/openstack/heat + disable_service ceilometer-acentral + disable_service ceilometer-acompute + disable_service ceilometer-alarm-evaluator + disable_service ceilometer-alarm-notifier + disable_service ceilometer-anotification + disable_service ceilometer-api + disable_service ceilometer-collector + disable_service horizon + [[post-config|$CINDER_CONF]] + [DEFAULT] + osapi_max_limit=6 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_NEUTRON=1 + export PYTHONUNBUFFERED=true + export SHADE_HAS_DESIGNATE=0 + export SHADE_HAS_HEAT=1 + export SHADE_HAS_MAGNUM=0 + export SHADE_HAS_NEUTRON=1 + export SHADE_HAS_SWIFT=1 + if [ "-dev" == "-dev" ]; then + export SHADE_ANSBILE_DEV=1 + fi + + export PROJECTS="openstack-infra/shade $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook { + $BASE/new/shade/shade/tests/ansible/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/shade-ansible/post.yaml b/playbooks/legacy/shade-ansible/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/shade-ansible/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/shade-ansible/run.yaml b/playbooks/legacy/shade-ansible/run.yaml new file mode 100644 index 00000000..53df07b4 --- /dev/null +++ b/playbooks/legacy/shade-ansible/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-shade-ansible from old job gate-shade-ansible + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_IDENTITY_V2=False + Q_SERVICE_PLUGIN_CLASSES="qos" + Q_ML2_PLUGIN_EXT_DRIVERS="qos,port_security" + enable_plugin heat https://git.openstack.org/openstack/heat + disable_service ceilometer-acentral + disable_service ceilometer-acompute + disable_service ceilometer-alarm-evaluator + disable_service ceilometer-alarm-notifier + disable_service ceilometer-anotification + disable_service ceilometer-api + disable_service ceilometer-collector + disable_service horizon + [[post-config|$CINDER_CONF]] + [DEFAULT] + osapi_max_limit=6 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_NEUTRON=1 + export PYTHONUNBUFFERED=true + export SHADE_HAS_DESIGNATE=0 + export SHADE_HAS_HEAT=1 + export SHADE_HAS_MAGNUM=0 + export SHADE_HAS_NEUTRON=1 + export SHADE_HAS_SWIFT=1 + if [ "" == "-dev" ]; then + export SHADE_ANSBILE_DEV=1 + fi + + export PROJECTS="openstack-infra/shade $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook { + $BASE/new/shade/shade/tests/ansible/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/shade-functional-legacy/post.yaml b/playbooks/legacy/shade-functional-legacy/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/shade-functional-legacy/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/shade-functional-legacy/run.yaml b/playbooks/legacy/shade-functional-legacy/run.yaml new file mode 100644 index 00000000..186e5b2a --- /dev/null +++ b/playbooks/legacy/shade-functional-legacy/run.yaml @@ -0,0 +1,109 @@ +- hosts: all + name: Autoconverted job legacy-shade-functional-legacy from old job gate-shade-functional-legacy + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_IDENTITY_V2=False + Q_SERVICE_PLUGIN_CLASSES="qos" + Q_ML2_PLUGIN_EXT_DRIVERS="qos,port_security" + enable_plugin heat https://git.openstack.org/openstack/heat + disable_service ceilometer-acentral + disable_service ceilometer-acompute + disable_service ceilometer-alarm-evaluator + disable_service ceilometer-alarm-notifier + disable_service ceilometer-anotification + disable_service ceilometer-api + disable_service ceilometer-collector + disable_service horizon + [[post-config|$CINDER_CONF]] + [DEFAULT] + osapi_max_limit=6 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ "-legacy" == "-legacy" ]; then + export DEVSTACK_GATE_NEUTRON=0 + # the local.conf macro does not allow for conditional setting. + # Set the default above, then edit it here for the legacy case + # where we want to flip the bit. This should work unless someone + # redefines the /tmp/dg-local.conf location in the local_conf: + # macro. + sed -i -e 's/ENABLE_IDENTITY_V2=False/ENABLE_IDENTITY_V2=True/' /tmp/dg-local.conf + sed -i -e '/Q_SERVICE_PLUGIN_CLASSES="qos"/d' /tmp/dg-local.conf + sed -i -e '/Q_ML2_PLUGIN_EXT_DRIVERS="qos,port_security/d' /tmp/dg-local.conf + export SHADE_USE_KEYSTONE_V2=1 + else + export DEVSTACK_GATE_NEUTRON=1 + fi + export DEVSTACK_GATE_HEAT=1 + export PYTHONUNBUFFERED=true + export SHADE_HAS_DESIGNATE=0 + export SHADE_HAS_HEAT=1 + export SHADE_HAS_MAGNUM=0 + export SHADE_HAS_NEUTRON=$DEVSTACK_GATE_NEUTRON + export SHADE_HAS_SWIFT=1 + if [ "" == "-py35" ]; then + export SHADE_TOX_PYTHON=python3 + fi + + export PROJECTS="openstack-infra/shade $PROJECTS" + if [ "" == "-libs" ]; then + export PROJECTS="openstack/keystoneauth $PROJECTS" + export PROJECTS="openstack/os-client-config $PROJECTS" + export PROJECTS="openstack/python-keystoneclient $PROJECTS" + export PROJECTS="openstack/python-novaclient $PROJECTS" + + if [ "-legacy" == "-legacy" ]; then + # The purpose of the -legacy-libs job is to test that latest + # libs work with old OpenStack. We do not want to install + # OpenStack from tip of master of the libs. We want to + # install tip of master of the libs into our functional venv. + export OVERRIDE_OS_CLIENT_CONFIG_PROJECT_BRANCH="master" + export OVERRIDE_KEYSTONEAUTH_PROJECT_BRANCH="master" + export OVERRIDE_PYTHON_NOVACLIENT_PROJECT_BRANCH="master" + export OVERRIDE_PYTHON_KEYSTONECLIENT_PROJECT_BRANCH="master" + fi + fi + + if [ "-legacy" == "-legacy" ]; then + export BRANCH_OVERRIDE="stable/newton" + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + else + export BRANCH_OVERRIDE="default" + fi + + function post_test_hook { + $BASE/new/shade/shade/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/shade-functional-libs-py35/post.yaml b/playbooks/legacy/shade-functional-libs-py35/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/shade-functional-libs-py35/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/shade-functional-libs-py35/run.yaml b/playbooks/legacy/shade-functional-libs-py35/run.yaml new file mode 100644 index 00000000..c5c3fdd9 --- /dev/null +++ b/playbooks/legacy/shade-functional-libs-py35/run.yaml @@ -0,0 +1,109 @@ +- hosts: all + name: Autoconverted job legacy-shade-functional-libs-py35 from old job gate-shade-functional-libs-py35-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_IDENTITY_V2=False + Q_SERVICE_PLUGIN_CLASSES="qos" + Q_ML2_PLUGIN_EXT_DRIVERS="qos,port_security" + enable_plugin heat https://git.openstack.org/openstack/heat + disable_service ceilometer-acentral + disable_service ceilometer-acompute + disable_service ceilometer-alarm-evaluator + disable_service ceilometer-alarm-notifier + disable_service ceilometer-anotification + disable_service ceilometer-api + disable_service ceilometer-collector + disable_service horizon + [[post-config|$CINDER_CONF]] + [DEFAULT] + osapi_max_limit=6 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ "" == "-legacy" ]; then + export DEVSTACK_GATE_NEUTRON=0 + # the local.conf macro does not allow for conditional setting. + # Set the default above, then edit it here for the legacy case + # where we want to flip the bit. This should work unless someone + # redefines the /tmp/dg-local.conf location in the local_conf: + # macro. + sed -i -e 's/ENABLE_IDENTITY_V2=False/ENABLE_IDENTITY_V2=True/' /tmp/dg-local.conf + sed -i -e '/Q_SERVICE_PLUGIN_CLASSES="qos"/d' /tmp/dg-local.conf + sed -i -e '/Q_ML2_PLUGIN_EXT_DRIVERS="qos,port_security/d' /tmp/dg-local.conf + export SHADE_USE_KEYSTONE_V2=1 + else + export DEVSTACK_GATE_NEUTRON=1 + fi + export DEVSTACK_GATE_HEAT=1 + export PYTHONUNBUFFERED=true + export SHADE_HAS_DESIGNATE=0 + export SHADE_HAS_HEAT=1 + export SHADE_HAS_MAGNUM=0 + export SHADE_HAS_NEUTRON=$DEVSTACK_GATE_NEUTRON + export SHADE_HAS_SWIFT=1 + if [ "-py35" == "-py35" ]; then + export SHADE_TOX_PYTHON=python3 + fi + + export PROJECTS="openstack-infra/shade $PROJECTS" + if [ "-libs" == "-libs" ]; then + export PROJECTS="openstack/keystoneauth $PROJECTS" + export PROJECTS="openstack/os-client-config $PROJECTS" + export PROJECTS="openstack/python-keystoneclient $PROJECTS" + export PROJECTS="openstack/python-novaclient $PROJECTS" + + if [ "" == "-legacy" ]; then + # The purpose of the -legacy-libs job is to test that latest + # libs work with old OpenStack. We do not want to install + # OpenStack from tip of master of the libs. We want to + # install tip of master of the libs into our functional venv. + export OVERRIDE_OS_CLIENT_CONFIG_PROJECT_BRANCH="master" + export OVERRIDE_KEYSTONEAUTH_PROJECT_BRANCH="master" + export OVERRIDE_PYTHON_NOVACLIENT_PROJECT_BRANCH="master" + export OVERRIDE_PYTHON_KEYSTONECLIENT_PROJECT_BRANCH="master" + fi + fi + + if [ "" == "-legacy" ]; then + export BRANCH_OVERRIDE="stable/newton" + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + else + export BRANCH_OVERRIDE="default" + fi + + function post_test_hook { + $BASE/new/shade/shade/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/shade-functional-libs/post.yaml b/playbooks/legacy/shade-functional-libs/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/shade-functional-libs/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/shade-functional-libs/run.yaml b/playbooks/legacy/shade-functional-libs/run.yaml new file mode 100644 index 00000000..7767bf5b --- /dev/null +++ b/playbooks/legacy/shade-functional-libs/run.yaml @@ -0,0 +1,109 @@ +- hosts: all + name: Autoconverted job legacy-shade-functional-libs from old job gate-shade-functional-libs-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_IDENTITY_V2=False + Q_SERVICE_PLUGIN_CLASSES="qos" + Q_ML2_PLUGIN_EXT_DRIVERS="qos,port_security" + enable_plugin heat https://git.openstack.org/openstack/heat + disable_service ceilometer-acentral + disable_service ceilometer-acompute + disable_service ceilometer-alarm-evaluator + disable_service ceilometer-alarm-notifier + disable_service ceilometer-anotification + disable_service ceilometer-api + disable_service ceilometer-collector + disable_service horizon + [[post-config|$CINDER_CONF]] + [DEFAULT] + osapi_max_limit=6 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ "" == "-legacy" ]; then + export DEVSTACK_GATE_NEUTRON=0 + # the local.conf macro does not allow for conditional setting. + # Set the default above, then edit it here for the legacy case + # where we want to flip the bit. This should work unless someone + # redefines the /tmp/dg-local.conf location in the local_conf: + # macro. + sed -i -e 's/ENABLE_IDENTITY_V2=False/ENABLE_IDENTITY_V2=True/' /tmp/dg-local.conf + sed -i -e '/Q_SERVICE_PLUGIN_CLASSES="qos"/d' /tmp/dg-local.conf + sed -i -e '/Q_ML2_PLUGIN_EXT_DRIVERS="qos,port_security/d' /tmp/dg-local.conf + export SHADE_USE_KEYSTONE_V2=1 + else + export DEVSTACK_GATE_NEUTRON=1 + fi + export DEVSTACK_GATE_HEAT=1 + export PYTHONUNBUFFERED=true + export SHADE_HAS_DESIGNATE=0 + export SHADE_HAS_HEAT=1 + export SHADE_HAS_MAGNUM=0 + export SHADE_HAS_NEUTRON=$DEVSTACK_GATE_NEUTRON + export SHADE_HAS_SWIFT=1 + if [ "" == "-py35" ]; then + export SHADE_TOX_PYTHON=python3 + fi + + export PROJECTS="openstack-infra/shade $PROJECTS" + if [ "-libs" == "-libs" ]; then + export PROJECTS="openstack/keystoneauth $PROJECTS" + export PROJECTS="openstack/os-client-config $PROJECTS" + export PROJECTS="openstack/python-keystoneclient $PROJECTS" + export PROJECTS="openstack/python-novaclient $PROJECTS" + + if [ "" == "-legacy" ]; then + # The purpose of the -legacy-libs job is to test that latest + # libs work with old OpenStack. We do not want to install + # OpenStack from tip of master of the libs. We want to + # install tip of master of the libs into our functional venv. + export OVERRIDE_OS_CLIENT_CONFIG_PROJECT_BRANCH="master" + export OVERRIDE_KEYSTONEAUTH_PROJECT_BRANCH="master" + export OVERRIDE_PYTHON_NOVACLIENT_PROJECT_BRANCH="master" + export OVERRIDE_PYTHON_KEYSTONECLIENT_PROJECT_BRANCH="master" + fi + fi + + if [ "" == "-legacy" ]; then + export BRANCH_OVERRIDE="stable/newton" + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + else + export BRANCH_OVERRIDE="default" + fi + + function post_test_hook { + $BASE/new/shade/shade/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/shade-functional-magnum/post.yaml b/playbooks/legacy/shade-functional-magnum/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/shade-functional-magnum/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/shade-functional-magnum/run.yaml b/playbooks/legacy/shade-functional-magnum/run.yaml new file mode 100644 index 00000000..540295b3 --- /dev/null +++ b/playbooks/legacy/shade-functional-magnum/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-shade-functional-magnum from old job gate-shade-functional-magnum-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin magnum https://git.openstack.org/openstack/magnum + MAGNUM_GUEST_IMAGE_URL=https://tarballs.openstack.org/magnum/images/fedora-atomic-f23-dib.qcow2 + MAGNUM_IMAGE_NAME=fedora-atomic-f23-dib + disable_service ceilometer-acentral + disable_service ceilometer-acompute + disable_service ceilometer-alarm-evaluator + disable_service ceilometer-alarm-notifier + disable_service ceilometer-anotification + disable_service ceilometer-api + disable_service ceilometer-collector + disable_service horizon + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export SHADE_HAS_DESIGNATE=0 + export SHADE_HAS_HEAT=0 + export SHADE_HAS_MAGNUM=1 + export SHADE_HAS_NEUTRON=1 + export SHADE_HAS_SWIFT=0 + export DEVSTACK_GATE_NEUTRON=1 + + export PROJECTS="openstack-infra/shade $PROJECTS" + export PROJECTS="openstack/magnum $PROJECTS" + export PROJECTS="openstack/python-magnumclient $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook { + $BASE/new/shade/shade/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/shade-functional-py35/post.yaml b/playbooks/legacy/shade-functional-py35/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/shade-functional-py35/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/shade-functional-py35/run.yaml b/playbooks/legacy/shade-functional-py35/run.yaml new file mode 100644 index 00000000..4cf0fc83 --- /dev/null +++ b/playbooks/legacy/shade-functional-py35/run.yaml @@ -0,0 +1,109 @@ +- hosts: all + name: Autoconverted job legacy-shade-functional-py35 from old job gate-shade-functional-py35 + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_IDENTITY_V2=False + Q_SERVICE_PLUGIN_CLASSES="qos" + Q_ML2_PLUGIN_EXT_DRIVERS="qos,port_security" + enable_plugin heat https://git.openstack.org/openstack/heat + disable_service ceilometer-acentral + disable_service ceilometer-acompute + disable_service ceilometer-alarm-evaluator + disable_service ceilometer-alarm-notifier + disable_service ceilometer-anotification + disable_service ceilometer-api + disable_service ceilometer-collector + disable_service horizon + [[post-config|$CINDER_CONF]] + [DEFAULT] + osapi_max_limit=6 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ "" == "-legacy" ]; then + export DEVSTACK_GATE_NEUTRON=0 + # the local.conf macro does not allow for conditional setting. + # Set the default above, then edit it here for the legacy case + # where we want to flip the bit. This should work unless someone + # redefines the /tmp/dg-local.conf location in the local_conf: + # macro. + sed -i -e 's/ENABLE_IDENTITY_V2=False/ENABLE_IDENTITY_V2=True/' /tmp/dg-local.conf + sed -i -e '/Q_SERVICE_PLUGIN_CLASSES="qos"/d' /tmp/dg-local.conf + sed -i -e '/Q_ML2_PLUGIN_EXT_DRIVERS="qos,port_security/d' /tmp/dg-local.conf + export SHADE_USE_KEYSTONE_V2=1 + else + export DEVSTACK_GATE_NEUTRON=1 + fi + export DEVSTACK_GATE_HEAT=1 + export PYTHONUNBUFFERED=true + export SHADE_HAS_DESIGNATE=0 + export SHADE_HAS_HEAT=1 + export SHADE_HAS_MAGNUM=0 + export SHADE_HAS_NEUTRON=$DEVSTACK_GATE_NEUTRON + export SHADE_HAS_SWIFT=1 + if [ "-py35" == "-py35" ]; then + export SHADE_TOX_PYTHON=python3 + fi + + export PROJECTS="openstack-infra/shade $PROJECTS" + if [ "" == "-libs" ]; then + export PROJECTS="openstack/keystoneauth $PROJECTS" + export PROJECTS="openstack/os-client-config $PROJECTS" + export PROJECTS="openstack/python-keystoneclient $PROJECTS" + export PROJECTS="openstack/python-novaclient $PROJECTS" + + if [ "" == "-legacy" ]; then + # The purpose of the -legacy-libs job is to test that latest + # libs work with old OpenStack. We do not want to install + # OpenStack from tip of master of the libs. We want to + # install tip of master of the libs into our functional venv. + export OVERRIDE_OS_CLIENT_CONFIG_PROJECT_BRANCH="master" + export OVERRIDE_KEYSTONEAUTH_PROJECT_BRANCH="master" + export OVERRIDE_PYTHON_NOVACLIENT_PROJECT_BRANCH="master" + export OVERRIDE_PYTHON_KEYSTONECLIENT_PROJECT_BRANCH="master" + fi + fi + + if [ "" == "-legacy" ]; then + export BRANCH_OVERRIDE="stable/newton" + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + else + export BRANCH_OVERRIDE="default" + fi + + function post_test_hook { + $BASE/new/shade/shade/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/shade-functional/post.yaml b/playbooks/legacy/shade-functional/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/shade-functional/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/shade-functional/run.yaml b/playbooks/legacy/shade-functional/run.yaml new file mode 100644 index 00000000..dd74357f --- /dev/null +++ b/playbooks/legacy/shade-functional/run.yaml @@ -0,0 +1,109 @@ +- hosts: all + name: Autoconverted job legacy-shade-functional from old job gate-shade-functional + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_IDENTITY_V2=False + Q_SERVICE_PLUGIN_CLASSES="qos" + Q_ML2_PLUGIN_EXT_DRIVERS="qos,port_security" + enable_plugin heat https://git.openstack.org/openstack/heat + disable_service ceilometer-acentral + disable_service ceilometer-acompute + disable_service ceilometer-alarm-evaluator + disable_service ceilometer-alarm-notifier + disable_service ceilometer-anotification + disable_service ceilometer-api + disable_service ceilometer-collector + disable_service horizon + [[post-config|$CINDER_CONF]] + [DEFAULT] + osapi_max_limit=6 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ "" == "-legacy" ]; then + export DEVSTACK_GATE_NEUTRON=0 + # the local.conf macro does not allow for conditional setting. + # Set the default above, then edit it here for the legacy case + # where we want to flip the bit. This should work unless someone + # redefines the /tmp/dg-local.conf location in the local_conf: + # macro. + sed -i -e 's/ENABLE_IDENTITY_V2=False/ENABLE_IDENTITY_V2=True/' /tmp/dg-local.conf + sed -i -e '/Q_SERVICE_PLUGIN_CLASSES="qos"/d' /tmp/dg-local.conf + sed -i -e '/Q_ML2_PLUGIN_EXT_DRIVERS="qos,port_security/d' /tmp/dg-local.conf + export SHADE_USE_KEYSTONE_V2=1 + else + export DEVSTACK_GATE_NEUTRON=1 + fi + export DEVSTACK_GATE_HEAT=1 + export PYTHONUNBUFFERED=true + export SHADE_HAS_DESIGNATE=0 + export SHADE_HAS_HEAT=1 + export SHADE_HAS_MAGNUM=0 + export SHADE_HAS_NEUTRON=$DEVSTACK_GATE_NEUTRON + export SHADE_HAS_SWIFT=1 + if [ "" == "-py35" ]; then + export SHADE_TOX_PYTHON=python3 + fi + + export PROJECTS="openstack-infra/shade $PROJECTS" + if [ "" == "-libs" ]; then + export PROJECTS="openstack/keystoneauth $PROJECTS" + export PROJECTS="openstack/os-client-config $PROJECTS" + export PROJECTS="openstack/python-keystoneclient $PROJECTS" + export PROJECTS="openstack/python-novaclient $PROJECTS" + + if [ "" == "-legacy" ]; then + # The purpose of the -legacy-libs job is to test that latest + # libs work with old OpenStack. We do not want to install + # OpenStack from tip of master of the libs. We want to + # install tip of master of the libs into our functional venv. + export OVERRIDE_OS_CLIENT_CONFIG_PROJECT_BRANCH="master" + export OVERRIDE_KEYSTONEAUTH_PROJECT_BRANCH="master" + export OVERRIDE_PYTHON_NOVACLIENT_PROJECT_BRANCH="master" + export OVERRIDE_PYTHON_KEYSTONECLIENT_PROJECT_BRANCH="master" + fi + fi + + if [ "" == "-legacy" ]; then + export BRANCH_OVERRIDE="stable/newton" + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + else + export BRANCH_OVERRIDE="default" + fi + + function post_test_hook { + $BASE/new/shade/shade/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/solum-devstack-dsvm-centos-7/post.yaml b/playbooks/legacy/solum-devstack-dsvm-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/solum-devstack-dsvm-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/solum-devstack-dsvm-centos-7/run.yaml b/playbooks/legacy/solum-devstack-dsvm-centos-7/run.yaml new file mode 100644 index 00000000..0e462c4e --- /dev/null +++ b/playbooks/legacy/solum-devstack-dsvm-centos-7/run.yaml @@ -0,0 +1,74 @@ +- hosts: all + name: Autoconverted job legacy-solum-devstack-dsvm-centos-7 from old job gate-solum-devstack-dsvm-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin solum git://git.openstack.org/openstack/solum + SOLUM_PROJ_DIR=/opt/stack/new/solum + enable_plugin zun git://git.openstack.org/openstack/zun + enable_plugin devstack-plugin-container git://git.openstack.org/openstack/devstack-plugin-container + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=solum,solum-api,solum-conductor,solum-deployer,solum-worker,tempest,zaqar,barbican,mistral + export PROJECTS="openstack/solum $PROJECTS" + export PROJECTS="openstack/solum-dashboard $PROJECTS" + export PROJECTS="openstack/python-solumclient $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + export PROJECTS="openstack/zun $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + export PROJECTS="openstack/python-zunclient $PROJECTS" + + export KEEP_LOCALRC=1 + + function pre_test_hook { + cd /opt/stack/new/solum/functionaltests + ./pre_test_hook.sh + } + export -f pre_test_hook + + function gate_hook { + cd /opt/stack/new/solum/functionaltests + ./gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/solum/functionaltests + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/solum-devstack-dsvm-py35/post.yaml b/playbooks/legacy/solum-devstack-dsvm-py35/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/solum-devstack-dsvm-py35/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/solum-devstack-dsvm-py35/run.yaml b/playbooks/legacy/solum-devstack-dsvm-py35/run.yaml new file mode 100644 index 00000000..e1710293 --- /dev/null +++ b/playbooks/legacy/solum-devstack-dsvm-py35/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-solum-devstack-dsvm-py35 from old job gate-solum-devstack-dsvm-py35-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin solum git://git.openstack.org/openstack/solum + SOLUM_PROJ_DIR=/opt/stack/new/solum + enable_plugin zun git://git.openstack.org/openstack/zun + enable_plugin devstack-plugin-container git://git.openstack.org/openstack/devstack-plugin-container + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=solum,solum-api,solum-conductor,solum-deployer,solum-worker,tempest,zaqar,barbican,mistral + export PROJECTS="openstack/solum $PROJECTS" + export PROJECTS="openstack/solum-dashboard $PROJECTS" + export PROJECTS="openstack/python-solumclient $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + export PROJECTS="openstack/zun $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + export PROJECTS="openstack/python-zunclient $PROJECTS" + + export KEEP_LOCALRC=1 + + function pre_test_hook { + cd /opt/stack/new/solum/functionaltests + ./pre_test_hook.sh + } + export -f pre_test_hook + + function gate_hook { + cd /opt/stack/new/solum/functionaltests + ./gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/solum/functionaltests + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/solum-devstack-dsvm-seperate-test/post.yaml b/playbooks/legacy/solum-devstack-dsvm-seperate-test/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/solum-devstack-dsvm-seperate-test/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/solum-devstack-dsvm-seperate-test/run.yaml b/playbooks/legacy/solum-devstack-dsvm-seperate-test/run.yaml new file mode 100644 index 00000000..7f4f13c0 --- /dev/null +++ b/playbooks/legacy/solum-devstack-dsvm-seperate-test/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-solum-devstack-dsvm-seperate-test from old job gate-solum-devstack-dsvm-seperate-test-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + TEMPEST_PLUGINS='/opt/stack/new/solum-tempest-plugin' + enable_plugin solum git://git.openstack.org/openstack/solum + SOLUM_PROJ_DIR=/opt/stack/new/solum + enable_plugin zun git://git.openstack.org/openstack/zun + enable_plugin devstack-plugin-container git://git.openstack.org/openstack/devstack-plugin-container + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=solum,solum-api,solum-conductor,solum-deployer,solum-worker,tempest,zaqar,barbican,mistral + export PROJECTS="openstack/solum $PROJECTS" + export PROJECTS="openstack/solum-dashboard $PROJECTS" + export PROJECTS="openstack/python-solumclient $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + export PROJECTS="openstack/zun $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + export PROJECTS="openstack/python-zunclient $PROJECTS" + export PROJECTS="openstack/solum-tempest-plugin $PROJECTS" + + export KEEP_LOCALRC=1 + + function pre_test_hook { + cd /opt/stack/new/solum/functionaltests + ./pre_test_hook.sh + } + export -f pre_test_hook + + function gate_hook { + cd /opt/stack/new/solum/functionaltests + ./gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/solum/functionaltests + ./post_test_hook_split.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/solum-devstack-dsvm/post.yaml b/playbooks/legacy/solum-devstack-dsvm/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/solum-devstack-dsvm/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/solum-devstack-dsvm/run.yaml b/playbooks/legacy/solum-devstack-dsvm/run.yaml new file mode 100644 index 00000000..26dbfc3f --- /dev/null +++ b/playbooks/legacy/solum-devstack-dsvm/run.yaml @@ -0,0 +1,74 @@ +- hosts: all + name: Autoconverted job legacy-solum-devstack-dsvm from old job gate-solum-devstack-dsvm-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin solum git://git.openstack.org/openstack/solum + SOLUM_PROJ_DIR=/opt/stack/new/solum + enable_plugin zun git://git.openstack.org/openstack/zun + enable_plugin devstack-plugin-container git://git.openstack.org/openstack/devstack-plugin-container + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export ENABLED_SERVICES=solum,solum-api,solum-conductor,solum-deployer,solum-worker,tempest,zaqar,barbican,mistral + export PROJECTS="openstack/solum $PROJECTS" + export PROJECTS="openstack/solum-dashboard $PROJECTS" + export PROJECTS="openstack/python-solumclient $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + export PROJECTS="openstack/zun $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + export PROJECTS="openstack/python-zunclient $PROJECTS" + + export KEEP_LOCALRC=1 + + function pre_test_hook { + cd /opt/stack/new/solum/functionaltests + ./pre_test_hook.sh + } + export -f pre_test_hook + + function gate_hook { + cd /opt/stack/new/solum/functionaltests + ./gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + cd /opt/stack/new/solum/functionaltests + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sqlalchemy-migrate-devstack-dsvm/post.yaml b/playbooks/legacy/sqlalchemy-migrate-devstack-dsvm/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/sqlalchemy-migrate-devstack-dsvm/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/sqlalchemy-migrate-devstack-dsvm/run.yaml b/playbooks/legacy/sqlalchemy-migrate-devstack-dsvm/run.yaml new file mode 100644 index 00000000..50c1075c --- /dev/null +++ b/playbooks/legacy/sqlalchemy-migrate-devstack-dsvm/run.yaml @@ -0,0 +1,42 @@ +- hosts: all + name: Autoconverted job legacy-sqlalchemy-migrate-devstack-dsvm from old job gate-sqlalchemy-migrate-devstack-dsvm-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export PROJECTS="openstack/sqlalchemy-migrate $PROJECTS" + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function pre_test_hook { + cd /opt/stack/new/sqlalchemy-migrate + sudo -H pip install . + } + export -f pre_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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/sqlalchemy-migrate-tox-py27sa07/post.yaml b/playbooks/legacy/sqlalchemy-migrate-tox-py27sa07/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/sqlalchemy-migrate-tox-py27sa07/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/sqlalchemy-migrate-tox-py27sa07/run.yaml b/playbooks/legacy/sqlalchemy-migrate-tox-py27sa07/run.yaml new file mode 100644 index 00000000..b3c3ba63 --- /dev/null +++ b/playbooks/legacy/sqlalchemy-migrate-tox-py27sa07/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-sqlalchemy-migrate-tox-py27sa07 from old job gate-sqlalchemy-migrate-tox-py27sa07-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27sa07 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/static-election-publish/post.yaml b/playbooks/legacy/static-election-publish/post.yaml new file mode 100644 index 00000000..87d8cf6a --- /dev/null +++ b/playbooks/legacy/static-election-publish/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: election/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/static-election-publish/run.yaml b/playbooks/legacy/static-election-publish/run.yaml new file mode 100644 index 00000000..e9223cbe --- /dev/null +++ b/playbooks/legacy/static-election-publish/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-static-election-publish from old job static-election-publish + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + rm -rf ,content + mv doc/build/html ,content + rm -rf .[^.]* [^,]* + # Disable errexit here because there might not be any dotfiles. + set +e + mv ,content/.[^.]* ./ + set -e + mv ,content/* ./ + rm -r ,content + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/static-governance-publish/post.yaml b/playbooks/legacy/static-governance-publish/post.yaml new file mode 100644 index 00000000..dc319e74 --- /dev/null +++ b/playbooks/legacy/static-governance-publish/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: tc/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/static-governance-publish/run.yaml b/playbooks/legacy/static-governance-publish/run.yaml new file mode 100644 index 00000000..726ac158 --- /dev/null +++ b/playbooks/legacy/static-governance-publish/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-static-governance-publish from old job static-governance-publish + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + rm -rf ,content + mv doc/build/html ,content + rm -rf .[^.]* [^,]* + # Disable errexit here because there might not be any dotfiles. + set +e + mv ,content/.[^.]* ./ + set -e + mv ,content/* ./ + rm -r ,content + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/static-governance-uc-publish/post.yaml b/playbooks/legacy/static-governance-uc-publish/post.yaml new file mode 100644 index 00000000..682b6f0f --- /dev/null +++ b/playbooks/legacy/static-governance-uc-publish/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: uc/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/static-governance-uc-publish/run.yaml b/playbooks/legacy/static-governance-uc-publish/run.yaml new file mode 100644 index 00000000..0c8afcbf --- /dev/null +++ b/playbooks/legacy/static-governance-uc-publish/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-static-governance-uc-publish from old job static-governance-uc-publish + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + rm -rf ,content + mv doc/build/html ,content + rm -rf .[^.]* [^,]* + # Disable errexit here because there might not be any dotfiles. + set +e + mv ,content/.[^.]* ./ + set -e + mv ,content/* ./ + rm -r ,content + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/static-governance-website-publish/post.yaml b/playbooks/legacy/static-governance-website-publish/post.yaml new file mode 100644 index 00000000..126399ff --- /dev/null +++ b/playbooks/legacy/static-governance-website-publish/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: governance/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/static-governance-website-publish/run.yaml b/playbooks/legacy/static-governance-website-publish/run.yaml new file mode 100644 index 00000000..3d88fbdd --- /dev/null +++ b/playbooks/legacy/static-governance-website-publish/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-static-governance-website-publish from old job static-governance-website-publish + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + rm -rf ,content + mv doc/build/html ,content + rm -rf .[^.]* [^,]* + # Disable errexit here because there might not be any dotfiles. + set +e + mv ,content/.[^.]* ./ + set -e + mv ,content/* ./ + rm -r ,content + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/static-ossa-publish/post.yaml b/playbooks/legacy/static-ossa-publish/post.yaml new file mode 100644 index 00000000..b470c47a --- /dev/null +++ b/playbooks/legacy/static-ossa-publish/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: security/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/static-ossa-publish/run.yaml b/playbooks/legacy/static-ossa-publish/run.yaml new file mode 100644 index 00000000..127c0aa1 --- /dev/null +++ b/playbooks/legacy/static-ossa-publish/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-static-ossa-publish from old job static-ossa-publish + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + rm -rf ,content + mv doc/build/html ,content + rm -rf .[^.]* [^,]* + # Disable errexit here because there might not be any dotfiles. + set +e + mv ,content/.[^.]* ./ + set -e + mv ,content/* ./ + rm -r ,content + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/static-releases-publish/post.yaml b/playbooks/legacy/static-releases-publish/post.yaml new file mode 100644 index 00000000..501dbe79 --- /dev/null +++ b/playbooks/legacy/static-releases-publish/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: releases/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/static-releases-publish/run.yaml b/playbooks/legacy/static-releases-publish/run.yaml new file mode 100644 index 00000000..643f7111 --- /dev/null +++ b/playbooks/legacy/static-releases-publish/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-static-releases-publish from old job static-releases-publish + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + rm -rf ,content + mv doc/build/html ,content + rm -rf .[^.]* [^,]* + # Disable errexit here because there might not be any dotfiles. + set +e + mv ,content/.[^.]* ./ + set -e + mv ,content/* ./ + rm -r ,content + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/static-transparency-policy-publish/post.yaml b/playbooks/legacy/static-transparency-policy-publish/post.yaml new file mode 100644 index 00000000..d2e45fdb --- /dev/null +++ b/playbooks/legacy/static-transparency-policy-publish/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: transparency-policy/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/static-transparency-policy-publish/run.yaml b/playbooks/legacy/static-transparency-policy-publish/run.yaml new file mode 100644 index 00000000..591448a9 --- /dev/null +++ b/playbooks/legacy/static-transparency-policy-publish/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-static-transparency-policy-publish from old job static-transparency-policy-publish + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-docs.sh venv + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + rm -rf ,content + mv doc/build/html ,content + rm -rf .[^.]* [^,]* + # Disable errexit here because there might not be any dotfiles. + set +e + mv ,content/.[^.]* ./ + set -e + mv ,content/* ./ + rm -r ,content + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storlets-functional/post.yaml b/playbooks/legacy/storlets-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/storlets-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/storlets-functional/run.yaml b/playbooks/legacy/storlets-functional/run.yaml new file mode 100644 index 00000000..9f5d7caa --- /dev/null +++ b/playbooks/legacy/storlets-functional/run.yaml @@ -0,0 +1,40 @@ +- hosts: all + name: Autoconverted job legacy-storlets-functional from old job gate-storlets-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + tests/setup_functional_test.sh + tox -e func + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storyboard-js-integration-ubuntu-trusty/post.yaml b/playbooks/legacy/storyboard-js-integration-ubuntu-trusty/post.yaml new file mode 100644 index 00000000..6e81a296 --- /dev/null +++ b/playbooks/legacy/storyboard-js-integration-ubuntu-trusty/post.yaml @@ -0,0 +1,28 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/storyboard-js-integration-ubuntu-trusty/run.yaml b/playbooks/legacy/storyboard-js-integration-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..e5bc1838 --- /dev/null +++ b/playbooks/legacy/storyboard-js-integration-ubuntu-trusty/run.yaml @@ -0,0 +1,114 @@ +- hosts: all + name: Autoconverted job legacy-storyboard-js-integration-ubuntu-trusty from old + job gate-storyboard-js-integration-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git git://git.openstack.org openstack-infra/storyboard openstack-infra/storyboard-webclient + + export CREATE_USER=1 + export DB_ADMIN_USER=root + export STORYBOARD_PATH=openstack-infra/storyboard + + ./openstack-infra/storyboard/tools/install_test_backend.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh test:integration + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ./openstack-infra/storyboard/tools/destroy_test_backend.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storyboard-js-integration/post.yaml b/playbooks/legacy/storyboard-js-integration/post.yaml new file mode 100644 index 00000000..6e81a296 --- /dev/null +++ b/playbooks/legacy/storyboard-js-integration/post.yaml @@ -0,0 +1,28 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/storyboard-js-integration/run.yaml b/playbooks/legacy/storyboard-js-integration/run.yaml new file mode 100644 index 00000000..df29709e --- /dev/null +++ b/playbooks/legacy/storyboard-js-integration/run.yaml @@ -0,0 +1,113 @@ +- hosts: all + name: Autoconverted job legacy-storyboard-js-integration from old job gate-storyboard-js-integration-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git git://git.openstack.org openstack-infra/storyboard openstack-infra/storyboard-webclient + + export CREATE_USER=1 + export DB_ADMIN_USER=root + export STORYBOARD_PATH=openstack-infra/storyboard + + ./openstack-infra/storyboard/tools/install_test_backend.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh test:integration + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ./openstack-infra/storyboard/tools/destroy_test_backend.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storyboard-webclient-js-draft/post.yaml b/playbooks/legacy/storyboard-webclient-js-draft/post.yaml new file mode 100644 index 00000000..dcdc881d --- /dev/null +++ b/playbooks/legacy/storyboard-webclient-js-draft/post.yaml @@ -0,0 +1,36 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from dist/ on node + synchronize: + src: dist/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true diff --git a/playbooks/legacy/storyboard-webclient-js-draft/run.yaml b/playbooks/legacy/storyboard-webclient-js-draft/run.yaml new file mode 100644 index 00000000..ec0856d9 --- /dev/null +++ b/playbooks/legacy/storyboard-webclient-js-draft/run.yaml @@ -0,0 +1,88 @@ +- hosts: all + name: Autoconverted job legacy-storyboard-webclient-js-draft from old job gate-storyboard-webclient-js-draft + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh build:draft + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storyboard-webclient-js-release-branch/post.yaml b/playbooks/legacy/storyboard-webclient-js-release-branch/post.yaml new file mode 100644 index 00000000..9c13a7dd --- /dev/null +++ b/playbooks/legacy/storyboard-webclient-js-release-branch/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: tarballs/$ZUUL_SHORT_PROJECT_NAME/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/tarballs/*.tar.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/storyboard-webclient-js-release-branch/run.yaml b/playbooks/legacy/storyboard-webclient-js-release-branch/run.yaml new file mode 100644 index 00000000..2d285cb7 --- /dev/null +++ b/playbooks/legacy/storyboard-webclient-js-release-branch/run.yaml @@ -0,0 +1,93 @@ +- hosts: all + name: Autoconverted job legacy-storyboard-webclient-js-release-branch from old job + storyboard-webclient-js-release-branch + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh build + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + + # Clean/create a tarball directory + rm -rf tarballs + mkdir -p tarballs + + # Create an archive tarball. + tar -czf $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz dist/ + cp $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/$ZUUL_SHORT_PROJECT_NAME-latest.tar.gz + mv $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/ + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storyboard-webclient-js-release-master/post.yaml b/playbooks/legacy/storyboard-webclient-js-release-master/post.yaml new file mode 100644 index 00000000..9c13a7dd --- /dev/null +++ b/playbooks/legacy/storyboard-webclient-js-release-master/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: tarballs/$ZUUL_SHORT_PROJECT_NAME/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/tarballs/*.tar.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/storyboard-webclient-js-release-master/run.yaml b/playbooks/legacy/storyboard-webclient-js-release-master/run.yaml new file mode 100644 index 00000000..52777156 --- /dev/null +++ b/playbooks/legacy/storyboard-webclient-js-release-master/run.yaml @@ -0,0 +1,93 @@ +- hosts: all + name: Autoconverted job legacy-storyboard-webclient-js-release-master from old job + storyboard-webclient-js-release-master + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh build + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + + # Clean/create a tarball directory + rm -rf tarballs + mkdir -p tarballs + + # Create an archive tarball. + tar -czf $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz dist/ + cp $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/$ZUUL_SHORT_PROJECT_NAME-latest.tar.gz + mv $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/ + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-lint/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-lint/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-lint/run.yaml new file mode 100644 index 00000000..d688bb9c --- /dev/null +++ b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-lint/run.yaml @@ -0,0 +1,134 @@ +- hosts: all + name: Autoconverted job legacy-storyboard-webclient-nodejs4-npm-run-lint from old + job gate-storyboard-webclient-nodejs4-npm-run-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )lint($| ) ]]; then + npm lint --verbose + else + npm run lint --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-functional/post.yaml b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-functional/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-functional/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-functional/run.yaml b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-functional/run.yaml new file mode 100644 index 00000000..42442376 --- /dev/null +++ b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-functional/run.yaml @@ -0,0 +1,134 @@ +- hosts: all + name: Autoconverted job legacy-storyboard-webclient-nodejs4-npm-run-test-functional + from old job gate-storyboard-webclient-nodejs4-npm-run-test-functional + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )test-functional($| ) ]]; then + npm test-functional --verbose + else + npm run test-functional --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-integration/post.yaml b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-integration/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-integration/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-integration/run.yaml b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-integration/run.yaml new file mode 100644 index 00000000..2b740faf --- /dev/null +++ b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-integration/run.yaml @@ -0,0 +1,134 @@ +- hosts: all + name: Autoconverted job legacy-storyboard-webclient-nodejs4-npm-run-test-integration + from old job gate-storyboard-webclient-nodejs4-npm-run-test-integration + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )test-integration($| ) ]]; then + npm test-integration --verbose + else + npm run test-integration --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-unit/post.yaml b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-unit/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-unit/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-unit/run.yaml b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-unit/run.yaml new file mode 100644 index 00000000..f15e6893 --- /dev/null +++ b/playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-unit/run.yaml @@ -0,0 +1,134 @@ +- hosts: all + name: Autoconverted job legacy-storyboard-webclient-nodejs4-npm-run-test-unit from + old job gate-storyboard-webclient-nodejs4-npm-run-test-unit + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )test-unit($| ) ]]; then + npm test-unit --verbose + else + npm run test-unit --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-dsvm-functional-identity-v3-only/post.yaml b/playbooks/legacy/swift-dsvm-functional-identity-v3-only/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/swift-dsvm-functional-identity-v3-only/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift-dsvm-functional-identity-v3-only/run.yaml b/playbooks/legacy/swift-dsvm-functional-identity-v3-only/run.yaml new file mode 100644 index 00000000..2c016150 --- /dev/null +++ b/playbooks/legacy/swift-dsvm-functional-identity-v3-only/run.yaml @@ -0,0 +1,56 @@ +- hosts: all + name: Autoconverted job legacy-swift-dsvm-functional-identity-v3-only from old job + gate-swift-dsvm-functional-identity-v3-only-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export FUNCTEST_TIMEOUT=30 + # Disable all services + export DEVSTACK_GATE_NO_SERVICES=1 + # Add only what we want, keystone + swift + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_KEYSTONE=1 + # Need to override default which is neutron enabled + export DEVSTACK_GATE_NEUTRON=0 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "-identity-v3-only" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG="ENABLE_IDENTITY_V2=False" + fi + + function post_test_hook { + cd /opt/stack/new/swift + # Launch V2 auth tests and v1 tests after. + sudo -H -u stack timeout -s 9 ${FUNCTEST_TIMEOUT}m tox -e func && \ + sudo -H -u stack SWIFT_TEST_CONFIG_FILE=/opt/stack/new/swift/test/sample.conf \ + timeout -s 9 ${FUNCTEST_TIMEOUT}m tox -e func + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-dsvm-functional/post.yaml b/playbooks/legacy/swift-dsvm-functional/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/swift-dsvm-functional/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift-dsvm-functional/run.yaml b/playbooks/legacy/swift-dsvm-functional/run.yaml new file mode 100644 index 00000000..9e87a9ce --- /dev/null +++ b/playbooks/legacy/swift-dsvm-functional/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-swift-dsvm-functional from old job gate-swift-dsvm-functional-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export FUNCTEST_TIMEOUT=30 + # Disable all services + export DEVSTACK_GATE_NO_SERVICES=1 + # Add only what we want, keystone + swift + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_KEYSTONE=1 + # Need to override default which is neutron enabled + export DEVSTACK_GATE_NEUTRON=0 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG="ENABLE_IDENTITY_V2=False" + fi + + function post_test_hook { + cd /opt/stack/new/swift + # Launch V2 auth tests and v1 tests after. + sudo -H -u stack timeout -s 9 ${FUNCTEST_TIMEOUT}m tox -e func && \ + sudo -H -u stack SWIFT_TEST_CONFIG_FILE=/opt/stack/new/swift/test/sample.conf \ + timeout -s 9 ${FUNCTEST_TIMEOUT}m tox -e func + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-centos-7/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-centos-7/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-centos-7/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-centos-7/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-centos-7/run.yaml new file mode 100644 index 00000000..80bc74a7 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-centos-7/run.yaml @@ -0,0 +1,87 @@ +- hosts: all + name: Autoconverted job legacy-swift-tox-xfs-tmp-func-centos-7 from old job gate-swift-tox-xfs-tmp-func-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # create a large-ish file that we will mount as a loopback + truncate -s 1GB $HOME/1G_xfs_file + # format the new file as xfs + /sbin/mkfs.xfs $HOME/1G_xfs_file + # loopback mount the file + mkdir -p $HOME/xfstmp + sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp + sudo chmod 777 $HOME/xfstmp + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + export TMPDIR=$HOME/xfstmp + /usr/local/jenkins/slave_scripts/run-tox.sh func + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-ec-centos-7/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-ec-centos-7/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-ec-centos-7/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-ec-centos-7/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-ec-centos-7/run.yaml new file mode 100644 index 00000000..f55dcaf0 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-ec-centos-7/run.yaml @@ -0,0 +1,87 @@ +- hosts: all + name: Autoconverted job legacy-swift-tox-xfs-tmp-func-ec-centos-7 from old job gate-swift-tox-xfs-tmp-func-ec-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # create a large-ish file that we will mount as a loopback + truncate -s 1GB $HOME/1G_xfs_file + # format the new file as xfs + /sbin/mkfs.xfs $HOME/1G_xfs_file + # loopback mount the file + mkdir -p $HOME/xfstmp + sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp + sudo chmod 777 $HOME/xfstmp + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + export TMPDIR=$HOME/xfstmp + /usr/local/jenkins/slave_scripts/run-tox.sh func-ec + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-ec/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-ec/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-ec/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-ec/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-ec/run.yaml new file mode 100644 index 00000000..c45b2b97 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-ec/run.yaml @@ -0,0 +1,87 @@ +- hosts: all + name: Autoconverted job legacy-swift-tox-xfs-tmp-func-ec from old job gate-swift-tox-xfs-tmp-func-ec-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # create a large-ish file that we will mount as a loopback + truncate -s 1GB $HOME/1G_xfs_file + # format the new file as xfs + /sbin/mkfs.xfs $HOME/1G_xfs_file + # loopback mount the file + mkdir -p $HOME/xfstmp + sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp + sudo chmod 777 $HOME/xfstmp + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + export TMPDIR=$HOME/xfstmp + /usr/local/jenkins/slave_scripts/run-tox.sh func-ec + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-encryption-centos-7/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-encryption-centos-7/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-encryption-centos-7/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-encryption-centos-7/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-encryption-centos-7/run.yaml new file mode 100644 index 00000000..0de4bbb0 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-encryption-centos-7/run.yaml @@ -0,0 +1,88 @@ +- hosts: all + name: Autoconverted job legacy-swift-tox-xfs-tmp-func-encryption-centos-7 from old + job gate-swift-tox-xfs-tmp-func-encryption-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # create a large-ish file that we will mount as a loopback + truncate -s 1GB $HOME/1G_xfs_file + # format the new file as xfs + /sbin/mkfs.xfs $HOME/1G_xfs_file + # loopback mount the file + mkdir -p $HOME/xfstmp + sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp + sudo chmod 777 $HOME/xfstmp + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + export TMPDIR=$HOME/xfstmp + /usr/local/jenkins/slave_scripts/run-tox.sh func-encryption + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-encryption/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-encryption/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-encryption/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-encryption/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-encryption/run.yaml new file mode 100644 index 00000000..d3b9f527 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-encryption/run.yaml @@ -0,0 +1,87 @@ +- hosts: all + name: Autoconverted job legacy-swift-tox-xfs-tmp-func-encryption from old job gate-swift-tox-xfs-tmp-func-encryption-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # create a large-ish file that we will mount as a loopback + truncate -s 1GB $HOME/1G_xfs_file + # format the new file as xfs + /sbin/mkfs.xfs $HOME/1G_xfs_file + # loopback mount the file + mkdir -p $HOME/xfstmp + sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp + sudo chmod 777 $HOME/xfstmp + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + export TMPDIR=$HOME/xfstmp + /usr/local/jenkins/slave_scripts/run-tox.sh func-encryption + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post-centos-7/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post-centos-7/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post-centos-7/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post-centos-7/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post-centos-7/run.yaml new file mode 100644 index 00000000..9b553456 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post-centos-7/run.yaml @@ -0,0 +1,88 @@ +- hosts: all + name: Autoconverted job legacy-swift-tox-xfs-tmp-func-fast-post-centos-7 from old + job gate-swift-tox-xfs-tmp-func-fast-post-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # create a large-ish file that we will mount as a loopback + truncate -s 1GB $HOME/1G_xfs_file + # format the new file as xfs + /sbin/mkfs.xfs $HOME/1G_xfs_file + # loopback mount the file + mkdir -p $HOME/xfstmp + sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp + sudo chmod 777 $HOME/xfstmp + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + export TMPDIR=$HOME/xfstmp + /usr/local/jenkins/slave_scripts/run-tox.sh func-fast-post + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post/run.yaml new file mode 100644 index 00000000..ed53b49c --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-fast-post/run.yaml @@ -0,0 +1,87 @@ +- hosts: all + name: Autoconverted job legacy-swift-tox-xfs-tmp-func-fast-post from old job gate-swift-tox-xfs-tmp-func-fast-post-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # create a large-ish file that we will mount as a loopback + truncate -s 1GB $HOME/1G_xfs_file + # format the new file as xfs + /sbin/mkfs.xfs $HOME/1G_xfs_file + # loopback mount the file + mkdir -p $HOME/xfstmp + sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp + sudo chmod 777 $HOME/xfstmp + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + export TMPDIR=$HOME/xfstmp + /usr/local/jenkins/slave_scripts/run-tox.sh func-fast-post + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy-centos-7/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy-centos-7/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy-centos-7/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy-centos-7/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy-centos-7/run.yaml new file mode 100644 index 00000000..e83259c2 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy-centos-7/run.yaml @@ -0,0 +1,88 @@ +- hosts: all + name: Autoconverted job legacy-swift-tox-xfs-tmp-func-post-as-copy-centos-7 from + old job gate-swift-tox-xfs-tmp-func-post-as-copy-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # create a large-ish file that we will mount as a loopback + truncate -s 1GB $HOME/1G_xfs_file + # format the new file as xfs + /sbin/mkfs.xfs $HOME/1G_xfs_file + # loopback mount the file + mkdir -p $HOME/xfstmp + sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp + sudo chmod 777 $HOME/xfstmp + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + export TMPDIR=$HOME/xfstmp + /usr/local/jenkins/slave_scripts/run-tox.sh func-post-as-copy + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy/run.yaml new file mode 100644 index 00000000..f823e7d2 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy/run.yaml @@ -0,0 +1,88 @@ +- hosts: all + name: Autoconverted job legacy-swift-tox-xfs-tmp-func-post-as-copy from old job + gate-swift-tox-xfs-tmp-func-post-as-copy-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # create a large-ish file that we will mount as a loopback + truncate -s 1GB $HOME/1G_xfs_file + # format the new file as xfs + /sbin/mkfs.xfs $HOME/1G_xfs_file + # loopback mount the file + mkdir -p $HOME/xfstmp + sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp + sudo chmod 777 $HOME/xfstmp + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + export TMPDIR=$HOME/xfstmp + /usr/local/jenkins/slave_scripts/run-tox.sh func-post-as-copy + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift-tox-xfs-tmp-func/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-func/run.yaml new file mode 100644 index 00000000..7ea7baaa --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-func/run.yaml @@ -0,0 +1,87 @@ +- hosts: all + name: Autoconverted job legacy-swift-tox-xfs-tmp-func from old job gate-swift-tox-xfs-tmp-func-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # create a large-ish file that we will mount as a loopback + truncate -s 1GB $HOME/1G_xfs_file + # format the new file as xfs + /sbin/mkfs.xfs $HOME/1G_xfs_file + # loopback mount the file + mkdir -p $HOME/xfstmp + sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp + sudo chmod 777 $HOME/xfstmp + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + export TMPDIR=$HOME/xfstmp + /usr/local/jenkins/slave_scripts/run-tox.sh func + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-py27-centos-7/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-py27-centos-7/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-py27-centos-7/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift-tox-xfs-tmp-py27-centos-7/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-py27-centos-7/run.yaml new file mode 100644 index 00000000..b073b6e4 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-py27-centos-7/run.yaml @@ -0,0 +1,87 @@ +- hosts: all + name: Autoconverted job legacy-swift-tox-xfs-tmp-py27-centos-7 from old job gate-swift-tox-xfs-tmp-py27-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # create a large-ish file that we will mount as a loopback + truncate -s 1GB $HOME/1G_xfs_file + # format the new file as xfs + /sbin/mkfs.xfs $HOME/1G_xfs_file + # loopback mount the file + mkdir -p $HOME/xfstmp + sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp + sudo chmod 777 $HOME/xfstmp + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + export TMPDIR=$HOME/xfstmp + /usr/local/jenkins/slave_scripts/run-tox.sh py27 + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-py27/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-py27/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-py27/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift-tox-xfs-tmp-py27/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-py27/run.yaml new file mode 100644 index 00000000..d4f1f7ac --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-py27/run.yaml @@ -0,0 +1,87 @@ +- hosts: all + name: Autoconverted job legacy-swift-tox-xfs-tmp-py27 from old job gate-swift-tox-xfs-tmp-py27-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # create a large-ish file that we will mount as a loopback + truncate -s 1GB $HOME/1G_xfs_file + # format the new file as xfs + /sbin/mkfs.xfs $HOME/1G_xfs_file + # loopback mount the file + mkdir -p $HOME/xfstmp + sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp + sudo chmod 777 $HOME/xfstmp + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + export TMPDIR=$HOME/xfstmp + /usr/local/jenkins/slave_scripts/run-tox.sh py27 + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift-tox-xfs-tmp-py35/post.yaml b/playbooks/legacy/swift-tox-xfs-tmp-py35/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-py35/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift-tox-xfs-tmp-py35/run.yaml b/playbooks/legacy/swift-tox-xfs-tmp-py35/run.yaml new file mode 100644 index 00000000..e0ed495f --- /dev/null +++ b/playbooks/legacy/swift-tox-xfs-tmp-py35/run.yaml @@ -0,0 +1,87 @@ +- hosts: all + name: Autoconverted job legacy-swift-tox-xfs-tmp-py35 from old job gate-swift-tox-xfs-tmp-py35-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # create a large-ish file that we will mount as a loopback + truncate -s 1GB $HOME/1G_xfs_file + # format the new file as xfs + /sbin/mkfs.xfs $HOME/1G_xfs_file + # loopback mount the file + mkdir -p $HOME/xfstmp + sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp + sudo chmod 777 $HOME/xfstmp + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + export TMPDIR=$HOME/xfstmp + /usr/local/jenkins/slave_scripts/run-tox.sh py35 + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift3-pylint/post.yaml b/playbooks/legacy/swift3-pylint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift3-pylint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift3-pylint/run.yaml b/playbooks/legacy/swift3-pylint/run.yaml new file mode 100644 index 00000000..ef3085b2 --- /dev/null +++ b/playbooks/legacy/swift3-pylint/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-swift3-pylint from old job gate-swift3-pylint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift3-tox-keystone/post.yaml b/playbooks/legacy/swift3-tox-keystone/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift3-tox-keystone/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift3-tox-keystone/run.yaml b/playbooks/legacy/swift3-tox-keystone/run.yaml new file mode 100644 index 00000000..6cbcf12c --- /dev/null +++ b/playbooks/legacy/swift3-tox-keystone/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-swift3-tox-keystone from old job gate-swift3-tox-keystone-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh keystone + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift3-tox-s3acl/post.yaml b/playbooks/legacy/swift3-tox-s3acl/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift3-tox-s3acl/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift3-tox-s3acl/run.yaml b/playbooks/legacy/swift3-tox-s3acl/run.yaml new file mode 100644 index 00000000..92ebc8c6 --- /dev/null +++ b/playbooks/legacy/swift3-tox-s3acl/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-swift3-tox-s3acl from old job gate-swift3-tox-s3acl-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh s3acl + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift3-tox-s3tests_keystone/post.yaml b/playbooks/legacy/swift3-tox-s3tests_keystone/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift3-tox-s3tests_keystone/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift3-tox-s3tests_keystone/run.yaml b/playbooks/legacy/swift3-tox-s3tests_keystone/run.yaml new file mode 100644 index 00000000..51329397 --- /dev/null +++ b/playbooks/legacy/swift3-tox-s3tests_keystone/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-swift3-tox-s3tests_keystone from old job gate-swift3-tox-s3tests_keystone-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh s3tests_keystone + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift3-tox-s3tests_tempauth/post.yaml b/playbooks/legacy/swift3-tox-s3tests_tempauth/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift3-tox-s3tests_tempauth/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift3-tox-s3tests_tempauth/run.yaml b/playbooks/legacy/swift3-tox-s3tests_tempauth/run.yaml new file mode 100644 index 00000000..e033e4ac --- /dev/null +++ b/playbooks/legacy/swift3-tox-s3tests_tempauth/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-swift3-tox-s3tests_tempauth from old job gate-swift3-tox-s3tests_tempauth-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh s3tests_tempauth + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swift3-tox-tempauth/post.yaml b/playbooks/legacy/swift3-tox-tempauth/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/swift3-tox-tempauth/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swift3-tox-tempauth/run.yaml b/playbooks/legacy/swift3-tox-tempauth/run.yaml new file mode 100644 index 00000000..5641ca6b --- /dev/null +++ b/playbooks/legacy/swift3-tox-tempauth/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-swift3-tox-tempauth from old job gate-swift3-tox-tempauth-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh tempauth + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swiftclient-dsvm-functional-identity-v3-only/post.yaml b/playbooks/legacy/swiftclient-dsvm-functional-identity-v3-only/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/swiftclient-dsvm-functional-identity-v3-only/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swiftclient-dsvm-functional-identity-v3-only/run.yaml b/playbooks/legacy/swiftclient-dsvm-functional-identity-v3-only/run.yaml new file mode 100644 index 00000000..6bcabe7c --- /dev/null +++ b/playbooks/legacy/swiftclient-dsvm-functional-identity-v3-only/run.yaml @@ -0,0 +1,57 @@ +- hosts: all + name: Autoconverted job legacy-swiftclient-dsvm-functional-identity-v3-only from + old job gate-swiftclient-dsvm-functional-identity-v3-only-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export FUNCTEST_TIMEOUT=30 + # Disable all services + export DEVSTACK_GATE_NO_SERVICES=1 + # Add only what we want, keystone + swift + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_KEYSTONE=1 + # Need to override default which is neutron enabled + export DEVSTACK_GATE_NEUTRON=0 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=python-swiftclient + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "-identity-v3-only" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG="ENABLE_IDENTITY_V2=False" + fi + + function post_test_hook { + cd /opt/stack/new/python-swiftclient + # Launch V2 auth tests and v1 tests after. + sudo -H -u stack timeout -s 9 ${FUNCTEST_TIMEOUT}m tox -e func && \ + sudo -H -u stack SWIFT_TEST_CONFIG_FILE=/opt/stack/new/swift/test/sample.conf \ + timeout -s 9 ${FUNCTEST_TIMEOUT}m tox -e func + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/swiftclient-dsvm-functional/post.yaml b/playbooks/legacy/swiftclient-dsvm-functional/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/swiftclient-dsvm-functional/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/swiftclient-dsvm-functional/run.yaml b/playbooks/legacy/swiftclient-dsvm-functional/run.yaml new file mode 100644 index 00000000..b250db3b --- /dev/null +++ b/playbooks/legacy/swiftclient-dsvm-functional/run.yaml @@ -0,0 +1,56 @@ +- hosts: all + name: Autoconverted job legacy-swiftclient-dsvm-functional from old job gate-swiftclient-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export FUNCTEST_TIMEOUT=30 + # Disable all services + export DEVSTACK_GATE_NO_SERVICES=1 + # Add only what we want, keystone + swift + export DEVSTACK_GATE_SWIFT=1 + export DEVSTACK_GATE_KEYSTONE=1 + # Need to override default which is neutron enabled + export DEVSTACK_GATE_NEUTRON=0 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export BRANCH_OVERRIDE=default + export DEVSTACK_PROJECT_FROM_GIT=python-swiftclient + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG="ENABLE_IDENTITY_V2=False" + fi + + function post_test_hook { + cd /opt/stack/new/python-swiftclient + # Launch V2 auth tests and v1 tests after. + sudo -H -u stack timeout -s 9 ${FUNCTEST_TIMEOUT}m tox -e func && \ + sudo -H -u stack SWIFT_TEST_CONFIG_FILE=/opt/stack/new/swift/test/sample.conf \ + timeout -s 9 ${FUNCTEST_TIMEOUT}m tox -e func + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/system-config-puppet-syntax-3/run.yaml b/playbooks/legacy/system-config-puppet-syntax-3/run.yaml new file mode 100644 index 00000000..b8119a18 --- /dev/null +++ b/playbooks/legacy/system-config-puppet-syntax-3/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-system-config-puppet-syntax-3 from old job gate-system-config-puppet-syntax-3-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + if [ -f /usr/bin/yum ]; then + sudo yum -y remove rdo-release "centos-release-openstack-*" "centos-release-ceph-*" + sudo yum -y install libxml2-devel libxslt-devel ruby-devel zlib-devel + sudo yum -y groupinstall "Development Tools" + # Uninstall python-requests from pip, since we install it in + # system-config/install_puppet.sh + sudo pip uninstall requests -y || true + elif [ -f /usr/bin/apt-get ]; then + sudo apt-get update + sudo apt-get install -y libxml2-dev libxslt-dev ruby-dev zlib1g-dev + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + export PUPPET_GEM_VERSION='~> 3' + mkdir .bundled_gems + export GEM_HOME=`pwd`/.bundled_gems + gem install bundler --no-rdoc --no-ri --verbose + $GEM_HOME/bin/bundle install --retry 3 + # FUTURE_PARSER=yes is only supported by Puppet 3.x + if [ "3" -lt "4" ]; then + export FUTURE_PARSER=yes + fi + $GEM_HOME/bin/bundle exec rake syntax + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tacker-dsvm-functional/post.yaml b/playbooks/legacy/tacker-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tacker-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tacker-dsvm-functional/run.yaml b/playbooks/legacy/tacker-dsvm-functional/run.yaml new file mode 100644 index 00000000..8a46e469 --- /dev/null +++ b/playbooks/legacy/tacker-dsvm-functional/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-tacker-dsvm-functional from old job gate-tacker-dsvm-functional-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + SFC_UPDATE_OVS=False + enable_plugin heat git://git.openstack.org/openstack/heat + enable_plugin aodh git://git.openstack.org/openstack/aodh + enable_plugin ceilometer https://git.openstack.org/openstack/ceilometer + enable_plugin networking-sfc http://git.trystack.cn/openstack/networking-sfc + enable_plugin mistral git://git.openstack.org/openstack/mistral + enable_plugin barbican git://git.openstack.org/openstack/barbican + enable_plugin tacker git://git.openstack.org/openstack/tacker + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_HORIZON=1 + export DEVSTACK_GATE_TEMPEST=0 + export BRANCH_OVERRIDE=default + export PROJECTS="openstack/tacker $PROJECTS" + export PROJECTS="openstack/tacker-horizon $PROJECTS" + export PROJECTS="openstack/python-tackerclient $PROJECTS" + export PROJECTS="openstack/heat $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/ceilometer $PROJECTS" + export PROJECTS="openstack/networking-sfc $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + export PROJECTS="openstack/mistral-dashboard $PROJECTS" + export PROJECTS="openstack/python-mistralclient $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook { + bash -xe $BASE/new/tacker/tacker/tests/contrib/post_test_hook.sh dsvm-functional + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/telemetry-dsvm-integration-aodh/post.yaml b/playbooks/legacy/telemetry-dsvm-integration-aodh/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/telemetry-dsvm-integration-aodh/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/telemetry-dsvm-integration-aodh/run.yaml b/playbooks/legacy/telemetry-dsvm-integration-aodh/run.yaml new file mode 100644 index 00000000..2646e840 --- /dev/null +++ b/playbooks/legacy/telemetry-dsvm-integration-aodh/run.yaml @@ -0,0 +1,80 @@ +- hosts: all + name: Autoconverted job legacy-telemetry-dsvm-integration-aodh from old job gate-telemetry-dsvm-integration-aodh-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_NEUTRON=1 + if [ "$ZUUL_BRANCH" == "stable/newton" ] ; then + export DEVSTACK_GATE_TEMPEST=0 + else + export DEVSTACK_GATE_TEMPEST=1 + fi + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + + export PROJECTS="openstack/ceilometer openstack/aodh" + + # NOTE(sileht): This job runs on Aodh and Ceilometer. + # Gnocchi uses an independent release cycle. So we map here + # which Gnocchi version can be used with other OpenStack + # components and the reverse. + case "$ZUUL_BRANCH" in + "stable/newton") + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export OVERRIDE_GNOCCHI_PROJECT_BRANCH="stable/3.0" + export PROJECTS="openstack/panko $PROJECTS openstack/gnocchi" + ;; + "stable/ocata") + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export OVERRIDE_GNOCCHI_PROJECT_BRANCH="stable/3.1" + export PROJECTS="openstack/panko $PROJECTS openstack/gnocchi" + ;; + *) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export PROJECTS="openstack/panko $PROJECTS" + ;; + esac + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_BACKEND=gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_ARCHIVE_POLICY=high" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_PIPELINE_INTERVAL=15" + + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + + function post_test_hook { + cd /opt/stack/new/ceilometer/ceilometer/tests/integration/hooks/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/telemetry-dsvm-integration-ceilometer/post.yaml b/playbooks/legacy/telemetry-dsvm-integration-ceilometer/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/telemetry-dsvm-integration-ceilometer/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/telemetry-dsvm-integration-ceilometer/run.yaml b/playbooks/legacy/telemetry-dsvm-integration-ceilometer/run.yaml new file mode 100644 index 00000000..d46905c7 --- /dev/null +++ b/playbooks/legacy/telemetry-dsvm-integration-ceilometer/run.yaml @@ -0,0 +1,81 @@ +- hosts: all + name: Autoconverted job legacy-telemetry-dsvm-integration-ceilometer from old job + gate-telemetry-dsvm-integration-ceilometer-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_NEUTRON=1 + if [ "$ZUUL_BRANCH" == "stable/newton" ] ; then + export DEVSTACK_GATE_TEMPEST=0 + else + export DEVSTACK_GATE_TEMPEST=1 + fi + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + + export PROJECTS="openstack/ceilometer openstack/aodh" + + # NOTE(sileht): This job runs on Aodh and Ceilometer. + # Gnocchi uses an independent release cycle. So we map here + # which Gnocchi version can be used with other OpenStack + # components and the reverse. + case "$ZUUL_BRANCH" in + "stable/newton") + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export OVERRIDE_GNOCCHI_PROJECT_BRANCH="stable/3.0" + export PROJECTS="openstack/panko $PROJECTS openstack/gnocchi" + ;; + "stable/ocata") + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export OVERRIDE_GNOCCHI_PROJECT_BRANCH="stable/3.1" + export PROJECTS="openstack/panko $PROJECTS openstack/gnocchi" + ;; + *) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export PROJECTS="openstack/panko $PROJECTS" + ;; + esac + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_BACKEND=gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_ARCHIVE_POLICY=high" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_PIPELINE_INTERVAL=15" + + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + + function post_test_hook { + cd /opt/stack/new/ceilometer/ceilometer/tests/integration/hooks/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/telemetry-dsvm-integration-oslo.messaging/post.yaml b/playbooks/legacy/telemetry-dsvm-integration-oslo.messaging/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/telemetry-dsvm-integration-oslo.messaging/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/telemetry-dsvm-integration-oslo.messaging/run.yaml b/playbooks/legacy/telemetry-dsvm-integration-oslo.messaging/run.yaml new file mode 100644 index 00000000..2f43a27d --- /dev/null +++ b/playbooks/legacy/telemetry-dsvm-integration-oslo.messaging/run.yaml @@ -0,0 +1,81 @@ +- hosts: all + name: Autoconverted job legacy-telemetry-dsvm-integration-oslo.messaging from old + job gate-telemetry-dsvm-integration-oslo.messaging-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_NEUTRON=1 + if [ "$ZUUL_BRANCH" == "stable/newton" ] ; then + export DEVSTACK_GATE_TEMPEST=0 + else + export DEVSTACK_GATE_TEMPEST=1 + fi + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + + export PROJECTS="openstack/ceilometer openstack/aodh" + + # NOTE(sileht): This job runs on Aodh and Ceilometer. + # Gnocchi uses an independent release cycle. So we map here + # which Gnocchi version can be used with other OpenStack + # components and the reverse. + case "$ZUUL_BRANCH" in + "stable/newton") + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export OVERRIDE_GNOCCHI_PROJECT_BRANCH="stable/3.0" + export PROJECTS="openstack/panko $PROJECTS openstack/gnocchi" + ;; + "stable/ocata") + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export OVERRIDE_GNOCCHI_PROJECT_BRANCH="stable/3.1" + export PROJECTS="openstack/panko $PROJECTS openstack/gnocchi" + ;; + *) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export PROJECTS="openstack/panko $PROJECTS" + ;; + esac + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_BACKEND=gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_ARCHIVE_POLICY=high" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_PIPELINE_INTERVAL=15" + + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + + function post_test_hook { + cd /opt/stack/new/ceilometer/ceilometer/tests/integration/hooks/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/telemetry-dsvm-integration-panko/post.yaml b/playbooks/legacy/telemetry-dsvm-integration-panko/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/telemetry-dsvm-integration-panko/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/telemetry-dsvm-integration-panko/run.yaml b/playbooks/legacy/telemetry-dsvm-integration-panko/run.yaml new file mode 100644 index 00000000..4a462bd0 --- /dev/null +++ b/playbooks/legacy/telemetry-dsvm-integration-panko/run.yaml @@ -0,0 +1,80 @@ +- hosts: all + name: Autoconverted job legacy-telemetry-dsvm-integration-panko from old job gate-telemetry-dsvm-integration-panko-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_NEUTRON=1 + if [ "$ZUUL_BRANCH" == "stable/newton" ] ; then + export DEVSTACK_GATE_TEMPEST=0 + else + export DEVSTACK_GATE_TEMPEST=1 + fi + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + + export PROJECTS="openstack/ceilometer openstack/aodh" + + # NOTE(sileht): This job runs on Aodh and Ceilometer. + # Gnocchi uses an independent release cycle. So we map here + # which Gnocchi version can be used with other OpenStack + # components and the reverse. + case "$ZUUL_BRANCH" in + "stable/newton") + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export OVERRIDE_GNOCCHI_PROJECT_BRANCH="stable/3.0" + export PROJECTS="openstack/panko $PROJECTS openstack/gnocchi" + ;; + "stable/ocata") + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export OVERRIDE_GNOCCHI_PROJECT_BRANCH="stable/3.1" + export PROJECTS="openstack/panko $PROJECTS openstack/gnocchi" + ;; + *) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export PROJECTS="openstack/panko $PROJECTS" + ;; + esac + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_BACKEND=gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_ARCHIVE_POLICY=high" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_PIPELINE_INTERVAL=15" + + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + + function post_test_hook { + cd /opt/stack/new/ceilometer/ceilometer/tests/integration/hooks/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/telemetry-dsvm-integration-python-ceilometerclient/post.yaml b/playbooks/legacy/telemetry-dsvm-integration-python-ceilometerclient/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/telemetry-dsvm-integration-python-ceilometerclient/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/telemetry-dsvm-integration-python-ceilometerclient/run.yaml b/playbooks/legacy/telemetry-dsvm-integration-python-ceilometerclient/run.yaml new file mode 100644 index 00000000..2278d58e --- /dev/null +++ b/playbooks/legacy/telemetry-dsvm-integration-python-ceilometerclient/run.yaml @@ -0,0 +1,81 @@ +- hosts: all + name: Autoconverted job legacy-telemetry-dsvm-integration-python-ceilometerclient + from old job gate-telemetry-dsvm-integration-python-ceilometerclient-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_HEAT=1 + export DEVSTACK_GATE_NEUTRON=1 + if [ "$ZUUL_BRANCH" == "stable/newton" ] ; then + export DEVSTACK_GATE_TEMPEST=0 + else + export DEVSTACK_GATE_TEMPEST=1 + fi + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + + export PROJECTS="openstack/ceilometer openstack/aodh" + + # NOTE(sileht): This job runs on Aodh and Ceilometer. + # Gnocchi uses an independent release cycle. So we map here + # which Gnocchi version can be used with other OpenStack + # components and the reverse. + case "$ZUUL_BRANCH" in + "stable/newton") + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export OVERRIDE_GNOCCHI_PROJECT_BRANCH="stable/3.0" + export PROJECTS="openstack/panko $PROJECTS openstack/gnocchi" + ;; + "stable/ocata") + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export OVERRIDE_GNOCCHI_PROJECT_BRANCH="stable/3.1" + export PROJECTS="openstack/panko $PROJECTS openstack/gnocchi" + ;; + *) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin panko git://git.openstack.org/openstack/panko" + export PROJECTS="openstack/panko $PROJECTS" + ;; + esac + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin aodh git://git.openstack.org/openstack/aodh" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin heat git://git.openstack.org/openstack/heat" + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_BACKEND=gnocchi" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"GNOCCHI_ARCHIVE_POLICY=high" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"CEILOMETER_PIPELINE_INTERVAL=15" + + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + + function post_test_hook { + cd /opt/stack/new/ceilometer/ceilometer/tests/integration/hooks/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-almanach-dsvm/post.yaml b/playbooks/legacy/tempest-almanach-dsvm/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-almanach-dsvm/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-almanach-dsvm/run.yaml b/playbooks/legacy/tempest-almanach-dsvm/run.yaml new file mode 100644 index 00000000..b5f48fd1 --- /dev/null +++ b/playbooks/legacy/tempest-almanach-dsvm/run.yaml @@ -0,0 +1,45 @@ +- hosts: all + name: Autoconverted job legacy-tempest-almanach-dsvm from old job gate-tempest-almanach-dsvm + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin almanach git://git.openstack.org/openstack/almanach + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^almanach\." + export PROJECTS="openstack/almanach $PROJECTS" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-cells/post.yaml b/playbooks/legacy/tempest-dsvm-cells/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-cells/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-cells/run.yaml b/playbooks/legacy/tempest-dsvm-cells/run.yaml new file mode 100644 index 00000000..3bf785ef --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-cells/run.yaml @@ -0,0 +1,40 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-cells from old job gate-tempest-dsvm-cells-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_CELLS=1 + # NOTE(mriedem): Explicitly tell devstack-gate that we need to run + # the cells v1 job with nova-network. + export DEVSTACK_GATE_NEUTRON=0 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/nova/devstack/tempest-dsvm-cells-rc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-cinder-v1/post.yaml b/playbooks/legacy/tempest-dsvm-cinder-v1/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-cinder-v1/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-cinder-v1/run.yaml b/playbooks/legacy/tempest-dsvm-cinder-v1/run.yaml new file mode 100644 index 00000000..f5882388 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-cinder-v1/run.yaml @@ -0,0 +1,46 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-cinder-v1 from old job gate-tempest-dsvm-cinder-v1-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + TEMPEST_VOLUME_API_V1=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_REGEX="volume" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-designate-agent-djbdns/post.yaml b/playbooks/legacy/tempest-dsvm-designate-agent-djbdns/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-designate-agent-djbdns/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-designate-agent-djbdns/run.yaml b/playbooks/legacy/tempest-dsvm-designate-agent-djbdns/run.yaml new file mode 100644 index 00000000..f41df9a4 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-designate-agent-djbdns/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-designate-agent-djbdns from old job + gate-tempest-dsvm-designate-agent-djbdns-ubuntu-xenial + tasks: + + - shell: + cmd: | + [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin designate git://git.openstack.org/openstack/designate + DESIGNATE_SERVICE_PORT_DNS=5322 + DESIGNATE_BACKEND_DRIVER=agent + DESIGNATE_AGENT_BACKEND_DRIVER=djbdns + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX=designate + + export PROJECTS="openstack/designate $PROJECTS" + export PROJECTS="openstack/python-designateclient $PROJECTS" + export PROJECTS="openstack/designate-dashboard $PROJECTS" + export PROJECTS="openstack/designate-tempest-plugin $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-designate-agent-gdnsd/post.yaml b/playbooks/legacy/tempest-dsvm-designate-agent-gdnsd/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-designate-agent-gdnsd/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-designate-agent-gdnsd/run.yaml b/playbooks/legacy/tempest-dsvm-designate-agent-gdnsd/run.yaml new file mode 100644 index 00000000..e6865c35 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-designate-agent-gdnsd/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-designate-agent-gdnsd from old job gate-tempest-dsvm-designate-agent-gdnsd-ubuntu-xenial + tasks: + + - shell: + cmd: | + [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin designate git://git.openstack.org/openstack/designate + DESIGNATE_SERVICE_PORT_DNS=5322 + DESIGNATE_BACKEND_DRIVER=agent + DESIGNATE_AGENT_BACKEND_DRIVER=gdnsd + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX=designate + + export PROJECTS="openstack/designate $PROJECTS" + export PROJECTS="openstack/python-designateclient $PROJECTS" + export PROJECTS="openstack/designate-dashboard $PROJECTS" + export PROJECTS="openstack/designate-tempest-plugin $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-designate-agent-knot2/post.yaml b/playbooks/legacy/tempest-dsvm-designate-agent-knot2/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-designate-agent-knot2/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-designate-agent-knot2/run.yaml b/playbooks/legacy/tempest-dsvm-designate-agent-knot2/run.yaml new file mode 100644 index 00000000..9f9ee3fd --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-designate-agent-knot2/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-designate-agent-knot2 from old job gate-tempest-dsvm-designate-agent-knot2-ubuntu-xenial + tasks: + + - shell: + cmd: | + [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin designate git://git.openstack.org/openstack/designate + DESIGNATE_SERVICE_PORT_DNS=5322 + DESIGNATE_BACKEND_DRIVER=agent + DESIGNATE_AGENT_BACKEND_DRIVER=knot2 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX=designate + + export PROJECTS="openstack/designate $PROJECTS" + export PROJECTS="openstack/python-designateclient $PROJECTS" + export PROJECTS="openstack/designate-dashboard $PROJECTS" + export PROJECTS="openstack/designate-tempest-plugin $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-designate-bind9/post.yaml b/playbooks/legacy/tempest-dsvm-designate-bind9/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-designate-bind9/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-designate-bind9/run.yaml b/playbooks/legacy/tempest-dsvm-designate-bind9/run.yaml new file mode 100644 index 00000000..81cbb321 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-designate-bind9/run.yaml @@ -0,0 +1,81 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-designate-bind9 from old job gate-tempest-dsvm-designate-bind9-ubuntu-xenial + tasks: + + - shell: + cmd: | + [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + services=rabbit,tempest,mysql,dstat,key + services+=,n-api,n-api-meta,n-cpu,n-cond,n-sch,n-crt + # placement service mandatory for nova from ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + services+=,placement-api + fi + services+=,g-api,g-reg + services+=,c-sch,c-api,c-vol,c-bak + services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 + + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX=designate + + export DEVSTACK_LOCAL_CONFIG="enable_plugin designate git://git.openstack.org/openstack/designate" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_SERVICE_PORT_DNS=5322" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_BACKEND_DRIVER=bind9" + + export PROJECTS="openstack/designate $PROJECTS" + export PROJECTS="openstack/python-designateclient $PROJECTS" + export PROJECTS="openstack/designate-dashboard $PROJECTS" + export PROJECTS="openstack/designate-tempest-plugin $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [ "" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + if [ "" == "-worker-model" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service designate-worker designate-producer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service designate-pool-manager designate-zone-manager" + fi + + export OVERRIDE_ENABLED_SERVICES=$services + + if [ "" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + if [ "" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4-identity-v3-only/post.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4-identity-v3-only/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4-identity-v3-only/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4-identity-v3-only/run.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4-identity-v3-only/run.yaml new file mode 100644 index 00000000..9f573a9b --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4-identity-v3-only/run.yaml @@ -0,0 +1,82 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-designate-pdns4-identity-v3-only from + old job gate-tempest-dsvm-designate-pdns4-identity-v3-only-ubuntu-xenial + tasks: + + - shell: + cmd: | + [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + services=rabbit,tempest,mysql,dstat,key + services+=,n-api,n-api-meta,n-cpu,n-cond,n-sch,n-crt + # placement service mandatory for nova from ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + services+=,placement-api + fi + services+=,g-api,g-reg + services+=,c-sch,c-api,c-vol,c-bak + services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 + + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX=designate + + export DEVSTACK_LOCAL_CONFIG="enable_plugin designate git://git.openstack.org/openstack/designate" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_SERVICE_PORT_DNS=5322" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_BACKEND_DRIVER=pdns4" + + export PROJECTS="openstack/designate $PROJECTS" + export PROJECTS="openstack/python-designateclient $PROJECTS" + export PROJECTS="openstack/designate-dashboard $PROJECTS" + export PROJECTS="openstack/designate-tempest-plugin $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [ "-identity-v3-only" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + if [ "-identity-v3-only" == "-worker-model" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service designate-worker designate-producer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service designate-pool-manager designate-zone-manager" + fi + + export OVERRIDE_ENABLED_SERVICES=$services + + if [ "-identity-v3-only" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + if [ "-identity-v3-only" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4-postgres/post.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4-postgres/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4-postgres/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4-postgres/run.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4-postgres/run.yaml new file mode 100644 index 00000000..dc313af0 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4-postgres/run.yaml @@ -0,0 +1,82 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-designate-pdns4-postgres from old job + gate-tempest-dsvm-designate-pdns4-postgres-ubuntu-xenial + tasks: + + - shell: + cmd: | + [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + services=rabbit,tempest,mysql,dstat,key + services+=,n-api,n-api-meta,n-cpu,n-cond,n-sch,n-crt + # placement service mandatory for nova from ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + services+=,placement-api + fi + services+=,g-api,g-reg + services+=,c-sch,c-api,c-vol,c-bak + services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 + + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX=designate + + export DEVSTACK_LOCAL_CONFIG="enable_plugin designate git://git.openstack.org/openstack/designate" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_SERVICE_PORT_DNS=5322" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_BACKEND_DRIVER=pdns4" + + export PROJECTS="openstack/designate $PROJECTS" + export PROJECTS="openstack/python-designateclient $PROJECTS" + export PROJECTS="openstack/designate-dashboard $PROJECTS" + export PROJECTS="openstack/designate-tempest-plugin $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [ "-postgres" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + if [ "-postgres" == "-worker-model" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service designate-worker designate-producer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service designate-pool-manager designate-zone-manager" + fi + + export OVERRIDE_ENABLED_SERVICES=$services + + if [ "-postgres" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + if [ "-postgres" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4-py35/post.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4-py35/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4-py35/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4-py35/run.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4-py35/run.yaml new file mode 100644 index 00000000..90366095 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4-py35/run.yaml @@ -0,0 +1,81 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-designate-pdns4-py35 from old job gate-tempest-dsvm-designate-pdns4-py35-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + services=rabbit,tempest,mysql,dstat,key + services+=,n-api,n-api-meta,n-cpu,n-cond,n-sch,n-crt + # placement service mandatory for nova from ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + services+=,placement-api + fi + services+=,g-api,g-reg + services+=,c-sch,c-api,c-vol,c-bak + services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 + + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX=designate + + export DEVSTACK_LOCAL_CONFIG="enable_plugin designate git://git.openstack.org/openstack/designate" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_SERVICE_PORT_DNS=5322" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_BACKEND_DRIVER=pdns4" + + export PROJECTS="openstack/designate $PROJECTS" + export PROJECTS="openstack/python-designateclient $PROJECTS" + export PROJECTS="openstack/designate-dashboard $PROJECTS" + export PROJECTS="openstack/designate-tempest-plugin $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [ "-py35" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + if [ "-py35" == "-worker-model" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service designate-worker designate-producer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service designate-pool-manager designate-zone-manager" + fi + + export OVERRIDE_ENABLED_SERVICES=$services + + if [ "-py35" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + if [ "-py35" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4-worker-model/post.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4-worker-model/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4-worker-model/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4-worker-model/run.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4-worker-model/run.yaml new file mode 100644 index 00000000..5829422c --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4-worker-model/run.yaml @@ -0,0 +1,82 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-designate-pdns4-worker-model from old + job gate-tempest-dsvm-designate-pdns4-worker-model-ubuntu-xenial + tasks: + + - shell: + cmd: | + [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + services=rabbit,tempest,mysql,dstat,key + services+=,n-api,n-api-meta,n-cpu,n-cond,n-sch,n-crt + # placement service mandatory for nova from ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + services+=,placement-api + fi + services+=,g-api,g-reg + services+=,c-sch,c-api,c-vol,c-bak + services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 + + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX=designate + + export DEVSTACK_LOCAL_CONFIG="enable_plugin designate git://git.openstack.org/openstack/designate" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_SERVICE_PORT_DNS=5322" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_BACKEND_DRIVER=pdns4" + + export PROJECTS="openstack/designate $PROJECTS" + export PROJECTS="openstack/python-designateclient $PROJECTS" + export PROJECTS="openstack/designate-dashboard $PROJECTS" + export PROJECTS="openstack/designate-tempest-plugin $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [ "-worker-model" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + if [ "-worker-model" == "-worker-model" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service designate-worker designate-producer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service designate-pool-manager designate-zone-manager" + fi + + export OVERRIDE_ENABLED_SERVICES=$services + + if [ "-worker-model" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + if [ "-worker-model" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4/post.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-designate-pdns4/run.yaml b/playbooks/legacy/tempest-dsvm-designate-pdns4/run.yaml new file mode 100644 index 00000000..1c009b96 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-designate-pdns4/run.yaml @@ -0,0 +1,81 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-designate-pdns4 from old job gate-tempest-dsvm-designate-pdns4-ubuntu-xenial + tasks: + + - shell: + cmd: | + [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + services=rabbit,tempest,mysql,dstat,key + services+=,n-api,n-api-meta,n-cpu,n-cond,n-sch,n-crt + # placement service mandatory for nova from ocata + if [[ "stable/newton" != $ZUUL_BRANCH ]]; then + services+=,placement-api + fi + services+=,g-api,g-reg + services+=,c-sch,c-api,c-vol,c-bak + services+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 + + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX=designate + + export DEVSTACK_LOCAL_CONFIG="enable_plugin designate git://git.openstack.org/openstack/designate" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_SERVICE_PORT_DNS=5322" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"DESIGNATE_BACKEND_DRIVER=pdns4" + + export PROJECTS="openstack/designate $PROJECTS" + export PROJECTS="openstack/python-designateclient $PROJECTS" + export PROJECTS="openstack/designate-dashboard $PROJECTS" + export PROJECTS="openstack/designate-tempest-plugin $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [ "" == "-identity-v3-only" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_IDENTITY_V2=False" + fi + + if [ "" == "-worker-model" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service designate-worker designate-producer" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service designate-pool-manager designate-zone-manager" + fi + + export OVERRIDE_ENABLED_SERVICES=$services + + if [ "" == "-postgres" ] ; then + export DEVSTACK_GATE_POSTGRES=1 + fi + + if [ "" == "-py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-dragonflow/post.yaml b/playbooks/legacy/tempest-dsvm-dragonflow/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-dragonflow/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-dragonflow/run.yaml b/playbooks/legacy/tempest-dsvm-dragonflow/run.yaml new file mode 100644 index 00000000..a89666a3 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-dragonflow/run.yaml @@ -0,0 +1,69 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-dragonflow from old job gate-tempest-dsvm-dragonflow-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin dragonflow git://git.openstack.org/openstack/dragonflow + Q_ENABLE_DRAGONFLOW_LOCAL_CONTROLLER=True + # Add bgp project to tempest gate job. + enable_plugin neutron-dynamic-routing git://git.openstack.org/openstack/neutron-dynamic-routing + DR_MODE=df-bgp + # Add networking-sfc + enable_plugin networking-sfc git://git.openstack.org/openstack/networking-sfc + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/dragonflow $PROJECTS" + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + export PROJECTS="openstack/networking-sfc $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/dragonflow/devstack/devstackgaterc + + function gate_hook { + bash -xe $BASE/new/dragonflow/dragonflow/tests/contrib/gate_hook.sh tempest + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-amqp1/post.yaml b/playbooks/legacy/tempest-dsvm-full-amqp1/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-amqp1/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-full-amqp1/run.yaml b/playbooks/legacy/tempest-dsvm-full-amqp1/run.yaml new file mode 100644 index 00000000..f961d1f9 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-amqp1/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-full-amqp1 from old job gate-tempest-dsvm-full-amqp1-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin devstack-plugin-amqp1 git://git.openstack.org/openstack/devstack-plugin-amqp1 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export PROJECTS="openstack/devstack-plugin-amqp1 $PROJECTS" + + if [[ "amqp1" = "sheepdog" ]]; then + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + # As we are setting DEVSTACK_GATE_TEMPEST_ALL_PLUGINS, we need + # to add the regex to limit the tests to the same as a tempest + # -efull would run. + export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)|(^cinder\.tests.tempest))' + else + export DEVSTACK_GATE_TEMPEST_FULL=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-bdd/post.yaml b/playbooks/legacy/tempest-dsvm-full-bdd/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-bdd/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-full-bdd/run.yaml b/playbooks/legacy/tempest-dsvm-full-bdd/run.yaml new file mode 100644 index 00000000..dfd14a67 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-bdd/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-full-bdd from old job gate-tempest-dsvm-full-bdd-nv + tasks: + + - shell: + cmd: | + echo "For problems with this job, contact Ivan Kolodyazhny freenode: e0ne" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin devstack-plugin-bdd git://git.openstack.org/devstack-plugin-bdd + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + # BDD driver does not support 'in-use' volume attachement so we need to skip such tests + export DEVSTACK_GATE_TEMPEST_REGEX="^(?!.*(volume_in_use|test_volume_boot_pattern)).*volume" + export TEMPEST_CONCURRENCY=1 + export PROJECTS="openstack/devstack-plugin-bdd $PROJECTS" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-glance_store/post.yaml b/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-glance_store/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-glance_store/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-glance_store/run.yaml b/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-glance_store/run.yaml new file mode 100644 index 00000000..7a2f88ab --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-glance_store/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-full-ceph-plugin-src-glance_store from + old job gate-tempest-dsvm-full-ceph-plugin-src-glance_store-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin devstack-plugin-ceph git://git.openstack.org/openstack/devstack-plugin-ceph + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + # As we are setting DEVSTACK_GATE_TEMPEST_ALL_PLUGINS, we need to add + # the regex to limit the tests to the same as a tempest -efull would + # run. + export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)|(^cinder\.tests.tempest))' + + export PROJECTS="openstack/devstack-plugin-ceph $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-os-brick/post.yaml b/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-os-brick/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-os-brick/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-os-brick/run.yaml b/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-os-brick/run.yaml new file mode 100644 index 00000000..f0074a75 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-os-brick/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-full-ceph-plugin-src-os-brick from old + job gate-tempest-dsvm-full-ceph-plugin-src-os-brick-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin devstack-plugin-ceph git://git.openstack.org/openstack/devstack-plugin-ceph + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + # As we are setting DEVSTACK_GATE_TEMPEST_ALL_PLUGINS, we need to add + # the regex to limit the tests to the same as a tempest -efull would + # run. + export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)|(^cinder\.tests.tempest))' + + export PROJECTS="openstack/devstack-plugin-ceph $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-devstack-plugin-ceph/post.yaml b/playbooks/legacy/tempest-dsvm-full-devstack-plugin-ceph/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-devstack-plugin-ceph/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-full-devstack-plugin-ceph/run.yaml b/playbooks/legacy/tempest-dsvm-full-devstack-plugin-ceph/run.yaml new file mode 100644 index 00000000..5574f710 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-devstack-plugin-ceph/run.yaml @@ -0,0 +1,61 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-full-devstack-plugin-ceph from old job + gate-tempest-dsvm-full-devstack-plugin-ceph-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin devstack-plugin-ceph git://git.openstack.org/openstack/devstack-plugin-ceph + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + # As we are setting DEVSTACK_GATE_TEMPEST_ALL_PLUGINS, we need to add + # the regex to limit the tests to the same as a tempest -efull would + # run. + export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)|(^cinder\.tests.tempest))' + + export PROJECTS="openstack/devstack-plugin-ceph $PROJECTS" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + # If an in-repo configuration exists, source it. This will likely + # override DEVSTACK_GATE_TEMPEST_REGEX to further refine the set of + # tests being run. + if [ -f "/opt/stack/new/devstack-plugin-ceph/tempest-conf.sh" ]; then + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/devstack-plugin-ceph/tempest-conf.sh + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-devstack-plugin-nfs/post.yaml b/playbooks/legacy/tempest-dsvm-full-devstack-plugin-nfs/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-devstack-plugin-nfs/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-full-devstack-plugin-nfs/run.yaml b/playbooks/legacy/tempest-dsvm-full-devstack-plugin-nfs/run.yaml new file mode 100644 index 00000000..223947e4 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-devstack-plugin-nfs/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-full-devstack-plugin-nfs from old job + gate-tempest-dsvm-full-devstack-plugin-nfs-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin devstack-plugin-nfs git://git.openstack.org/openstack/devstack-plugin-nfs + ENABLE_NFS_CINDER=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + + export PROJECTS="openstack/devstack-plugin-nfs $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-drbd-devstack/post.yaml b/playbooks/legacy/tempest-dsvm-full-drbd-devstack/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-drbd-devstack/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-full-drbd-devstack/run.yaml b/playbooks/legacy/tempest-dsvm-full-drbd-devstack/run.yaml new file mode 100644 index 00000000..950b72fe --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-drbd-devstack/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-full-drbd-devstack from old job gate-tempest-dsvm-full-drbd-devstack-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + echo "For problems with this job, contact Philipp Marek freenode: flip214" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin drbd-devstack git://git.openstack.org/drbd-devstack + CINDER_ENABLED_BACKENDS=drbd:drbdmanage + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + # As we are setting DEVSTACK_GATE_TEMPEST_ALL_PLUGINS, we need to add + # the regex to limit the tests to the same as a tempest -efull would + # run. + export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)|(^cinder\.tests.tempest))' + export PROJECTS="openstack/drbd-devstack $PROJECTS" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-hdfs/post.yaml b/playbooks/legacy/tempest-dsvm-full-hdfs/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-hdfs/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-full-hdfs/run.yaml b/playbooks/legacy/tempest-dsvm-full-hdfs/run.yaml new file mode 100644 index 00000000..4d2b8547 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-hdfs/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-full-hdfs from old job gate-tempest-dsvm-full-hdfs-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin devstack-plugin-hdfs git://git.openstack.org/openstack/devstack-plugin-hdfs + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export PROJECTS="openstack/devstack-plugin-hdfs $PROJECTS" + + if [[ "hdfs" = "sheepdog" ]]; then + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + # As we are setting DEVSTACK_GATE_TEMPEST_ALL_PLUGINS, we need + # to add the regex to limit the tests to the same as a tempest + # -efull would run. + export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)|(^cinder\.tests.tempest))' + else + export DEVSTACK_GATE_TEMPEST_FULL=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-kafka/post.yaml b/playbooks/legacy/tempest-dsvm-full-kafka/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-kafka/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-full-kafka/run.yaml b/playbooks/legacy/tempest-dsvm-full-kafka/run.yaml new file mode 100644 index 00000000..bd479bf1 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-kafka/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-full-kafka from old job gate-tempest-dsvm-full-kafka-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin devstack-plugin-kafka git://git.openstack.org/openstack/devstack-plugin-kafka + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export PROJECTS="openstack/devstack-plugin-kafka $PROJECTS" + + if [[ "kafka" = "sheepdog" ]]; then + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + # As we are setting DEVSTACK_GATE_TEMPEST_ALL_PLUGINS, we need + # to add the regex to limit the tests to the same as a tempest + # -efull would run. + export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)|(^cinder\.tests.tempest))' + else + export DEVSTACK_GATE_TEMPEST_FULL=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-lio-src-os-brick/post.yaml b/playbooks/legacy/tempest-dsvm-full-lio-src-os-brick/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-lio-src-os-brick/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-full-lio-src-os-brick/run.yaml b/playbooks/legacy/tempest-dsvm-full-lio-src-os-brick/run.yaml new file mode 100644 index 00000000..43bc8dcd --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-lio-src-os-brick/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-full-lio-src-os-brick from old job gate-tempest-dsvm-full-lio-src-os-brick-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + CINDER_ISCSI_HELPER=lioadm + CINDER_LVM_TYPE=thin + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + # As we are setting DEVSTACK_GATE_TEMPEST_ALL_PLUGINS, we need to add + # the regex to limit the tests to the same as a tempest -efull would + # run. + export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)|(^cinder\.tests.tempest))' + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-lio/post.yaml b/playbooks/legacy/tempest-dsvm-full-lio/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-lio/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-full-lio/run.yaml b/playbooks/legacy/tempest-dsvm-full-lio/run.yaml new file mode 100644 index 00000000..b006632f --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-lio/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-full-lio from old job gate-tempest-dsvm-full-lio-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + CINDER_ISCSI_HELPER=lioadm + CINDER_LVM_TYPE=thin + enable_service barbican + enable_plugin barbican git://git.openstack.org/openstack/barbican + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + # As we are setting DEVSTACK_GATE_TEMPEST_ALL_PLUGINS, we need to add + # the regex to limit the tests to the same as a tempest -efull would + # run. + export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)|(^cinder\.tests.tempest))' + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + # If an in-repo configuration exists, source it. This will likely + # override DEVSTACK_GATE_TEMPEST_REGEX to further refine the set of + # tests being run. + if [ -f "/opt/stack/new/cinder/tests/tempest/config/lio/tempest-conf.sh" ]; then + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/cinder/tests/tempest/config/lio/tempest-conf.sh + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-sheepdog-src-os-brick/post.yaml b/playbooks/legacy/tempest-dsvm-full-sheepdog-src-os-brick/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-sheepdog-src-os-brick/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-full-sheepdog-src-os-brick/run.yaml b/playbooks/legacy/tempest-dsvm-full-sheepdog-src-os-brick/run.yaml new file mode 100644 index 00000000..05ed2d9f --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-sheepdog-src-os-brick/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-full-sheepdog-src-os-brick from old + job gate-tempest-dsvm-full-sheepdog-src-os-brick-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin devstack-plugin-sheepdog git://git.openstack.org/openstack/devstack-plugin-sheepdog + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export PROJECTS="openstack/devstack-plugin-sheepdog $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=os-brick + + if [[ "sheepdog" = "sheepdog" ]]; then + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + # As we are setting DEVSTACK_GATE_TEMPEST_ALL_PLUGINS, we need + # to add the regex to limit the tests to the same as a tempest + # -efull would run. + export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)|(^cinder\.tests.tempest))' + else + export DEVSTACK_GATE_TEMPEST_FULL=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-sheepdog/post.yaml b/playbooks/legacy/tempest-dsvm-full-sheepdog/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-sheepdog/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-full-sheepdog/run.yaml b/playbooks/legacy/tempest-dsvm-full-sheepdog/run.yaml new file mode 100644 index 00000000..a58be657 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-sheepdog/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-full-sheepdog from old job gate-tempest-dsvm-full-sheepdog-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin devstack-plugin-sheepdog git://git.openstack.org/openstack/devstack-plugin-sheepdog + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export PROJECTS="openstack/devstack-plugin-sheepdog $PROJECTS" + + if [[ "sheepdog" = "sheepdog" ]]; then + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + # As we are setting DEVSTACK_GATE_TEMPEST_ALL_PLUGINS, we need + # to add the regex to limit the tests to the same as a tempest + # -efull would run. + export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)|(^cinder\.tests.tempest))' + else + export DEVSTACK_GATE_TEMPEST_FULL=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-test-accounts/post.yaml b/playbooks/legacy/tempest-dsvm-full-test-accounts/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-test-accounts/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-full-test-accounts/run.yaml b/playbooks/legacy/tempest-dsvm-full-test-accounts/run.yaml new file mode 100644 index 00000000..9ae1186b --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-test-accounts/run.yaml @@ -0,0 +1,46 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-full-test-accounts from old job gate-tempest-dsvm-full-test-accounts-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + TEMPEST_USE_TEST_ACCOUNTS=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-full-zmq/post.yaml b/playbooks/legacy/tempest-dsvm-full-zmq/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-zmq/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-full-zmq/run.yaml b/playbooks/legacy/tempest-dsvm-full-zmq/run.yaml new file mode 100644 index 00000000..63efea7c --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-full-zmq/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-full-zmq from old job gate-tempest-dsvm-full-zmq-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin devstack-plugin-zmq git://git.openstack.org/openstack/devstack-plugin-zmq + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export PROJECTS="openstack/devstack-plugin-zmq $PROJECTS" + + if [[ "zmq" = "sheepdog" ]]; then + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + # As we are setting DEVSTACK_GATE_TEMPEST_ALL_PLUGINS, we need + # to add the regex to limit the tests to the same as a tempest + # -efull would run. + export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)|(^cinder\.tests.tempest))' + else + export DEVSTACK_GATE_TEMPEST_FULL=1 + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-identity-v3-test-accounts/post.yaml b/playbooks/legacy/tempest-dsvm-identity-v3-test-accounts/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-identity-v3-test-accounts/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-identity-v3-test-accounts/run.yaml b/playbooks/legacy/tempest-dsvm-identity-v3-test-accounts/run.yaml new file mode 100644 index 00000000..abe1b465 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-identity-v3-test-accounts/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-identity-v3-test-accounts from old job + gate-tempest-dsvm-identity-v3-test-accounts-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_IDENTITY_V2=False + SERVICE_DOMAIN_NAME=service + TEMPEST_USE_TEST_ACCOUNTS=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-bfv/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-bfv/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-bfv/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-bfv/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-bfv/run.yaml new file mode 100644 index 00000000..35e2abf5 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-bfv/run.yaml @@ -0,0 +1,158 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-bfv from old job gate-tempest-dsvm-ironic-bfv-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="baremetal_boot_from_volume" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_STORAGE_INTERFACES=cinder,noop" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_STORAGE_INTERFACE=cinder" + # We have to enable cinder this way, as normally when + # DEVSTACK_GATE_IRONIC=1 it disables all the cinder services. + export ENABLED_SERVICES=cinder,c-sch,c-api,c-vol + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "agent_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "agent_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=3" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-inspector-discovery/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-inspector-discovery/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-inspector-discovery/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-inspector-discovery/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-inspector-discovery/run.yaml new file mode 100644 index 00000000..52bc4fbf --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-inspector-discovery/run.yaml @@ -0,0 +1,185 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-inspector-discovery from old + job gate-tempest-dsvm-ironic-inspector-discovery-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="InspectorDiscoveryTest" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export PROJECTS="openstack/ironic-inspector $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export DEVSTACK_GATE_IRONIC_INSPECTOR=1 + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic-inspector git://git.openstack.org/openstack/ironic-inspector" + + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic-inspector'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic-inspector'" + fi + + export IRONIC_INSPECTOR_AUTO_DISCOVERY=1 + if [ "$IRONIC_INSPECTOR_AUTO_DISCOVERY" == "1" ]; then + # discovery test requires sudo for iptables and virsh + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + # enable enroll hook + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_NODE_NOT_FOUND_HOOK=enroll" + # we are deleting node from ironic for simulate node discovery, + # so inspector has to sync cache asap + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_CLEAN_UP_PERIOD=5" + fi + + # Make IPXE configuration consistent between Mitaka and Master + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_IPXE_ENABLED=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_RAMDISK_ELEMENT=ironic-agent" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_MANAGE_FIREWALL=True" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "agent_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "agent_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-inspector-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-inspector-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-inspector-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-inspector-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-inspector-src/run.yaml new file mode 100644 index 00000000..d738c05f --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-inspector-src/run.yaml @@ -0,0 +1,184 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-inspector-src from old job gate-tempest-dsvm-ironic-inspector-src-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="InspectorBasicTest" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export PROJECTS="openstack/ironic-inspector $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export DEVSTACK_GATE_IRONIC_INSPECTOR=1 + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic-inspector git://git.openstack.org/openstack/ironic-inspector" + + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic-inspector'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic-inspector'" + fi + + export IRONIC_INSPECTOR_AUTO_DISCOVERY=0 + if [ "$IRONIC_INSPECTOR_AUTO_DISCOVERY" == "1" ]; then + # discovery test requires sudo for iptables and virsh + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + # enable enroll hook + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_NODE_NOT_FOUND_HOOK=enroll" + # we are deleting node from ironic for simulate node discovery, + # so inspector has to sync cache asap + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_CLEAN_UP_PERIOD=5" + fi + + # Make IPXE configuration consistent between Mitaka and Master + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_IPXE_ENABLED=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_RAMDISK_ELEMENT=ironic-agent" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_MANAGE_FIREWALL=True" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "agent_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "agent_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "-src" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-inspector/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-inspector/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-inspector/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-inspector/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-inspector/run.yaml new file mode 100644 index 00000000..9f826321 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-inspector/run.yaml @@ -0,0 +1,184 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-inspector from old job gate-tempest-dsvm-ironic-inspector-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="InspectorBasicTest" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export PROJECTS="openstack/ironic-inspector $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export DEVSTACK_GATE_IRONIC_INSPECTOR=1 + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic-inspector git://git.openstack.org/openstack/ironic-inspector" + + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic-inspector'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic-inspector'" + fi + + export IRONIC_INSPECTOR_AUTO_DISCOVERY=0 + if [ "$IRONIC_INSPECTOR_AUTO_DISCOVERY" == "1" ]; then + # discovery test requires sudo for iptables and virsh + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + # enable enroll hook + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_NODE_NOT_FOUND_HOOK=enroll" + # we are deleting node from ironic for simulate node discovery, + # so inspector has to sync cache asap + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_CLEAN_UP_PERIOD=5" + fi + + # Make IPXE configuration consistent between Mitaka and Master + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_IPXE_ENABLED=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_RAMDISK_ELEMENT=ironic-agent" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_MANAGE_FIREWALL=True" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "agent_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "agent_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src/run.yaml new file mode 100644 index 00000000..d839eff5 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src/run.yaml @@ -0,0 +1,147 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src + from old job gate-tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "coreos" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "agent_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "agent_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "-src" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src/run.yaml new file mode 100644 index 00000000..73b8632e --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src/run.yaml @@ -0,0 +1,147 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src + from old job gate-tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "agent_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "agent_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "-src" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa/run.yaml new file mode 100644 index 00000000..6ed411e8 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa/run.yaml @@ -0,0 +1,147 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa + from old job gate-tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "agent_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "agent_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src/run.yaml new file mode 100644 index 00000000..2f8fd917 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src/run.yaml @@ -0,0 +1,147 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src + from old job gate-tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "coreos" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "-src" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src/run.yaml new file mode 100644 index 00000000..28e36c93 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src/run.yaml @@ -0,0 +1,147 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src + from old job gate-tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "-src" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa/run.yaml new file mode 100644 index 00000000..50516f34 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa/run.yaml @@ -0,0 +1,147 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa + from old job gate-tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src/run.yaml new file mode 100644 index 00000000..48b16e15 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src/run.yaml @@ -0,0 +1,147 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src + from old job gate-tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa256" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "-src" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3/run.yaml new file mode 100644 index 00000000..60208051 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3/run.yaml @@ -0,0 +1,170 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3 + from old job gate-tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_USE_PYTHON3=True + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-sushy-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-sushy-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-sushy-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-sushy-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-sushy-src/run.yaml new file mode 100644 index 00000000..db470b9d --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-sushy-src/run.yaml @@ -0,0 +1,155 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-partition-redfish-sushy-src + from old job gate-tempest-dsvm-ironic-ipa-partition-redfish-sushy-src-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_PROJECT_FROM_GIT="sushy,$DEVSTACK_PROJECT_FROM_GIT" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=redfish + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "redfish" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "redfish" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-tinyipa/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-tinyipa/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-tinyipa/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-tinyipa/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-tinyipa/run.yaml new file mode 100644 index 00000000..6eda0bde --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-tinyipa/run.yaml @@ -0,0 +1,147 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-partition-redfish-tinyipa + from old job gate-tempest-dsvm-ironic-ipa-partition-redfish-tinyipa-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=redfish + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "redfish" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "redfish" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa/run.yaml new file mode 100644 index 00000000..c54a122b --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa/run.yaml @@ -0,0 +1,147 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa + from old job gate-tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "uefi" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa/run.yaml new file mode 100644 index 00000000..afbf73ea --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa/run.yaml @@ -0,0 +1,155 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa + from old job gate-tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_USE_RESOURCE_CLASSES=True" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=2" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode/run.yaml new file mode 100644 index 00000000..a44f6344 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode/run.yaml @@ -0,0 +1,172 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode + from old job gate-tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TOPOLOGY="multinode" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_OS_TEST_TIMEOUT=2400 + # networking-generic-switch requires sudo to execute ovs-vsctl commands + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + export PROJECTS="openstack/networking-generic-switch $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-generic-switch git://git.openstack.org/openstack/networking-generic-switch" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_USE_LINK_LOCAL=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"OVS_PHYSICAL_BRIDGE=brbm" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"PHYSICAL_NETWORK=mynetwork" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_PROVISION_NETWORK_NAME=ironic-provision" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_PROVISION_SUBNET_PREFIX=10.0.5.0/24" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_PROVISION_SUBNET_GATEWAY=10.0.5.1" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"Q_PLUGIN=ml2" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"Q_USE_PROVIDERNET_FOR_PUBLIC=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_TENANT_VLANS=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"Q_ML2_TENANT_NETWORK_TYPE=vlan" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TENANT_VLAN_RANGE=100:150" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_NETWORK_INTERFACES=flat,neutron" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_NETWORK_INTERFACE=neutron" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=4 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "agent_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "agent_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=7" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src/run.yaml new file mode 100644 index 00000000..991dd939 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src/run.yaml @@ -0,0 +1,147 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src + from old job gate-tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "coreos" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "agent_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "agent_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "-src" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src/run.yaml new file mode 100644 index 00000000..b6961339 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src/run.yaml @@ -0,0 +1,147 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src + from old job gate-tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "agent_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "agent_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "-src" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa/run.yaml new file mode 100644 index 00000000..e2e115ff --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa/run.yaml @@ -0,0 +1,147 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa + from old job gate-tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "agent_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "agent_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src/run.yaml new file mode 100644 index 00000000..752598be --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src/run.yaml @@ -0,0 +1,147 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src + from old job gate-tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "coreos" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "-src" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src/run.yaml new file mode 100644 index 00000000..9c1e6c5b --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src/run.yaml @@ -0,0 +1,147 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src + from old job gate-tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "-src" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa/run.yaml new file mode 100644 index 00000000..dff41591 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa/run.yaml @@ -0,0 +1,147 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa + from old job gate-tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa/run.yaml new file mode 100644 index 00000000..27f540f4 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa/run.yaml @@ -0,0 +1,147 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa + from old job gate-tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_snmp + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_snmp" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_snmp" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-lib-partition-agent_ipmitool/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-lib-partition-agent_ipmitool/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-lib-partition-agent_ipmitool/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-lib-partition-agent_ipmitool/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-lib-partition-agent_ipmitool/run.yaml new file mode 100644 index 00000000..d901e3e8 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-lib-partition-agent_ipmitool/run.yaml @@ -0,0 +1,155 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-lib-partition-agent_ipmitool + from old job gate-tempest-dsvm-ironic-lib-partition-agent_ipmitool-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_PROJECT_FROM_GIT="ironic-lib,$DEVSTACK_PROJECT_FROM_GIT" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "agent_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "agent_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "yes" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-lib-partition-pxe_ipmitool/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-lib-partition-pxe_ipmitool/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-lib-partition-pxe_ipmitool/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-lib-partition-pxe_ipmitool/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-lib-partition-pxe_ipmitool/run.yaml new file mode 100644 index 00000000..d5d6bd08 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-lib-partition-pxe_ipmitool/run.yaml @@ -0,0 +1,155 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-lib-partition-pxe_ipmitool from + old job gate-tempest-dsvm-ironic-lib-partition-pxe_ipmitool-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_PROJECT_FROM_GIT="ironic-lib,$DEVSTACK_PROJECT_FROM_GIT" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "yes" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool/run.yaml new file mode 100644 index 00000000..7e030bd8 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool/run.yaml @@ -0,0 +1,155 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool + from old job gate-tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_PROJECT_FROM_GIT="ironic-lib,$DEVSTACK_PROJECT_FROM_GIT" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "agent_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "agent_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "yes" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool/run.yaml new file mode 100644 index 00000000..ca3a21ec --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool/run.yaml @@ -0,0 +1,155 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool from + old job gate-tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_PROJECT_FROM_GIT="ironic-lib,$DEVSTACK_PROJECT_FROM_GIT" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "yes" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-multitenant-network/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-multitenant-network/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-multitenant-network/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-multitenant-network/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-multitenant-network/run.yaml new file mode 100644 index 00000000..fea83c0b --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-multitenant-network/run.yaml @@ -0,0 +1,172 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-multitenant-network from old + job gate-tempest-dsvm-ironic-multitenant-network-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="baremetal_multitenancy" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_OS_TEST_TIMEOUT=2400 + # networking-generic-switch requires sudo to execute ovs-vsctl commands + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + export PROJECTS="openstack/networking-generic-switch $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin networking-generic-switch git://git.openstack.org/openstack/networking-generic-switch" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_USE_LINK_LOCAL=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"OVS_PHYSICAL_BRIDGE=brbm" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"PHYSICAL_NETWORK=mynetwork" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_PROVISION_NETWORK_NAME=ironic-provision" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_PROVISION_SUBNET_PREFIX=10.0.5.0/24" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_PROVISION_SUBNET_GATEWAY=10.0.5.1" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"Q_PLUGIN=ml2" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"Q_USE_PROVIDERNET_FOR_PUBLIC=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"ENABLE_TENANT_VLANS=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"Q_ML2_TENANT_NETWORK_TYPE=vlan" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TENANT_VLAN_RANGE=100:150" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_NETWORK_INTERFACES=flat,neutron" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_NETWORK_INTERFACE=neutron" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "agent_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "agent_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=3" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-parallel/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-parallel/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-parallel/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-parallel/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-parallel/run.yaml new file mode 100644 index 00000000..b917fd9c --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-parallel/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-parallel from old job gate-tempest-dsvm-ironic-parallel-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + # NOTE(deva): tempest-lib support was added in Mitaka + # but this job does not run on stable branches, so we can keep it simple here + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export TEMPEST_CONCURRENCY=2 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Run only baremetal tests + export DEVSTACK_GATE_TEMPEST_REGEX='ironic' + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipa-full/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipa-full/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipa-full/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipa-full/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipa-full/run.yaml new file mode 100644 index 00000000..a8090202 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipa-full/run.yaml @@ -0,0 +1,146 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-pxe_ipa-full from old job gate-tempest-dsvm-ironic-pxe_ipa-full-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_FULL=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=7" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-postgres/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-postgres/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-postgres/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-postgres/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-postgres/run.yaml new file mode 100644 index 00000000..a4318113 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-postgres/run.yaml @@ -0,0 +1,163 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-pxe_ipmitool-postgres from old + job gate-tempest-dsvm-ironic-pxe_ipmitool-postgres-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_POSTGRES=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_IPXE_ENABLED=False" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src/run.yaml new file mode 100644 index 00000000..de5e300d --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src/run.yaml @@ -0,0 +1,155 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src from + old job gate-tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "coreos" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_PROJECT_FROM_GIT="pyghmi,$DEVSTACK_PROJECT_FROM_GIT" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src/run.yaml new file mode 100644 index 00000000..47324046 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src/run.yaml @@ -0,0 +1,163 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src from + old job gate-tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_PROJECT_FROM_GIT="virtualbmc,$DEVSTACK_PROJECT_FROM_GIT" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_PROJECT_FROM_GIT="pyghmi,$DEVSTACK_PROJECT_FROM_GIT" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_snmp-virtualpdu-src/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_snmp-virtualpdu-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_snmp-virtualpdu-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-pxe_snmp-virtualpdu-src/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-pxe_snmp-virtualpdu-src/run.yaml new file mode 100644 index 00000000..ebd63940 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-pxe_snmp-virtualpdu-src/run.yaml @@ -0,0 +1,155 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-pxe_snmp-virtualpdu-src from + old job gate-tempest-dsvm-ironic-pxe_snmp-virtualpdu-src-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_PROJECT_FROM_GIT="virtualpdu,$DEVSTACK_PROJECT_FROM_GIT" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_snmp + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_snmp" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_snmp" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ironic-staging-drivers-ansible-wholedisk/post.yaml b/playbooks/legacy/tempest-dsvm-ironic-staging-drivers-ansible-wholedisk/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-staging-drivers-ansible-wholedisk/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ironic-staging-drivers-ansible-wholedisk/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-staging-drivers-ansible-wholedisk/run.yaml new file mode 100644 index 00000000..846ea132 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ironic-staging-drivers-ansible-wholedisk/run.yaml @@ -0,0 +1,164 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ironic-staging-drivers-ansible-wholedisk + from old job gate-tempest-dsvm-ironic-staging-drivers-ansible-wholedisk-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export PROJECTS="openstack/ironic-staging-drivers $PROJECTS" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic-staging-drivers git://git.openstack.org/openstack/ironic-staging-drivers" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_STAGING_DRIVER=pxe_ipmitool_ansible" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "agent_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "agent_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-kuryr-kubernetes-multinode/post.yaml b/playbooks/legacy/tempest-dsvm-kuryr-kubernetes-multinode/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-kuryr-kubernetes-multinode/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-kuryr-kubernetes-multinode/run.yaml b/playbooks/legacy/tempest-dsvm-kuryr-kubernetes-multinode/run.yaml new file mode 100644 index 00000000..eddb6e1f --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-kuryr-kubernetes-multinode/run.yaml @@ -0,0 +1,92 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-kuryr-kubernetes-multinode from old + job gate-tempest-dsvm-kuryr-kubernetes-multinode-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin kuryr-kubernetes \ + https://git.openstack.org/openstack/kuryr-kubernetes + ENABLED_SERVICES="" + # Neutron services + enable_service neutron + enable_service q-agt + enable_service q-dhcp + enable_service q-l3 + enable_service q-svc + # LBaaSv2 service and Haproxy agent + enable_plugin neutron-lbaas \ + git://git.openstack.org/openstack/neutron-lbaas + enable_service q-lbaasv2 + NEUTRON_LBAAS_SERVICE_PROVIDERV2="LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default" + # Keystone + enable_service key + # dependencies + enable_service mysql + enable_service rabbit + # Docker + enable_plugin devstack-plugin-container \ + git://git.openstack.org/openstack/devstack-plugin-container + # Etcd + enable_service etcd3 + # Kubernetes + enable_service kubernetes-api + enable_service kubernetes-controller-manager + enable_service kubernetes-scheduler + KURYR_K8S_API_PORT="8080" + # Kubelet + enable_service kubelet + # Kuryr watcher + enable_service kuryr-kubernetes + # Enable Tempest + enable_service tempest + # Enable Tempest plugin + TEMPEST_PLUGINS='/opt/stack/new/kuryr-tempest-plugin' + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST_REGEX="kuryr_tempest_plugin.tests" + export BRANCH_OVERRIDE=default + + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/kuryr-kubernetes $PROJECTS" + export PROJECTS="openstack/kuryr-tempest-plugin $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + + export DEVSTACK_GATE_TOPOLOGY="multinode" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-lbaasv2-kuryr-kubernetes/post.yaml b/playbooks/legacy/tempest-dsvm-lbaasv2-kuryr-kubernetes/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-lbaasv2-kuryr-kubernetes/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-lbaasv2-kuryr-kubernetes/run.yaml b/playbooks/legacy/tempest-dsvm-lbaasv2-kuryr-kubernetes/run.yaml new file mode 100644 index 00000000..ba0607f3 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-lbaasv2-kuryr-kubernetes/run.yaml @@ -0,0 +1,103 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-lbaasv2-kuryr-kubernetes from old job + gate-tempest-dsvm-lbaasv2-kuryr-kubernetes-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin kuryr-kubernetes \ + https://git.openstack.org/openstack/kuryr-kubernetes + ENABLED_SERVICES="" + # Neutron services + enable_service neutron + enable_service q-agt + enable_service q-dhcp + enable_service q-l3 + enable_service q-svc + # Keystone + enable_service key + # dependencies + enable_service mysql + enable_service rabbit + # Nova + enable_service n-api + enable_service n-cpu + enable_service n-cond + enable_service n-sch + enable_service placement-api + enable_service placement-client + # Glance + enable_service g-api + enable_service g-reg + # Cinder + enable_service c-api + enable_service c-vol + enable_service c-sch + # Docker + enable_plugin devstack-plugin-container \ + git://git.openstack.org/openstack/devstack-plugin-container + # Etcd + enable_service etcd3 + # Kubernetes + enable_service kubernetes-api + enable_service kubernetes-controller-manager + enable_service kubernetes-scheduler + KURYR_K8S_API_PORT="8080" + # Kubelet + enable_service kubelet + # Kuryr watcher + enable_service kuryr-kubernetes + # LBaaSv2 service and Haproxy agent + enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas + NEUTRON_LBAAS_SERVICE_PROVIDERV2=LOADBALANCERV2:Haproxy:neutron_lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default + ENABLED_SERVICES+=,q-lbaasv2 + # Enable Tempest + enable_service tempest + # Enable Tempest plugin + TEMPEST_PLUGINS='/opt/stack/new/kuryr-tempest-plugin' + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST_REGEX="kuryr_tempest_plugin.tests" + export BRANCH_OVERRIDE=default + + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/kuryr-kubernetes $PROJECTS" + export PROJECTS="openstack/kuryr-tempest-plugin $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-ldap-domain-specific-driver/post.yaml b/playbooks/legacy/tempest-dsvm-ldap-domain-specific-driver/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ldap-domain-specific-driver/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-ldap-domain-specific-driver/run.yaml b/playbooks/legacy/tempest-dsvm-ldap-domain-specific-driver/run.yaml new file mode 100644 index 00000000..43325a19 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-ldap-domain-specific-driver/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-ldap-domain-specific-driver from old + job gate-tempest-dsvm-ldap-domain-specific-driver-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + # Enables ldap service and sets its password + enable_service ldap + KEYSTONE_CLEAR_LDAP=yes + LDAP_PASSWORD='nomoresecret' + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-lvm-multibackend/post.yaml b/playbooks/legacy/tempest-dsvm-lvm-multibackend/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-lvm-multibackend/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-lvm-multibackend/run.yaml b/playbooks/legacy/tempest-dsvm-lvm-multibackend/run.yaml new file mode 100644 index 00000000..57135084 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-lvm-multibackend/run.yaml @@ -0,0 +1,50 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-lvm-multibackend from old job gate-tempest-dsvm-lvm-multibackend-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + CINDER_ENABLED_BACKENDS=lvm:lvmdriver-1,lvm:lvmdriver-2 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + # As we are setting DEVSTACK_GATE_TEMPEST_ALL_PLUGINS, we need to add + # the regex to limit the tests to the same as a tempest -efull would + # run. + export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)|(^cinder\.tests.tempest))' + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-lvm/post.yaml b/playbooks/legacy/tempest-dsvm-lvm/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-lvm/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-lvm/run.yaml b/playbooks/legacy/tempest-dsvm-lvm/run.yaml new file mode 100644 index 00000000..87f69e3f --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-lvm/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-lvm from old job gate-tempest-dsvm-lvm-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + NOVA_BACKEND=LVM + LVM_VOLUME_CLEAR=none + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/nova/devstack/tempest-dsvm-lvm-rc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-lxc/post.yaml b/playbooks/legacy/tempest-dsvm-lxc/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-lxc/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-lxc/run.yaml b/playbooks/legacy/tempest-dsvm-lxc/run.yaml new file mode 100644 index 00000000..9695db4a --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-lxc/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-lxc from old job gate-tempest-dsvm-lxc-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + LIBVIRT_TYPE=lxc + NOVA_BACKEND=LVM + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/nova/devstack/tempest-dsvm-lxc-rc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-lxd-linuxbridge/post.yaml b/playbooks/legacy/tempest-dsvm-lxd-linuxbridge/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-lxd-linuxbridge/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-lxd-linuxbridge/run.yaml b/playbooks/legacy/tempest-dsvm-lxd-linuxbridge/run.yaml new file mode 100644 index 00000000..8b0f0fb9 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-lxd-linuxbridge/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-lxd-linuxbridge from old job gate-tempest-dsvm-lxd-linuxbridge-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin nova-lxd git://git.openstack.org/openstack/nova-lxd + # Enable linuxbridge agent and configure physical network + Q_AGENT=linuxbridge + PHYSICAL_NETWORK=default + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER="lxd" + export PROJECTS="openstack/nova-lxd $PROJECTS" + + # keep localrc to be able to set some vars in pre_test hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + source $BASE/new/nova-lxd/contrib/ci/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + source $BASE/new/nova-lxd/contrib/ci/post_test_hook.sh + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/nova-lxd/devstack/tempest-dsvm-lxd-rc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-lxd-ovs/post.yaml b/playbooks/legacy/tempest-dsvm-lxd-ovs/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-lxd-ovs/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-lxd-ovs/run.yaml b/playbooks/legacy/tempest-dsvm-lxd-ovs/run.yaml new file mode 100644 index 00000000..edd6af3b --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-lxd-ovs/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-lxd-ovs from old job gate-tempest-dsvm-lxd-ovs + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin nova-lxd git://git.openstack.org/openstack/nova-lxd + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER="lxd" + export PROJECTS="openstack/nova-lxd $PROJECTS" + + + # keep localrc to be able to set some vars in pre_test hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + source $BASE/new/nova-lxd/contrib/ci/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + source $BASE/new/nova-lxd/contrib/ci/post_test_hook.sh + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/nova-lxd/devstack/tempest-dsvm-lxd-rc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-monasca-java-mysql-full/post.yaml b/playbooks/legacy/tempest-dsvm-monasca-java-mysql-full/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-monasca-java-mysql-full/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-monasca-java-mysql-full/run.yaml b/playbooks/legacy/tempest-dsvm-monasca-java-mysql-full/run.yaml new file mode 100644 index 00000000..30620ce7 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-monasca-java-mysql-full/run.yaml @@ -0,0 +1,77 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-monasca-java-mysql-full from old job + gate-tempest-dsvm-monasca-java-mysql-full-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin monasca-api git://git.openstack.org/openstack/monasca-api + MONASCA_API_IMPLEMENTATION_LANG=java + MONASCA_PERSISTER_IMPLEMENTATION_LANG=java + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export ENABLED_SERVICES=tempest + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_EXERCISES=0 + + if [ mysql == "postgresql" ]; then + export DEVSTACK_GATE_POSTGRES=1 + else + export DEVSTACK_GATE_POSTGRES=0 + fi + + export PROJECTS="openstack/monasca-api $PROJECTS" + export PROJECTS="openstack/monasca-persister $PROJECTS" + export PROJECTS="openstack/monasca-common $PROJECTS" + export PROJECTS="openstack/monasca-agent $PROJECTS" + export PROJECTS="openstack/monasca-notification $PROJECTS" + export PROJECTS="openstack/monasca-thresh $PROJECTS" + export PROJECTS="openstack/monasca-statsd $PROJECTS" + export PROJECTS="openstack/python-monascaclient $PROJECTS" + export PROJECTS="openstack/monasca-grafana-datasource $PROJECTS" + export PROJECTS="openstack/monasca-ui $PROJECTS" + + function pre_test_hook { + source $BASE/new/monasca-api/devstack/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run tempest on monasca-api installation + source $BASE/new/monasca-api/devstack/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-monasca-java-postgresql-full/post.yaml b/playbooks/legacy/tempest-dsvm-monasca-java-postgresql-full/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-monasca-java-postgresql-full/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-monasca-java-postgresql-full/run.yaml b/playbooks/legacy/tempest-dsvm-monasca-java-postgresql-full/run.yaml new file mode 100644 index 00000000..cbff9e4f --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-monasca-java-postgresql-full/run.yaml @@ -0,0 +1,77 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-monasca-java-postgresql-full from old + job gate-tempest-dsvm-monasca-java-postgresql-full-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin monasca-api git://git.openstack.org/openstack/monasca-api + MONASCA_API_IMPLEMENTATION_LANG=java + MONASCA_PERSISTER_IMPLEMENTATION_LANG=java + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export ENABLED_SERVICES=tempest + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_EXERCISES=0 + + if [ postgresql == "postgresql" ]; then + export DEVSTACK_GATE_POSTGRES=1 + else + export DEVSTACK_GATE_POSTGRES=0 + fi + + export PROJECTS="openstack/monasca-api $PROJECTS" + export PROJECTS="openstack/monasca-persister $PROJECTS" + export PROJECTS="openstack/monasca-common $PROJECTS" + export PROJECTS="openstack/monasca-agent $PROJECTS" + export PROJECTS="openstack/monasca-notification $PROJECTS" + export PROJECTS="openstack/monasca-thresh $PROJECTS" + export PROJECTS="openstack/monasca-statsd $PROJECTS" + export PROJECTS="openstack/python-monascaclient $PROJECTS" + export PROJECTS="openstack/monasca-grafana-datasource $PROJECTS" + export PROJECTS="openstack/monasca-ui $PROJECTS" + + function pre_test_hook { + source $BASE/new/monasca-api/devstack/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run tempest on monasca-api installation + source $BASE/new/monasca-api/devstack/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-monasca-log-api/post.yaml b/playbooks/legacy/tempest-dsvm-monasca-log-api/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-monasca-log-api/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-monasca-log-api/run.yaml b/playbooks/legacy/tempest-dsvm-monasca-log-api/run.yaml new file mode 100644 index 00000000..95ac857d --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-monasca-log-api/run.yaml @@ -0,0 +1,68 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-monasca-log-api from old job gate-tempest-dsvm-monasca-log-api-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin monasca-api git://git.openstack.org/openstack/monasca-api + enable_plugin monasca-log-api git://git.openstack.org/openstack/monasca-log-api + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=0 + export OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest,dstat + + export PROJECTS="openstack/monasca-api $PROJECTS" + export PROJECTS="openstack/monasca-log-api $PROJECTS" + export PROJECTS="openstack/monasca-persister $PROJECTS" + export PROJECTS="openstack/monasca-common $PROJECTS" + export PROJECTS="openstack/monasca-agent $PROJECTS" + export PROJECTS="openstack/monasca-notification $PROJECTS" + export PROJECTS="openstack/monasca-thresh $PROJECTS" + export PROJECTS="openstack/monasca-statsd $PROJECTS" + export PROJECTS="openstack/python-monascaclient $PROJECTS" + export PROJECTS="openstack/monasca-grafana-datasource $PROJECTS" + export PROJECTS="openstack/monasca-ui $PROJECTS" + export PROJECTS="openstack/monasca-kibana-plugin $PROJECTS" + + function pre_test_hook { + source $BASE/new/monasca-log-api/devstack/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run tempest on monasca-log-api installation + source $BASE/new/monasca-log-api/devstack/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-monasca-pipeline-events/post.yaml b/playbooks/legacy/tempest-dsvm-monasca-pipeline-events/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-monasca-pipeline-events/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-monasca-pipeline-events/run.yaml b/playbooks/legacy/tempest-dsvm-monasca-pipeline-events/run.yaml new file mode 100644 index 00000000..f26ead52 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-monasca-pipeline-events/run.yaml @@ -0,0 +1,66 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-monasca-pipeline-events from old job + gate-tempest-dsvm-monasca-pipeline-events-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=0 + export OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest,dstat + + devstack_plugin='' + if [ events == 'logs' ]; then + devstack_plugin='log-api' + export DEVSTACK_LOCAL_CONFIG="enable_plugin monasca-log-api git://git.openstack.org/openstack/monasca-log-api" + elif [ events == 'events' ]; then + devstack_plugin='events-api' + export DEVSTACK_LOCAL_CONFIG="enable_plugin monasca-events-api git://git.openstack.org/openstack/monasca-events-api" + else + echo "Unknown pipeline events" + exit 1 + fi + + pre_test_hook_script=$BASE/new/monasca-$devstack_plugin/devstack/pre_test_hook.sh + post_test_hook_script=$BASE/new/monasca-$devstack_plugin/devstack/post_test_hook.sh + devstack_rc_script=/opt/stack/new/monasca-$devstack_plugin/devstack/devstackgaterc + + if [ -f $pre_test_hook_script ]; then + function pre_test_hook { + source $pre_test_hook_script + } + export -f pre_test_hook + fi + + if [ -f $post_test_hook_script ]; then + function post_test_hook { + source $post_test_hook_script + } + export -f post_test_hook + fi + + if [ -f $devstack_rc_script ]; then + export DEVSTACK_GATE_SETTINGS=$devstack_rc_script + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-monasca-pipeline-logs/post.yaml b/playbooks/legacy/tempest-dsvm-monasca-pipeline-logs/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-monasca-pipeline-logs/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-monasca-pipeline-logs/run.yaml b/playbooks/legacy/tempest-dsvm-monasca-pipeline-logs/run.yaml new file mode 100644 index 00000000..49ebe7ac --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-monasca-pipeline-logs/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-monasca-pipeline-logs from old job gate-tempest-dsvm-monasca-pipeline-logs-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=0 + export OVERRIDE_ENABLED_SERVICES=key,mysql,rabbit,tempest,dstat + + devstack_plugin='' + if [ logs == 'logs' ]; then + devstack_plugin='log-api' + export DEVSTACK_LOCAL_CONFIG="enable_plugin monasca-log-api git://git.openstack.org/openstack/monasca-log-api" + elif [ logs == 'events' ]; then + devstack_plugin='events-api' + export DEVSTACK_LOCAL_CONFIG="enable_plugin monasca-events-api git://git.openstack.org/openstack/monasca-events-api" + else + echo "Unknown pipeline logs" + exit 1 + fi + + pre_test_hook_script=$BASE/new/monasca-$devstack_plugin/devstack/pre_test_hook.sh + post_test_hook_script=$BASE/new/monasca-$devstack_plugin/devstack/post_test_hook.sh + devstack_rc_script=/opt/stack/new/monasca-$devstack_plugin/devstack/devstackgaterc + + if [ -f $pre_test_hook_script ]; then + function pre_test_hook { + source $pre_test_hook_script + } + export -f pre_test_hook + fi + + if [ -f $post_test_hook_script ]; then + function post_test_hook { + source $post_test_hook_script + } + export -f post_test_hook + fi + + if [ -f $devstack_rc_script ]; then + export DEVSTACK_GATE_SETTINGS=$devstack_rc_script + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-monasca-python-mysql-full/post.yaml b/playbooks/legacy/tempest-dsvm-monasca-python-mysql-full/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-monasca-python-mysql-full/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-monasca-python-mysql-full/run.yaml b/playbooks/legacy/tempest-dsvm-monasca-python-mysql-full/run.yaml new file mode 100644 index 00000000..61711826 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-monasca-python-mysql-full/run.yaml @@ -0,0 +1,77 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-monasca-python-mysql-full from old job + gate-tempest-dsvm-monasca-python-mysql-full-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin monasca-api git://git.openstack.org/openstack/monasca-api + MONASCA_API_IMPLEMENTATION_LANG=python + MONASCA_PERSISTER_IMPLEMENTATION_LANG=python + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export ENABLED_SERVICES=tempest + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_EXERCISES=0 + + if [ mysql == "postgresql" ]; then + export DEVSTACK_GATE_POSTGRES=1 + else + export DEVSTACK_GATE_POSTGRES=0 + fi + + export PROJECTS="openstack/monasca-api $PROJECTS" + export PROJECTS="openstack/monasca-persister $PROJECTS" + export PROJECTS="openstack/monasca-common $PROJECTS" + export PROJECTS="openstack/monasca-agent $PROJECTS" + export PROJECTS="openstack/monasca-notification $PROJECTS" + export PROJECTS="openstack/monasca-thresh $PROJECTS" + export PROJECTS="openstack/monasca-statsd $PROJECTS" + export PROJECTS="openstack/python-monascaclient $PROJECTS" + export PROJECTS="openstack/monasca-grafana-datasource $PROJECTS" + export PROJECTS="openstack/monasca-ui $PROJECTS" + + function pre_test_hook { + source $BASE/new/monasca-api/devstack/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run tempest on monasca-api installation + source $BASE/new/monasca-api/devstack/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-monasca-python-postgresql-full/post.yaml b/playbooks/legacy/tempest-dsvm-monasca-python-postgresql-full/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-monasca-python-postgresql-full/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-monasca-python-postgresql-full/run.yaml b/playbooks/legacy/tempest-dsvm-monasca-python-postgresql-full/run.yaml new file mode 100644 index 00000000..6ab8c3f1 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-monasca-python-postgresql-full/run.yaml @@ -0,0 +1,77 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-monasca-python-postgresql-full from + old job gate-tempest-dsvm-monasca-python-postgresql-full-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin monasca-api git://git.openstack.org/openstack/monasca-api + MONASCA_API_IMPLEMENTATION_LANG=python + MONASCA_PERSISTER_IMPLEMENTATION_LANG=python + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export ENABLED_SERVICES=tempest + + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_EXERCISES=0 + + if [ postgresql == "postgresql" ]; then + export DEVSTACK_GATE_POSTGRES=1 + else + export DEVSTACK_GATE_POSTGRES=0 + fi + + export PROJECTS="openstack/monasca-api $PROJECTS" + export PROJECTS="openstack/monasca-persister $PROJECTS" + export PROJECTS="openstack/monasca-common $PROJECTS" + export PROJECTS="openstack/monasca-agent $PROJECTS" + export PROJECTS="openstack/monasca-notification $PROJECTS" + export PROJECTS="openstack/monasca-thresh $PROJECTS" + export PROJECTS="openstack/monasca-statsd $PROJECTS" + export PROJECTS="openstack/python-monascaclient $PROJECTS" + export PROJECTS="openstack/monasca-grafana-datasource $PROJECTS" + export PROJECTS="openstack/monasca-ui $PROJECTS" + + function pre_test_hook { + source $BASE/new/monasca-api/devstack/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run tempest on monasca-api installation + source $BASE/new/monasca-api/devstack/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-monasca-transform-python-functional/post.yaml b/playbooks/legacy/tempest-dsvm-monasca-transform-python-functional/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-monasca-transform-python-functional/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-monasca-transform-python-functional/run.yaml b/playbooks/legacy/tempest-dsvm-monasca-transform-python-functional/run.yaml new file mode 100644 index 00000000..74f46fe1 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-monasca-transform-python-functional/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-monasca-transform-python-functional + from old job gate-tempest-dsvm-monasca-transform-python-functional + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin monasca-api git://git.openstack.org/openstack/monasca-api + enable_plugin monasca-transform git://git.openstack.org/openstack/monasca-transform + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + if [ "python" == "python35" ]; then + export DEVSTACK_GATE_USE_PYTHON3=True + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + export ENABLED_SERVICES=tempest + export PROJECTS="openstack/monasca-transform $PROJECTS" + export PROJECTS="openstack/monasca-api $PROJECTS" + export PROJECTS="openstack/monasca-persister $PROJECTS" + export PROJECTS="openstack/monasca-common $PROJECTS" + export PROJECTS="openstack/monasca-agent $PROJECTS" + export PROJECTS="openstack/monasca-notification $PROJECTS" + export PROJECTS="openstack/monasca-thresh $PROJECTS" + export PROJECTS="openstack/monasca-statsd $PROJECTS" + export PROJECTS="openstack/python-monascaclient $PROJECTS" + export PROJECTS="openstack/monasca-grafana-datasource $PROJECTS" + export PROJECTS="openstack/monasca-ui $PROJECTS" + + function pre_test_hook { + source $BASE/new/monasca-transform/devstack/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run tempest on monasca-transform installation + source $BASE/new/monasca-transform/devstack/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-monasca-transform-python35-functional/post.yaml b/playbooks/legacy/tempest-dsvm-monasca-transform-python35-functional/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-monasca-transform-python35-functional/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-monasca-transform-python35-functional/run.yaml b/playbooks/legacy/tempest-dsvm-monasca-transform-python35-functional/run.yaml new file mode 100644 index 00000000..8d2d8179 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-monasca-transform-python35-functional/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-monasca-transform-python35-functional + from old job gate-tempest-dsvm-monasca-transform-python35-functional-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin monasca-api git://git.openstack.org/openstack/monasca-api + enable_plugin monasca-transform git://git.openstack.org/openstack/monasca-transform + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + if [ "python35" == "python35" ]; then + export DEVSTACK_GATE_USE_PYTHON3=True + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + export ENABLED_SERVICES=tempest + export PROJECTS="openstack/monasca-transform $PROJECTS" + export PROJECTS="openstack/monasca-api $PROJECTS" + export PROJECTS="openstack/monasca-persister $PROJECTS" + export PROJECTS="openstack/monasca-common $PROJECTS" + export PROJECTS="openstack/monasca-agent $PROJECTS" + export PROJECTS="openstack/monasca-notification $PROJECTS" + export PROJECTS="openstack/monasca-thresh $PROJECTS" + export PROJECTS="openstack/monasca-statsd $PROJECTS" + export PROJECTS="openstack/python-monascaclient $PROJECTS" + export PROJECTS="openstack/monasca-grafana-datasource $PROJECTS" + export PROJECTS="openstack/monasca-ui $PROJECTS" + + function pre_test_hook { + source $BASE/new/monasca-transform/devstack/pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + # Configure and run tempest on monasca-transform installation + source $BASE/new/monasca-transform/devstack/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-mongodb-zaqar/post.yaml b/playbooks/legacy/tempest-dsvm-mongodb-zaqar/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-mongodb-zaqar/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-mongodb-zaqar/run.yaml b/playbooks/legacy/tempest-dsvm-mongodb-zaqar/run.yaml new file mode 100644 index 00000000..35b908c4 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-mongodb-zaqar/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-mongodb-zaqar from old job gate-tempest-dsvm-mongodb-zaqar-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin zaqar git://git.openstack.org/openstack/zaqar + # Enable Zaqar Tempest plugin + TEMPEST_PLUGINS='/opt/stack/new/zaqar-tempest-plugin' + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PYTHONUNBUFFERED=true + export ENABLED_SERVICES=tempest + export DEVSTACK_GATE_TEMPEST_REGEX="zaqar_tempest_plugin.tests" + export DEVSTACK_GATE_TEMPEST=0 + + function gate_hook { + cd /opt/stack/new/zaqar/devstack/gate + ./gate_hook.sh tempest mongodb + } + + export PROJECTS="openstack/zaqar-tempest-plugin $PROJECTS" + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-multibackend-matrix/post.yaml b/playbooks/legacy/tempest-dsvm-multibackend-matrix/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-multibackend-matrix/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-multibackend-matrix/run.yaml b/playbooks/legacy/tempest-dsvm-multibackend-matrix/run.yaml new file mode 100644 index 00000000..06cc812f --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-multibackend-matrix/run.yaml @@ -0,0 +1,57 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-multibackend-matrix from old job gate-tempest-dsvm-multibackend-matrix-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin devstack-plugin-nfs git://git.openstack.org/devstack-plugin-nfs + enable_plugin devstack-plugin-ceph https://git.openstack.org/openstack/devstack-plugin-ceph + CINDER_ENABLED_BACKENDS=lvm:lvm,nfs:nfs,ceph:ceph + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/devstack-plugin-nfs $PROJECTS" + export PROJECTS="openstack/devstack-plugin-ceph $PROJECTS" + + function post_test_hook { + /opt/stack/new/cinder/tools/hooks/run_multi_backend_matrix.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-multinode-full/post.yaml b/playbooks/legacy/tempest-dsvm-multinode-full/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-multinode-full/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-multinode-full/run.yaml b/playbooks/legacy/tempest-dsvm-multinode-full/run.yaml new file mode 100644 index 00000000..292f0bdb --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-multinode-full/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-multinode-full from old job gate-tempest-dsvm-multinode-full-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + NOVA_VNC_ENABLED=true + VNCSERVER_LISTEN=0.0.0.0 + VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-multinode-live-migration/post.yaml b/playbooks/legacy/tempest-dsvm-multinode-live-migration/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-multinode-live-migration/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-multinode-live-migration/run.yaml b/playbooks/legacy/tempest-dsvm-multinode-live-migration/run.yaml new file mode 100644 index 00000000..9bfcbee1 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-multinode-live-migration/run.yaml @@ -0,0 +1,41 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-multinode-live-migration from old job + gate-tempest-dsvm-multinode-live-migration-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + export BRANCH_OVERRIDE=default + export DEVSTACK_GATE_TOPOLOGY="multinode" + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + function post_test_hook { + /opt/stack/new/nova/nova/tests/live_migration/hooks/run_tests.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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-murano-api/post.yaml b/playbooks/legacy/tempest-dsvm-murano-api/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-murano-api/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-murano-api/run.yaml b/playbooks/legacy/tempest-dsvm-murano-api/run.yaml new file mode 100644 index 00000000..15b8c040 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-murano-api/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-murano-api from old job gate-tempest-dsvm-murano-api-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + # Allow tempest to use site-packages with plugins + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export PROJECTS="openstack/heat $PROJECTS" + export PROJECTS="openstack/python-heatclient $PROJECTS" + export PROJECTS="openstack/murano $PROJECTS" + export PROJECTS="openstack/murano-dashboard $PROJECTS" + export PROJECTS="openstack/python-muranoclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin heat git://git.openstack.org/openstack/heat" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin murano git://git.openstack.org/openstack/murano" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "api" = "cfapi" ]; then + export ENABLED_SERVICES+=,murano-cfapi + export DEVSTACK_GATE_TEMPEST_REGEX="service_broker" + elif [ "api" = "api" ]; then + export DEVSTACK_GATE_TEMPEST_REGEX="application_catalog" + elif [ "api" = "glare-backend" ]; then + export DEVSTACK_GATE_TEMPEST_REGEX="application_catalog" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service g-glare" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"MURANO_USE_GLARE=True" + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-murano-cfapi/post.yaml b/playbooks/legacy/tempest-dsvm-murano-cfapi/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-murano-cfapi/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-murano-cfapi/run.yaml b/playbooks/legacy/tempest-dsvm-murano-cfapi/run.yaml new file mode 100644 index 00000000..4f824030 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-murano-cfapi/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-murano-cfapi from old job gate-tempest-dsvm-murano-cfapi-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + # Allow tempest to use site-packages with plugins + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export PROJECTS="openstack/heat $PROJECTS" + export PROJECTS="openstack/python-heatclient $PROJECTS" + export PROJECTS="openstack/murano $PROJECTS" + export PROJECTS="openstack/murano-dashboard $PROJECTS" + export PROJECTS="openstack/python-muranoclient $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin heat git://git.openstack.org/openstack/heat" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin murano git://git.openstack.org/openstack/murano" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + if [ "cfapi" = "cfapi" ]; then + export ENABLED_SERVICES+=,murano-cfapi + export DEVSTACK_GATE_TEMPEST_REGEX="service_broker" + elif [ "cfapi" = "api" ]; then + export DEVSTACK_GATE_TEMPEST_REGEX="application_catalog" + elif [ "cfapi" = "glare-backend" ]; then + export DEVSTACK_GATE_TEMPEST_REGEX="application_catalog" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service g-glare" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"MURANO_USE_GLARE=True" + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-bagpipe/post.yaml b/playbooks/legacy/tempest-dsvm-networking-bagpipe/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-bagpipe/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-bagpipe/run.yaml b/playbooks/legacy/tempest-dsvm-networking-bagpipe/run.yaml new file mode 100644 index 00000000..207ff020 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-bagpipe/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-bagpipe from old job gate-tempest-dsvm-networking-bagpipe + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-bagpipe git://git.openstack.org/openstack/networking-bagpipe + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: "set -e\nset -x\nexport PYTHONUNBUFFERED=true\nexport DEVSTACK_GATE_TEMPEST=1\n\ + export DEVSTACK_GATE_TEMPEST_FULL=1\nexport DEVSTACK_GATE_NEUTRON=1\nexport\ + \ BRANCH_OVERRIDE=default\nif [ \"$BRANCH_OVERRIDE\" != \"default\" ] ;\ + \ then\n export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE\nfi\n# Because\ + \ we are testing a non standard project, add\n# our project repository.\ + \ This makes zuul do the right\n# reference magic for testing changes.\n\ + export PROJECTS=\"openstack/networking-bagpipe $PROJECTS\"\n# we need to\ + \ add networking-bgpvpn as well, which we\n# depend on\nexport PROJECTS=\"\ + openstack/networking-bgpvpn $PROJECTS\"\n\nfunction gate_hook {\n bash\ + \ -xe $BASE/new/networking-bagpipe/devstack/gate_hook.sh \n}\nexport -f\ + \ gate_hook\n\nexport DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-bagpipe/devstack/devstack-gate-rc\n\ + \ncp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh\n\ + ./safe-devstack-vm-gate-wrap.sh\n" + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-bgpvpn-bagpipe/post.yaml b/playbooks/legacy/tempest-dsvm-networking-bgpvpn-bagpipe/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-bgpvpn-bagpipe/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-bgpvpn-bagpipe/run.yaml b/playbooks/legacy/tempest-dsvm-networking-bgpvpn-bagpipe/run.yaml new file mode 100644 index 00000000..a2e91c00 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-bgpvpn-bagpipe/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-bgpvpn-bagpipe from old job + gate-tempest-dsvm-networking-bgpvpn-bagpipe-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-bgpvpn git://git.openstack.org/openstack/networking-bgpvpn + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + # Make sure tempest is installed and performed + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export PROJECTS="openstack/networking-bagpipe $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + . $BASE/new/networking-bgpvpn/devstack/pre_test_hook.sh dsvm-tempest + } + export -f pre_test_hook + + function gate_hook { + . $BASE/new/networking-bgpvpn/devstack/gate_hook.sh dsvm-tempest + } + export -f gate_hook + + function post_test_hook { + . $BASE/new/networking-bgpvpn/devstack/post_test_hook.sh dsvm-tempest + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-bgpvpn/devstack/devstack-gate-bagpipe-rc + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-calico/post.yaml b/playbooks/legacy/tempest-dsvm-networking-calico/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-calico/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-calico/run.yaml b/playbooks/legacy/tempest-dsvm-networking-calico/run.yaml new file mode 100644 index 00000000..db10ad59 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-calico/run.yaml @@ -0,0 +1,67 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-calico from old job gate-tempest-dsvm-networking-calico + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-calico git://git.openstack.org/openstack/networking-calico + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export PROJECTS="openstack/networking-calico $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/networking-calico/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-calico/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/networking-calico/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-calico/devstack/post_test_hook.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-calico/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-centos-7/post.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-centos-7/run.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-centos-7/run.yaml new file mode 100644 index 00000000..58588595 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-centos-7/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-midonet-aio-ml2-centos-7 + from old job gate-tempest-dsvm-networking-midonet-aio-ml2-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY=aio + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-midonet $PROJECTS" + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + export PROJECTS="openstack/networking-l2gw $PROJECTS" + export PROJECTS="openstack/tap-as-a-service $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh ml2 + } + export -f gate_hook + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-midonet/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-centos-7/post.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-centos-7/run.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-centos-7/run.yaml new file mode 100644 index 00000000..ec395cd5 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-centos-7/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-midonet-aio-ml2-full-centos-7 + from old job gate-tempest-dsvm-networking-midonet-aio-ml2-full-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY=aio + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-midonet $PROJECTS" + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + export PROJECTS="openstack/networking-l2gw $PROJECTS" + export PROJECTS="openstack/tap-as-a-service $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh ml2-full + } + export -f gate_hook + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-midonet/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-legacy/post.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-legacy/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-legacy/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-legacy/run.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-legacy/run.yaml new file mode 100644 index 00000000..aebd3437 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-legacy/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-midonet-aio-ml2-full-legacy + from old job gate-tempest-dsvm-networking-midonet-aio-ml2-full-legacy-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY=aio + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-midonet $PROJECTS" + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + export PROJECTS="openstack/networking-l2gw $PROJECTS" + export PROJECTS="openstack/tap-as-a-service $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh ml2-full-legacy + } + export -f gate_hook + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-midonet/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full/post.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full/run.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full/run.yaml new file mode 100644 index 00000000..df04f52b --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-midonet-aio-ml2-full from + old job gate-tempest-dsvm-networking-midonet-aio-ml2-full-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY=aio + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-midonet $PROJECTS" + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + export PROJECTS="openstack/networking-l2gw $PROJECTS" + export PROJECTS="openstack/tap-as-a-service $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh ml2-full + } + export -f gate_hook + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-midonet/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2/post.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2/run.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2/run.yaml new file mode 100644 index 00000000..ff6ddadf --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-midonet-aio-ml2 from old + job gate-tempest-dsvm-networking-midonet-aio-ml2-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY=aio + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-midonet $PROJECTS" + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + export PROJECTS="openstack/networking-l2gw $PROJECTS" + export PROJECTS="openstack/tap-as-a-service $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh ml2 + } + export -f gate_hook + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-midonet/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2-full/post.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2-full/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2-full/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2-full/run.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2-full/run.yaml new file mode 100644 index 00000000..a0e09a83 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2-full/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-midonet-aio-v2-full from + old job gate-tempest-dsvm-networking-midonet-aio-v2-full-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY=aio + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-midonet $PROJECTS" + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + export PROJECTS="openstack/networking-l2gw $PROJECTS" + export PROJECTS="openstack/tap-as-a-service $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh v2-full + } + export -f gate_hook + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-midonet/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2/post.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2/run.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2/run.yaml new file mode 100644 index 00000000..c1d90aea --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-midonet-aio-v2 from old job + gate-tempest-dsvm-networking-midonet-aio-v2-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY=aio + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-midonet $PROJECTS" + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + export PROJECTS="openstack/networking-l2gw $PROJECTS" + export PROJECTS="openstack/tap-as-a-service $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh v2 + } + export -f gate_hook + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-midonet/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-multinode-ml2/post.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-multinode-ml2/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-multinode-ml2/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-midonet-multinode-ml2/run.yaml b/playbooks/legacy/tempest-dsvm-networking-midonet-multinode-ml2/run.yaml new file mode 100644 index 00000000..896424b2 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-midonet-multinode-ml2/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-midonet-multinode-ml2 from + old job gate-tempest-dsvm-networking-midonet-multinode-ml2-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY=multinode + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-midonet $PROJECTS" + export PROJECTS="openstack/neutron-dynamic-routing $PROJECTS" + export PROJECTS="openstack/networking-l2gw $PROJECTS" + export PROJECTS="openstack/tap-as-a-service $PROJECTS" + + function gate_hook { + bash -xe $BASE/new/networking-midonet/devstack/ci/gate_hook.sh ml2 + } + export -f gate_hook + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-midonet/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-boron-snapshot-v2driver/post.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-boron-snapshot-v2driver/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-odl-boron-snapshot-v2driver/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-boron-snapshot-v2driver/run.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-boron-snapshot-v2driver/run.yaml new file mode 100644 index 00000000..fe2a919d --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-odl-boron-snapshot-v2driver/run.yaml @@ -0,0 +1,80 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-odl-boron-snapshot-v2driver + from old job gate-tempest-dsvm-networking-odl-boron-snapshot-v2driver-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-odl git://git.openstack.org/openstack/networking-odl + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + # Make sure tempest is installed, but run it out of the post_test_hooks.sh + # script from the networking-odl repository. + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-odl $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + # specify ODL release to use + export ODL_RELEASE_BASE=boron-snapshot + export ODL_GATE_V2DRIVER=v2driver + export ODL_GATE_SERVICE_PROVIDER= + export ODL_TEST_SUFFIX=-nv + + function pre_test_hook { + if [ -f $BASE/new/networking-odl/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-odl/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/networking-odl/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-odl/devstack/post_test_hook.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-odl/devstack/devstackgaterc + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver/post.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver/run.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver/run.yaml new file mode 100644 index 00000000..077d7836 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver/run.yaml @@ -0,0 +1,80 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver + from old job gate-tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-odl git://git.openstack.org/openstack/networking-odl + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + # Make sure tempest is installed, but run it out of the post_test_hooks.sh + # script from the networking-odl repository. + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-odl $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + # specify ODL release to use + export ODL_RELEASE_BASE=carbon-snapshot + export ODL_GATE_V2DRIVER=v2driver + export ODL_GATE_SERVICE_PROVIDER=vpnservice- + export ODL_TEST_SUFFIX=-nv + + function pre_test_hook { + if [ -f $BASE/new/networking-odl/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-odl/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/networking-odl/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-odl/devstack/post_test_hook.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-odl/devstack/devstackgaterc + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-multinode-carbon-snapshot/post.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-multinode-carbon-snapshot/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-odl-multinode-carbon-snapshot/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-multinode-carbon-snapshot/run.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-multinode-carbon-snapshot/run.yaml new file mode 100644 index 00000000..dcb542a4 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-odl-multinode-carbon-snapshot/run.yaml @@ -0,0 +1,80 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-odl-multinode-carbon-snapshot + from old job gate-tempest-dsvm-networking-odl-multinode-carbon-snapshot-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-odl git://git.openstack.org/openstack/networking-odl + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_NEUTRON_DVR=1 + # Make sure tempest is installed, but run it out of the post_test_hooks.sh + # script from the networking-odl repository. + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-odl $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + # specify ODL release to use + export ODL_RELEASE_BASE=carbon-snapshot + + function pre_test_hook { + if [ -f $BASE/new/networking-odl/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-odl/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/networking-odl/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-odl/devstack/post_test_hook.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_TOPOLOGY="multinode" + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-odl/devstack/devstackgaterc + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-multinode-nitrogen-snapshot/post.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-multinode-nitrogen-snapshot/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-odl-multinode-nitrogen-snapshot/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-multinode-nitrogen-snapshot/run.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-multinode-nitrogen-snapshot/run.yaml new file mode 100644 index 00000000..3a101b94 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-odl-multinode-nitrogen-snapshot/run.yaml @@ -0,0 +1,80 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-odl-multinode-nitrogen-snapshot + from old job gate-tempest-dsvm-networking-odl-multinode-nitrogen-snapshot-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-odl git://git.openstack.org/openstack/networking-odl + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_NEUTRON_DVR=1 + # Make sure tempest is installed, but run it out of the post_test_hooks.sh + # script from the networking-odl repository. + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-odl $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + # specify ODL release to use + export ODL_RELEASE_BASE=nitrogen-snapshot + + function pre_test_hook { + if [ -f $BASE/new/networking-odl/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-odl/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/networking-odl/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-odl/devstack/post_test_hook.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_TOPOLOGY="multinode" + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-odl/devstack/devstackgaterc + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver/post.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver/run.yaml b/playbooks/legacy/tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver/run.yaml new file mode 100644 index 00000000..49bc53ce --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver/run.yaml @@ -0,0 +1,80 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver + from old job gate-tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-odl git://git.openstack.org/openstack/networking-odl + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + # Make sure tempest is installed, but run it out of the post_test_hooks.sh + # script from the networking-odl repository. + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-odl $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + # specify ODL release to use + export ODL_RELEASE_BASE=nitrogen-snapshot + export ODL_GATE_V2DRIVER=v2driver + export ODL_GATE_SERVICE_PROVIDER=vpnservice- + export ODL_TEST_SUFFIX=-nv + + function pre_test_hook { + if [ -f $BASE/new/networking-odl/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-odl/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/networking-odl/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-odl/devstack/post_test_hook.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-odl/devstack/devstackgaterc + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-onos/post.yaml b/playbooks/legacy/tempest-dsvm-networking-onos/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-onos/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-onos/run.yaml b/playbooks/legacy/tempest-dsvm-networking-onos/run.yaml new file mode 100644 index 00000000..3a618dfa --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-onos/run.yaml @@ -0,0 +1,72 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-onos from old job gate-tempest-dsvm-networking-onos-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-onos git://git.openstack.org/openstack/networking-onos + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + # Make sure tempest is installed, but run it out of the post_test_hooks.sh + # script from the networking-onos repository. + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-onos $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/networking-onos/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-onos/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/networking-onos/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-onos/devstack/post_test_hook.sh + fi + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-multinode/post.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-multinode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-multinode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-multinode/run.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-multinode/run.yaml new file mode 100644 index 00000000..7e1ce024 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-multinode/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-ovn-multinode from old job + gate-tempest-dsvm-networking-ovn-multinode-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-ovn git://git.openstack.org/openstack/networking-ovn + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-ovn $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/networking-ovn/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-ovn/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/networking-ovn/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-ovn/devstack/post_test_hook.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-ovn/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-neutron-api-ovs-release/post.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-neutron-api-ovs-release/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-neutron-api-ovs-release/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-neutron-api-ovs-release/run.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-neutron-api-ovs-release/run.yaml new file mode 100644 index 00000000..213a94f1 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-neutron-api-ovs-release/run.yaml @@ -0,0 +1,70 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-ovn-neutron-api-ovs-release + from old job gate-tempest-dsvm-networking-ovn-neutron-api-ovs-release-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-ovn git://git.openstack.org/openstack/networking-ovn + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-ovn $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/networking-ovn/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-ovn/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/networking-ovn/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-ovn/devstack/post_test_hook.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS="/opt/stack/new/networking-ovn/devstack/devstackgaterc latest-release neutron-api-tests" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master-python3/post.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master-python3/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master-python3/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master-python3/run.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master-python3/run.yaml new file mode 100644 index 00000000..01e5f745 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master-python3/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-ovn-ovs-master-python3 from + old job gate-tempest-dsvm-networking-ovn-ovs-master-python3-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-ovn git://git.openstack.org/openstack/networking-ovn + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + # Enable PYTHON 3 + export DEVSTACK_GATE_USE_PYTHON3=True + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-ovn $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/networking-ovn/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-ovn/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/networking-ovn/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-ovn/devstack/post_test_hook.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS="/opt/stack/new/networking-ovn/devstack/devstackgaterc master" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master/post.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master/run.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master/run.yaml new file mode 100644 index 00000000..e8ac0477 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master/run.yaml @@ -0,0 +1,71 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-ovn-ovs-master from old job + gate-tempest-dsvm-networking-ovn-ovs-master-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-ovn git://git.openstack.org/openstack/networking-ovn + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-ovn $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/networking-ovn/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-ovn/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/networking-ovn/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-ovn/devstack/post_test_hook.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS="/opt/stack/new/networking-ovn/devstack/devstackgaterc master" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src/post.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src/run.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src/run.yaml new file mode 100644 index 00000000..559cfb35 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src + from old job gate-tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-ovn git://git.openstack.org/openstack/networking-ovn + LIBS_FROM_GIT="ovsdbapp" + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-ovn $PROJECTS" + export PROJECTS="openstack/ovsdbapp $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/networking-ovn/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-ovn/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/networking-ovn/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-ovn/devstack/post_test_hook.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS="/opt/stack/new/networking-ovn/devstack/devstackgaterc latest-release" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release/post.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release/run.yaml b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release/run.yaml new file mode 100644 index 00000000..745ea358 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release/run.yaml @@ -0,0 +1,71 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-ovn-ovs-release from old + job gate-tempest-dsvm-networking-ovn-ovs-release + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-ovn git://git.openstack.org/openstack/networking-ovn + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-ovn $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/networking-ovn/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-ovn/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/networking-ovn/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-ovn/devstack/post_test_hook.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS="/opt/stack/new/networking-ovn/devstack/devstackgaterc latest-release" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-ovs-dpdk/post.yaml b/playbooks/legacy/tempest-dsvm-networking-ovs-dpdk/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-ovs-dpdk/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-ovs-dpdk/run.yaml b/playbooks/legacy/tempest-dsvm-networking-ovs-dpdk/run.yaml new file mode 100644 index 00000000..0d424b95 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-ovs-dpdk/run.yaml @@ -0,0 +1,70 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-ovs-dpdk from old job gate-tempest-dsvm-networking-ovs-dpdk-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-ovs-dpdk git://git.openstack.org/openstack/networking-ovs-dpdk + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-ovs-dpdk $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/networking-ovs-dpdk/devstack/gate/pre_test_hook.sh ] ; then + . $BASE/new/networking-ovs-dpdk/devstack/gate/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/networking-ovs-dpdk/devstack/gate/post_test_hook.sh ] ; then + . $BASE/new/networking-ovs-dpdk/devstack/gate/post_test_hook.sh + fi + } + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-ovs-dpdk/devstack/gate/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-sfc-multinode/post.yaml b/playbooks/legacy/tempest-dsvm-networking-sfc-multinode/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-sfc-multinode/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-sfc-multinode/run.yaml b/playbooks/legacy/tempest-dsvm-networking-sfc-multinode/run.yaml new file mode 100644 index 00000000..734d7f39 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-sfc-multinode/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-sfc-multinode from old job + gate-tempest-dsvm-networking-sfc-multinode-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-sfc git://git.openstack.org/openstack/networking-sfc + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + # Make sure tempest is installed, but run it out of the post_test_hooks.sh + # script from the networking-sfc repository. + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-sfc $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/networking-sfc/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-sfc/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function post_test_hook { + if [ -f $BASE/new/networking-sfc/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-sfc/devstack/post_test_hook.sh + fi + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-networking-sfc/post.yaml b/playbooks/legacy/tempest-dsvm-networking-sfc/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-sfc/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-networking-sfc/run.yaml b/playbooks/legacy/tempest-dsvm-networking-sfc/run.yaml new file mode 100644 index 00000000..b400b592 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-networking-sfc/run.yaml @@ -0,0 +1,79 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-networking-sfc from old job gate-tempest-dsvm-networking-sfc-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin networking-sfc git://git.openstack.org/openstack/networking-sfc + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + # Make sure tempest is installed, but run it out of the post_test_hooks.sh + # script from the networking-sfc repository. + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_NOTESTS=1 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-sfc $PROJECTS" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook { + if [ -f $BASE/new/networking-sfc/devstack/pre_test_hook.sh ] ; then + . $BASE/new/networking-sfc/devstack/pre_test_hook.sh + fi + } + export -f pre_test_hook + + function gate_hook { + if [ -f $BASE/new/networking-sfc/networking_sfc/tests/contrib/gate_hook.sh ] ; then + bash -xe $BASE/new/networking-sfc/networking_sfc/tests/contrib/gate_hook.sh dsvm-networking-sfc + fi + } + export -f gate_hook + + function post_test_hook { + if [ -f $BASE/new/networking-sfc/devstack/post_test_hook.sh ] ; then + . $BASE/new/networking-sfc/devstack/post_test_hook.sh + fi + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-dvr-ha-multinode-full/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-dvr-ha-multinode-full/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-dvr-ha-multinode-full/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-dvr-ha-multinode-full/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-dvr-ha-multinode-full/run.yaml new file mode 100644 index 00000000..1d7896f6 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-dvr-ha-multinode-full/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-dvr-ha-multinode-full from old + job gate-tempest-dsvm-neutron-dvr-ha-multinode-full-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + NOVA_VNC_ENABLED=true + VNCSERVER_LISTEN=0.0.0.0 + VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_TEMPEST_FULL=1 + # Test DVR works multinode + export DEVSTACK_GATE_NEUTRON_DVR=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-full/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-full/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-full/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-full/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-full/run.yaml new file mode 100644 index 00000000..26f7450e --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-full/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-dvr-multinode-full from old + job gate-tempest-dsvm-neutron-dvr-multinode-full-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + NOVA_VNC_ENABLED=true + VNCSERVER_LISTEN=0.0.0.0 + VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_TEMPEST_FULL=1 + # Test DVR works multinode + export DEVSTACK_GATE_NEUTRON_DVR=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-scenario/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-scenario/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-scenario/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-scenario/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-scenario/run.yaml new file mode 100644 index 00000000..82808c80 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-scenario/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-dvr-multinode-scenario from + old job gate-tempest-dsvm-neutron-dvr-multinode-scenario-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^neutron\.tests\.tempest\.scenario\." + export TEMPEST_CONCURRENCY=2 + # Test DVR works multinode + export DEVSTACK_GATE_NEUTRON_DVR=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh dsvm-scenario-ovs + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/post_test_hook.sh dsvm-scenario-ovs + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-dvr/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-dvr/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-dvr/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-dvr/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-dvr/run.yaml new file mode 100644 index 00000000..17c20ad8 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-dvr/run.yaml @@ -0,0 +1,37 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-dvr from old job gate-tempest-dsvm-neutron-dvr-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON_DVR=1 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-centos-7/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-centos-7/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-full-centos-7/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-centos-7/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-centos-7/run.yaml new file mode 100644 index 00000000..9c86a5b9 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-full-centos-7/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-full-centos-7 from old job gate-tempest-dsvm-neutron-full-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_FILE_INJECTION=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-fedora-26/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-fedora-26/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-full-fedora-26/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-fedora-26/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-fedora-26/run.yaml new file mode 100644 index 00000000..71888395 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-full-fedora-26/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-full-fedora-26 from old job + gate-tempest-dsvm-neutron-full-fedora-26-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_FILE_INJECTION=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-newton/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-newton/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-full-newton/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-newton/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-newton/run.yaml new file mode 100644 index 00000000..b6283f4b --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-full-newton/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-full-newton from old job gate-tempest-dsvm-neutron-full-ubuntu-xenial-newton-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_FILE_INJECTION=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=stable/newton + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-non-admin/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-non-admin/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-full-non-admin/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-non-admin/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-non-admin/run.yaml new file mode 100644 index 00000000..0fb4d66b --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-full-non-admin/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-full-non-admin from old job + gate-tempest-dsvm-neutron-full-non-admin-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + TEMPEST_HAS_ADMIN=False + TEMPEST_USE_TEST_ACCOUNTS=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST_DISABLE_TENANT_ISOLATION=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-ocata/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-ocata/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-full-ocata/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-ocata/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-ocata/run.yaml new file mode 100644 index 00000000..8ec635f8 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-full-ocata/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-full-ocata from old job gate-tempest-dsvm-neutron-full-ubuntu-xenial-ocata-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_FILE_INJECTION=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=stable/ocata + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-opensuse-423/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-opensuse-423/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-full-opensuse-423/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-opensuse-423/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-opensuse-423/run.yaml new file mode 100644 index 00000000..8d6d7e82 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-full-opensuse-423/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-full-opensuse-423 from old job + gate-tempest-dsvm-neutron-full-opensuse-423-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_FILE_INJECTION=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-pike/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-pike/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-full-pike/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-pike/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-pike/run.yaml new file mode 100644 index 00000000..af6eac95 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-full-pike/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-full-pike from old job gate-tempest-dsvm-neutron-full-ubuntu-xenial-pike-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_FILE_INJECTION=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=stable/pike + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-test-accounts/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-test-accounts/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-full-test-accounts/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-full-test-accounts/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-full-test-accounts/run.yaml new file mode 100644 index 00000000..c416c8ff --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-full-test-accounts/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-full-test-accounts from old + job gate-tempest-dsvm-neutron-full-test-accounts-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + TEMPEST_USE_TEST_ACCOUNTS=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-full/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-full/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-full/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-full/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-full/run.yaml new file mode 100644 index 00000000..54f18dbb --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-full/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-full from old job gate-tempest-dsvm-neutron-full-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_FILE_INJECTION=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-ipv6only/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-ipv6only/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-ipv6only/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-ipv6only/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-ipv6only/run.yaml new file mode 100644 index 00000000..cc8cf2ed --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-ipv6only/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-ipv6only from old job gate-tempest-dsvm-neutron-ipv6only-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + IP_VERSION=6 + SERVICE_IP_VERSION=6 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-linuxbridge/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-linuxbridge/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-linuxbridge/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-linuxbridge/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-linuxbridge/run.yaml new file mode 100644 index 00000000..d3f332f2 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-linuxbridge/run.yaml @@ -0,0 +1,49 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-linuxbridge from old job gate-tempest-dsvm-neutron-linuxbridge-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + Q_AGENT=linuxbridge + PHYSICAL_NETWORK=default + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-multinode-full/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-multinode-full/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-multinode-full/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-multinode-full/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-multinode-full/run.yaml new file mode 100644 index 00000000..8c0a7e00 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-multinode-full/run.yaml @@ -0,0 +1,56 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-multinode-full from old job + gate-tempest-dsvm-neutron-multinode-full-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + NOVA_VNC_ENABLED=true + VNCSERVER_LISTEN=0.0.0.0 + VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_TLSPROXY=1 + # Default to non DVR + export DEVSTACK_GATE_NEUTRON_DVR=0 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-nova-next-full/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-nova-next-full/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-nova-next-full/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-nova-next-full/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-nova-next-full/run.yaml new file mode 100644 index 00000000..b0a32bcf --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-nova-next-full/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-nova-next-full from old job + gate-tempest-dsvm-neutron-nova-next-full-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + # NOTE(mriedem): placement is required starting in Ocata. + export ENABLED_SERVICES=placement-api + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + # NOTE(mriedem): cells v2 is required starting in Ocata. + export DEVSTACK_LOCAL_CONFIG="NOVA_CONFIGURE_CELLSV2=True" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + # NOTE(mriedem): NOVA_USE_SERVICE_TOKEN is available starting in Pike + stable_compare="stable/[a-o]" + if [[ ! "$ZUUL_BRANCH" =~ $stable_compare ]] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"NOVA_USE_SERVICE_TOKEN=True" + fi + + function post_test_hook { + if [ -f $BASE/new/nova/tools/hooks/post_test_hook.sh ]; then + $BASE/new/nova/tools/hooks/post_test_hook.sh + fi + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-ovsfw/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-ovsfw/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-ovsfw/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-ovsfw/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-ovsfw/run.yaml new file mode 100644 index 00000000..7686ce0d --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-ovsfw/run.yaml @@ -0,0 +1,41 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-ovsfw from old job gate-tempest-dsvm-neutron-ovsfw-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh full-ovsfw + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-pecan/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-pecan/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-pecan/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-pecan/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-pecan/run.yaml new file mode 100644 index 00000000..faca197e --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-pecan/run.yaml @@ -0,0 +1,41 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-pecan from old job gate-tempest-dsvm-neutron-pecan-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh full-pecan + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-pg-full/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-pg-full/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-pg-full/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-pg-full/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-pg-full/run.yaml new file mode 100644 index 00000000..435a7302 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-pg-full/run.yaml @@ -0,0 +1,38 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-pg-full from old job gate-tempest-dsvm-neutron-pg-full-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_POSTGRES=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-scenario-linuxbridge/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-scenario-linuxbridge/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-scenario-linuxbridge/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-scenario-linuxbridge/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-scenario-linuxbridge/run.yaml new file mode 100644 index 00000000..33845542 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-scenario-linuxbridge/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-scenario-linuxbridge from old + job gate-tempest-dsvm-neutron-scenario-linuxbridge-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + Q_AGENT=linuxbridge + PHYSICAL_NETWORK=default + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_EXERCISES=0 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export DEVSTACK_GATE_TEMPEST_REGEX="^neutron.tests.tempest.scenario\." + export TEMPEST_CONCURRENCY=2 + + function gate_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh dsvm-scenario-linuxbridge dvrskip + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/neutron/neutron/tests/contrib/post_test_hook.sh dsvm-scenario-linuxbridge + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-scenario-multinode-lvm-multibackend/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-scenario-multinode-lvm-multibackend/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-scenario-multinode-lvm-multibackend/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-scenario-multinode-lvm-multibackend/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-scenario-multinode-lvm-multibackend/run.yaml new file mode 100644 index 00000000..4d5050fa --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-scenario-multinode-lvm-multibackend/run.yaml @@ -0,0 +1,57 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-scenario-multinode-lvm-multibackend + from old job gate-tempest-dsvm-neutron-scenario-multinode-lvm-multibackend-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + ENABLE_IDENTITY_V2=False + TEMPEST_USE_TEST_ACCOUNTS=True + # Enable lvm multiple backends to run multi backend slow scenario tests. + # Note: multi backend experimental job exclude the slow scenario tests. + CINDER_ENABLED_BACKENDS=lvm:lvmdriver-1,lvm:lvmdriver-2 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + # Run scenario and nova migration tests with concurrency 2 + export DEVSTACK_GATE_TEMPEST_REGEX='(^tempest\.(scenario|api\.compute\.admin\.test_(live_|)migration))' + export TEMPEST_CONCURRENCY=2 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_GATE_TOPOLOGY="multinode" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-serviceipv6/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-serviceipv6/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-serviceipv6/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-serviceipv6/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-serviceipv6/run.yaml new file mode 100644 index 00000000..9d1fa1de --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-serviceipv6/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-serviceipv6 from old job gate-tempest-dsvm-neutron-serviceipv6-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + SERVICE_IP_VERSION=6 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-src-oslo.versionedobjects/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-src-oslo.versionedobjects/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-src-oslo.versionedobjects/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-src-oslo.versionedobjects/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-src-oslo.versionedobjects/run.yaml new file mode 100644 index 00000000..7bb408ea --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-src-oslo.versionedobjects/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-src-oslo.versionedobjects from + old job gate-tempest-dsvm-neutron-src-oslo.versionedobjects-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + if [ "$DEVSTACK_PROJECT_FROM_GIT" == "django_openstack_auth" ] ; then + export DEVSTACK_GATE_HORIZON=1 + fi + + # Even if the branch is overridden, make sure we use + # the correct branch using the OVERRIDE_*_PROJECT_BRANCH + # variable. + uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'` + export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-src-plugin/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-src-plugin/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-src-plugin/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-src-plugin/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-src-plugin/run.yaml new file mode 100644 index 00000000..2898af32 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-src-plugin/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-src-plugin from old job gate-tempest-dsvm-neutron-src-{name}-plugin-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin ceilometer git://git.openstack.org/ceilometer + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-src-python-saharaclient/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-src-python-saharaclient/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-src-python-saharaclient/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-src-python-saharaclient/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-src-python-saharaclient/run.yaml new file mode 100644 index 00000000..9d5e8f75 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-src-python-saharaclient/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-src-python-saharaclient from + old job gate-tempest-dsvm-neutron-src-python-saharaclient-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin sahara git://git.openstack.org/openstack/sahara + enable_plugin heat git://git.openstack.org/openstack/heat + TEMPEST_PLUGINS='/opt/stack/new/sahara-tests' + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export PROJECTS="openstack/sahara $PROJECTS" + export PROJECTS="openstack/sahara-tests $PROJECTS" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_PROJECT_FROM_GIT=python-saharaclient + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-src/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-src/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-src/run.yaml new file mode 100644 index 00000000..a9c846d4 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-src/run.yaml @@ -0,0 +1,46 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-src from old job gate-tempest-dsvm-neutron-src-{name}-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + export DEVSTACK_PROJECT_FROM_GIT=$ZUUL_SHORT_PROJECT_NAME + if [ "$DEVSTACK_PROJECT_FROM_GIT" == "django_openstack_auth" ] ; then + export DEVSTACK_GATE_HORIZON=1 + fi + + # Even if the branch is overridden, make sure we use + # the correct branch using the OVERRIDE_*_PROJECT_BRANCH + # variable. + uc_project=`echo $DEVSTACK_PROJECT_FROM_GIT | tr [:lower:] [:upper:] | tr '-' '_' | sed 's/[^A-Z_]//'` + export "OVERRIDE_"$uc_project"_PROJECT_BRANCH"=$ZUUL_BRANCH + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-neutron-with-ryu-master/post.yaml b/playbooks/legacy/tempest-dsvm-neutron-with-ryu-master/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-with-ryu-master/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-neutron-with-ryu-master/run.yaml b/playbooks/legacy/tempest-dsvm-neutron-with-ryu-master/run.yaml new file mode 100644 index 00000000..4fb7d0dc --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-neutron-with-ryu-master/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-neutron-with-ryu-master from old job + gate-tempest-dsvm-neutron-with-ryu-master-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TLSPROXY=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + local ryu_path=$BASE/new/ryu_master + if [ ! -d $ryu_path ]; then + git clone https://github.com/osrg/ryu $ryu_path + fi + sudo pip install -e $ryu_path + $BASE/new/devstack-gate/devstack-vm-gate.sh + } + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-nnet-newton/post.yaml b/playbooks/legacy/tempest-dsvm-nnet-newton/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-nnet-newton/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-nnet-newton/run.yaml b/playbooks/legacy/tempest-dsvm-nnet-newton/run.yaml new file mode 100644 index 00000000..e30e2917 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-nnet-newton/run.yaml @@ -0,0 +1,41 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-nnet-newton from old job gate-tempest-dsvm-nnet-ubuntu-xenial-newton-nv + tasks: + + - shell: + cmd: | + [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_TLSPROXY=1 + export DEVSTACK_GATE_NEUTRON=0 + export BRANCH_OVERRIDE=stable/newton + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-nnet-ocata/post.yaml b/playbooks/legacy/tempest-dsvm-nnet-ocata/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-nnet-ocata/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-nnet-ocata/run.yaml b/playbooks/legacy/tempest-dsvm-nnet-ocata/run.yaml new file mode 100644 index 00000000..6bea016c --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-nnet-ocata/run.yaml @@ -0,0 +1,41 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-nnet-ocata from old job gate-tempest-dsvm-nnet-ubuntu-xenial-ocata-nv + tasks: + + - shell: + cmd: | + [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_TLSPROXY=1 + export DEVSTACK_GATE_NEUTRON=0 + export BRANCH_OVERRIDE=stable/ocata + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-nnet/post.yaml b/playbooks/legacy/tempest-dsvm-nnet/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-nnet/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-nnet/run.yaml b/playbooks/legacy/tempest-dsvm-nnet/run.yaml new file mode 100644 index 00000000..6861d1d3 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-nnet/run.yaml @@ -0,0 +1,41 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-nnet from old job gate-tempest-dsvm-nnet-ubuntu-xenial + tasks: + + - shell: + cmd: | + [ -f /etc/nodepool/uuid ] && echo "Node UUID: $(cat /etc/nodepool/uuid)" + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_TLSPROXY=1 + export DEVSTACK_GATE_NEUTRON=0 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-nova-libvirt-kvm-apr/post.yaml b/playbooks/legacy/tempest-dsvm-nova-libvirt-kvm-apr/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-nova-libvirt-kvm-apr/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-nova-libvirt-kvm-apr/run.yaml b/playbooks/legacy/tempest-dsvm-nova-libvirt-kvm-apr/run.yaml new file mode 100644 index 00000000..4395d280 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-nova-libvirt-kvm-apr/run.yaml @@ -0,0 +1,51 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-nova-libvirt-kvm-apr from old job gate-tempest-dsvm-nova-libvirt-kvm-apr-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin devstack-plugin-additional-pkg-repos git://git.openstack.org/openstack/devstack-plugin-additional-pkg-repos + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export PROJECTS="openstack/devstack-plugin-additional-pkg-repos $PROJECTS" + # We want to test the latest libvirt with kvm version with that plugin + # TODO: (markus_z) rename that in the apr repo to "libvirt-kvm" + # to make the chosen virtualization technology explicit. + export LATEST_CODEBASES=libvirt + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-nova-os-vif/post.yaml b/playbooks/legacy/tempest-dsvm-nova-os-vif/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-nova-os-vif/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-nova-os-vif/run.yaml b/playbooks/legacy/tempest-dsvm-nova-os-vif/run.yaml new file mode 100644 index 00000000..910961db --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-nova-os-vif/run.yaml @@ -0,0 +1,37 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-nova-os-vif from old job gate-tempest-dsvm-nova-os-vif-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + # enable to use os-vif for Nova + export DEVSTACK_PROJECT_FROM_GIT="os-vif" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-nova-v20-api/post.yaml b/playbooks/legacy/tempest-dsvm-nova-v20-api/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-nova-v20-api/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-nova-v20-api/run.yaml b/playbooks/legacy/tempest-dsvm-nova-v20-api/run.yaml new file mode 100644 index 00000000..7a89ff09 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-nova-v20-api/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-nova-v20-api from old job gate-tempest-dsvm-nova-v20-api-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + TEMPEST_COMPUTE_TYPE=compute_legacy + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + # only run compute API tests + export DEVSTACK_GATE_TEMPEST_REGEX="api.*compute" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-nova-wsgi-full/post.yaml b/playbooks/legacy/tempest-dsvm-nova-wsgi-full/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-nova-wsgi-full/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-nova-wsgi-full/run.yaml b/playbooks/legacy/tempest-dsvm-nova-wsgi-full/run.yaml new file mode 100644 index 00000000..0d1eb4ea --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-nova-wsgi-full/run.yaml @@ -0,0 +1,47 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-nova-wsgi-full from old job gate-tempest-dsvm-nova-wsgi-full-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + NOVA_USE_MOD_WSGI=True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-octavia-kuryr-kubernetes/post.yaml b/playbooks/legacy/tempest-dsvm-octavia-kuryr-kubernetes/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-octavia-kuryr-kubernetes/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-octavia-kuryr-kubernetes/run.yaml b/playbooks/legacy/tempest-dsvm-octavia-kuryr-kubernetes/run.yaml new file mode 100644 index 00000000..1597621b --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-octavia-kuryr-kubernetes/run.yaml @@ -0,0 +1,109 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-octavia-kuryr-kubernetes from old job + gate-tempest-dsvm-octavia-kuryr-kubernetes-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin kuryr-kubernetes \ + https://git.openstack.org/openstack/kuryr-kubernetes + ENABLED_SERVICES="" + # Neutron services + enable_service neutron + enable_service q-agt + enable_service q-dhcp + enable_service q-l3 + enable_service q-svc + # Keystone + enable_service key + # dependencies + enable_service mysql + enable_service rabbit + # Nova + enable_service n-api + enable_service n-cpu + enable_service n-cond + enable_service n-sch + enable_service placement-api + enable_service placement-client + # Glance + enable_service g-api + enable_service g-reg + # Cinder + enable_service c-api + enable_service c-vol + enable_service c-sch + # Docker + enable_plugin devstack-plugin-container \ + git://git.openstack.org/openstack/devstack-plugin-container + # Etcd + enable_service etcd3 + # Kubernetes + enable_service kubernetes-api + enable_service kubernetes-controller-manager + enable_service kubernetes-scheduler + KURYR_K8S_API_PORT="8080" + # Kubelet + enable_service kubelet + # Kuryr watcher + enable_service kuryr-kubernetes + # LBaaSv2 service and Octavia + LIBS_FROM_GIT+=python-octaviaclient + enable_plugin neutron-lbaas git://git.openstack.org/openstack/neutron-lbaas + enable_plugin octavia https://git.openstack.org/openstack/octavia + enable_plugin barbican https://git.openstack.org/openstack/barbican + ENABLED_SERVICES+=,q-lbaasv2,octavia,o-api,o-cw,o-hk,o-hm + # Enable Tempest + enable_service tempest + # Enable Tempest plugin + TEMPEST_PLUGINS='/opt/stack/new/kuryr-tempest-plugin' + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST_REGEX="kuryr_tempest_plugin.tests" + export BRANCH_OVERRIDE=default + + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/kuryr-kubernetes $PROJECTS" + export PROJECTS="openstack/kuryr-tempest-plugin $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/python-barbicanclient $PROJECTS" + export PROJECTS="openstack/octavia $PROJECTS" + export PROJECTS="openstack/python-octaviaclient $PROJECTS" + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-patrole-admin/post.yaml b/playbooks/legacy/tempest-dsvm-patrole-admin/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-patrole-admin/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-patrole-admin/run.yaml b/playbooks/legacy/tempest-dsvm-patrole-admin/run.yaml new file mode 100644 index 00000000..283f3afc --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-patrole-admin/run.yaml @@ -0,0 +1,57 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-patrole-admin from old job gate-tempest-dsvm-patrole-admin-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin patrole git://git.openstack.org/openstack/patrole + TEMPEST_PLUGINS='/opt/stack/new/patrole' + # Needed by Patrole devstack plugin + RBAC_TEST_ROLE=admin + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)' + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export TEMPEST_CONCURRENCY=2 + + export PROJECTS="openstack/patrole $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-patrole-member/post.yaml b/playbooks/legacy/tempest-dsvm-patrole-member/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-patrole-member/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-patrole-member/run.yaml b/playbooks/legacy/tempest-dsvm-patrole-member/run.yaml new file mode 100644 index 00000000..44b4e36c --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-patrole-member/run.yaml @@ -0,0 +1,57 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-patrole-member from old job gate-tempest-dsvm-patrole-member-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin patrole git://git.openstack.org/openstack/patrole + TEMPEST_PLUGINS='/opt/stack/new/patrole' + # Needed by Patrole devstack plugin + RBAC_TEST_ROLE=member + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)' + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export TEMPEST_CONCURRENCY=2 + + export PROJECTS="openstack/patrole $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-patrole-multinode-admin/post.yaml b/playbooks/legacy/tempest-dsvm-patrole-multinode-admin/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-patrole-multinode-admin/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-patrole-multinode-admin/run.yaml b/playbooks/legacy/tempest-dsvm-patrole-multinode-admin/run.yaml new file mode 100644 index 00000000..ec2d50ae --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-patrole-multinode-admin/run.yaml @@ -0,0 +1,60 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-patrole-multinode-admin from old job + gate-tempest-dsvm-patrole-multinode-admin-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin patrole git://git.openstack.org/openstack/patrole + TEMPEST_PLUGINS='/opt/stack/new/patrole' + # Needed by Patrole devstack plugin + RBAC_TEST_ROLE=admin + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + # Ensure that tempest set up is executed, but do not automatically + # execute tempest tests; they are executed in post_test_hook. + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TOPOLOGY="multinode" + export DEVSTACK_GATE_TEMPEST_REGEX='(?=.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)' + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + + export PROJECTS="openstack/patrole $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-patrole-multinode-member/post.yaml b/playbooks/legacy/tempest-dsvm-patrole-multinode-member/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-patrole-multinode-member/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-patrole-multinode-member/run.yaml b/playbooks/legacy/tempest-dsvm-patrole-multinode-member/run.yaml new file mode 100644 index 00000000..b9b0a357 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-patrole-multinode-member/run.yaml @@ -0,0 +1,60 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-patrole-multinode-member from old job + gate-tempest-dsvm-patrole-multinode-member-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin patrole git://git.openstack.org/openstack/patrole + TEMPEST_PLUGINS='/opt/stack/new/patrole' + # Needed by Patrole devstack plugin + RBAC_TEST_ROLE=member + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + + # Ensure that tempest set up is executed, but do not automatically + # execute tempest tests; they are executed in post_test_hook. + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TOPOLOGY="multinode" + export DEVSTACK_GATE_TEMPEST_REGEX='(?=.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)' + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + + export PROJECTS="openstack/patrole $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-patrole-py35-member/post.yaml b/playbooks/legacy/tempest-dsvm-patrole-py35-member/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-patrole-py35-member/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-patrole-py35-member/run.yaml b/playbooks/legacy/tempest-dsvm-patrole-py35-member/run.yaml new file mode 100644 index 00000000..e06bfc07 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-patrole-py35-member/run.yaml @@ -0,0 +1,68 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-patrole-py35-member from old job gate-tempest-dsvm-patrole-py35-member-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin patrole git://git.openstack.org/openstack/patrole + TEMPEST_PLUGINS='/opt/stack/new/patrole' + # Needed by Patrole devstack plugin + RBAC_TEST_ROLE=member + + # Swift is not ready for python3 yet + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + # Without Swift, c-bak cannot run (in the Gate at least) + disable_service c-bak + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_USE_PYTHON3=True + + # Ensure that tempest set up is executed, but do not automatically + # execute tempest tests; they are executed in post_test_hook. + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)' + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export TEMPEST_CONCURRENCY=2 + + export PROJECTS="openstack/patrole $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-py35-full-devstack-plugin-ceph/post.yaml b/playbooks/legacy/tempest-dsvm-py35-full-devstack-plugin-ceph/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-py35-full-devstack-plugin-ceph/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-py35-full-devstack-plugin-ceph/run.yaml b/playbooks/legacy/tempest-dsvm-py35-full-devstack-plugin-ceph/run.yaml new file mode 100644 index 00000000..3942430f --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-py35-full-devstack-plugin-ceph/run.yaml @@ -0,0 +1,59 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-py35-full-devstack-plugin-ceph from + old job gate-tempest-dsvm-py35-full-devstack-plugin-ceph-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + # swift is not ready for python3 yet + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + + enable_plugin devstack-plugin-ceph git://git.openstack.org/openstack/devstack-plugin-ceph + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export PROJECTS="openstack/devstack-plugin-ceph $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/nova/devstack/tempest-dsvm-ceph-rc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-py35/post.yaml b/playbooks/legacy/tempest-dsvm-py35/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-py35/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-py35/run.yaml b/playbooks/legacy/tempest-dsvm-py35/run.yaml new file mode 100644 index 00000000..d291d316 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-py35/run.yaml @@ -0,0 +1,57 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-py35 from old job gate-tempest-dsvm-py35-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + # swift is not ready for python3 yet + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + # without Swift, c-bak cannot run (in the Gate at least) + disable_service c-bak + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_TLSPROXY=1 + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-python-ironic-inspector-client/post.yaml b/playbooks/legacy/tempest-dsvm-python-ironic-inspector-client/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-python-ironic-inspector-client/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-python-ironic-inspector-client/run.yaml b/playbooks/legacy/tempest-dsvm-python-ironic-inspector-client/run.yaml new file mode 100644 index 00000000..4896e57d --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-python-ironic-inspector-client/run.yaml @@ -0,0 +1,193 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-python-ironic-inspector-client from + old job gate-tempest-dsvm-python-ironic-inspector-client-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="InspectorSmokeTest" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export PROJECTS="openstack/ironic-inspector $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export DEVSTACK_GATE_IRONIC_INSPECTOR=1 + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic-inspector git://git.openstack.org/openstack/ironic-inspector" + + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic-inspector'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic-inspector'" + fi + + export IRONIC_INSPECTOR_AUTO_DISCOVERY=0 + if [ "$IRONIC_INSPECTOR_AUTO_DISCOVERY" == "1" ]; then + # discovery test requires sudo for iptables and virsh + export DEVSTACK_GATE_REMOVE_STACK_SUDO=0 + # enable enroll hook + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_NODE_NOT_FOUND_HOOK=enroll" + # we are deleting node from ironic for simulate node discovery, + # so inspector has to sync cache asap + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_CLEAN_UP_PERIOD=5" + fi + + # Make IPXE configuration consistent between Mitaka and Master + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_IPXE_ENABLED=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_RAMDISK_ELEMENT=ironic-agent" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_MANAGE_FIREWALL=True" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_PROJECT_FROM_GIT="python-ironic-inspector-client,$DEVSTACK_PROJECT_FROM_GIT" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=agent_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "agent_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "agent_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "wholedisk" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-python-ironicclient-src/post.yaml b/playbooks/legacy/tempest-dsvm-python-ironicclient-src/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-python-ironicclient-src/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-python-ironicclient-src/run.yaml b/playbooks/legacy/tempest-dsvm-python-ironicclient-src/run.yaml new file mode 100644 index 00000000..b803a201 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-python-ironicclient-src/run.yaml @@ -0,0 +1,155 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-python-ironicclient-src from old job + gate-tempest-dsvm-python-ironicclient-src-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_DEPLOY_DRIVER_ISCSI_WITH_IPA=True" + # Standardize VM size for each supported ramdisk + case "tinyipa" in + 'tinyipa') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=384" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'tinyipa256') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=256" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=tinyipa" + ;; + 'coreos') + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1280" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_RAMDISK_TYPE=coreos" + ;; + # if using a ramdisk without a known good value, use the devstack + # default by not exporting any value for IRONIC_VM_SPECS_RAM + esac + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_GATE_TEMPEST_REGEX="ironic" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-extra-vars + export DEVSTACK_PROJECT_FROM_GIT="python-ironicclient,$DEVSTACK_PROJECT_FROM_GIT" + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + cat << 'EOF' >> ironic-vars-early + # use tempest plugin + if [[ "$ZUUL_BRANCH" != "master" ]] ; then + # NOTE(jroll) if this is not a patch against master, then + # fetch master to install the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' git+git://git.openstack.org/openstack/ironic'" + else + # on master, use the local change, so we can pick up any changes to the plugin + export DEVSTACK_LOCAL_CONFIG+=$'\n'"TEMPEST_PLUGINS+=' /opt/stack/new/ironic'" + fi + export TEMPEST_CONCURRENCY=1 + + EOF + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/ironic $PROJECTS" + export PROJECTS="openstack/ironic-lib $PROJECTS" + export PROJECTS="openstack/ironic-python-agent $PROJECTS" + export PROJECTS="openstack/python-ironicclient $PROJECTS" + export PROJECTS="openstack/pyghmi $PROJECTS" + export PROJECTS="openstack/virtualbmc $PROJECTS" + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export DEVSTACK_GATE_CONFIGDRIVE=1 + export DEVSTACK_GATE_IRONIC_DRIVER=pxe_ipmitool + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + if [[ ! "stable/newton stable/ocata stable/pike" =~ $ZUUL_BRANCH ]] ; then + export DEVSTACK_GATE_TLSPROXY=1 + fi + + if [ "pxe_ipmitool" == "pxe_snmp" ] ; then + # explicitly enable pxe_snmp driver + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_DRIVERS=fake,pxe_snmp" + fi + + if [ "pxe_ipmitool" == "redfish" ] ; then + # When deploying with redfish we need to enable the "redfish" + # hardware type + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_ENABLED_HARDWARE_TYPES=redfish" + fi + + if [ "partition" == "wholedisk" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=0" + else + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_TEMPEST_WHOLE_DISK_IMAGE=False" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_EPHEMERAL_DISK=1" + fi + + if [ -n "" ] ; then + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=1 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=True" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"USE_SUBNETPOOL=False" + else + export DEVSTACK_GATE_IRONIC_BUILD_RAMDISK=0 + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_BUILD_RAMDISK=False" + fi + + if [ "bios" == "uefi" ] ; then + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_BOOT_MODE=uefi" + fi + + export DEVSTACK_PROJECT_FROM_GIT="" + export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_COUNT=1" + + # Ensure the ironic-vars-EARLY file exists + touch ironic-vars-early + # Pull in the EARLY variables injected by the optional builders + source ironic-vars-early + + export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ironic git://git.openstack.org/openstack/ironic" + + # Ensure the ironic-EXTRA-vars file exists + touch ironic-extra-vars + # Pull in the EXTRA variables injected by the optional builders + source ironic-extra-vars + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-redis-zaqar/post.yaml b/playbooks/legacy/tempest-dsvm-redis-zaqar/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-redis-zaqar/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-redis-zaqar/run.yaml b/playbooks/legacy/tempest-dsvm-redis-zaqar/run.yaml new file mode 100644 index 00000000..1ea817af --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-redis-zaqar/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-redis-zaqar from old job gate-tempest-dsvm-redis-zaqar-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin zaqar git://git.openstack.org/openstack/zaqar + # Enable Zaqar Tempest plugin + TEMPEST_PLUGINS='/opt/stack/new/zaqar-tempest-plugin' + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PYTHONUNBUFFERED=true + export ENABLED_SERVICES=tempest + export DEVSTACK_GATE_TEMPEST_REGEX="zaqar_tempest_plugin.tests" + export DEVSTACK_GATE_TEMPEST=0 + + function gate_hook { + cd /opt/stack/new/zaqar/devstack/gate + ./gate_hook.sh tempest redis + } + + export PROJECTS="openstack/zaqar-tempest-plugin $PROJECTS" + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-sahara/post.yaml b/playbooks/legacy/tempest-dsvm-sahara/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-sahara/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-sahara/run.yaml b/playbooks/legacy/tempest-dsvm-sahara/run.yaml new file mode 100644 index 00000000..defc7ff0 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-sahara/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-sahara from old job gate-tempest-dsvm-sahara-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin sahara git://git.openstack.org/openstack/sahara + enable_plugin heat git://git.openstack.org/openstack/heat + enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer + TEMPEST_PLUGINS='/opt/stack/new/sahara-tests' + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=1 + export KEEP_LOCALRC=1 + export DEVSTACK_GATE_TEMPEST_REGEX="(sahara_tempest_plugin.tests.api|sahara_tempest_plugin.tests.clients|data_processing)" + export PROJECTS="openstack/sahara $PROJECTS" + export PROJECTS="openstack/sahara-tests $PROJECTS" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + # required at least by client tests (python and CLI) + function pre_test_hook { + cd /opt/stack/new/sahara-tests/tools/gate/cli_tests + ./pre_test_hook.sh + } + + export -f pre_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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-swift-zaqar/post.yaml b/playbooks/legacy/tempest-dsvm-swift-zaqar/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-swift-zaqar/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-swift-zaqar/run.yaml b/playbooks/legacy/tempest-dsvm-swift-zaqar/run.yaml new file mode 100644 index 00000000..088a3cf9 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-swift-zaqar/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-swift-zaqar from old job gate-tempest-dsvm-swift-zaqar-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin zaqar git://git.openstack.org/openstack/zaqar + # Enable Zaqar Tempest plugin + TEMPEST_PLUGINS='/opt/stack/new/zaqar-tempest-plugin' + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PYTHONUNBUFFERED=true + export ENABLED_SERVICES=tempest + export DEVSTACK_GATE_TEMPEST_REGEX="zaqar_tempest_plugin.tests" + export DEVSTACK_GATE_TEMPEST=0 + + function gate_hook { + cd /opt/stack/new/zaqar/devstack/gate + ./gate_hook.sh tempest swift + } + + export PROJECTS="openstack/zaqar-tempest-plugin $PROJECTS" + export -f gate_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-tap-as-a-service/post.yaml b/playbooks/legacy/tempest-dsvm-tap-as-a-service/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-tap-as-a-service/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-tap-as-a-service/run.yaml b/playbooks/legacy/tempest-dsvm-tap-as-a-service/run.yaml new file mode 100644 index 00000000..c0cd289f --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-tap-as-a-service/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-tap-as-a-service from old job gate-tempest-dsvm-tap-as-a-service + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin tap-as-a-service git://git.openstack.org/openstack/tap-as-a-service + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + # Enable tap-as-a-service + export PROJECTS="openstack/tap-as-a-service $PROJECTS" + export ENABLED_SERVICES=taas,taas_openvswitch_agent + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/tap-as-a-service/devstack/devstackgaterc + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-zeromq-multibackend/post.yaml b/playbooks/legacy/tempest-dsvm-zeromq-multibackend/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-zeromq-multibackend/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-zeromq-multibackend/run.yaml b/playbooks/legacy/tempest-dsvm-zeromq-multibackend/run.yaml new file mode 100644 index 00000000..4538d65f --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-zeromq-multibackend/run.yaml @@ -0,0 +1,52 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-zeromq-multibackend from old job gate-tempest-dsvm-zeromq-multibackend-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin devstack-plugin-zmq git://git.openstack.org/openstack/devstack-plugin-zmq + CINDER_ENABLED_BACKENDS=lvm:lvmdriver-1,lvm:lvmdriver-2 + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 + # As we are setting DEVSTACK_GATE_TEMPEST_ALL_PLUGINS, we need to add + # the regex to limit the tests to the same as a tempest -efull would + # run. + export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)|(^cinder\.tests.tempest))' + export PROJECTS="openstack/devstack-plugin-zmq $PROJECTS" + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-dsvm-zun-multinode-docker-sql/post.yaml b/playbooks/legacy/tempest-dsvm-zun-multinode-docker-sql/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-zun-multinode-docker-sql/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-dsvm-zun-multinode-docker-sql/run.yaml b/playbooks/legacy/tempest-dsvm-zun-multinode-docker-sql/run.yaml new file mode 100644 index 00000000..5e8db329 --- /dev/null +++ b/playbooks/legacy/tempest-dsvm-zun-multinode-docker-sql/run.yaml @@ -0,0 +1,76 @@ +- hosts: all + name: Autoconverted job legacy-tempest-dsvm-zun-multinode-docker-sql from old job + gate-tempest-dsvm-zun-multinode-docker-sql-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin zun git://git.openstack.org/openstack/zun + + [[post-config|$KURYR_CONFIG]] + [DEFAULT] + capability_scope = global + debug = True + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + + # Enable tempest for tempest plugin + export ENABLED_SERVICES=tempest + + export PROJECTS="openstack/zun $PROJECTS" + export PROJECTS="openstack/kuryr-libnetwork $PROJECTS" + export PROJECTS="openstack/python-zunclient $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + export DEVSTACK_GATE_TOPOLOGY="multinode" + + function gate_hook { + cd /opt/stack/new/zun/ + ./zun/tests/contrib/gate_hook.sh docker sql + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/zun/ + ./zun/tests/contrib/post_test_hook.sh docker + } + + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid/post.yaml b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid/run.yaml b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid/run.yaml new file mode 100644 index 00000000..74c7e770 --- /dev/null +++ b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid + from old job gate-tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + + export PROJECTS="openstack/devstack-plugin-amqp1 $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin devstack-plugin-amqp1 git://git.openstack.org/openstack/devstack-plugin-amqp1" + + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging" + + if [ "amqp1" == "amqp1" ]; then + # The AMQP 1.0 plugin supports a couple of different message bus configurations + # 'hybrid' - use RabbitMQ for Notifications, qdrouterd for RPC + # 'dual' - use qpidd for Notifications, qdrouterd for RPC + # default: use qpidd for Notifications and for RPC + case "hybrid" in + hybrid) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-hybrid" + ;; + dual) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-dual" + ;; + esac + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-kafka-default/post.yaml b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-kafka-default/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-kafka-default/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-kafka-default/run.yaml b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-kafka-default/run.yaml new file mode 100644 index 00000000..42351dc6 --- /dev/null +++ b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-kafka-default/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-tempest-neutron-dsvm-src-oslo.messaging-kafka-default + from old job gate-tempest-neutron-dsvm-src-oslo.messaging-kafka-default-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + + export PROJECTS="openstack/devstack-plugin-kafka $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin devstack-plugin-kafka git://git.openstack.org/openstack/devstack-plugin-kafka" + + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging" + + if [ "kafka" == "amqp1" ]; then + # The AMQP 1.0 plugin supports a couple of different message bus configurations + # 'hybrid' - use RabbitMQ for Notifications, qdrouterd for RPC + # 'dual' - use qpidd for Notifications, qdrouterd for RPC + # default: use qpidd for Notifications and for RPC + case "default" in + hybrid) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-hybrid" + ;; + dual) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-dual" + ;; + esac + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-pika-default/post.yaml b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-pika-default/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-pika-default/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-pika-default/run.yaml b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-pika-default/run.yaml new file mode 100644 index 00000000..34c03db3 --- /dev/null +++ b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-pika-default/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-tempest-neutron-dsvm-src-oslo.messaging-pika-default + from old job gate-tempest-neutron-dsvm-src-oslo.messaging-pika-default-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + + export PROJECTS="openstack/devstack-plugin-pika $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin devstack-plugin-pika git://git.openstack.org/openstack/devstack-plugin-pika" + + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging" + + if [ "pika" == "amqp1" ]; then + # The AMQP 1.0 plugin supports a couple of different message bus configurations + # 'hybrid' - use RabbitMQ for Notifications, qdrouterd for RPC + # 'dual' - use qpidd for Notifications, qdrouterd for RPC + # default: use qpidd for Notifications and for RPC + case "default" in + hybrid) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-hybrid" + ;; + dual) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-dual" + ;; + esac + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-zmq-default/post.yaml b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-zmq-default/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-zmq-default/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-zmq-default/run.yaml b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-zmq-default/run.yaml new file mode 100644 index 00000000..bf638ee7 --- /dev/null +++ b/playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-zmq-default/run.yaml @@ -0,0 +1,53 @@ +- hosts: all + name: Autoconverted job legacy-tempest-neutron-dsvm-src-oslo.messaging-zmq-default + from old job gate-tempest-neutron-dsvm-src-oslo.messaging-zmq-default-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export DEVSTACK_GATE_NEUTRON=1 + + export PROJECTS="openstack/devstack-plugin-zmq $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin devstack-plugin-zmq git://git.openstack.org/openstack/devstack-plugin-zmq" + + export DEVSTACK_PROJECT_FROM_GIT="oslo.messaging" + + if [ "zmq" == "amqp1" ]; then + # The AMQP 1.0 plugin supports a couple of different message bus configurations + # 'hybrid' - use RabbitMQ for Notifications, qdrouterd for RPC + # 'dual' - use qpidd for Notifications, qdrouterd for RPC + # default: use qpidd for Notifications and for RPC + case "default" in + hybrid) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-hybrid" + ;; + dual) + export DEVSTACK_LOCAL_CONFIG+=$'\n'"AMQP1_SERVICE=qpid-dual" + ;; + esac + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tempest-tox-plugin-sanity-check/post.yaml b/playbooks/legacy/tempest-tox-plugin-sanity-check/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tempest-tox-plugin-sanity-check/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tempest-tox-plugin-sanity-check/run.yaml b/playbooks/legacy/tempest-tox-plugin-sanity-check/run.yaml new file mode 100644 index 00000000..738cfca3 --- /dev/null +++ b/playbooks/legacy/tempest-tox-plugin-sanity-check/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tempest-tox-plugin-sanity-check from old job gate-tempest-tox-plugin-sanity-check-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh plugin-sanity-check + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-consul/post.yaml b/playbooks/legacy/tooz-tox-py27-consul/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-consul/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py27-consul/run.yaml b/playbooks/legacy/tooz-tox-py27-consul/run.yaml new file mode 100644 index 00000000..f65b6e8b --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-consul/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py27-consul from old job gate-tooz-tox-py27-consul-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-consul + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-etcd/post.yaml b/playbooks/legacy/tooz-tox-py27-etcd/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-etcd/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py27-etcd/run.yaml b/playbooks/legacy/tooz-tox-py27-etcd/run.yaml new file mode 100644 index 00000000..2c7a8017 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-etcd/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py27-etcd from old job gate-tooz-tox-py27-etcd-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-etcd + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-etcd3/post.yaml b/playbooks/legacy/tooz-tox-py27-etcd3/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-etcd3/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py27-etcd3/run.yaml b/playbooks/legacy/tooz-tox-py27-etcd3/run.yaml new file mode 100644 index 00000000..f87a258f --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-etcd3/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py27-etcd3 from old job gate-tooz-tox-py27-etcd3-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-etcd3 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-etcd3gw/post.yaml b/playbooks/legacy/tooz-tox-py27-etcd3gw/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-etcd3gw/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py27-etcd3gw/run.yaml b/playbooks/legacy/tooz-tox-py27-etcd3gw/run.yaml new file mode 100644 index 00000000..f66545f3 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-etcd3gw/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py27-etcd3gw from old job gate-tooz-tox-py27-etcd3gw-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-etcd3gw + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-memcached/post.yaml b/playbooks/legacy/tooz-tox-py27-memcached/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-memcached/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py27-memcached/run.yaml b/playbooks/legacy/tooz-tox-py27-memcached/run.yaml new file mode 100644 index 00000000..17d88b06 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-memcached/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py27-memcached from old job gate-tooz-tox-py27-memcached-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-memcached + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-mysql/post.yaml b/playbooks/legacy/tooz-tox-py27-mysql/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-mysql/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py27-mysql/run.yaml b/playbooks/legacy/tooz-tox-py27-mysql/run.yaml new file mode 100644 index 00000000..847a753f --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-mysql/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py27-mysql from old job gate-tooz-tox-py27-mysql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-mysql + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-postgresql/post.yaml b/playbooks/legacy/tooz-tox-py27-postgresql/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-postgresql/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py27-postgresql/run.yaml b/playbooks/legacy/tooz-tox-py27-postgresql/run.yaml new file mode 100644 index 00000000..6da30f8a --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-postgresql/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py27-postgresql from old job gate-tooz-tox-py27-postgresql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-postgresql + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-redis/post.yaml b/playbooks/legacy/tooz-tox-py27-redis/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-redis/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py27-redis/run.yaml b/playbooks/legacy/tooz-tox-py27-redis/run.yaml new file mode 100644 index 00000000..b9b31734 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-redis/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py27-redis from old job gate-tooz-tox-py27-redis-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-redis + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-sentinel/post.yaml b/playbooks/legacy/tooz-tox-py27-sentinel/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-sentinel/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py27-sentinel/run.yaml b/playbooks/legacy/tooz-tox-py27-sentinel/run.yaml new file mode 100644 index 00000000..5abc8b42 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-sentinel/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py27-sentinel from old job gate-tooz-tox-py27-sentinel-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-sentinel + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py27-zookeeper/post.yaml b/playbooks/legacy/tooz-tox-py27-zookeeper/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-zookeeper/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py27-zookeeper/run.yaml b/playbooks/legacy/tooz-tox-py27-zookeeper/run.yaml new file mode 100644 index 00000000..7324d090 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py27-zookeeper/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py27-zookeeper from old job gate-tooz-tox-py27-zookeeper-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py27-zookeeper + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-consul/post.yaml b/playbooks/legacy/tooz-tox-py35-consul/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-consul/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py35-consul/run.yaml b/playbooks/legacy/tooz-tox-py35-consul/run.yaml new file mode 100644 index 00000000..ac6f6afc --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-consul/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py35-consul from old job gate-tooz-tox-py35-consul-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-consul + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-etcd/post.yaml b/playbooks/legacy/tooz-tox-py35-etcd/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-etcd/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py35-etcd/run.yaml b/playbooks/legacy/tooz-tox-py35-etcd/run.yaml new file mode 100644 index 00000000..93cc19d4 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-etcd/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py35-etcd from old job gate-tooz-tox-py35-etcd-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-etcd + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-etcd3/post.yaml b/playbooks/legacy/tooz-tox-py35-etcd3/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-etcd3/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py35-etcd3/run.yaml b/playbooks/legacy/tooz-tox-py35-etcd3/run.yaml new file mode 100644 index 00000000..4de9336b --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-etcd3/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py35-etcd3 from old job gate-tooz-tox-py35-etcd3-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-etcd3 + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-etcd3gw/post.yaml b/playbooks/legacy/tooz-tox-py35-etcd3gw/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-etcd3gw/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py35-etcd3gw/run.yaml b/playbooks/legacy/tooz-tox-py35-etcd3gw/run.yaml new file mode 100644 index 00000000..80ce9674 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-etcd3gw/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py35-etcd3gw from old job gate-tooz-tox-py35-etcd3gw-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-etcd3gw + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-memcached/post.yaml b/playbooks/legacy/tooz-tox-py35-memcached/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-memcached/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py35-memcached/run.yaml b/playbooks/legacy/tooz-tox-py35-memcached/run.yaml new file mode 100644 index 00000000..fcf6af9f --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-memcached/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py35-memcached from old job gate-tooz-tox-py35-memcached-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-memcached + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-mysql/post.yaml b/playbooks/legacy/tooz-tox-py35-mysql/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-mysql/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py35-mysql/run.yaml b/playbooks/legacy/tooz-tox-py35-mysql/run.yaml new file mode 100644 index 00000000..1f924caf --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-mysql/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py35-mysql from old job gate-tooz-tox-py35-mysql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-mysql + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-postgresql/post.yaml b/playbooks/legacy/tooz-tox-py35-postgresql/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-postgresql/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py35-postgresql/run.yaml b/playbooks/legacy/tooz-tox-py35-postgresql/run.yaml new file mode 100644 index 00000000..d6478895 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-postgresql/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py35-postgresql from old job gate-tooz-tox-py35-postgresql-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-postgresql + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-redis/post.yaml b/playbooks/legacy/tooz-tox-py35-redis/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-redis/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py35-redis/run.yaml b/playbooks/legacy/tooz-tox-py35-redis/run.yaml new file mode 100644 index 00000000..77eab7a2 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-redis/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py35-redis from old job gate-tooz-tox-py35-redis-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-redis + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-sentinel/post.yaml b/playbooks/legacy/tooz-tox-py35-sentinel/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-sentinel/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py35-sentinel/run.yaml b/playbooks/legacy/tooz-tox-py35-sentinel/run.yaml new file mode 100644 index 00000000..701c6158 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-sentinel/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py35-sentinel from old job gate-tooz-tox-py35-sentinel-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-sentinel + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tooz-tox-py35-zookeeper/post.yaml b/playbooks/legacy/tooz-tox-py35-zookeeper/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-zookeeper/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tooz-tox-py35-zookeeper/run.yaml b/playbooks/legacy/tooz-tox-py35-zookeeper/run.yaml new file mode 100644 index 00000000..6bee01ee --- /dev/null +++ b/playbooks/legacy/tooz-tox-py35-zookeeper/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tooz-tox-py35-zookeeper from old job gate-tooz-tox-py35-zookeeper-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh py35-zookeeper + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tox-build/post.yaml b/playbooks/legacy/tox-build/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tox-build/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tox-build/run.yaml b/playbooks/legacy/tox-build/run.yaml new file mode 100644 index 00000000..1052eef6 --- /dev/null +++ b/playbooks/legacy/tox-build/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tox-build from old job gate-{name}-tox-build-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh build + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tox-checkniceness/post.yaml b/playbooks/legacy/tox-checkniceness/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tox-checkniceness/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tox-checkniceness/run.yaml b/playbooks/legacy/tox-checkniceness/run.yaml new file mode 100644 index 00000000..e23a9189 --- /dev/null +++ b/playbooks/legacy/tox-checkniceness/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-tox-checkniceness from old job gate-{name}-tox-checkniceness-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh checkniceness + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tox-doc-publish-checkbuild/post.yaml b/playbooks/legacy/tox-doc-publish-checkbuild/post.yaml new file mode 100644 index 00000000..5a81ee20 --- /dev/null +++ b/playbooks/legacy/tox-doc-publish-checkbuild/post.yaml @@ -0,0 +1,23 @@ +- hosts: all + tasks: + + - name: Copy files from publish-docs/ on node + synchronize: + src: publish-docs/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/build-*.log.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tox-doc-publish-checkbuild/run.yaml b/playbooks/legacy/tox-doc-publish-checkbuild/run.yaml new file mode 100644 index 00000000..64ac6d44 --- /dev/null +++ b/playbooks/legacy/tox-doc-publish-checkbuild/run.yaml @@ -0,0 +1,68 @@ +- hosts: all + name: Autoconverted job legacy-tox-doc-publish-checkbuild from old job gate-{name}-tox-doc-publish-checkbuild + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh checkbuild + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tox-doc-publish-checklang/post.yaml b/playbooks/legacy/tox-doc-publish-checklang/post.yaml new file mode 100644 index 00000000..5a81ee20 --- /dev/null +++ b/playbooks/legacy/tox-doc-publish-checklang/post.yaml @@ -0,0 +1,23 @@ +- hosts: all + tasks: + + - name: Copy files from publish-docs/ on node + synchronize: + src: publish-docs/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/build-*.log.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tox-doc-publish-checklang/run.yaml b/playbooks/legacy/tox-doc-publish-checklang/run.yaml new file mode 100644 index 00000000..fb95b8e1 --- /dev/null +++ b/playbooks/legacy/tox-doc-publish-checklang/run.yaml @@ -0,0 +1,68 @@ +- hosts: all + name: Autoconverted job legacy-tox-doc-publish-checklang from old job gate-{name}-tox-doc-publish-checklang + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh checklang + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tox-doc-publishlang/post.yaml b/playbooks/legacy/tox-doc-publishlang/post.yaml new file mode 100644 index 00000000..fe356df3 --- /dev/null +++ b/playbooks/legacy/tox-doc-publishlang/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/build-*.log.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tox-doc-publishlang/run.yaml b/playbooks/legacy/tox-doc-publishlang/run.yaml new file mode 100644 index 00000000..2c2944ed --- /dev/null +++ b/playbooks/legacy/tox-doc-publishlang/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-tox-doc-publishlang from old job {name}-tox-doc-publishlang + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh publishlang + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tox-with-sudo-snap/post.yaml b/playbooks/legacy/tox-with-sudo-snap/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/tox-with-sudo-snap/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tox-with-sudo-snap/run.yaml b/playbooks/legacy/tox-with-sudo-snap/run.yaml new file mode 100644 index 00000000..2bf7b769 --- /dev/null +++ b/playbooks/legacy/tox-with-sudo-snap/run.yaml @@ -0,0 +1,59 @@ +- hosts: all + name: Autoconverted job legacy-tox-with-sudo-snap from old job gate-{name}-tox-with-sudo-snap + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh snap + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/training-guides-tox-doc-publish-checkbuild/post.yaml b/playbooks/legacy/training-guides-tox-doc-publish-checkbuild/post.yaml new file mode 100644 index 00000000..5a81ee20 --- /dev/null +++ b/playbooks/legacy/training-guides-tox-doc-publish-checkbuild/post.yaml @@ -0,0 +1,23 @@ +- hosts: all + tasks: + + - name: Copy files from publish-docs/ on node + synchronize: + src: publish-docs/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/build-*.log.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/training-guides-tox-doc-publish-checkbuild/run.yaml b/playbooks/legacy/training-guides-tox-doc-publish-checkbuild/run.yaml new file mode 100644 index 00000000..1773c0ec --- /dev/null +++ b/playbooks/legacy/training-guides-tox-doc-publish-checkbuild/run.yaml @@ -0,0 +1,69 @@ +- hosts: all + name: Autoconverted job legacy-training-guides-tox-doc-publish-checkbuild from old + job gate-training-guides-tox-doc-publish-checkbuild + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh checkbuild + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/training-guides-tox-doc-publishdocs/post.yaml b/playbooks/legacy/training-guides-tox-doc-publishdocs/post.yaml new file mode 100644 index 00000000..fe356df3 --- /dev/null +++ b/playbooks/legacy/training-guides-tox-doc-publishdocs/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/build-*.log.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/training-guides-tox-doc-publishdocs/run.yaml b/playbooks/legacy/training-guides-tox-doc-publishdocs/run.yaml new file mode 100644 index 00000000..477fbb3d --- /dev/null +++ b/playbooks/legacy/training-guides-tox-doc-publishdocs/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-training-guides-tox-doc-publishdocs from old job + training-guides-tox-doc-publishdocs + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh publishdocs + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/training-labs-scripts/post.yaml b/playbooks/legacy/training-labs-scripts/post.yaml new file mode 100644 index 00000000..a28572a3 --- /dev/null +++ b/playbooks/legacy/training-labs-scripts/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/dist/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/build/dist/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/training-labs-scripts/run.yaml b/playbooks/legacy/training-labs-scripts/run.yaml new file mode 100644 index 00000000..10b26759 --- /dev/null +++ b/playbooks/legacy/training-labs-scripts/run.yaml @@ -0,0 +1,48 @@ +- hosts: all + name: Autoconverted job legacy-training-labs-scripts from old job training-labs-scripts-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: ./tools/generate-labs $ZUUL_REFNAME + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tricircle-dsvm-functional/post.yaml b/playbooks/legacy/tricircle-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tricircle-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tricircle-dsvm-functional/run.yaml b/playbooks/legacy/tricircle-dsvm-functional/run.yaml new file mode 100644 index 00000000..c81f506f --- /dev/null +++ b/playbooks/legacy/tricircle-dsvm-functional/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-tricircle-dsvm-functional from old job gate-tricircle-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin tricircle git://git.openstack.org/openstack/tricircle + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE=default + export PROJECTS="openstack/tricircle $PROJECTS" + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=0 + export DEVSTACK_GATE_TEMPEST_REGEX="tricircle.tempestplugin" + + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function pre_test_hook { + cd /opt/stack/new/tricircle/tricircle/tempestplugin/ + ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/tricircle/tricircle/tempestplugin/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tricircle-dsvm-multiregion/post.yaml b/playbooks/legacy/tricircle-dsvm-multiregion/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tricircle-dsvm-multiregion/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tricircle-dsvm-multiregion/run.yaml b/playbooks/legacy/tricircle-dsvm-multiregion/run.yaml new file mode 100644 index 00000000..0781cee5 --- /dev/null +++ b/playbooks/legacy/tricircle-dsvm-multiregion/run.yaml @@ -0,0 +1,58 @@ +- hosts: all + name: Autoconverted job legacy-tricircle-dsvm-multiregion from old job gate-tricircle-dsvm-multiregion-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export PROJECTS="openstack/tricircle $PROJECTS" + export PROJECTS="openstack/networking-sfc $PROJECTS" + export DEVSTACK_GATE_CONFIGDRIVE=0 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=0 + export DEVSTACK_GATE_TEMPEST_REGEX="tricircle.tempestplugin" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + # Enable multinode mode, so that the subnode(the second node) + # will be configured to run as second region in pre_test_hook.sh + export DEVSTACK_GATE_TOPOLOGY="multinode" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function gate_hook { + bash -xe $BASE/new/tricircle/tricircle/tempestplugin/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + bash -xe $BASE/new/tricircle/tricircle/tempestplugin/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trio2o-dsvm-functional/post.yaml b/playbooks/legacy/trio2o-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/trio2o-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trio2o-dsvm-functional/run.yaml b/playbooks/legacy/trio2o-dsvm-functional/run.yaml new file mode 100644 index 00000000..8f7237e4 --- /dev/null +++ b/playbooks/legacy/trio2o-dsvm-functional/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-trio2o-dsvm-functional from old job gate-trio2o-dsvm-functional-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trio2o git://git.openstack.org/openstack/trio2o + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE=default + export PROJECTS="openstack/trio2o $PROJECTS" + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=0 + export DEVSTACK_GATE_TEMPEST_REGEX="trio2o.tempestplugin" + + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function pre_test_hook { + cd /opt/stack/new/trio2o/trio2o/tempestplugin/ + ./pre_test_hook.sh + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/trio2o/trio2o/tempestplugin/ + ./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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-buildimage-ironic-python-agent-centos-7/post.yaml b/playbooks/legacy/tripleo-buildimage-ironic-python-agent-centos-7/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tripleo-buildimage-ironic-python-agent-centos-7/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-buildimage-ironic-python-agent-centos-7/run.yaml b/playbooks/legacy/tripleo-buildimage-ironic-python-agent-centos-7/run.yaml new file mode 100644 index 00000000..a3bacfb1 --- /dev/null +++ b/playbooks/legacy/tripleo-buildimage-ironic-python-agent-centos-7/run.yaml @@ -0,0 +1,102 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-buildimage-ironic-python-agent-centos-7 from + old job gate-tripleo-buildimage-ironic-python-agent-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/(.*)' + dest: '\1' + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/diskimage-builder \ + openstack/heat-templates \ + openstack/heat-agents \ + openstack/instack-undercloud \ + openstack/python-tripleoclient \ + openstack/tripleo-common \ + openstack/tripleo-image-elements \ + openstack/tripleo-puppet-elements \ + openstack/requirements + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd python-tripleoclient + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd python-tripleoclient + ELEMENTS="$WORKSPACE/instack-undercloud/elements:" + ELEMENTS+="$WORKSPACE/tripleo-puppet-elements/elements:" + ELEMENTS+="$WORKSPACE/tripleo-image-elements/elements:" + ELEMENTS+="$WORKSPACE/heat-templates/hot/software-config/elements" + + # Basic Deployment (CLI) + # http://docs.openstack.org/developer/tripleo-docs/basic_deployment/basic_deployment_cli.html + case "$ZUUL_BRANCH" in + "stable/newton") + DELOREAN_REPO_URL="https://trunk.rdoproject.org/centos7-newton/current" + DELOREAN_DEPS_URL="https://trunk.rdoproject.org/centos7-newton" + ;; + "stable/ocata") + DELOREAN_REPO_URL="https://trunk.rdoproject.org/centos7-ocata/current" + DELOREAN_DEPS_URL="https://trunk.rdoproject.org/centos7-ocata" + ;; + *) + DELOREAN_REPO_URL="https://trunk.rdoproject.org/centos7-master/current-tripleo" + DELOREAN_DEPS_URL="https://trunk.rdoproject.org/centos7" + ;; + + esac + # setup the repos + sudo yum clean metadata + sudo curl -L ${DELOREAN_DEPS_URL}/delorean-deps.repo -o /etc/yum.repos.d/delorean-deps.repo + sudo curl -L ${DELOREAN_REPO_URL}/delorean.repo -o /etc/yum.repos.d/delorean.repo + export DIB_YUM_REPO_CONF="/etc/yum.repos.d/delorean*" + + # if we are on master, install from source + # otherwise, install from requirements + if [ "$ZUUL_BRANCH" == "master" ]; then + tox -evenv -- pip install $WORKSPACE/diskimage-builder + else + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/requirements/upper-constraints.txt + tox -evenv -- pip install diskimage-builder -c $UPPER_CONSTRAINTS_FILE + fi + + TRIPLEO_COMMON_PATH=$WORKSPACE/tripleo-common + export ELEMENTS_PATH=$ELEMENTS + if [ "ironic-python-agent" == "overcloud-hardened-full" ]; then + CONFIG_FILES="--config-file $TRIPLEO_COMMON_PATH/image-yaml/overcloud-hardened-images.yaml --config-file $TRIPLEO_COMMON_PATH/image-yaml/overcloud-hardened-images-centos7.yaml" + else + CONFIG_FILES="--config-file $TRIPLEO_COMMON_PATH/image-yaml/overcloud-images.yaml --config-file $TRIPLEO_COMMON_PATH/image-yaml/overcloud-images-centos7.yaml" + fi + if [ "$ZUUL_BRANCH" == "stable/newton" ]; then + tox -evenv -- openstack overcloud image build --type ironic-python-agent --elements-path="$ELEMENTS" + else + tox -evenv -- openstack overcloud image build --image-name ironic-python-agent $CONFIG_FILES + fi + + mkdir -p $WORKSPACE/logs + mv *.log $WORKSPACE/logs + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-buildimage-overcloud-full-centos-7/post.yaml b/playbooks/legacy/tripleo-buildimage-overcloud-full-centos-7/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tripleo-buildimage-overcloud-full-centos-7/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-buildimage-overcloud-full-centos-7/run.yaml b/playbooks/legacy/tripleo-buildimage-overcloud-full-centos-7/run.yaml new file mode 100644 index 00000000..719320fe --- /dev/null +++ b/playbooks/legacy/tripleo-buildimage-overcloud-full-centos-7/run.yaml @@ -0,0 +1,102 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-buildimage-overcloud-full-centos-7 from old + job gate-tripleo-buildimage-overcloud-full-centos-7 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/(.*)' + dest: '\1' + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/diskimage-builder \ + openstack/heat-templates \ + openstack/heat-agents \ + openstack/instack-undercloud \ + openstack/python-tripleoclient \ + openstack/tripleo-common \ + openstack/tripleo-image-elements \ + openstack/tripleo-puppet-elements \ + openstack/requirements + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd python-tripleoclient + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd python-tripleoclient + ELEMENTS="$WORKSPACE/instack-undercloud/elements:" + ELEMENTS+="$WORKSPACE/tripleo-puppet-elements/elements:" + ELEMENTS+="$WORKSPACE/tripleo-image-elements/elements:" + ELEMENTS+="$WORKSPACE/heat-templates/hot/software-config/elements" + + # Basic Deployment (CLI) + # http://docs.openstack.org/developer/tripleo-docs/basic_deployment/basic_deployment_cli.html + case "$ZUUL_BRANCH" in + "stable/newton") + DELOREAN_REPO_URL="https://trunk.rdoproject.org/centos7-newton/current" + DELOREAN_DEPS_URL="https://trunk.rdoproject.org/centos7-newton" + ;; + "stable/ocata") + DELOREAN_REPO_URL="https://trunk.rdoproject.org/centos7-ocata/current" + DELOREAN_DEPS_URL="https://trunk.rdoproject.org/centos7-ocata" + ;; + *) + DELOREAN_REPO_URL="https://trunk.rdoproject.org/centos7-master/current-tripleo" + DELOREAN_DEPS_URL="https://trunk.rdoproject.org/centos7" + ;; + + esac + # setup the repos + sudo yum clean metadata + sudo curl -L ${DELOREAN_DEPS_URL}/delorean-deps.repo -o /etc/yum.repos.d/delorean-deps.repo + sudo curl -L ${DELOREAN_REPO_URL}/delorean.repo -o /etc/yum.repos.d/delorean.repo + export DIB_YUM_REPO_CONF="/etc/yum.repos.d/delorean*" + + # if we are on master, install from source + # otherwise, install from requirements + if [ "$ZUUL_BRANCH" == "master" ]; then + tox -evenv -- pip install $WORKSPACE/diskimage-builder + else + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/requirements/upper-constraints.txt + tox -evenv -- pip install diskimage-builder -c $UPPER_CONSTRAINTS_FILE + fi + + TRIPLEO_COMMON_PATH=$WORKSPACE/tripleo-common + export ELEMENTS_PATH=$ELEMENTS + if [ "overcloud-full" == "overcloud-hardened-full" ]; then + CONFIG_FILES="--config-file $TRIPLEO_COMMON_PATH/image-yaml/overcloud-hardened-images.yaml --config-file $TRIPLEO_COMMON_PATH/image-yaml/overcloud-hardened-images-centos7.yaml" + else + CONFIG_FILES="--config-file $TRIPLEO_COMMON_PATH/image-yaml/overcloud-images.yaml --config-file $TRIPLEO_COMMON_PATH/image-yaml/overcloud-images-centos7.yaml" + fi + if [ "$ZUUL_BRANCH" == "stable/newton" ]; then + tox -evenv -- openstack overcloud image build --type overcloud-full --elements-path="$ELEMENTS" + else + tox -evenv -- openstack overcloud image build --image-name overcloud-full $CONFIG_FILES + fi + + mkdir -p $WORKSPACE/logs + mv *.log $WORKSPACE/logs + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-buildimage-overcloud-hardened-full-centos-7/post.yaml b/playbooks/legacy/tripleo-buildimage-overcloud-hardened-full-centos-7/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/tripleo-buildimage-overcloud-hardened-full-centos-7/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-buildimage-overcloud-hardened-full-centos-7/run.yaml b/playbooks/legacy/tripleo-buildimage-overcloud-hardened-full-centos-7/run.yaml new file mode 100644 index 00000000..465ece75 --- /dev/null +++ b/playbooks/legacy/tripleo-buildimage-overcloud-hardened-full-centos-7/run.yaml @@ -0,0 +1,102 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-buildimage-overcloud-hardened-full-centos-7 + from old job gate-tripleo-buildimage-overcloud-hardened-full-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: 'openstack/(.*)' + dest: '\1' + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \ + --cache-dir /opt/git \ + git://git.openstack.org \ + openstack/diskimage-builder \ + openstack/heat-templates \ + openstack/heat-agents \ + openstack/instack-undercloud \ + openstack/python-tripleoclient \ + openstack/tripleo-common \ + openstack/tripleo-image-elements \ + openstack/tripleo-puppet-elements \ + openstack/requirements + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd python-tripleoclient + /usr/local/jenkins/slave_scripts/install-distro-packages.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cd python-tripleoclient + ELEMENTS="$WORKSPACE/instack-undercloud/elements:" + ELEMENTS+="$WORKSPACE/tripleo-puppet-elements/elements:" + ELEMENTS+="$WORKSPACE/tripleo-image-elements/elements:" + ELEMENTS+="$WORKSPACE/heat-templates/hot/software-config/elements" + + # Basic Deployment (CLI) + # http://docs.openstack.org/developer/tripleo-docs/basic_deployment/basic_deployment_cli.html + case "$ZUUL_BRANCH" in + "stable/newton") + DELOREAN_REPO_URL="https://trunk.rdoproject.org/centos7-newton/current" + DELOREAN_DEPS_URL="https://trunk.rdoproject.org/centos7-newton" + ;; + "stable/ocata") + DELOREAN_REPO_URL="https://trunk.rdoproject.org/centos7-ocata/current" + DELOREAN_DEPS_URL="https://trunk.rdoproject.org/centos7-ocata" + ;; + *) + DELOREAN_REPO_URL="https://trunk.rdoproject.org/centos7-master/current-tripleo" + DELOREAN_DEPS_URL="https://trunk.rdoproject.org/centos7" + ;; + + esac + # setup the repos + sudo yum clean metadata + sudo curl -L ${DELOREAN_DEPS_URL}/delorean-deps.repo -o /etc/yum.repos.d/delorean-deps.repo + sudo curl -L ${DELOREAN_REPO_URL}/delorean.repo -o /etc/yum.repos.d/delorean.repo + export DIB_YUM_REPO_CONF="/etc/yum.repos.d/delorean*" + + # if we are on master, install from source + # otherwise, install from requirements + if [ "$ZUUL_BRANCH" == "master" ]; then + tox -evenv -- pip install $WORKSPACE/diskimage-builder + else + export UPPER_CONSTRAINTS_FILE=$WORKSPACE/requirements/upper-constraints.txt + tox -evenv -- pip install diskimage-builder -c $UPPER_CONSTRAINTS_FILE + fi + + TRIPLEO_COMMON_PATH=$WORKSPACE/tripleo-common + export ELEMENTS_PATH=$ELEMENTS + if [ "overcloud-hardened-full" == "overcloud-hardened-full" ]; then + CONFIG_FILES="--config-file $TRIPLEO_COMMON_PATH/image-yaml/overcloud-hardened-images.yaml --config-file $TRIPLEO_COMMON_PATH/image-yaml/overcloud-hardened-images-centos7.yaml" + else + CONFIG_FILES="--config-file $TRIPLEO_COMMON_PATH/image-yaml/overcloud-images.yaml --config-file $TRIPLEO_COMMON_PATH/image-yaml/overcloud-images-centos7.yaml" + fi + if [ "$ZUUL_BRANCH" == "stable/newton" ]; then + tox -evenv -- openstack overcloud image build --type overcloud-hardened-full --elements-path="$ELEMENTS" + else + tox -evenv -- openstack overcloud image build --image-name overcloud-hardened-full $CONFIG_FILES + fi + + mkdir -p $WORKSPACE/logs + mv *.log $WORKSPACE/logs + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-3nodes-multinode/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-3nodes-multinode/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-3nodes-multinode/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-3nodes-multinode/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-3nodes-multinode/run.yaml new file mode 100644 index 00000000..f7311b92 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-3nodes-multinode/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-3nodes-multinode from old job + gate-tripleo-ci-centos-7-3nodes-multinode-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-2ctlr-featureset032 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-containers-multinode-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-containers-multinode-upgrades/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-containers-multinode-upgrades/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-containers-multinode-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-containers-multinode-upgrades/run.yaml new file mode 100644 index 00000000..dcdea5f2 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-containers-multinode-upgrades/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-containers-multinode-upgrades + from old job gate-tripleo-ci-centos-7-containers-multinode-upgrades-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset011 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-containers-multinode/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-containers-multinode/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-containers-multinode/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-containers-multinode/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-containers-multinode/run.yaml new file mode 100644 index 00000000..e4f054bc --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-containers-multinode/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-containers-multinode from old + job gate-tripleo-ci-centos-7-containers-multinode + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset010 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-multinode-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-multinode-upgrades/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-multinode-upgrades/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-multinode-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-multinode-upgrades/run.yaml new file mode 100644 index 00000000..882ecd68 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-multinode-upgrades/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-multinode-upgrades from old job + gate-tripleo-ci-centos-7-multinode-upgrades + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-upgrades + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-nonha-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-nonha-multinode-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-nonha-multinode-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-nonha-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-nonha-multinode-oooq/run.yaml new file mode 100644 index 00000000..c8c441dc --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-nonha-multinode-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-nonha-multinode-oooq from old + job gate-tripleo-ci-centos-7-nonha-multinode-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset004 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton/run.yaml new file mode 100644 index 00000000..6ca7c873 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton + from old job gate-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=ovb-1ctlr_1comp_1ceph-featureset024 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=stable/newton + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata/run.yaml new file mode 100644 index 00000000..c069cfe0 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata + from old job gate-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=ovb-1ctlr_1comp_1ceph-featureset024 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=stable/ocata + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike/run.yaml new file mode 100644 index 00000000..8ed7ef7e --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike + from old job gate-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=ovb-1ctlr_1comp_1ceph-featureset024 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=stable/pike + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/run.yaml new file mode 100644 index 00000000..4e3de2f3 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024 + from old job gate-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024 + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=ovb-1ctlr_1comp_1ceph-featureset024 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-containers-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-containers-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-containers-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-containers-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-containers-oooq/run.yaml new file mode 100644 index 00000000..a1fd64de --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-containers-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-ovb-containers-oooq from old + job gate-tripleo-ci-centos-7-ovb-containers-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=ovb-1ctlr_1comp-featureset022 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-convergence-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-convergence-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-convergence-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-convergence-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-convergence-oooq/run.yaml new file mode 100644 index 00000000..f9bbfa94 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-convergence-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-ovb-convergence-oooq from old + job gate-tripleo-ci-centos-7-ovb-convergence-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=ovb-3ctlr_1comp-featureset025 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-fakeha-caserver/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-fakeha-caserver/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-fakeha-caserver/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-fakeha-caserver/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-fakeha-caserver/run.yaml new file mode 100644 index 00000000..aec09693 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-fakeha-caserver/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-ovb-fakeha-caserver from old + job gate-tripleo-ci-centos-7-ovb-fakeha-caserver + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=ovb-fakeha-caserver + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-newton/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-newton/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-newton/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-newton/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-newton/run.yaml new file mode 100644 index 00000000..8588b229 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-newton/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-ovb-ha-oooq-newton from old job + gate-tripleo-ci-centos-7-ovb-ha-oooq-newton + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=ovb-3ctlr_1comp-featureset001 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=stable/newton + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-ocata/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-ocata/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-ocata/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-ocata/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-ocata/run.yaml new file mode 100644 index 00000000..49754e9e --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-ocata/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-ovb-ha-oooq-ocata from old job + gate-tripleo-ci-centos-7-ovb-ha-oooq-ocata + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=ovb-3ctlr_1comp-featureset001 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=stable/ocata + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-pike/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-pike/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-pike/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-pike/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-pike/run.yaml new file mode 100644 index 00000000..d7941c05 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-pike/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-ovb-ha-oooq-pike from old job + gate-tripleo-ci-centos-7-ovb-ha-oooq-pike + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=ovb-3ctlr_1comp-featureset001 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=stable/pike + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq/run.yaml new file mode 100644 index 00000000..4f8707aa --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq/run.yaml @@ -0,0 +1,90 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-ovb-ha-oooq from old job gate-tripleo-ci-centos-7-ovb-ha-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=ovb-3ctlr_1comp-featureset001 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-tempest-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-tempest-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-tempest-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-tempest-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-tempest-oooq/run.yaml new file mode 100644 index 00000000..3aefa1e4 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-ovb-ha-tempest-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-ovb-ha-tempest-oooq from old + job gate-tripleo-ci-centos-7-ovb-ha-tempest-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=ovb-3ctlr_1comp-featureset021 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades/run.yaml new file mode 100644 index 00000000..5d05bbf3 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades + from old job gate-tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset012 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container/run.yaml new file mode 100644 index 00000000..183d7212 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario001-multinode-oooq-container + from old job gate-tripleo-ci-centos-7-scenario001-multinode-oooq-container + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset016 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-puppet/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-puppet/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-puppet/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-puppet/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-puppet/run.yaml new file mode 100644 index 00000000..718b7cda --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-puppet/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario001-multinode-oooq-puppet + from old job gate-tripleo-ci-centos-7-scenario001-multinode-oooq-puppet + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset005 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq/run.yaml new file mode 100644 index 00000000..475fb21a --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario001-multinode-oooq from + old job gate-tripleo-ci-centos-7-scenario001-multinode-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset005 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-upgrades/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-upgrades/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-upgrades/run.yaml new file mode 100644 index 00000000..8c171d57 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-upgrades/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario001-multinode-upgrades + from old job gate-tripleo-ci-centos-7-scenario001-multinode-upgrades + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=scenario001-multinode-upgrades + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades/run.yaml new file mode 100644 index 00000000..f4658748 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades + from old job gate-tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset013 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container/run.yaml new file mode 100644 index 00000000..be363667 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario002-multinode-oooq-container + from old job gate-tripleo-ci-centos-7-scenario002-multinode-oooq-container + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset017 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-puppet/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-puppet/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-puppet/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-puppet/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-puppet/run.yaml new file mode 100644 index 00000000..1b1583a2 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-puppet/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario002-multinode-oooq-puppet + from old job gate-tripleo-ci-centos-7-scenario002-multinode-oooq-puppet + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset006 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq/run.yaml new file mode 100644 index 00000000..1757aaac --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario002-multinode-oooq from + old job gate-tripleo-ci-centos-7-scenario002-multinode-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset006 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-upgrades/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-upgrades/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-upgrades/run.yaml new file mode 100644 index 00000000..621e81b1 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-upgrades/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario002-multinode-upgrades + from old job gate-tripleo-ci-centos-7-scenario002-multinode-upgrades + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=scenario002-multinode-upgrades + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades/run.yaml new file mode 100644 index 00000000..136411fd --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades + from old job gate-tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset014 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container/run.yaml new file mode 100644 index 00000000..4ba10c5f --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario003-multinode-oooq-container + from old job gate-tripleo-ci-centos-7-scenario003-multinode-oooq-container + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset018 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-puppet/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-puppet/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-puppet/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-puppet/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-puppet/run.yaml new file mode 100644 index 00000000..10748997 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-puppet/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario003-multinode-oooq-puppet + from old job gate-tripleo-ci-centos-7-scenario003-multinode-oooq-puppet + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset007 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq/run.yaml new file mode 100644 index 00000000..b2d86b46 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario003-multinode-oooq from + old job gate-tripleo-ci-centos-7-scenario003-multinode-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset007 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-upgrades/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-upgrades/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-upgrades/run.yaml new file mode 100644 index 00000000..37f4e5b1 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-upgrades/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario003-multinode-upgrades + from old job gate-tripleo-ci-centos-7-scenario003-multinode-upgrades + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=scenario003-multinode-upgrades + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades/run.yaml new file mode 100644 index 00000000..490dbeef --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades + from old job gate-tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset015 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container/run.yaml new file mode 100644 index 00000000..dbd82a42 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario004-multinode-oooq-container + from old job gate-tripleo-ci-centos-7-scenario004-multinode-oooq-container + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset019 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-puppet/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-puppet/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-puppet/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-puppet/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-puppet/run.yaml new file mode 100644 index 00000000..6077cd33 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-puppet/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario004-multinode-oooq-puppet + from old job gate-tripleo-ci-centos-7-scenario004-multinode-oooq-puppet + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset008 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq/run.yaml new file mode 100644 index 00000000..841d7e62 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario004-multinode-oooq from + old job gate-tripleo-ci-centos-7-scenario004-multinode-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset008 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario005-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario005-multinode-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario005-multinode-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario005-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario005-multinode-oooq/run.yaml new file mode 100644 index 00000000..1775926e --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario005-multinode-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario005-multinode-oooq from + old job gate-tripleo-ci-centos-7-scenario005-multinode-oooq-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset009 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario006-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario006-multinode-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario006-multinode-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario006-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario006-multinode-oooq/run.yaml new file mode 100644 index 00000000..4651ac62 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario006-multinode-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario006-multinode-oooq from + old job gate-tripleo-ci-centos-7-scenario006-multinode-oooq-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset026 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-container/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-container/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-container/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-container/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-container/run.yaml new file mode 100644 index 00000000..b5ef4278 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-container/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario007-multinode-oooq-container + from old job gate-tripleo-ci-centos-7-scenario007-multinode-oooq-container-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset030 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-puppet/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-puppet/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-puppet/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-puppet/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-puppet/run.yaml new file mode 100644 index 00000000..8695044e --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-puppet/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario007-multinode-oooq-puppet + from old job gate-tripleo-ci-centos-7-scenario007-multinode-oooq-puppet + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset028 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq/run.yaml new file mode 100644 index 00000000..4d754ae7 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario007-multinode-oooq from + old job gate-tripleo-ci-centos-7-scenario007-multinode-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset028 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario008-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario008-multinode-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario008-multinode-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario008-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario008-multinode-oooq/run.yaml new file mode 100644 index 00000000..4f8c0560 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario008-multinode-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario008-multinode-oooq from + old job gate-tripleo-ci-centos-7-scenario008-multinode-oooq-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset031 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario009-multinode-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario009-multinode-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario009-multinode-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-scenario009-multinode-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-scenario009-multinode-oooq/run.yaml new file mode 100644 index 00000000..88302b3e --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-scenario009-multinode-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-scenario009-multinode-oooq from + old job gate-tripleo-ci-centos-7-scenario009-multinode-oooq-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=multinode-1ctlr-featureset033 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-undercloud-containers/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-undercloud-containers/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-undercloud-containers/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-undercloud-containers/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-undercloud-containers/run.yaml new file mode 100644 index 00000000..b43a8b57 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-undercloud-containers/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-undercloud-containers from old + job gate-tripleo-ci-centos-7-undercloud-containers-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=undercloud-containers + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-undercloud-oooq/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-undercloud-oooq/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-undercloud-oooq/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-undercloud-oooq/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-undercloud-oooq/run.yaml new file mode 100644 index 00000000..ffd4ad88 --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-undercloud-oooq/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-undercloud-oooq from old job + gate-tripleo-ci-centos-7-undercloud-oooq + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=singlenode-featureset003 + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ci-centos-7-undercloud-upgrades/post.yaml b/playbooks/legacy/tripleo-ci-centos-7-undercloud-upgrades/post.yaml new file mode 100644 index 00000000..9467657b --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-undercloud-upgrades/post.yaml @@ -0,0 +1,34 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/images/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/images/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ci-centos-7-undercloud-upgrades/run.yaml b/playbooks/legacy/tripleo-ci-centos-7-undercloud-upgrades/run.yaml new file mode 100644 index 00000000..14c9152f --- /dev/null +++ b/playbooks/legacy/tripleo-ci-centos-7-undercloud-upgrades/run.yaml @@ -0,0 +1,91 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ci-centos-7-undercloud-upgrades from old + job gate-tripleo-ci-centos-7-undercloud-upgrades-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export TOCI_JOBTYPE=undercloud-upgrades + + # ZUUL does not set these for periodic jobs + export ZUUL_BRANCH=${ZUUL_BRANCH:-master} + export ZUUL_REF=${ZUUL_REF:-None} + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_HORIZON=1 + + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/dib-utils $PROJECTS" + export PROJECTS="openstack/instack $PROJECTS" + export PROJECTS="openstack/instack-undercloud $PROJECTS" + export PROJECTS="openstack/puppet-aodh $PROJECTS" + export PROJECTS="openstack/puppet-barbican $PROJECTS" + export PROJECTS="openstack/puppet-ceilometer $PROJECTS" + export PROJECTS="openstack/puppet-ceph $PROJECTS" + export PROJECTS="openstack/puppet-cinder $PROJECTS" + export PROJECTS="openstack/puppet-ganesha $PROJECTS" + export PROJECTS="openstack/puppet-glance $PROJECTS" + export PROJECTS="openstack/puppet-gnocchi $PROJECTS" + export PROJECTS="openstack/puppet-heat $PROJECTS" + export PROJECTS="openstack/puppet-horizon $PROJECTS" + export PROJECTS="openstack/puppet-ironic $PROJECTS" + export PROJECTS="openstack/puppet-keystone $PROJECTS" + export PROJECTS="openstack/puppet-mistral $PROJECTS" + export PROJECTS="openstack/puppet-neutron $PROJECTS" + export PROJECTS="openstack/puppet-nova $PROJECTS" + export PROJECTS="openstack/puppet-openstack_extras $PROJECTS" + export PROJECTS="openstack/puppet-openstacklib $PROJECTS" + export PROJECTS="openstack/puppet-oslo $PROJECTS" + export PROJECTS="openstack/puppet-pacemaker $PROJECTS" + export PROJECTS="openstack/puppet-sahara $PROJECTS" + export PROJECTS="openstack/puppet-swift $PROJECTS" + export PROJECTS="openstack/puppet-tripleo $PROJECTS" + export PROJECTS="openstack/puppet-vswitch $PROJECTS" + export PROJECTS="openstack/puppet-zaqar $PROJECTS" + export PROJECTS="openstack/python-ironic-inspector-client $PROJECTS" + export PROJECTS="openstack/python-tripleoclient $PROJECTS" + export PROJECTS="openstack/tripleo-common $PROJECTS" + export PROJECTS="openstack/tripleo-puppet-elements $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart $PROJECTS" + export PROJECTS="openstack/tripleo-quickstart-extras $PROJECTS" + export PROJECTS="openstack/tripleo-ui $PROJECTS" + + # some projects are not in devstack-gate, we need them to grab logs: + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/barbican $PROJECTS" + export PROJECTS="openstack/panko $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + + sudo chown -hR $(whoami) /opt/git + function gate_hook { + bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh + } + export -f gate_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ui-nodejs6-npm-run-lint/post.yaml b/playbooks/legacy/tripleo-ui-nodejs6-npm-run-lint/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/tripleo-ui-nodejs6-npm-run-lint/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ui-nodejs6-npm-run-lint/run.yaml b/playbooks/legacy/tripleo-ui-nodejs6-npm-run-lint/run.yaml new file mode 100644 index 00000000..45d4b763 --- /dev/null +++ b/playbooks/legacy/tripleo-ui-nodejs6-npm-run-lint/run.yaml @@ -0,0 +1,133 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ui-nodejs6-npm-run-lint from old job gate-tripleo-ui-nodejs6-npm-run-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_6.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_6.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )lint($| ) ]]; then + npm lint --verbose + else + npm run lint --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/tripleo-ui-nodejs6-npm-run-test/post.yaml b/playbooks/legacy/tripleo-ui-nodejs6-npm-run-test/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/tripleo-ui-nodejs6-npm-run-test/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/tripleo-ui-nodejs6-npm-run-test/run.yaml b/playbooks/legacy/tripleo-ui-nodejs6-npm-run-test/run.yaml new file mode 100644 index 00000000..a3e8d7ab --- /dev/null +++ b/playbooks/legacy/tripleo-ui-nodejs6-npm-run-test/run.yaml @@ -0,0 +1,133 @@ +- hosts: all + name: Autoconverted job legacy-tripleo-ui-nodejs6-npm-run-test from old job gate-tripleo-ui-nodejs6-npm-run-test + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_6.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_6.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )test($| ) ]]; then + npm test --verbose + else + npm run test --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-functional-dsvm-mysql-newton/post.yaml b/playbooks/legacy/trove-functional-dsvm-mysql-newton/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-functional-dsvm-mysql-newton/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-functional-dsvm-mysql-newton/run.yaml b/playbooks/legacy/trove-functional-dsvm-mysql-newton/run.yaml new file mode 100644 index 00000000..58126393 --- /dev/null +++ b/playbooks/legacy/trove-functional-dsvm-mysql-newton/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-trove-legacy-functional-dsvm-mysql-newton from old + job gate-trove-legacy-functional-dsvm-mysql-newton + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/trove-integration $PROJECTS" + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove-integration/scripts + ./redstack dsvm-gate-tests mysql + } + export -f post_test_hook + + export BRANCH_OVERRIDE=stable/newton + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-functional-dsvm-mysql/post.yaml b/playbooks/legacy/trove-functional-dsvm-mysql/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-functional-dsvm-mysql/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-functional-dsvm-mysql/run.yaml b/playbooks/legacy/trove-functional-dsvm-mysql/run.yaml new file mode 100644 index 00000000..cc7289b3 --- /dev/null +++ b/playbooks/legacy/trove-functional-dsvm-mysql/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-trove-legacy-functional-dsvm-mysql from old job gate-trove-legacy-functional-dsvm-mysql + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/trove-integration $PROJECTS" + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove-integration/scripts + ./redstack dsvm-gate-tests mysql + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-functional-dsvm-redis-newton/post.yaml b/playbooks/legacy/trove-functional-dsvm-redis-newton/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-functional-dsvm-redis-newton/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-functional-dsvm-redis-newton/run.yaml b/playbooks/legacy/trove-functional-dsvm-redis-newton/run.yaml new file mode 100644 index 00000000..7379001b --- /dev/null +++ b/playbooks/legacy/trove-functional-dsvm-redis-newton/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-trove-legacy-functional-dsvm-redis-newton from old + job gate-trove-legacy-functional-dsvm-redis-newton + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/trove-integration $PROJECTS" + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove-integration/scripts + ./redstack dsvm-gate-tests redis + } + export -f post_test_hook + + export BRANCH_OVERRIDE=stable/newton + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-pylint/post.yaml b/playbooks/legacy/trove-pylint/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/trove-pylint/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-pylint/run.yaml b/playbooks/legacy/trove-pylint/run.yaml new file mode 100644 index 00000000..ebb5b9ad --- /dev/null +++ b/playbooks/legacy/trove-pylint/run.yaml @@ -0,0 +1,54 @@ +- hosts: all + name: Autoconverted job legacy-trove-pylint from old job gate-trove-pylint-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-pylint.sh pylint + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-cassandra-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-cassandra-multi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-cassandra-multi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-cassandra-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-cassandra-multi/run.yaml new file mode 100644 index 00000000..566aabe8 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-cassandra-multi/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-cassandra-multi from old job + gate-trove-scenario-dsvm-cassandra-multi-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests cassandra cassandra-supported-multi + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-cassandra-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-cassandra-single/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-cassandra-single/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-cassandra-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-cassandra-single/run.yaml new file mode 100644 index 00000000..03ea73eb --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-cassandra-single/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-cassandra-single from old job + gate-trove-scenario-dsvm-cassandra-single-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests cassandra cassandra-supported-single + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-couchbase-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-couchbase-single/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-couchbase-single/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-couchbase-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-couchbase-single/run.yaml new file mode 100644 index 00000000..f3f617f8 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-couchbase-single/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-couchbase-single from old job + gate-trove-scenario-dsvm-couchbase-single-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests couchbase couchbase-supported-single + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-couchdb-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-couchdb-single/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-couchdb-single/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-couchdb-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-couchdb-single/run.yaml new file mode 100644 index 00000000..5caede50 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-couchdb-single/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-couchdb-single from old job gate-trove-scenario-dsvm-couchdb-single-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests couchdb couchdb-supported-single + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-mariadb-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-mariadb-multi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mariadb-multi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-mariadb-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-mariadb-multi/run.yaml new file mode 100644 index 00000000..787f52c9 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mariadb-multi/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-mariadb-multi from old job gate-trove-scenario-dsvm-mariadb-multi-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests mariadb mariadb-supported-multi + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-mariadb-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-mariadb-single/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mariadb-single/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-mariadb-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-mariadb-single/run.yaml new file mode 100644 index 00000000..6bcdddab --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mariadb-single/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-mariadb-single from old job gate-trove-scenario-dsvm-mariadb-single-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests mariadb mariadb-supported-single + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-mongodb-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-mongodb-multi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mongodb-multi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-mongodb-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-mongodb-multi/run.yaml new file mode 100644 index 00000000..aaf69586 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mongodb-multi/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-mongodb-multi from old job gate-trove-scenario-dsvm-mongodb-multi-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests mongodb mongodb-supported-multi + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-mongodb-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-mongodb-single/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mongodb-single/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-mongodb-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-mongodb-single/run.yaml new file mode 100644 index 00000000..39797b15 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mongodb-single/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-mongodb-single from old job gate-trove-scenario-dsvm-mongodb-single-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests mongodb mongodb-supported-single + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-mysql-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-mysql-multi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mysql-multi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-mysql-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-mysql-multi/run.yaml new file mode 100644 index 00000000..429bcf2e --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mysql-multi/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-mysql-multi from old job gate-trove-scenario-dsvm-mysql-multi-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests mysql mysql-supported-multi + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-mysql-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-mysql-single/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mysql-single/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-mysql-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-mysql-single/run.yaml new file mode 100644 index 00000000..15a51548 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mysql-single/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-mysql-single from old job gate-trove-scenario-dsvm-mysql-single-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests mysql mysql-supported-single + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-mysql/post.yaml b/playbooks/legacy/trove-scenario-dsvm-mysql/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mysql/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-mysql/run.yaml b/playbooks/legacy/trove-scenario-dsvm-mysql/run.yaml new file mode 100644 index 00000000..d8d2da2a --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-mysql/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-trove-legacy-scenario-dsvm-mysql from old job gate-trove-legacy-scenario-dsvm-mysql + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/trove-integration $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove-integration/scripts + ./redstack dsvm-gate-tests mysql mysql_supported + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-percona-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-percona-multi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-percona-multi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-percona-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-percona-multi/run.yaml new file mode 100644 index 00000000..62e986d4 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-percona-multi/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-percona-multi from old job gate-trove-scenario-dsvm-percona-multi-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests percona percona-supported-multi + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-percona-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-percona-single/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-percona-single/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-percona-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-percona-single/run.yaml new file mode 100644 index 00000000..6a0844c4 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-percona-single/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-percona-single from old job gate-trove-scenario-dsvm-percona-single-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests percona percona-supported-single + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-postgresql-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-postgresql-multi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-postgresql-multi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-postgresql-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-postgresql-multi/run.yaml new file mode 100644 index 00000000..9b948d9f --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-postgresql-multi/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-postgresql-multi from old job + gate-trove-scenario-dsvm-postgresql-multi-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests postgresql postgresql-supported-multi + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-postgresql-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-postgresql-single/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-postgresql-single/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-postgresql-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-postgresql-single/run.yaml new file mode 100644 index 00000000..d3522a73 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-postgresql-single/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-postgresql-single from old job + gate-trove-scenario-dsvm-postgresql-single-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests postgresql postgresql-supported-single + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-postgresql/post.yaml b/playbooks/legacy/trove-scenario-dsvm-postgresql/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-postgresql/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-postgresql/run.yaml b/playbooks/legacy/trove-scenario-dsvm-postgresql/run.yaml new file mode 100644 index 00000000..fc93da49 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-postgresql/run.yaml @@ -0,0 +1,66 @@ +- hosts: all + name: Autoconverted job legacy-trove-legacy-scenario-dsvm-postgresql from old job + gate-trove-legacy-scenario-dsvm-postgresql + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/trove-integration $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove-integration/scripts + ./redstack dsvm-gate-tests postgresql postgresql_supported + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-pxc-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-pxc-multi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-pxc-multi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-pxc-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-pxc-multi/run.yaml new file mode 100644 index 00000000..0d3f7488 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-pxc-multi/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-pxc-multi from old job gate-trove-scenario-dsvm-pxc-multi-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests pxc pxc-supported-multi + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-pxc-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-pxc-single/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-pxc-single/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-pxc-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-pxc-single/run.yaml new file mode 100644 index 00000000..307efe07 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-pxc-single/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-pxc-single from old job gate-trove-scenario-dsvm-pxc-single-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests pxc pxc-supported-single + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-pxc/post.yaml b/playbooks/legacy/trove-scenario-dsvm-pxc/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-pxc/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-pxc/run.yaml b/playbooks/legacy/trove-scenario-dsvm-pxc/run.yaml new file mode 100644 index 00000000..368da182 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-pxc/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-trove-legacy-scenario-dsvm-pxc from old job gate-trove-legacy-scenario-dsvm-pxc + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/trove-integration $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove-integration/scripts + ./redstack dsvm-gate-tests pxc pxc_supported + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-redis-multi/post.yaml b/playbooks/legacy/trove-scenario-dsvm-redis-multi/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-redis-multi/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-redis-multi/run.yaml b/playbooks/legacy/trove-scenario-dsvm-redis-multi/run.yaml new file mode 100644 index 00000000..7917815e --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-redis-multi/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-redis-multi from old job gate-trove-scenario-dsvm-redis-multi-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests redis redis-supported-multi + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-redis-single/post.yaml b/playbooks/legacy/trove-scenario-dsvm-redis-single/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-redis-single/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-redis-single/run.yaml b/playbooks/legacy/trove-scenario-dsvm-redis-single/run.yaml new file mode 100644 index 00000000..09449f25 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-redis-single/run.yaml @@ -0,0 +1,64 @@ +- hosts: all + name: Autoconverted job legacy-trove-scenario-dsvm-redis-single from old job gate-trove-scenario-dsvm-redis-single-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove/integration/scripts + ./trovestack dsvm-gate-tests redis redis-supported-single + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-scenario-dsvm-redis/post.yaml b/playbooks/legacy/trove-scenario-dsvm-redis/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-redis/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-scenario-dsvm-redis/run.yaml b/playbooks/legacy/trove-scenario-dsvm-redis/run.yaml new file mode 100644 index 00000000..d84381e8 --- /dev/null +++ b/playbooks/legacy/trove-scenario-dsvm-redis/run.yaml @@ -0,0 +1,65 @@ +- hosts: all + name: Autoconverted job legacy-trove-legacy-scenario-dsvm-redis from old job gate-trove-legacy-scenario-dsvm-redis-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin trove git://git.openstack.org/openstack/trove + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account + ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TROVE=1 + export PROJECTS="openstack/trove-dashboard $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-troveclient + export PROJECTS="openstack/tripleo-image-elements $PROJECTS" + export PROJECTS="openstack/diskimage-builder $PROJECTS" + export PROJECTS="openstack/trove-integration $PROJECTS" + + function post_test_hook { + export BRIDGE_IP=10.1.0.1 + export DEST=$BASE/new + export PATH_DEVSTACK_SRC=$DEST/devstack + cd /opt/stack/new/trove-integration/scripts + ./redstack dsvm-gate-tests redis redis_supported + } + export -f post_test_hook + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-tox-apiexamples/post.yaml b/playbooks/legacy/trove-tox-apiexamples/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/trove-tox-apiexamples/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-tox-apiexamples/run.yaml b/playbooks/legacy/trove-tox-apiexamples/run.yaml new file mode 100644 index 00000000..525295d4 --- /dev/null +++ b/playbooks/legacy/trove-tox-apiexamples/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-trove-tox-apiexamples from old job gate-trove-tox-apiexamples-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh apiexamples + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/trove-tox-fakemodetests/post.yaml b/playbooks/legacy/trove-tox-fakemodetests/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/trove-tox-fakemodetests/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/trove-tox-fakemodetests/run.yaml b/playbooks/legacy/trove-tox-fakemodetests/run.yaml new file mode 100644 index 00000000..7a00851c --- /dev/null +++ b/playbooks/legacy/trove-tox-fakemodetests/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-trove-tox-fakemodetests from old job gate-trove-tox-fakemodetests-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh fakemodetests + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/upstream-translation-update/post.yaml b/playbooks/legacy/upstream-translation-update/post.yaml new file mode 100644 index 00000000..52a9f8fb --- /dev/null +++ b/playbooks/legacy/upstream-translation-update/post.yaml @@ -0,0 +1,99 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/translation-source/**/*.pot + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/upstream-translation-update/run.yaml b/playbooks/legacy/upstream-translation-update/run.yaml new file mode 100644 index 00000000..26d9239a --- /dev/null +++ b/playbooks/legacy/upstream-translation-update/run.yaml @@ -0,0 +1,63 @@ +- hosts: all + name: Autoconverted job legacy-upstream-translation-update from old job {name}-upstream-translation-update + tasks: + + - shell: + cmd: | + cd / + rm -rf `dirname $WORKSPACE`/* + mkdir $WORKSPACE + cd $WORKSPACE + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/upstream_translation_update.sh $ZUUL_SHORT_PROJECT_NAME {name}-upstream-translation-update + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/vinz-webclient-js-draft/post.yaml b/playbooks/legacy/vinz-webclient-js-draft/post.yaml new file mode 100644 index 00000000..dcdc881d --- /dev/null +++ b/playbooks/legacy/vinz-webclient-js-draft/post.yaml @@ -0,0 +1,36 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from dist/ on node + synchronize: + src: dist/ + dest: '{{ zuul.executor.log_root }}/html/' + mode: pull + copy_links: true + verify_host: true diff --git a/playbooks/legacy/vinz-webclient-js-draft/run.yaml b/playbooks/legacy/vinz-webclient-js-draft/run.yaml new file mode 100644 index 00000000..820c62bc --- /dev/null +++ b/playbooks/legacy/vinz-webclient-js-draft/run.yaml @@ -0,0 +1,88 @@ +- hosts: all + name: Autoconverted job legacy-vinz-webclient-js-draft from old job gate-vinz-webclient-js-draft + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh build:draft + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/vinz-webclient-js-release-branch/post.yaml b/playbooks/legacy/vinz-webclient-js-release-branch/post.yaml new file mode 100644 index 00000000..9c13a7dd --- /dev/null +++ b/playbooks/legacy/vinz-webclient-js-release-branch/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: tarballs/$ZUUL_SHORT_PROJECT_NAME/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/tarballs/*.tar.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/vinz-webclient-js-release-branch/run.yaml b/playbooks/legacy/vinz-webclient-js-release-branch/run.yaml new file mode 100644 index 00000000..106d97c5 --- /dev/null +++ b/playbooks/legacy/vinz-webclient-js-release-branch/run.yaml @@ -0,0 +1,92 @@ +- hosts: all + name: Autoconverted job legacy-vinz-webclient-js-release-branch from old job vinz-webclient-js-release-branch + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh build + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + + # Clean/create a tarball directory + rm -rf tarballs + mkdir -p tarballs + + # Create an archive tarball. + tar -czf $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz dist/ + cp $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/$ZUUL_SHORT_PROJECT_NAME-latest.tar.gz + mv $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/ + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/vinz-webclient-js-release-master/post.yaml b/playbooks/legacy/vinz-webclient-js-release-master/post.yaml new file mode 100644 index 00000000..9c13a7dd --- /dev/null +++ b/playbooks/legacy/vinz-webclient-js-release-master/post.yaml @@ -0,0 +1,41 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: tarballs/$ZUUL_SHORT_PROJECT_NAME/ + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/tarballs/*.tar.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/vinz-webclient-js-release-master/run.yaml b/playbooks/legacy/vinz-webclient-js-release-master/run.yaml new file mode 100644 index 00000000..e0653a31 --- /dev/null +++ b/playbooks/legacy/vinz-webclient-js-release-master/run.yaml @@ -0,0 +1,92 @@ +- hosts: all + name: Autoconverted job legacy-vinz-webclient-js-release-master from old job vinz-webclient-js-release-master + tasks: + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-jsbuild.sh build + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + + # Clean/create a tarball directory + rm -rf tarballs + mkdir -p tarballs + + # Create an archive tarball. + tar -czf $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz dist/ + cp $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/$ZUUL_SHORT_PROJECT_NAME-latest.tar.gz + mv $ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.tar.gz tarballs/ + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/vitrage-dsvm-api-py27/post.yaml b/playbooks/legacy/vitrage-dsvm-api-py27/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/vitrage-dsvm-api-py27/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/vitrage-dsvm-api-py27/run.yaml b/playbooks/legacy/vitrage-dsvm-api-py27/run.yaml new file mode 100644 index 00000000..43f25b13 --- /dev/null +++ b/playbooks/legacy/vitrage-dsvm-api-py27/run.yaml @@ -0,0 +1,74 @@ +- hosts: all + name: Autoconverted job legacy-vitrage-dsvm-api-py27 from old job gate-vitrage-dsvm-api-py27-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin vitrage git://git.openstack.org/openstack/vitrage + + # swift is not ready for python3 yet + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export PROJECTS="openstack/python-vitrageclient $PROJECTS" + export PROJECTS="openstack/vitrage $PROJECTS" + export PROJECTS="openstack/vitrage-dashboard $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + export ENABLED_SERVICES=tempest + + if [ "py27" == "py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + function pre_test_hook { + source $BASE/new/vitrage/devstack/pre_test_hook.sh + } + export -f pre_test_hook + + function gate_hook { + source $BASE/new/vitrage/devstack/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/vitrage/devstack/post_test_hook.sh 'api' + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/vitrage-dsvm-api-py35/post.yaml b/playbooks/legacy/vitrage-dsvm-api-py35/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/vitrage-dsvm-api-py35/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/vitrage-dsvm-api-py35/run.yaml b/playbooks/legacy/vitrage-dsvm-api-py35/run.yaml new file mode 100644 index 00000000..e6f7ee2b --- /dev/null +++ b/playbooks/legacy/vitrage-dsvm-api-py35/run.yaml @@ -0,0 +1,74 @@ +- hosts: all + name: Autoconverted job legacy-vitrage-dsvm-api-py35 from old job gate-vitrage-dsvm-api-py35-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin vitrage git://git.openstack.org/openstack/vitrage + + # swift is not ready for python3 yet + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export PROJECTS="openstack/python-vitrageclient $PROJECTS" + export PROJECTS="openstack/vitrage $PROJECTS" + export PROJECTS="openstack/vitrage-dashboard $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + export ENABLED_SERVICES=tempest + + if [ "py35" == "py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + function pre_test_hook { + source $BASE/new/vitrage/devstack/pre_test_hook.sh + } + export -f pre_test_hook + + function gate_hook { + source $BASE/new/vitrage/devstack/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/vitrage/devstack/post_test_hook.sh 'api' + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/vitrage-dsvm-datasources-py27/post.yaml b/playbooks/legacy/vitrage-dsvm-datasources-py27/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/vitrage-dsvm-datasources-py27/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/vitrage-dsvm-datasources-py27/run.yaml b/playbooks/legacy/vitrage-dsvm-datasources-py27/run.yaml new file mode 100644 index 00000000..b68114ae --- /dev/null +++ b/playbooks/legacy/vitrage-dsvm-datasources-py27/run.yaml @@ -0,0 +1,74 @@ +- hosts: all + name: Autoconverted job legacy-vitrage-dsvm-datasources-py27 from old job gate-vitrage-dsvm-datasources-py27-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin vitrage git://git.openstack.org/openstack/vitrage + + # swift is not ready for python3 yet + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export PROJECTS="openstack/python-vitrageclient $PROJECTS" + export PROJECTS="openstack/vitrage $PROJECTS" + export PROJECTS="openstack/vitrage-dashboard $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + export ENABLED_SERVICES=tempest + + if [ "py27" == "py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + function pre_test_hook { + source $BASE/new/vitrage/devstack/pre_test_hook.sh + } + export -f pre_test_hook + + function gate_hook { + source $BASE/new/vitrage/devstack/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/vitrage/devstack/post_test_hook.sh 'datasources' + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/vitrage-dsvm-datasources-py35/post.yaml b/playbooks/legacy/vitrage-dsvm-datasources-py35/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/vitrage-dsvm-datasources-py35/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/vitrage-dsvm-datasources-py35/run.yaml b/playbooks/legacy/vitrage-dsvm-datasources-py35/run.yaml new file mode 100644 index 00000000..b9f178f5 --- /dev/null +++ b/playbooks/legacy/vitrage-dsvm-datasources-py35/run.yaml @@ -0,0 +1,74 @@ +- hosts: all + name: Autoconverted job legacy-vitrage-dsvm-datasources-py35 from old job gate-vitrage-dsvm-datasources-py35-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin vitrage git://git.openstack.org/openstack/vitrage + + # swift is not ready for python3 yet + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PYTHONUNBUFFERED=true + export PROJECTS="openstack/python-vitrageclient $PROJECTS" + export PROJECTS="openstack/vitrage $PROJECTS" + export PROJECTS="openstack/vitrage-dashboard $PROJECTS" + export PROJECTS="openstack/aodh $PROJECTS" + export PROJECTS="openstack/mistral $PROJECTS" + export ENABLED_SERVICES=tempest + + if [ "py35" == "py35" ] ; then + export DEVSTACK_GATE_USE_PYTHON3=True + else + export DEVSTACK_GATE_USE_PYTHON3=False + fi + + function pre_test_hook { + source $BASE/new/vitrage/devstack/pre_test_hook.sh + } + export -f pre_test_hook + + function gate_hook { + source $BASE/new/vitrage/devstack/gate_hook.sh + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/vitrage/devstack/post_test_hook.sh 'datasources' + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/watcher-dsvm-multinode/post.yaml b/playbooks/legacy/watcher-dsvm-multinode/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/watcher-dsvm-multinode/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/watcher-dsvm-multinode/run.yaml b/playbooks/legacy/watcher-dsvm-multinode/run.yaml new file mode 100644 index 00000000..7baf3b9c --- /dev/null +++ b/playbooks/legacy/watcher-dsvm-multinode/run.yaml @@ -0,0 +1,59 @@ +- hosts: all + name: Autoconverted job legacy-watcher-dsvm-multinode from old job gate-watcher-dsvm-multinode-ubuntu-xenial-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + TEMPEST_PLUGINS='/opt/stack/new/watcher-tempest-plugin' + enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer + # Enable watcher devstack plugin. + enable_plugin watcher git://git.openstack.org/openstack/watcher + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export DEVSTACK_SUBNODE_CONFIG=" " + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_TOPOLOGY="multinode" + export PROJECTS="openstack/watcher $PROJECTS" + export PROJECTS="openstack/python-watcherclient $PROJECTS" + export PROJECTS="openstack/watcher-tempest-plugin $PROJECTS" + + export DEVSTACK_GATE_TEMPEST_REGEX="watcher_tempest_plugin" + + export BRANCH_OVERRIDE=default + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/watcherclient-dsvm-functional/post.yaml b/playbooks/legacy/watcherclient-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/watcherclient-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/watcherclient-dsvm-functional/run.yaml b/playbooks/legacy/watcherclient-dsvm-functional/run.yaml new file mode 100644 index 00000000..d6dcc2fc --- /dev/null +++ b/playbooks/legacy/watcherclient-dsvm-functional/run.yaml @@ -0,0 +1,56 @@ +- hosts: all + name: Autoconverted job legacy-watcherclient-dsvm-functional from old job gate-watcherclient-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin watcher git://git.openstack.org/openstack/watcher + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + ENABLED_SERVICES=tempest + ENABLED_SERVICES+=,watcher-api,watcher-decision-engine,watcher-applier + export ENABLED_SERVICES + + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE=default + export PROJECTS="openstack/watcher $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=python-watcherclient + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + function post_test_hook { + # Configure and run functional tests + $BASE/new/python-watcherclient/watcherclient/tests/functional/hooks/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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/windmill-buildimages/run.yaml b/playbooks/legacy/windmill-buildimages/run.yaml new file mode 100644 index 00000000..17c44cc1 --- /dev/null +++ b/playbooks/legacy/windmill-buildimages/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-windmill-buildimages from old job gate-windmill-buildimages-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/windmill + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/windmill + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh buildimages + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/windmill-deploy-centos-7/run.yaml b/playbooks/legacy/windmill-deploy-centos-7/run.yaml new file mode 100644 index 00000000..c82f4858 --- /dev/null +++ b/playbooks/legacy/windmill-deploy-centos-7/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-windmill-deploy-centos-7 from old job gate-windmill-deploy-centos-7-nv + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/windmill + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/windmill + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh deploy + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/windmill-deploy-fedora-26/run.yaml b/playbooks/legacy/windmill-deploy-fedora-26/run.yaml new file mode 100644 index 00000000..1a6a736c --- /dev/null +++ b/playbooks/legacy/windmill-deploy-fedora-26/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-windmill-deploy-fedora-26 from old job gate-windmill-deploy-fedora-26 + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/windmill + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/windmill + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh deploy + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/windmill-deploy/run.yaml b/playbooks/legacy/windmill-deploy/run.yaml new file mode 100644 index 00000000..cf196c7e --- /dev/null +++ b/playbooks/legacy/windmill-deploy/run.yaml @@ -0,0 +1,26 @@ +- hosts: all + name: Autoconverted job legacy-windmill-deploy from old job gate-windmill-deploy-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack/windmill + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack/windmill + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh deploy + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zaqar-tox-integration/post.yaml b/playbooks/legacy/zaqar-tox-integration/post.yaml new file mode 100644 index 00000000..749aafe1 --- /dev/null +++ b/playbooks/legacy/zaqar-tox-integration/post.yaml @@ -0,0 +1,67 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/zaqar-tox-integration/run.yaml b/playbooks/legacy/zaqar-tox-integration/run.yaml new file mode 100644 index 00000000..e0a3e1da --- /dev/null +++ b/playbooks/legacy/zaqar-tox-integration/run.yaml @@ -0,0 +1,75 @@ +- hosts: all + name: Autoconverted job legacy-zaqar-tox-integration from old job gate-zaqar-tox-integration-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + REQS_DIR=`mktemp -d` + function cleanup { + mkdir -p $WORKSPACE + rm -rf $CLONEMAP $REQS_DIR + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + # zuul cloner works poorly if there are 2 names that are the + # same in here. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cat >> $CLONEMAP << EOF + - name: openstack/requirements + dest: $REQS_DIR + EOF + fi + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT openstack/requirements + # REQS_DIR is not set for openstack/requirements and there is also + # no need to copy in this case. + if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then + cp $REQS_DIR/upper-constraints.txt ./ + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + if [ -x tools/test-setup.sh ] ; then + tools/test-setup.sh + fi + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh integration + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zaqar-ui-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/zaqar-ui-nodejs4-npm-run-lint/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/zaqar-ui-nodejs4-npm-run-lint/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/zaqar-ui-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/zaqar-ui-nodejs4-npm-run-lint/run.yaml new file mode 100644 index 00000000..ad4a7bc8 --- /dev/null +++ b/playbooks/legacy/zaqar-ui-nodejs4-npm-run-lint/run.yaml @@ -0,0 +1,133 @@ +- hosts: all + name: Autoconverted job legacy-zaqar-ui-nodejs4-npm-run-lint from old job gate-zaqar-ui-nodejs4-npm-run-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )lint($| ) ]]; then + npm lint --verbose + else + npm run lint --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zaqar-ui-nodejs4-npm-run-test/post.yaml b/playbooks/legacy/zaqar-ui-nodejs4-npm-run-test/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/zaqar-ui-nodejs4-npm-run-test/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/zaqar-ui-nodejs4-npm-run-test/run.yaml b/playbooks/legacy/zaqar-ui-nodejs4-npm-run-test/run.yaml new file mode 100644 index 00000000..1c3b6cf9 --- /dev/null +++ b/playbooks/legacy/zaqar-ui-nodejs4-npm-run-test/run.yaml @@ -0,0 +1,133 @@ +- hosts: all + name: Autoconverted job legacy-zaqar-ui-nodejs4-npm-run-test from old job gate-zaqar-ui-nodejs4-npm-run-test + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )test($| ) ]]; then + npm test --verbose + else + npm run test --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zaqarclient-dsvm-functional/post.yaml b/playbooks/legacy/zaqarclient-dsvm-functional/post.yaml new file mode 100644 index 00000000..0745ef24 --- /dev/null +++ b/playbooks/legacy/zaqarclient-dsvm-functional/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/zaqarclient-dsvm-functional/run.yaml b/playbooks/legacy/zaqarclient-dsvm-functional/run.yaml new file mode 100644 index 00000000..db9b0d68 --- /dev/null +++ b/playbooks/legacy/zaqarclient-dsvm-functional/run.yaml @@ -0,0 +1,66 @@ +- hosts: all + name: Autoconverted job legacy-zaqarclient-dsvm-functional from old job gate-zaqarclient-dsvm-functional-ubuntu-xenial + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin zaqar git://git.openstack.org/openstack/zaqar + # Enable Zaqar Tempest Plugin + TEMPEST_PLUGINS='/opt/stack/new/kuryr-tempest-plugin' + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export PROJECTS="openstack/python-zaqarclient $PROJECTS" + export PROJECTS="openstack/zaqar-ui $PROJECTS" + export PYTHONUNBUFFERED=true + export FUNCTEST_TIMEOUT=30 + export DEVSTACK_GATE_ZAQAR=1 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export DEVSTACK_GATE_INSTALL_TESTONLY=1 + export ENABLED_SERVICES=mysql,key,tempest + export DEVSTACK_GATE_TEMPEST_REGEX="zaqar_tempest_plugin.tests" + export BRANCH_OVERRIDE=default + + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/zaqar-tempest-plugin $PROJECTS" + export ZAQARCLIENT_AUTH_FUNCTIONAL=1 + export ZAQARCLIENT_TEST_FUNCTIONAL=1 + function post_test_hook { + cd /opt/stack/new/python-zaqarclient + nosetests tests.functional + } + + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zmq-event-publisher-hpi-artifact/post.yaml b/playbooks/legacy/zmq-event-publisher-hpi-artifact/post.yaml new file mode 100644 index 00000000..e0ecb38f --- /dev/null +++ b/playbooks/legacy/zmq-event-publisher-hpi-artifact/post.yaml @@ -0,0 +1,21 @@ +- hosts: all + tasks: + + - name: Ensure artifacts directory exists + file: + path: '{{ zuul.executor.work_root }}/artifacts' + state: directory + delegate_to: localhost + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.work_root }}/artifacts/$ZUUL_SHORT_PROJECT_NAME' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/target/$ZUUL_SHORT_PROJECT_NAME-*.hpi + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/zmq-event-publisher-hpi-artifact/run.yaml b/playbooks/legacy/zmq-event-publisher-hpi-artifact/run.yaml new file mode 100644 index 00000000..ff7e3b09 --- /dev/null +++ b/playbooks/legacy/zmq-event-publisher-hpi-artifact/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-zmq-event-publisher-hpi-artifact from old job zmq-event-publisher-hpi-artifact + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + mvn clean package -B -Dproject-version=$PROJECT_VER + cp ./target/$ZUUL_SHORT_PROJECT_NAME.hpi ./target/$ZUUL_SHORT_PROJECT_NAME-$PROJECT_VER.hpi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zmq-event-publisher-jenkinsci-upload/run.yaml b/playbooks/legacy/zmq-event-publisher-jenkinsci-upload/run.yaml new file mode 100644 index 00000000..f8c66278 --- /dev/null +++ b/playbooks/legacy/zmq-event-publisher-jenkinsci-upload/run.yaml @@ -0,0 +1,31 @@ +- hosts: all + name: Autoconverted job legacy-zmq-event-publisher-jenkinsci-upload from old job + zmq-event-publisher-jenkinsci-upload + tasks: + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + TAG=`echo $ZUUL_REF | sed 's/^refs.tags.//'` + FILENAME_HPI="$ZUUL_SHORT_PROJECT_NAME-$TAG.hpi" + + # copy plugin artifacts from tarballs to local workspace + rm -rf *.hpi + curl -o $FILENAME_HPI http://tarballs.openstack.org/ci/$ZUUL_SHORT_PROJECT_NAME/$FILENAME_HPI + + # deploy to maven repository + FILENAME_POM="$ZUUL_SHORT_PROJECT_NAME-$TAG.pom" + /usr/local/jenkins/slave_scripts/jenkinsci-upload.sh $ZUUL_SHORT_PROJECT_NAME $TAG \ + $FILENAME_POM $FILENAME_HPI + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zmq-event-publisher-maven-build-ubuntu-trusty/run.yaml b/playbooks/legacy/zmq-event-publisher-maven-build-ubuntu-trusty/run.yaml new file mode 100644 index 00000000..2492542e --- /dev/null +++ b/playbooks/legacy/zmq-event-publisher-maven-build-ubuntu-trusty/run.yaml @@ -0,0 +1,55 @@ +- hosts: all + name: Autoconverted job legacy-zmq-event-publisher-maven-build-ubuntu-trusty from + old job gate-zmq-event-publisher-maven-build-ubuntu-trusty + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + /usr/local/jenkins/slave_scripts/version-properties.sh + source version.properties + mvn clean package -B -Dproject-version=$PROJECT_VER + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zun-devstack-dsvm-docker-etcd/post.yaml b/playbooks/legacy/zun-devstack-dsvm-docker-etcd/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/zun-devstack-dsvm-docker-etcd/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/zun-devstack-dsvm-docker-etcd/run.yaml b/playbooks/legacy/zun-devstack-dsvm-docker-etcd/run.yaml new file mode 100644 index 00000000..f734a562 --- /dev/null +++ b/playbooks/legacy/zun-devstack-dsvm-docker-etcd/run.yaml @@ -0,0 +1,68 @@ +- hosts: all + name: Autoconverted job legacy-zun-devstack-dsvm-docker-etcd from old job gate-zun-devstack-dsvm-docker-etcd-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin zun git://git.openstack.org/openstack/zun + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_NEUTRON=1 + + # Enable tempest for tempest plugin + export ENABLED_SERVICES=tempest + + export PROJECTS="openstack/zun $PROJECTS" + export PROJECTS="openstack/kuryr-libnetwork $PROJECTS" + export PROJECTS="openstack/python-zunclient $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + cd /opt/stack/new/zun/ + ./zun/tests/contrib/gate_hook.sh docker etcd + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/zun/ + ./zun/tests/contrib/post_test_hook.sh docker + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zun-devstack-dsvm-docker-split-plugin-sql/post.yaml b/playbooks/legacy/zun-devstack-dsvm-docker-split-plugin-sql/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/zun-devstack-dsvm-docker-split-plugin-sql/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/zun-devstack-dsvm-docker-split-plugin-sql/run.yaml b/playbooks/legacy/zun-devstack-dsvm-docker-split-plugin-sql/run.yaml new file mode 100644 index 00000000..72648d00 --- /dev/null +++ b/playbooks/legacy/zun-devstack-dsvm-docker-split-plugin-sql/run.yaml @@ -0,0 +1,71 @@ +- hosts: all + name: Autoconverted job legacy-zun-devstack-dsvm-docker-split-plugin-sql from old + job gate-zun-devstack-dsvm-docker-split-plugin-sql-nv + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin zun git://git.openstack.org/openstack/zun + TEMPEST_PLUGINS='/opt/stack/new/zun-tempest-plugin' + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_NEUTRON=1 + + # Enable tempest for tempest plugin + export ENABLED_SERVICES=tempest + + export PROJECTS="openstack/zun $PROJECTS" + export PROJECTS="openstack/kuryr-libnetwork $PROJECTS" + export PROJECTS="openstack/python-zunclient $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + export PROJECTS="openstack/zun-tempest-plugin $PROJECTS" + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + cd /opt/stack/new/zun/ + ./zun/tests/contrib/gate_hook.sh docker sql + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/zun/ + ./zun/tests/contrib/post_test_hook.sh docker + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zun-devstack-dsvm-docker-sql/post.yaml b/playbooks/legacy/zun-devstack-dsvm-docker-sql/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/zun-devstack-dsvm-docker-sql/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/zun-devstack-dsvm-docker-sql/run.yaml b/playbooks/legacy/zun-devstack-dsvm-docker-sql/run.yaml new file mode 100644 index 00000000..f867d681 --- /dev/null +++ b/playbooks/legacy/zun-devstack-dsvm-docker-sql/run.yaml @@ -0,0 +1,68 @@ +- hosts: all + name: Autoconverted job legacy-zun-devstack-dsvm-docker-sql from old job gate-zun-devstack-dsvm-docker-sql + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin zun git://git.openstack.org/openstack/zun + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_NEUTRON=1 + + # Enable tempest for tempest plugin + export ENABLED_SERVICES=tempest + + export PROJECTS="openstack/zun $PROJECTS" + export PROJECTS="openstack/kuryr-libnetwork $PROJECTS" + export PROJECTS="openstack/python-zunclient $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + cd /opt/stack/new/zun/ + ./zun/tests/contrib/gate_hook.sh docker sql + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/zun/ + ./zun/tests/contrib/post_test_hook.sh docker + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zun-devstack-dsvm-py35-docker-sql/post.yaml b/playbooks/legacy/zun-devstack-dsvm-py35-docker-sql/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/zun-devstack-dsvm-py35-docker-sql/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/zun-devstack-dsvm-py35-docker-sql/run.yaml b/playbooks/legacy/zun-devstack-dsvm-py35-docker-sql/run.yaml new file mode 100644 index 00000000..9d42ea36 --- /dev/null +++ b/playbooks/legacy/zun-devstack-dsvm-py35-docker-sql/run.yaml @@ -0,0 +1,73 @@ +- hosts: all + name: Autoconverted job legacy-zun-devstack-dsvm-py35-docker-sql from old job gate-zun-devstack-dsvm-py35-docker-sql + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin zun git://git.openstack.org/openstack/zun + # swift is not ready for python3 yet + disable_service s-account + disable_service s-container + disable_service s-object + disable_service s-proxy + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + export DEVSTACK_GATE_USE_PYTHON3=True + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_NEUTRON=1 + + # Enable tempest for tempest plugin + export ENABLED_SERVICES=tempest + + export PROJECTS="openstack/zun $PROJECTS" + export PROJECTS="openstack/kuryr-libnetwork $PROJECTS" + export PROJECTS="openstack/python-zunclient $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + cd /opt/stack/new/zun/ + ./zun/tests/contrib/gate_hook.sh docker sql + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/zun/ + ./zun/tests/contrib/post_test_hook.sh docker + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zun-ui-nodejs4-npm-run-lint/post.yaml b/playbooks/legacy/zun-ui-nodejs4-npm-run-lint/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/zun-ui-nodejs4-npm-run-lint/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/zun-ui-nodejs4-npm-run-lint/run.yaml b/playbooks/legacy/zun-ui-nodejs4-npm-run-lint/run.yaml new file mode 100644 index 00000000..d2a8a562 --- /dev/null +++ b/playbooks/legacy/zun-ui-nodejs4-npm-run-lint/run.yaml @@ -0,0 +1,133 @@ +- hosts: all + name: Autoconverted job legacy-zun-ui-nodejs4-npm-run-lint from old job gate-zun-ui-nodejs4-npm-run-lint + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )lint($| ) ]]; then + npm lint --verbose + else + npm run lint --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zun-ui-nodejs4-npm-run-test/post.yaml b/playbooks/legacy/zun-ui-nodejs4-npm-run-test/post.yaml new file mode 100644 index 00000000..51dc23fb --- /dev/null +++ b/playbooks/legacy/zun-ui-nodejs4-npm-run-test/post.yaml @@ -0,0 +1,54 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/cover/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/reports/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/npm-shrinkwrap.json + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/karma.subunit + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/zun-ui-nodejs4-npm-run-test/run.yaml b/playbooks/legacy/zun-ui-nodejs4-npm-run-test/run.yaml new file mode 100644 index 00000000..84e579e8 --- /dev/null +++ b/playbooks/legacy/zun-ui-nodejs4-npm-run-test/run.yaml @@ -0,0 +1,133 @@ +- hosts: all + name: Autoconverted job legacy-zun-ui-nodejs4-npm-run-test from old job gate-zun-ui-nodejs4-npm-run-test + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelihood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: $ZUUL_PROJECT + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org $ZUUL_PROJECT + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + # Prerequisites + sudo apt-get update + sudo apt-get install -y apt-transport-https lsb-release curl + + DISTRO=$(lsb_release -c -s) + + # Install via nodesource + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - + + echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list + echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + + sudo apt-get update + sudo apt-get install -y nodejs + + # Output to the log for debugging sake. + node --version + npm --version + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y xvfb + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y chromium-browser + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + sudo apt-get update + sudo apt-get install -y firefox dbus + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -x + sudo rm -f /etc/sudoers.d/jenkins-sudo + # Prove that general sudo access is actually revoked + ! sudo -n true + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + DIMENSIONS='1280x1024x24' + /usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null & + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -u + set -e + set -x + export DISPLAY=:99 + npm install --verbose + + # Try running as a standard lifecycle script, otherwise try custom. + npm_lifecycle_phases="publish install version test stop start restart pack" + + if [[ $npm_lifecycle_phases =~ (^| )test($| ) ]]; then + npm test --verbose + else + npm run test --verbose + fi + + # If no shrinkwrap exists, generate it. + if [ ! -f ./npm-shrinkwrap.json ]; then + npm prune # https://github.com/npm/npm/issues/6298 + npm shrinkwrap + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + OUT=`git ls-files --other --exclude-standard --directory` + if [ -z "$OUT" ]; then + echo "No extra files created during test." + exit 0 + else + echo "The following un-ignored files were created during the test:" + echo "$OUT" + exit 0 # TODO: change to 1 to fail tests. + fi + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/post.yaml b/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/post.yaml new file mode 100644 index 00000000..958de215 --- /dev/null +++ b/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/post.yaml @@ -0,0 +1,15 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/run.yaml b/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/run.yaml new file mode 100644 index 00000000..38d7c5f6 --- /dev/null +++ b/playbooks/legacy/zunclient-devstack-dsvm-docker-sql/run.yaml @@ -0,0 +1,67 @@ +- hosts: all + name: Autoconverted job legacy-zunclient-devstack-dsvm-docker-sql from old job gate-zunclient-devstack-dsvm-docker-sql + tasks: + + - shell: + cmd: | + set -e + set -x + cat > clonemap.yaml << EOF + clonemap: + - name: openstack-infra/devstack-gate + dest: devstack-gate + EOF + /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ + git://git.openstack.org \ + openstack-infra/devstack-gate + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + cat << 'EOF' >>"/tmp/dg-local.conf" + [[local|localrc]] + enable_plugin zun git://git.openstack.org/openstack/zun + + EOF + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: | + set -e + set -x + + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_NEUTRON=1 + + # Enable tempest for tempest plugin + export ENABLED_SERVICES=tempest + + export PROJECTS="openstack/zun $PROJECTS" + export PROJECTS="openstack/python-zunclient $PROJECTS" + export PROJECTS="openstack/kuryr-libnetwork $PROJECTS" + export PROJECTS="openstack/devstack-plugin-container $PROJECTS" + + # Keep localrc to be able to set some vars in post_test_hook + export KEEP_LOCALRC=1 + + function gate_hook { + cd /opt/stack/new/zun/ + ./zun/tests/contrib/gate_hook.sh docker sql + } + export -f gate_hook + + function post_test_hook { + source $BASE/new/devstack/accrc/admin/admin + cd /opt/stack/new/python-zunclient/ + ./zunclient/tests/functional/hooks/post_test_hook.sh docker + } + 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 + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/playbooks/legacy/zuul-nodepool/post.yaml b/playbooks/legacy/zuul-nodepool/post.yaml new file mode 100644 index 00000000..b4daeed5 --- /dev/null +++ b/playbooks/legacy/zuul-nodepool/post.yaml @@ -0,0 +1,80 @@ +- hosts: all + tasks: + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*nose_results.html + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testr_results.html.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.testrepository/tmp* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=**/*testrepository.subunit.gz + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/tox' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/.tox/*/log/* + - --include=*/ + - --exclude=* + - --prune-empty-dirs + + - name: Copy files from {{ ansible_user_dir }}/ on node + synchronize: + src: '{{ ansible_user_dir }}/' + dest: '{{ zuul.executor.log_root }}/logs' + mode: pull + copy_links: true + verify_host: true + rsync_opts: + - --include=/logs/** + - --include=*/ + - --exclude=* + - --prune-empty-dirs diff --git a/playbooks/legacy/zuul-nodepool/run.yaml b/playbooks/legacy/zuul-nodepool/run.yaml new file mode 100644 index 00000000..d8d8dd06 --- /dev/null +++ b/playbooks/legacy/zuul-nodepool/run.yaml @@ -0,0 +1,43 @@ +- hosts: all + name: Autoconverted job legacy-zuul-nodepool from old job gate-zuul-nodepool + tasks: + + - shell: + cmd: | + set -e + set -x + CLONEMAP=`mktemp` + function cleanup { + # In cases where zuul-cloner is aborted during a git + # clone operation, git will remove the git work tree in + # its cleanup. The work tree in these jobs is the + # workspace directory, which means that subsequent + # jenkins post-build actions can not run because the + # workspace has been removed. + # To reduce the likelyhood of this having an impact, + # recreate the workspace directory if needed + mkdir -p $WORKSPACE + rm -f $CLONEMAP + } + trap cleanup EXIT + cat > $CLONEMAP << EOF + clonemap: + - name: openstack-infra/zuul + dest: . + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + git://git.openstack.org openstack-infra/zuul + executable: /bin/bash + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: tools/nodepool-integration-setup.sh + environment: '{{ zuul | zuul_legacy_vars }}' + + - shell: + cmd: /usr/local/jenkins/slave_scripts/run-tox.sh nodepool + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/tox.ini b/tox.ini index 94f49ce2..58e7e2fd 100644 --- a/tox.ini +++ b/tox.ini @@ -30,11 +30,11 @@ commands = # Ansible Lint Check # NOTE(pabelanger): Ignore the following checks: # ANSIBlE0012: Commands should not change things if nothing needs doing - bash -c "cd playbooks; find . -type f -regex '.*.y[a]?ml' -print0 | xargs -t -n1 -0 \ + bash -c "cd playbooks; find . -type f -regex '.*.y[a]?ml' -not -path './legacy/*' -print0 | xargs -t -n1 -0 \ ansible-lint -x ANSIBLE0012" # Ansible Syntax Check - bash -c "find playbooks -type f -regex '.*.y[a]?ml' -print | xargs -t -n1 \ - ansible-playbook --syntax-check -i tests/inventory > /dev/null" + bash -c "cd playbooks; find . -type f -regex '.*.y[a]?ml' -print0 | xargs -t -P $(nproc) -n1 -0 \ + ansible-playbook --syntax-check -i {toxinidir}/tests/inventory > /dev/null" [testenv:venv] commands = {posargs} diff --git a/zuul.d/zuul-legacy-jobs.yaml b/zuul.d/zuul-legacy-jobs.yaml new file mode 100644 index 00000000..f2011771 --- /dev/null +++ b/zuul.d/zuul-legacy-jobs.yaml @@ -0,0 +1,20251 @@ +- job: + name: legacy-announce-release + parent: legacy-base + run: playbooks/legacy/announce-release/run + post-run: playbooks/legacy/announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-ansible-func + parent: legacy-base + run: playbooks/legacy/ansible-func/run + post-run: playbooks/legacy/ansible-func/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + +- job: + name: legacy-ansible-func-centos-7 + parent: legacy-base + run: playbooks/legacy/ansible-func-centos-7/run + post-run: playbooks/legacy/ansible-func-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + +- job: + name: legacy-ansible-func-fedora-26 + parent: legacy-base + run: playbooks/legacy/ansible-func-fedora-26/run + post-run: playbooks/legacy/ansible-func-fedora-26/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: fedora-26 + +- job: + name: legacy-ansible-func-opensuse-423 + parent: legacy-base + run: playbooks/legacy/ansible-func-opensuse-423/run + post-run: playbooks/legacy/ansible-func-opensuse-423/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: opensuse-423 + +- job: + name: legacy-ansible-func-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/ansible-func-ubuntu-trusty/run + post-run: playbooks/legacy/ansible-func-ubuntu-trusty/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: ubuntu-trusty + +- job: + name: legacy-ansible-hardening-announce-release + parent: legacy-base + run: playbooks/legacy/ansible-hardening-announce-release/run + post-run: playbooks/legacy/ansible-hardening-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-ansible-hardening-ansible-func-debian-jessie + parent: legacy-base + run: playbooks/legacy/ansible-hardening-ansible-func-debian-jessie/run + post-run: playbooks/legacy/ansible-hardening-ansible-func-debian-jessie/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: debian-jessie + required-projects: + - openstack/ansible-hardening + +- job: + name: legacy-ansible-hardening-ansible-func-fedora-26 + parent: legacy-base + run: playbooks/legacy/ansible-hardening-ansible-func-fedora-26/run + post-run: playbooks/legacy/ansible-hardening-ansible-func-fedora-26/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: fedora-26 + required-projects: + - openstack/ansible-hardening + +- job: + name: legacy-ansible-hardening-ansible-func_rhel6-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/ansible-hardening-ansible-func_rhel6-ubuntu-trusty/run + post-run: playbooks/legacy/ansible-hardening-ansible-func_rhel6-ubuntu-trusty/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: ubuntu-trusty + required-projects: + - openstack/ansible-hardening + +- job: + name: legacy-ansible-lint + parent: legacy-base + run: playbooks/legacy/ansible-lint/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-aodh-dsvm-functional-hbase + parent: legacy-dsvm-base + run: playbooks/legacy/aodh-dsvm-functional-hbase/run + post-run: playbooks/legacy/aodh-dsvm-functional-hbase/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + +- job: + name: legacy-aodh-dsvm-functional-mongodb + parent: legacy-dsvm-base + run: playbooks/legacy/aodh-dsvm-functional-mongodb/run + post-run: playbooks/legacy/aodh-dsvm-functional-mongodb/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + +- job: + name: legacy-aodh-dsvm-functional-mysql + parent: legacy-dsvm-base + run: playbooks/legacy/aodh-dsvm-functional-mysql/run + post-run: playbooks/legacy/aodh-dsvm-functional-mysql/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + +- job: + name: legacy-aodh-dsvm-functional-postgresql + parent: legacy-dsvm-base + run: playbooks/legacy/aodh-dsvm-functional-postgresql/run + post-run: playbooks/legacy/aodh-dsvm-functional-postgresql/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + +- job: + name: legacy-aodh-dsvm-tempest-plugin-hbase + parent: legacy-dsvm-base + run: playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/run + post-run: playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/tempest + +- job: + name: legacy-aodh-dsvm-tempest-plugin-mongodb + parent: legacy-dsvm-base + run: playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/run + post-run: playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/tempest + +- job: + name: legacy-aodh-dsvm-tempest-plugin-mysql + parent: legacy-dsvm-base + run: playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/run + post-run: playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/tempest + +- job: + name: legacy-aodh-dsvm-tempest-plugin-postgresql + parent: legacy-dsvm-base + run: playbooks/legacy/aodh-dsvm-tempest-plugin-postgresql/run + post-run: playbooks/legacy/aodh-dsvm-tempest-plugin-postgresql/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/tempest + +- job: + name: legacy-api-guide + parent: legacy-base + success-url: html/ + run: playbooks/legacy/api-guide/run + post-run: playbooks/legacy/api-guide/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-api-ref + parent: legacy-base + success-url: html/ + run: playbooks/legacy/api-ref/run + post-run: playbooks/legacy/api-ref/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-api-site-propose-translation-update + parent: legacy-base + run: playbooks/legacy/api-site-propose-translation-update/run + post-run: playbooks/legacy/api-site-propose-translation-update/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-api-site-tox-doc-publish-checklang + parent: legacy-base + success-url: html/ + run: playbooks/legacy/api-site-tox-doc-publish-checklang/run + post-run: playbooks/legacy/api-site-tox-doc-publish-checklang/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-api-site-upstream-translation-update + parent: publish-openstack-artifacts + run: playbooks/legacy/api-site-upstream-translation-update/run + post-run: playbooks/legacy/api-site-upstream-translation-update/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-app-catalog-nodejs4-npm-run-lint + parent: legacy-base + run: playbooks/legacy/app-catalog-nodejs4-npm-run-lint/run + post-run: playbooks/legacy/app-catalog-nodejs4-npm-run-lint/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-app-catalog-ui-dsvm-integration + parent: legacy-dsvm-base + run: playbooks/legacy/app-catalog-ui-dsvm-integration/run + post-run: playbooks/legacy/app-catalog-ui-dsvm-integration/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + required-projects: + - openstack-infra/devstack-gate + - openstack/app-catalog + - openstack/app-catalog-ui + +- job: + name: legacy-app-catalog-ui-nodejs4-npm-run-lint + parent: legacy-base + run: playbooks/legacy/app-catalog-ui-nodejs4-npm-run-lint/run + post-run: playbooks/legacy/app-catalog-ui-nodejs4-npm-run-lint/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-ara-integration-openstack-ansible-func + parent: legacy-base + run: playbooks/legacy/ara-integration-openstack-ansible-func/run + post-run: playbooks/legacy/ara-integration-openstack-ansible-func/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + required-projects: + - openstack/ara + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-tests + - openstack/requirements + +- job: + name: legacy-ara-integration-openstack-ansible-func-centos-7 + parent: legacy-base + run: playbooks/legacy/ara-integration-openstack-ansible-func-centos-7/run + post-run: playbooks/legacy/ara-integration-openstack-ansible-func-centos-7/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + required-projects: + - openstack/ara + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-tests + - openstack/requirements + +- job: + name: legacy-ara-integration-py27-2.2.3.0-centos-7 + parent: legacy-base + run: playbooks/legacy/ara-integration-py27-2.2.3.0-centos-7/run + post-run: playbooks/legacy/ara-integration-py27-2.2.3.0-centos-7/post + timeout: 1200 + vars: + BUILD_TIMEOUT: '1200000' + nodeset: centos-7 + +- job: + name: legacy-ara-integration-py27-devel-centos-7 + parent: legacy-base + run: playbooks/legacy/ara-integration-py27-devel-centos-7/run + post-run: playbooks/legacy/ara-integration-py27-devel-centos-7/post + timeout: 1200 + vars: + BUILD_TIMEOUT: '1200000' + nodeset: centos-7 + +- job: + name: legacy-ara-integration-py27-latest-centos-7 + parent: legacy-base + run: playbooks/legacy/ara-integration-py27-latest-centos-7/run + post-run: playbooks/legacy/ara-integration-py27-latest-centos-7/post + timeout: 1200 + vars: + BUILD_TIMEOUT: '1200000' + nodeset: centos-7 + +- job: + name: legacy-ara-integration-py35-devel + parent: legacy-base + run: playbooks/legacy/ara-integration-py35-devel/run + post-run: playbooks/legacy/ara-integration-py35-devel/post + timeout: 1200 + vars: + BUILD_TIMEOUT: '1200000' + +- job: + name: legacy-ara-integration-py35-devel-fedora-26 + parent: legacy-base + run: playbooks/legacy/ara-integration-py35-devel-fedora-26/run + post-run: playbooks/legacy/ara-integration-py35-devel-fedora-26/post + timeout: 1200 + vars: + BUILD_TIMEOUT: '1200000' + nodeset: fedora-26 + +- job: + name: legacy-ara-integration-py35-latest + parent: legacy-base + run: playbooks/legacy/ara-integration-py35-latest/run + post-run: playbooks/legacy/ara-integration-py35-latest/post + timeout: 1200 + vars: + BUILD_TIMEOUT: '1200000' + +- job: + name: legacy-ara-integration-py35-latest-fedora-26 + parent: legacy-base + run: playbooks/legacy/ara-integration-py35-latest-fedora-26/run + post-run: playbooks/legacy/ara-integration-py35-latest-fedora-26/post + timeout: 1200 + vars: + BUILD_TIMEOUT: '1200000' + nodeset: fedora-26 + +- job: + name: legacy-astara-appliance-buildimage + parent: publish-openstack-artifacts + run: playbooks/legacy/astara-appliance-buildimage/run + post-run: playbooks/legacy/astara-appliance-buildimage/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-bandit-integration-barbican + parent: legacy-base + run: playbooks/legacy/bandit-integration-barbican/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + required-projects: + - openstack/bandit + - openstack/barbican + +- job: + name: legacy-bandit-integration-glance + parent: legacy-base + run: playbooks/legacy/bandit-integration-glance/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + required-projects: + - openstack/bandit + - openstack/glance + +- job: + name: legacy-bandit-integration-glance_store + parent: legacy-base + run: playbooks/legacy/bandit-integration-glance_store/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + required-projects: + - openstack/bandit + - openstack/glance + - openstack/glance_store + +- job: + name: legacy-bandit-integration-keystone + parent: legacy-base + run: playbooks/legacy/bandit-integration-keystone/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + required-projects: + - openstack/bandit + - openstack/keystone + +- job: + name: legacy-bandit-integration-keystonemiddleware + parent: legacy-base + run: playbooks/legacy/bandit-integration-keystonemiddleware/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + required-projects: + - openstack/bandit + - openstack/keystone + - openstack/keystonemiddleware + +- job: + name: legacy-bandit-integration-magnum + parent: legacy-base + run: playbooks/legacy/bandit-integration-magnum/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + required-projects: + - openstack/bandit + - openstack/magnum + +- job: + name: legacy-bandit-integration-oslo.config + parent: legacy-base + run: playbooks/legacy/bandit-integration-oslo.config/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + required-projects: + - openstack/bandit + - openstack/oslo.config + +- job: + name: legacy-bandit-integration-oslo.log + parent: legacy-base + run: playbooks/legacy/bandit-integration-oslo.log/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + required-projects: + - openstack/bandit + - openstack/oslo.log + +- job: + name: legacy-bandit-integration-oslo.service + parent: legacy-base + run: playbooks/legacy/bandit-integration-oslo.service/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + required-projects: + - openstack/bandit + - openstack/oslo.service + +- job: + name: legacy-bandit-integration-oslo.utils + parent: legacy-base + run: playbooks/legacy/bandit-integration-oslo.utils/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + required-projects: + - openstack/bandit + - openstack/oslo.utils + +- job: + name: legacy-bandit-integration-oslo.vmware + parent: legacy-base + run: playbooks/legacy/bandit-integration-oslo.vmware/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + required-projects: + - openstack/bandit + - openstack/oslo.vmware + +- job: + name: legacy-bandit-integration-python-keystoneclient + parent: legacy-base + run: playbooks/legacy/bandit-integration-python-keystoneclient/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + required-projects: + - openstack/bandit + - openstack/keystone + - openstack/python-keystoneclient + +- job: + name: legacy-bandit-integration-python-magnumclient + parent: legacy-base + run: playbooks/legacy/bandit-integration-python-magnumclient/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + required-projects: + - openstack/bandit + - openstack/magnum + - openstack/python-magnumclient + +- job: + name: legacy-bandit-integration-sahara + parent: legacy-base + run: playbooks/legacy/bandit-integration-sahara/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + required-projects: + - openstack/ara + - openstack/bandit + - openstack/sahara + +- job: + name: legacy-barbican-dogtag-devstack-fedora-26 + parent: legacy-base + run: playbooks/legacy/barbican-dogtag-devstack-fedora-26/run + post-run: playbooks/legacy/barbican-dogtag-devstack-fedora-26/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + nodeset: fedora-26 + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/python-barbicanclient + +- job: + name: legacy-barbican-dogtag-dsvm-functional-fedora-26 + parent: legacy-dsvm-base + run: playbooks/legacy/barbican-dogtag-dsvm-functional-fedora-26/run + post-run: playbooks/legacy/barbican-dogtag-dsvm-functional-fedora-26/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + nodeset: fedora-26 + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/python-barbicanclient + +- job: + name: legacy-barbican-kmip-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/barbican-kmip-dsvm-functional/run + post-run: playbooks/legacy/barbican-kmip-dsvm-functional/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/python-barbicanclient + +- job: + name: legacy-barbican-simple-crypto-devstack + parent: legacy-base + run: playbooks/legacy/barbican-simple-crypto-devstack/run + post-run: playbooks/legacy/barbican-simple-crypto-devstack/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/python-barbicanclient + +- job: + name: legacy-barbican-simple-crypto-devstack-postgres + parent: legacy-base + run: playbooks/legacy/barbican-simple-crypto-devstack-postgres/run + post-run: playbooks/legacy/barbican-simple-crypto-devstack-postgres/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/python-barbicanclient + +- job: + name: legacy-barbican-simple-crypto-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/barbican-simple-crypto-dsvm-functional/run + post-run: playbooks/legacy/barbican-simple-crypto-dsvm-functional/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/python-barbicanclient + +- job: + name: legacy-barbican-simple-crypto-dsvm-functional-postgres + parent: legacy-dsvm-base + run: playbooks/legacy/barbican-simple-crypto-dsvm-functional-postgres/run + post-run: playbooks/legacy/barbican-simple-crypto-dsvm-functional-postgres/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/python-barbicanclient + +- job: + name: legacy-barbican-simple-crypto-dsvm-functional-py35 + parent: legacy-dsvm-base + run: playbooks/legacy/barbican-simple-crypto-dsvm-functional-py35/run + post-run: playbooks/legacy/barbican-simple-crypto-dsvm-functional-py35/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/python-barbicanclient + +- job: + name: legacy-barbican-simple-crypto-dsvm-tempest + parent: legacy-dsvm-base + run: playbooks/legacy/barbican-simple-crypto-dsvm-tempest/run + post-run: playbooks/legacy/barbican-simple-crypto-dsvm-tempest/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/castellan + - openstack/cursive + - openstack/python-barbicanclient + - openstack/tempest + +- job: + name: legacy-barbican-simple-crypto-dsvm-tempest-castellan-from-git + parent: legacy-dsvm-base + run: playbooks/legacy/barbican-simple-crypto-dsvm-tempest-castellan-from-git/run + post-run: playbooks/legacy/barbican-simple-crypto-dsvm-tempest-castellan-from-git/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/castellan + - openstack/cursive + - openstack/python-barbicanclient + - openstack/tempest + +- job: + name: legacy-barbican-simple-crypto-dsvm-tempest-cursive + parent: legacy-dsvm-base + run: playbooks/legacy/barbican-simple-crypto-dsvm-tempest-cursive/run + post-run: playbooks/legacy/barbican-simple-crypto-dsvm-tempest-cursive/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/castellan + - openstack/cursive + - openstack/python-barbicanclient + - openstack/tempest + +- job: + name: legacy-barbican-simple-crypto-dsvm-tempest-glance + parent: legacy-dsvm-base + run: playbooks/legacy/barbican-simple-crypto-dsvm-tempest-glance/run + post-run: playbooks/legacy/barbican-simple-crypto-dsvm-tempest-glance/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/castellan + - openstack/cursive + - openstack/glance + - openstack/python-barbicanclient + - openstack/tempest + +- job: + name: legacy-barbican-simple-crypto-dsvm-tempest-nova + parent: legacy-dsvm-base + run: playbooks/legacy/barbican-simple-crypto-dsvm-tempest-nova/run + post-run: playbooks/legacy/barbican-simple-crypto-dsvm-tempest-nova/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/castellan + - openstack/cursive + - openstack/nova + - openstack/python-barbicanclient + - openstack/tempest + +- job: + name: legacy-barbican-simple-crypto-dsvm-tempest-py35 + parent: legacy-dsvm-base + run: playbooks/legacy/barbican-simple-crypto-dsvm-tempest-py35/run + post-run: playbooks/legacy/barbican-simple-crypto-dsvm-tempest-py35/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/castellan + - openstack/cursive + - openstack/python-barbicanclient + - openstack/tempest + +- job: + name: legacy-bashate-devstack + parent: legacy-base + run: playbooks/legacy/bashate-devstack/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-bashate-python36-fedora-26 + parent: legacy-base + run: playbooks/legacy/bashate-python36-fedora-26/run + post-run: playbooks/legacy/bashate-python36-fedora-26/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + nodeset: fedora-26 + +- job: + name: legacy-beaker-localhost-rake + parent: legacy-base + run: playbooks/legacy/beaker-localhost-rake/run + post-run: playbooks/legacy/beaker-localhost-rake/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-beaker-nodepool-rake + parent: legacy-base + run: playbooks/legacy/beaker-nodepool-rake/run + post-run: playbooks/legacy/beaker-nodepool-rake/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-bifrost-integration-dhcp + parent: legacy-base + run: playbooks/legacy/bifrost-integration-dhcp/run + post-run: playbooks/legacy/bifrost-integration-dhcp/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + required-projects: + - openstack/bifrost + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-inspector + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + +- job: + name: legacy-bifrost-integration-dhcp-centos-7 + parent: legacy-base + run: playbooks/legacy/bifrost-integration-dhcp-centos-7/run + post-run: playbooks/legacy/bifrost-integration-dhcp-centos-7/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: centos-7 + required-projects: + - openstack/bifrost + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-inspector + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + +- job: + name: legacy-bifrost-integration-dhcp-opensuse-423 + parent: legacy-base + run: playbooks/legacy/bifrost-integration-dhcp-opensuse-423/run + post-run: playbooks/legacy/bifrost-integration-dhcp-opensuse-423/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: opensuse-423 + required-projects: + - openstack/bifrost + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-inspector + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + +- job: + name: legacy-bifrost-integration-dibipa-debian + parent: legacy-base + run: playbooks/legacy/bifrost-integration-dibipa-debian/run + post-run: playbooks/legacy/bifrost-integration-dibipa-debian/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + required-projects: + - openstack/bifrost + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-inspector + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + +- job: + name: legacy-bifrost-integration-dibipa-debian-centos-7 + parent: legacy-base + run: playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/run + post-run: playbooks/legacy/bifrost-integration-dibipa-debian-centos-7/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: centos-7 + required-projects: + - openstack/bifrost + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-inspector + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + +- job: + name: legacy-bifrost-integration-dibipa-debian-opensuse-423 + parent: legacy-base + run: playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/run + post-run: playbooks/legacy/bifrost-integration-dibipa-debian-opensuse-423/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: opensuse-423 + required-projects: + - openstack/bifrost + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-inspector + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + +- job: + name: legacy-bifrost-integration-tinyipa + parent: legacy-base + run: playbooks/legacy/bifrost-integration-tinyipa/run + post-run: playbooks/legacy/bifrost-integration-tinyipa/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + required-projects: + - openstack/bifrost + - openstack/ironic + - openstack/ironic-inspector + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + +- job: + name: legacy-bifrost-integration-tinyipa-centos-7 + parent: legacy-base + run: playbooks/legacy/bifrost-integration-tinyipa-centos-7/run + post-run: playbooks/legacy/bifrost-integration-tinyipa-centos-7/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + required-projects: + - openstack/bifrost + - openstack/ironic + - openstack/ironic-inspector + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + +- job: + name: legacy-bifrost-integration-tinyipa-opensuse-423 + parent: legacy-base + run: playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/run + post-run: playbooks/legacy/bifrost-integration-tinyipa-opensuse-423/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: opensuse-423 + required-projects: + - openstack/bifrost + - openstack/ironic + - openstack/ironic-inspector + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + +- job: + name: legacy-bindep-fallback + parent: legacy-base + run: playbooks/legacy/bindep-fallback/run + post-run: playbooks/legacy/bindep-fallback/post + +- job: + name: legacy-bindep-fallback-centos-7 + parent: legacy-base + run: playbooks/legacy/bindep-fallback-centos-7/run + post-run: playbooks/legacy/bindep-fallback-centos-7/post + nodeset: centos-7 + +- job: + name: legacy-bindep-fallback-debian-jessie + parent: legacy-base + run: playbooks/legacy/bindep-fallback-debian-jessie/run + post-run: playbooks/legacy/bindep-fallback-debian-jessie/post + nodeset: debian-jessie + +- job: + name: legacy-bindep-fallback-fedora-26 + parent: legacy-base + run: playbooks/legacy/bindep-fallback-fedora-26/run + post-run: playbooks/legacy/bindep-fallback-fedora-26/post + nodeset: fedora-26 + +- job: + name: legacy-bindep-fallback-opensuse-423 + parent: legacy-base + run: playbooks/legacy/bindep-fallback-opensuse-423/run + post-run: playbooks/legacy/bindep-fallback-opensuse-423/post + nodeset: opensuse-423 + +- job: + name: legacy-bindep-fallback-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/bindep-fallback-ubuntu-trusty/run + post-run: playbooks/legacy/bindep-fallback-ubuntu-trusty/post + nodeset: ubuntu-trusty + +- job: + name: legacy-blazar-dashboard-releasenotes + parent: legacy-base + success-url: html/ + run: playbooks/legacy/blazar-dashboard-releasenotes/run + post-run: playbooks/legacy/blazar-dashboard-releasenotes/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-blazar-devstack-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/blazar-devstack-dsvm/run + post-run: playbooks/legacy/blazar-devstack-dsvm/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/blazar + - openstack/blazar-nova + - openstack/python-blazarclient + +- job: + name: legacy-blazar-pylint + parent: legacy-base + run: playbooks/legacy/blazar-pylint/run + post-run: playbooks/legacy/blazar-pylint/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-blazar-releasenotes + parent: legacy-base + success-url: html/ + run: playbooks/legacy/blazar-releasenotes/run + post-run: playbooks/legacy/blazar-releasenotes/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-brick-cinderclient-ext-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/brick-cinderclient-ext-dsvm-functional/run + post-run: playbooks/legacy/brick-cinderclient-ext-dsvm-functional/post + timeout: 3900 + vars: + BUILD_TIMEOUT: '3900000' + required-projects: + - openstack-infra/devstack-gate + - openstack/cinder + - openstack/python-brick-cinderclient-ext + +- job: + name: legacy-castellan-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/castellan-dsvm-functional/run + post-run: playbooks/legacy/castellan-dsvm-functional/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/castellan + - openstack/python-barbicanclient + +- job: + name: legacy-ceilometer-dsvm-functional-mongodb + parent: legacy-dsvm-base + run: playbooks/legacy/ceilometer-dsvm-functional-mongodb/run + post-run: playbooks/legacy/ceilometer-dsvm-functional-mongodb/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ceilometer + +- job: + name: legacy-ceilometer-dsvm-functional-mysql + parent: legacy-dsvm-base + run: playbooks/legacy/ceilometer-dsvm-functional-mysql/run + post-run: playbooks/legacy/ceilometer-dsvm-functional-mysql/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ceilometer + +- job: + name: legacy-ceilometer-dsvm-tempest-plugin-es + parent: legacy-dsvm-base + run: playbooks/legacy/ceilometer-dsvm-tempest-plugin-es/run + post-run: playbooks/legacy/ceilometer-dsvm-tempest-plugin-es/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ceilometer + - openstack/tempest + +- job: + name: legacy-ceilometer-dsvm-tempest-plugin-mongodb + parent: legacy-dsvm-base + run: playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb/run + post-run: playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ceilometer + - openstack/tempest + +- job: + name: legacy-ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only + parent: legacy-dsvm-base + run: playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only/run + post-run: playbooks/legacy/ceilometer-dsvm-tempest-plugin-mongodb-identity-v3-only/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ceilometer + - openstack/tempest + +- job: + name: legacy-ceilometer-dsvm-tempest-plugin-mysql + parent: legacy-dsvm-base + run: playbooks/legacy/ceilometer-dsvm-tempest-plugin-mysql/run + post-run: playbooks/legacy/ceilometer-dsvm-tempest-plugin-mysql/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ceilometer + - openstack/tempest + +- job: + name: legacy-ceilometer-tox-py27-mongodb + parent: legacy-base + run: playbooks/legacy/ceilometer-tox-py27-mongodb/run + post-run: playbooks/legacy/ceilometer-tox-py27-mongodb/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-ceilometer-tox-py27-mysql + parent: legacy-base + run: playbooks/legacy/ceilometer-tox-py27-mysql/run + post-run: playbooks/legacy/ceilometer-tox-py27-mysql/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-ceilometer-tox-py27-postgresql + parent: legacy-base + run: playbooks/legacy/ceilometer-tox-py27-postgresql/run + post-run: playbooks/legacy/ceilometer-tox-py27-postgresql/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-ceilometerclient-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/ceilometerclient-dsvm-functional/run + post-run: playbooks/legacy/ceilometerclient-dsvm-functional/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/python-ceilometerclient + +- job: + name: legacy-ceilometerclient-dsvm-functional-identity-v3-only + parent: legacy-dsvm-base + run: playbooks/legacy/ceilometerclient-dsvm-functional-identity-v3-only/run + post-run: playbooks/legacy/ceilometerclient-dsvm-functional-identity-v3-only/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/python-ceilometerclient + +- job: + name: legacy-check-osc-plugins + parent: legacy-base + run: playbooks/legacy/check-osc-plugins/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-chef-rake + parent: legacy-base + run: playbooks/legacy/chef-rake/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-chef-rake-integration + parent: legacy-base + run: playbooks/legacy/chef-rake-integration/run + post-run: playbooks/legacy/chef-rake-integration/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-chef-rake-integration-centos-7 + parent: legacy-base + run: playbooks/legacy/chef-rake-integration-centos-7/run + post-run: playbooks/legacy/chef-rake-integration-centos-7/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-chef-rake-integration-multinode + parent: legacy-base + run: playbooks/legacy/chef-rake-integration-multinode/run + post-run: playbooks/legacy/chef-rake-integration-multinode/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-cinder-pylint + parent: legacy-base + run: playbooks/legacy/cinder-pylint/run + post-run: playbooks/legacy/cinder-pylint/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-cinder-tox-bandit-baseline + parent: legacy-base + run: playbooks/legacy/cinder-tox-bandit-baseline/run + post-run: playbooks/legacy/cinder-tox-bandit-baseline/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-cinder-tox-compliance + parent: legacy-base + run: playbooks/legacy/cinder-tox-compliance/run + post-run: playbooks/legacy/cinder-tox-compliance/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-cinder-tox-functional + parent: legacy-base + run: playbooks/legacy/cinder-tox-functional/run + post-run: playbooks/legacy/cinder-tox-functional/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-cinderclient-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/cinderclient-dsvm-functional/run + post-run: playbooks/legacy/cinderclient-dsvm-functional/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/cinder + - openstack/python-cinderclient + +- job: + name: legacy-cinderclient-dsvm-functional-identity-v3-only + parent: legacy-dsvm-base + run: playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/run + post-run: playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/cinder + - openstack/python-cinderclient + +- job: + name: legacy-cl-openstack-client-run-tests + parent: legacy-base + run: playbooks/legacy/cl-openstack-client-run-tests/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-cliff-tox-neutronclient-tip + parent: legacy-base + run: playbooks/legacy/cliff-tox-neutronclient-tip/run + post-run: playbooks/legacy/cliff-tox-neutronclient-tip/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-cliff-tox-openstackclient-tip + parent: legacy-base + run: playbooks/legacy/cliff-tox-openstackclient-tip/run + post-run: playbooks/legacy/cliff-tox-openstackclient-tip/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-cloudkitty-dsvm-install + parent: legacy-dsvm-base + run: playbooks/legacy/cloudkitty-dsvm-install/run + post-run: playbooks/legacy/cloudkitty-dsvm-install/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/cloudkitty + - openstack/cloudkitty-dashboard + - openstack/python-cloudkittyclient + +- job: + name: legacy-congress-dsvm-api-mysql + parent: legacy-dsvm-base + run: playbooks/legacy/congress-dsvm-api-mysql/run + post-run: playbooks/legacy/congress-dsvm-api-mysql/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/congress + - openstack/congress-dashboard + - openstack/designate + - openstack/designate-tempest-plugin + - openstack/murano + - openstack/murano-dashboard + - openstack/python-aodhclient + - openstack/python-congressclient + - openstack/python-muranoclient + +- job: + name: legacy-congress-dsvm-api-postgresql + parent: legacy-dsvm-base + run: playbooks/legacy/congress-dsvm-api-postgresql/run + post-run: playbooks/legacy/congress-dsvm-api-postgresql/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/congress + - openstack/congress-dashboard + - openstack/designate + - openstack/designate-tempest-plugin + - openstack/murano + - openstack/murano-dashboard + - openstack/python-aodhclient + - openstack/python-congressclient + - openstack/python-muranoclient + +- job: + name: legacy-congress-dsvm-py35-api-mysql + parent: legacy-dsvm-base + run: playbooks/legacy/congress-dsvm-py35-api-mysql/run + post-run: playbooks/legacy/congress-dsvm-py35-api-mysql/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/congress + - openstack/congress-dashboard + - openstack/designate + - openstack/designate-tempest-plugin + - openstack/murano + - openstack/murano-dashboard + - openstack/python-aodhclient + - openstack/python-congressclient + - openstack/python-muranoclient + +- job: + name: legacy-congress-pe-replicated-mysql + parent: legacy-base + run: playbooks/legacy/congress-pe-replicated-mysql/run + post-run: playbooks/legacy/congress-pe-replicated-mysql/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/congress + - openstack/congress-dashboard + - openstack/designate + - openstack/designate-tempest-plugin + - openstack/python-aodhclient + - openstack/python-congressclient + +- job: + name: legacy-congress-pe-replicated-postgresql + parent: legacy-base + run: playbooks/legacy/congress-pe-replicated-postgresql/run + post-run: playbooks/legacy/congress-pe-replicated-postgresql/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/congress + - openstack/congress-dashboard + - openstack/designate + - openstack/designate-tempest-plugin + - openstack/python-aodhclient + - openstack/python-congressclient + +- job: + name: legacy-craton-dashboard-nodejs4-npm-run-lint + parent: legacy-base + run: playbooks/legacy/craton-dashboard-nodejs4-npm-run-lint/run + post-run: playbooks/legacy/craton-dashboard-nodejs4-npm-run-lint/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-craton-dashboard-nodejs4-npm-run-test + parent: legacy-base + run: playbooks/legacy/craton-dashboard-nodejs4-npm-run-test/run + post-run: playbooks/legacy/craton-dashboard-nodejs4-npm-run-test/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-craton-dashboard-tox-py27dj110 + parent: legacy-base + run: playbooks/legacy/craton-dashboard-tox-py27dj110/run + post-run: playbooks/legacy/craton-dashboard-tox-py27dj110/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-craton-dashboard-tox-py27dj19 + parent: legacy-base + run: playbooks/legacy/craton-dashboard-tox-py27dj19/run + post-run: playbooks/legacy/craton-dashboard-tox-py27dj19/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-craton-tox-functional + parent: legacy-base + run: playbooks/legacy/craton-tox-functional/run + post-run: playbooks/legacy/craton-tox-functional/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-cross-cinder-python27 + parent: legacy-base + run: playbooks/legacy/cross-cinder-python27/run + post-run: playbooks/legacy/cross-cinder-python27/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + required-projects: + - openstack/cinder + +- job: + name: legacy-cross-cinder-python35 + parent: legacy-base + run: playbooks/legacy/cross-cinder-python35/run + post-run: playbooks/legacy/cross-cinder-python35/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + required-projects: + - openstack/cinder + +- job: + name: legacy-cross-glance-python27 + parent: legacy-base + run: playbooks/legacy/cross-glance-python27/run + post-run: playbooks/legacy/cross-glance-python27/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + required-projects: + - openstack/glance + +- job: + name: legacy-cross-glance-python35 + parent: legacy-base + run: playbooks/legacy/cross-glance-python35/run + post-run: playbooks/legacy/cross-glance-python35/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + required-projects: + - openstack/glance + +- job: + name: legacy-cross-horizon-python27 + parent: legacy-base + run: playbooks/legacy/cross-horizon-python27/run + post-run: playbooks/legacy/cross-horizon-python27/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + required-projects: + - openstack/horizon + +- job: + name: legacy-cross-horizon-python35 + parent: legacy-base + run: playbooks/legacy/cross-horizon-python35/run + post-run: playbooks/legacy/cross-horizon-python35/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + required-projects: + - openstack/horizon + +- job: + name: legacy-cross-keystone-python27 + parent: legacy-base + run: playbooks/legacy/cross-keystone-python27/run + post-run: playbooks/legacy/cross-keystone-python27/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + required-projects: + - openstack/keystone + +- job: + name: legacy-cross-keystone-python35 + parent: legacy-base + run: playbooks/legacy/cross-keystone-python35/run + post-run: playbooks/legacy/cross-keystone-python35/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + required-projects: + - openstack/keystone + +- job: + name: legacy-cross-networking-midonet-python35 + parent: legacy-base + run: playbooks/legacy/cross-networking-midonet-python35/run + post-run: playbooks/legacy/cross-networking-midonet-python35/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + required-projects: + - openstack/networking-midonet + +- job: + name: legacy-cross-neutron-python27 + parent: legacy-base + run: playbooks/legacy/cross-neutron-python27/run + post-run: playbooks/legacy/cross-neutron-python27/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + required-projects: + - openstack/neutron + +- job: + name: legacy-cross-neutron-python35 + parent: legacy-base + run: playbooks/legacy/cross-neutron-python35/run + post-run: playbooks/legacy/cross-neutron-python35/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + required-projects: + - openstack/neutron + +- job: + name: legacy-cross-nova-func + parent: legacy-base + run: playbooks/legacy/cross-nova-func/run + post-run: playbooks/legacy/cross-nova-func/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + required-projects: + - openstack/nova + +- job: + name: legacy-cross-nova-python27 + parent: legacy-base + run: playbooks/legacy/cross-nova-python27/run + post-run: playbooks/legacy/cross-nova-python27/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + required-projects: + - openstack/nova + +- job: + name: legacy-cross-nova-python35 + parent: legacy-base + run: playbooks/legacy/cross-nova-python35/run + post-run: playbooks/legacy/cross-nova-python35/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + required-projects: + - openstack/nova + +- job: + name: legacy-cross-swift-python27 + parent: legacy-base + run: playbooks/legacy/cross-swift-python27/run + post-run: playbooks/legacy/cross-swift-python27/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + required-projects: + - openstack/swift + +- job: + name: legacy-cross-swift-python35 + parent: legacy-base + run: playbooks/legacy/cross-swift-python35/run + post-run: playbooks/legacy/cross-swift-python35/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + required-projects: + - openstack/swift + +- job: + name: legacy-cue-integration-dsvm-rabbitmq + parent: legacy-dsvm-base + run: playbooks/legacy/cue-integration-dsvm-rabbitmq/run + post-run: playbooks/legacy/cue-integration-dsvm-rabbitmq/post + timeout: 6600 + vars: + BUILD_TIMEOUT: '6600000' + required-projects: + - openstack-infra/devstack-gate + - openstack/cue + - openstack/cue-dashboard + - openstack/python-cueclient + +- job: + name: legacy-cyborg-devstack + parent: legacy-base + run: playbooks/legacy/cyborg-devstack/run + post-run: playbooks/legacy/cyborg-devstack/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/cyborg + +- job: + name: legacy-dashboard-dsvm-selenium-package + parent: legacy-dsvm-base + run: playbooks/legacy/dashboard-dsvm-selenium-package/run + post-run: playbooks/legacy/dashboard-dsvm-selenium-package/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/murano + - openstack/murano-dashboard + - openstack/python-muranoclient + +- job: + name: legacy-deploy-guide + parent: legacy-base + success-url: html/ + run: playbooks/legacy/deploy-guide/run + post-run: playbooks/legacy/deploy-guide/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-designate-dashboard-nodejs4-npm-run-lint + parent: legacy-base + run: playbooks/legacy/designate-dashboard-nodejs4-npm-run-lint/run + post-run: playbooks/legacy/designate-dashboard-nodejs4-npm-run-lint/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-designate-dashboard-nodejs4-npm-run-test + parent: legacy-base + run: playbooks/legacy/designate-dashboard-nodejs4-npm-run-test/run + post-run: playbooks/legacy/designate-dashboard-nodejs4-npm-run-test/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-devstack-dsvm-py35-updown + parent: legacy-dsvm-base + run: playbooks/legacy/devstack-dsvm-py35-updown/run + post-run: playbooks/legacy/devstack-dsvm-py35-updown/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + +- job: + name: legacy-devstack-dsvm-py36-updown-fedora-26 + parent: legacy-dsvm-base + run: playbooks/legacy/devstack-dsvm-py36-updown-fedora-26/run + post-run: playbooks/legacy/devstack-dsvm-py36-updown-fedora-26/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + nodeset: fedora-26 + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + +- job: + name: legacy-devstack-dsvm-updown + parent: legacy-dsvm-base + run: playbooks/legacy/devstack-dsvm-updown/run + post-run: playbooks/legacy/devstack-dsvm-updown/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + +- job: + name: legacy-devstack-gate-tox-py3-run-tests + parent: legacy-base + run: playbooks/legacy/devstack-gate-tox-py3-run-tests/run + post-run: playbooks/legacy/devstack-gate-tox-py3-run-tests/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-devstack-gate-tox-run-tests + parent: legacy-base + run: playbooks/legacy/devstack-gate-tox-run-tests/run + post-run: playbooks/legacy/devstack-gate-tox-run-tests/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-devstack-plugin-container-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/devstack-plugin-container-dsvm/run + post-run: playbooks/legacy/devstack-plugin-container-dsvm/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + +- job: + name: legacy-devstack-unit-tests + parent: legacy-base + run: playbooks/legacy/devstack-unit-tests/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-dg-hooks-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/dg-hooks-dsvm/run + post-run: playbooks/legacy/dg-hooks-dsvm/post + timeout: 3900 + vars: + BUILD_TIMEOUT: '3900000' + required-projects: + - openstack-infra/devstack-gate + +- job: + name: legacy-dib-dsvm-functests-python2-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/dib-dsvm-functests-python2-centos-7/run + post-run: playbooks/legacy/dib-dsvm-functests-python2-centos-7/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + required-projects: + - openstack/diskimage-builder + +- job: + name: legacy-dib-dsvm-functests-python2-centos-7-extras + parent: legacy-dsvm-base + run: playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/run + post-run: playbooks/legacy/dib-dsvm-functests-python2-centos-7-extras/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + required-projects: + - openstack/diskimage-builder + +- job: + name: legacy-dib-dsvm-functests-python2-centos-7-image + parent: legacy-dsvm-base + run: playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/run + post-run: playbooks/legacy/dib-dsvm-functests-python2-centos-7-image/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + required-projects: + - openstack/diskimage-builder + +- job: + name: legacy-dib-dsvm-functests-python2-opensuse-423 + parent: legacy-dsvm-base + run: playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/run + post-run: playbooks/legacy/dib-dsvm-functests-python2-opensuse-423/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: opensuse-423 + required-projects: + - openstack/diskimage-builder + +- job: + name: legacy-dib-dsvm-functests-python2-ubuntu-trusty + parent: legacy-dsvm-base + run: playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/run + post-run: playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: ubuntu-trusty + required-projects: + - openstack/diskimage-builder + +- job: + name: legacy-dib-dsvm-functests-python2-ubuntu-trusty-extras + parent: legacy-dsvm-base + run: playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/run + post-run: playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-extras/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: ubuntu-trusty + required-projects: + - openstack/diskimage-builder + +- job: + name: legacy-dib-dsvm-functests-python2-ubuntu-trusty-image + parent: legacy-dsvm-base + run: playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/run + post-run: playbooks/legacy/dib-dsvm-functests-python2-ubuntu-trusty-image/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: ubuntu-trusty + required-projects: + - openstack/diskimage-builder + +- job: + name: legacy-dib-dsvm-functests-python3 + parent: legacy-dsvm-base + run: playbooks/legacy/dib-dsvm-functests-python3/run + post-run: playbooks/legacy/dib-dsvm-functests-python3/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + required-projects: + - openstack/diskimage-builder + +- job: + name: legacy-dib-dsvm-functests-python3-extras + parent: legacy-dsvm-base + run: playbooks/legacy/dib-dsvm-functests-python3-extras/run + post-run: playbooks/legacy/dib-dsvm-functests-python3-extras/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + required-projects: + - openstack/diskimage-builder + +- job: + name: legacy-dib-dsvm-functests-python3-image + parent: legacy-dsvm-base + run: playbooks/legacy/dib-dsvm-functests-python3-image/run + post-run: playbooks/legacy/dib-dsvm-functests-python3-image/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + required-projects: + - openstack/diskimage-builder + +- job: + name: legacy-dib-dsvm-functests-python3-opensuse-423 + parent: legacy-dsvm-base + run: playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/run + post-run: playbooks/legacy/dib-dsvm-functests-python3-opensuse-423/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: opensuse-423 + required-projects: + - openstack/diskimage-builder + +- job: + name: legacy-dib-utils-tox-func + parent: legacy-base + run: playbooks/legacy/dib-utils-tox-func/run + post-run: playbooks/legacy/dib-utils-tox-func/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-diskimage-builder-pylint + parent: legacy-base + run: playbooks/legacy/diskimage-builder-pylint/run + post-run: playbooks/legacy/diskimage-builder-pylint/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-django_openstack_auth-tox-py27dj110 + parent: legacy-base + run: playbooks/legacy/django_openstack_auth-tox-py27dj110/run + post-run: playbooks/legacy/django_openstack_auth-tox-py27dj110/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-django_openstack_auth-tox-py27dj18 + parent: legacy-base + run: playbooks/legacy/django_openstack_auth-tox-py27dj18/run + post-run: playbooks/legacy/django_openstack_auth-tox-py27dj18/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-django_openstack_auth-tox-py27dj19 + parent: legacy-base + run: playbooks/legacy/django_openstack_auth-tox-py27dj19/run + post-run: playbooks/legacy/django_openstack_auth-tox-py27dj19/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-dox-buildimages + parent: legacy-base + run: playbooks/legacy/dox-buildimages/run + post-run: playbooks/legacy/dox-buildimages/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + +- job: + name: legacy-dragonflow-dsvm-fullstack + parent: legacy-dsvm-base + run: playbooks/legacy/dragonflow-dsvm-fullstack/run + post-run: playbooks/legacy/dragonflow-dsvm-fullstack/post + timeout: 9900 + vars: + BUILD_TIMEOUT: '9900000' + required-projects: + - openstack-infra/devstack-gate + - openstack/dragonflow + - openstack/networking-sfc + - openstack/neutron-dynamic-routing + +- job: + name: legacy-dragonflow-dsvm-fullstack-zmq + parent: legacy-dsvm-base + run: playbooks/legacy/dragonflow-dsvm-fullstack-zmq/run + post-run: playbooks/legacy/dragonflow-dsvm-fullstack-zmq/post + timeout: 9900 + vars: + BUILD_TIMEOUT: '9900000' + required-projects: + - openstack-infra/devstack-gate + - openstack/dragonflow + - openstack/networking-sfc + - openstack/neutron-dynamic-routing + +- job: + name: legacy-dragonflow-dsvm-rally + parent: legacy-dsvm-base + run: playbooks/legacy/dragonflow-dsvm-rally/run + post-run: playbooks/legacy/dragonflow-dsvm-rally/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/dragonflow + - openstack/rally + +- job: + name: legacy-dsvm-ansible-func-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-ansible-func-centos-7/run + post-run: playbooks/legacy/dsvm-ansible-func-centos-7/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + +- job: + name: legacy-dsvm-ansible-func-ubuntu-trusty + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-ansible-func-ubuntu-trusty/run + post-run: playbooks/legacy/dsvm-ansible-func-ubuntu-trusty/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + nodeset: ubuntu-trusty + required-projects: + - openstack-infra/devstack-gate + +- job: + name: legacy-dsvm-collectd-ceilometer-plugin-bin + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin/run + post-run: playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/collectd-ceilometer-plugin + +- job: + name: legacy-dsvm-collectd-ceilometer-plugin-bin-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin-centos-7/run + post-run: playbooks/legacy/dsvm-collectd-ceilometer-plugin-bin-centos-7/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/collectd-ceilometer-plugin + +- job: + name: legacy-dsvm-collectd-ceilometer-plugin-src + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-collectd-ceilometer-plugin-src/run + post-run: playbooks/legacy/dsvm-collectd-ceilometer-plugin-src/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/collectd-ceilometer-plugin + +- job: + name: legacy-dsvm-collectd-ceilometer-plugin-src-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-collectd-ceilometer-plugin-src-centos-7/run + post-run: playbooks/legacy/dsvm-collectd-ceilometer-plugin-src-centos-7/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/collectd-ceilometer-plugin + +- job: + name: legacy-dsvm-murano-apps-refstackclient-unittest + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-murano-apps-refstackclient-unittest/run + post-run: playbooks/legacy/dsvm-murano-apps-refstackclient-unittest/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/murano + - openstack/murano-apps + - openstack/murano-dashboard + - openstack/python-muranoclient + - openstack/refstack + +- job: + name: legacy-dsvm-networking-odl-fullstack-carbon-snapshot + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-networking-odl-fullstack-carbon-snapshot/run + post-run: playbooks/legacy/dsvm-networking-odl-fullstack-carbon-snapshot/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-odl + +- job: + name: legacy-dsvm-networking-odl-fullstack-nitrogen-snapshot + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-networking-odl-fullstack-nitrogen-snapshot/run + post-run: playbooks/legacy/dsvm-networking-odl-fullstack-nitrogen-snapshot/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-odl + +- job: + name: legacy-dsvm-networking-odl-functional-carbon-snapshot + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-networking-odl-functional-carbon-snapshot/run + post-run: playbooks/legacy/dsvm-networking-odl-functional-carbon-snapshot/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-odl + +- job: + name: legacy-dsvm-networking-odl-functional-nitrogen-snapshot + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-networking-odl-functional-nitrogen-snapshot/run + post-run: playbooks/legacy/dsvm-networking-odl-functional-nitrogen-snapshot/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-odl + +- job: + name: legacy-dsvm-nodepool + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-nodepool/run + post-run: playbooks/legacy/dsvm-nodepool/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/nodepool + +- job: + name: legacy-dsvm-nodepool-debian-src + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-nodepool-debian-src/run + post-run: playbooks/legacy/dsvm-nodepool-debian-src/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/glean + - openstack-infra/nodepool + - openstack-infra/shade + - openstack/diskimage-builder + +- job: + name: legacy-dsvm-nodepool-opensuse-src + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-nodepool-opensuse-src/run + post-run: playbooks/legacy/dsvm-nodepool-opensuse-src/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/glean + - openstack-infra/nodepool + - openstack-infra/shade + - openstack/diskimage-builder + +- job: + name: legacy-dsvm-nodepool-py35 + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-nodepool-py35/run + post-run: playbooks/legacy/dsvm-nodepool-py35/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/nodepool + +- job: + name: legacy-dsvm-nodepool-py35-src + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-nodepool-py35-src/run + post-run: playbooks/legacy/dsvm-nodepool-py35-src/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/glean + - openstack-infra/nodepool + - openstack-infra/shade + - openstack/diskimage-builder + +- job: + name: legacy-dsvm-nodepool-redhat-src + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-nodepool-redhat-src/run + post-run: playbooks/legacy/dsvm-nodepool-redhat-src/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/glean + - openstack-infra/nodepool + - openstack-infra/shade + - openstack/diskimage-builder + +- job: + name: legacy-dsvm-nodepool-src + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-nodepool-src/run + post-run: playbooks/legacy/dsvm-nodepool-src/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/glean + - openstack-infra/nodepool + - openstack-infra/shade + - openstack/diskimage-builder + +- job: + name: legacy-dsvm-nodepool-src-old + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-nodepool-src-old/run + post-run: playbooks/legacy/dsvm-nodepool-src-old/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/glean + - openstack-infra/nodepool + - openstack-infra/shade + - openstack/diskimage-builder + +- job: + name: legacy-dsvm-nodepool-src-zuulv3 + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-nodepool-src-zuulv3/run + post-run: playbooks/legacy/dsvm-nodepool-src-zuulv3/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/glean + - openstack-infra/nodepool + - openstack-infra/shade + - openstack-infra/zuul + - openstack/diskimage-builder + +- job: + name: legacy-dsvm-nodepool-ubuntu-src + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-nodepool-ubuntu-src/run + post-run: playbooks/legacy/dsvm-nodepool-ubuntu-src/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/glean + - openstack-infra/nodepool + - openstack-infra/shade + - openstack/diskimage-builder + +- job: + name: legacy-dsvm-os-loganalyze + parent: legacy-dsvm-base + run: playbooks/legacy/dsvm-os-loganalyze/run + post-run: playbooks/legacy/dsvm-os-loganalyze/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/os-loganalyze + +- job: + name: legacy-ec2-api-functional-neutron-dsvm-full + parent: legacy-dsvm-base + run: playbooks/legacy/ec2-api-functional-neutron-dsvm-full/run + post-run: playbooks/legacy/ec2-api-functional-neutron-dsvm-full/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ec2-api + - openstack/neutron + - openstack/swift3 + +- job: + name: legacy-ec2-api-rally-dsvm-fakevirt + parent: legacy-dsvm-base + run: playbooks/legacy/ec2-api-rally-dsvm-fakevirt/run + post-run: playbooks/legacy/ec2-api-rally-dsvm-fakevirt/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ec2-api + - openstack/rally + +- job: + name: legacy-elastic-recheck-docs + parent: legacy-base + run: playbooks/legacy/elastic-recheck-docs/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-elastic-recheck-tox-queries + parent: legacy-base + run: playbooks/legacy/elastic-recheck-tox-queries/run + post-run: playbooks/legacy/elastic-recheck-tox-queries/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-freezer-api-pylint + parent: legacy-base + run: playbooks/legacy/freezer-api-pylint/run + post-run: playbooks/legacy/freezer-api-pylint/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-freezer-dr-pylint + parent: legacy-base + run: playbooks/legacy/freezer-dr-pylint/run + post-run: playbooks/legacy/freezer-dr-pylint/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-freezer-pylint + parent: legacy-base + run: playbooks/legacy/freezer-pylint/run + post-run: playbooks/legacy/freezer-pylint/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-freezer-web-ui-pylint + parent: legacy-base + run: playbooks/legacy/freezer-web-ui-pylint/run + post-run: playbooks/legacy/freezer-web-ui-pylint/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-fuel-astute-puppet-unit-3.8-centos-7 + parent: legacy-base + run: playbooks/legacy/fuel-astute-puppet-unit-3.8-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-fuel-ccp-validate + parent: legacy-base + run: playbooks/legacy/fuel-ccp-validate/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + required-projects: + - openstack/fuel-ccp + +- job: + name: legacy-fuel-devops-pylint + parent: legacy-base + run: playbooks/legacy/fuel-devops-pylint/run + post-run: playbooks/legacy/fuel-devops-pylint/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-fuel-devops-pylint-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/fuel-devops-pylint-ubuntu-trusty/run + post-run: playbooks/legacy/fuel-devops-pylint-ubuntu-trusty/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + nodeset: ubuntu-trusty + +- job: + name: legacy-fuel-library-puppet-lint + parent: legacy-base + run: playbooks/legacy/fuel-library-puppet-lint/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-fuel-library-puppet-unit-3.8-centos-7 + parent: legacy-base + run: playbooks/legacy/fuel-library-puppet-unit-3.8-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-fuel-library-puppet-unit-4.5-centos-7 + parent: legacy-base + run: playbooks/legacy/fuel-library-puppet-unit-4.5-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-fuel-nailgun-agent-puppet-unit-3.8-centos-7 + parent: legacy-base + run: playbooks/legacy/fuel-nailgun-agent-puppet-unit-3.8-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-fuel-octane-puppet-lint + parent: legacy-base + run: playbooks/legacy/fuel-octane-puppet-lint/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-fuel-qa-pylint + parent: legacy-base + run: playbooks/legacy/fuel-qa-pylint/run + post-run: playbooks/legacy/fuel-qa-pylint/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-fuel-qa-pylint-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/fuel-qa-pylint-ubuntu-trusty/run + post-run: playbooks/legacy/fuel-qa-pylint-ubuntu-trusty/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + nodeset: ubuntu-trusty + +- job: + name: legacy-fuel-ui-nodejs4-npm-run-lint + parent: legacy-base + run: playbooks/legacy/fuel-ui-nodejs4-npm-run-lint/run + post-run: playbooks/legacy/fuel-ui-nodejs4-npm-run-lint/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-functional-dsvm-astara + parent: legacy-dsvm-base + run: playbooks/legacy/functional-dsvm-astara/run + post-run: playbooks/legacy/functional-dsvm-astara/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ara + - openstack/astara + - openstack/astara-appliance + - openstack/astara-horizon + - openstack/astara-neutron + +- job: + name: legacy-functional-dsvm-astara-appliance-src + parent: legacy-dsvm-base + run: playbooks/legacy/functional-dsvm-astara-appliance-src/run + post-run: playbooks/legacy/functional-dsvm-astara-appliance-src/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ara + - openstack/astara + - openstack/astara-appliance + - openstack/astara-horizon + - openstack/astara-neutron + +- job: + name: legacy-functional-dsvm-magnum-api + parent: legacy-dsvm-base + run: playbooks/legacy/functional-dsvm-magnum-api/run + post-run: playbooks/legacy/functional-dsvm-magnum-api/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/magnum + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/python-magnumclient + - openstack/virtualbmc + +- job: + name: legacy-functional-dsvm-magnum-dcos + parent: legacy-dsvm-base + run: playbooks/legacy/functional-dsvm-magnum-dcos/run + post-run: playbooks/legacy/functional-dsvm-magnum-dcos/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/magnum + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/python-magnumclient + - openstack/virtualbmc + +- job: + name: legacy-functional-dsvm-magnum-k8s + parent: legacy-dsvm-base + run: playbooks/legacy/functional-dsvm-magnum-k8s/run + post-run: playbooks/legacy/functional-dsvm-magnum-k8s/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/magnum + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/python-magnumclient + - openstack/virtualbmc + +- job: + name: legacy-functional-dsvm-magnum-k8s-ironic + parent: legacy-dsvm-base + run: playbooks/legacy/functional-dsvm-magnum-k8s-ironic/run + post-run: playbooks/legacy/functional-dsvm-magnum-k8s-ironic/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/magnum + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/python-magnumclient + - openstack/virtualbmc + +- job: + name: legacy-functional-dsvm-magnum-k8s-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/functional-dsvm-magnum-k8s-multinode/run + post-run: playbooks/legacy/functional-dsvm-magnum-k8s-multinode/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/magnum + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/python-magnumclient + - openstack/virtualbmc + +- job: + name: legacy-functional-dsvm-magnum-mesos + parent: legacy-dsvm-base + run: playbooks/legacy/functional-dsvm-magnum-mesos/run + post-run: playbooks/legacy/functional-dsvm-magnum-mesos/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/magnum + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/python-magnumclient + - openstack/virtualbmc + +- job: + name: legacy-functional-dsvm-magnum-swarm + parent: legacy-dsvm-base + run: playbooks/legacy/functional-dsvm-magnum-swarm/run + post-run: playbooks/legacy/functional-dsvm-magnum-swarm/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/magnum + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/python-magnumclient + - openstack/virtualbmc + +- job: + name: legacy-functional-dsvm-magnum-swarm-ironic + parent: legacy-dsvm-base + run: playbooks/legacy/functional-dsvm-magnum-swarm-ironic/run + post-run: playbooks/legacy/functional-dsvm-magnum-swarm-ironic/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/magnum + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/python-magnumclient + - openstack/virtualbmc + +- job: + name: legacy-functional-dsvm-magnum-swarm-mode + parent: legacy-dsvm-base + run: playbooks/legacy/functional-dsvm-magnum-swarm-mode/run + post-run: playbooks/legacy/functional-dsvm-magnum-swarm-mode/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/magnum + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/python-magnumclient + - openstack/virtualbmc + +- job: + name: legacy-functional-dsvm-magnum-swarm-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/functional-dsvm-magnum-swarm-multinode/run + post-run: playbooks/legacy/functional-dsvm-magnum-swarm-multinode/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/magnum + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/python-magnumclient + - openstack/virtualbmc + +- job: + name: legacy-functional-neutron-dsvm-ec2api + parent: legacy-dsvm-base + run: playbooks/legacy/functional-neutron-dsvm-ec2api/run + post-run: playbooks/legacy/functional-neutron-dsvm-ec2api/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ec2-api + - openstack/neutron + +- job: + name: legacy-functional-neutron-dsvm-gceapi + parent: legacy-dsvm-base + run: playbooks/legacy/functional-neutron-dsvm-gceapi/run + post-run: playbooks/legacy/functional-neutron-dsvm-gceapi/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/gce-api + - openstack/neutron + +- job: + name: legacy-functional-nova-network-dsvm-ec2api + parent: legacy-dsvm-base + run: playbooks/legacy/functional-nova-network-dsvm-ec2api/run + post-run: playbooks/legacy/functional-nova-network-dsvm-ec2api/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ec2-api + - openstack/nova + +- job: + name: legacy-functional-nova-network-dsvm-gceapi + parent: legacy-dsvm-base + run: playbooks/legacy/functional-nova-network-dsvm-gceapi/run + post-run: playbooks/legacy/functional-nova-network-dsvm-gceapi/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/gce-api + - openstack/nova + +- job: + name: legacy-fuxi-dsvm-fullstack + parent: legacy-dsvm-base + run: playbooks/legacy/fuxi-dsvm-fullstack/run + post-run: playbooks/legacy/fuxi-dsvm-fullstack/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/fuxi + +- job: + name: legacy-fuxi-dsvm-py35-fullstack + parent: legacy-dsvm-base + run: playbooks/legacy/fuxi-dsvm-py35-fullstack/run + post-run: playbooks/legacy/fuxi-dsvm-py35-fullstack/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/fuxi + +- job: + name: legacy-gate-kolla-dsvm-build-centos-source-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/gate-kolla-dsvm-build-centos-source-centos-7/run + post-run: playbooks/legacy/gate-kolla-dsvm-build-centos-source-centos-7/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: centos-7 + +- job: + name: legacy-gate-kolla-dsvm-build-oraclelinux-source-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/gate-kolla-dsvm-build-oraclelinux-source-centos-7/run + post-run: playbooks/legacy/gate-kolla-dsvm-build-oraclelinux-source-centos-7/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: centos-7 + +- job: + name: legacy-gate-kolla-dsvm-build-ubuntu-source + parent: legacy-dsvm-base + run: playbooks/legacy/gate-kolla-dsvm-build-ubuntu-source/run + post-run: playbooks/legacy/gate-kolla-dsvm-build-ubuntu-source/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + +- job: + name: legacy-gate-placement-api-ref + parent: legacy-base + success-url: html/ + run: playbooks/legacy/gate-placement-api-ref/run + post-run: playbooks/legacy/gate-placement-api-ref/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-gate-training-labs-scripts + parent: legacy-base + run: playbooks/legacy/gate-training-labs-scripts/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-gearman-plugin-hpi-artifact + parent: publish-openstack-artifacts + run: playbooks/legacy/gearman-plugin-hpi-artifact/run + post-run: playbooks/legacy/gearman-plugin-hpi-artifact/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-gearman-plugin-jenkinsci-upload + parent: legacy-base + run: playbooks/legacy/gearman-plugin-jenkinsci-upload/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-gearman-plugin-maven-build-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/gearman-plugin-maven-build-ubuntu-trusty/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + nodeset: ubuntu-trusty + +- job: + name: legacy-gerrit-buck + parent: publish-openstack-artifacts + run: playbooks/legacy/gerrit-buck/run + post-run: playbooks/legacy/gerrit-buck/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + required-projects: + - openstack-infra/gerrit + +- job: + name: legacy-gerrit-package-buck + parent: publish-openstack-artifacts + run: playbooks/legacy/gerrit-package-buck/run + post-run: playbooks/legacy/gerrit-package-buck/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + required-projects: + - openstack-infra/gerrit + +- job: + name: legacy-gitdm + parent: legacy-base + run: playbooks/legacy/gitdm/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-glance-dsvm-grenade-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/glance-dsvm-grenade-multinode/run + post-run: playbooks/legacy/glance-dsvm-grenade-multinode/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/glance + +- job: + name: legacy-glance_store-dsvm-functional-cinder + parent: legacy-dsvm-base + run: playbooks/legacy/glance_store-dsvm-functional-cinder/run + post-run: playbooks/legacy/glance_store-dsvm-functional-cinder/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/cinder + - openstack/glance + - openstack/glance_store + +- job: + name: legacy-glance_store-dsvm-functional-filesystem + parent: legacy-dsvm-base + run: playbooks/legacy/glance_store-dsvm-functional-filesystem/run + post-run: playbooks/legacy/glance_store-dsvm-functional-filesystem/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/glance + - openstack/glance_store + +- job: + name: legacy-glance_store-dsvm-functional-swift + parent: legacy-dsvm-base + run: playbooks/legacy/glance_store-dsvm-functional-swift/run + post-run: playbooks/legacy/glance_store-dsvm-functional-swift/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/glance + - openstack/glance_store + - openstack/swift + +- job: + name: legacy-glanceclient-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/glanceclient-dsvm-functional/run + post-run: playbooks/legacy/glanceclient-dsvm-functional/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/glance + - openstack/python-glanceclient + +- job: + name: legacy-glanceclient-dsvm-functional-identity-v3-only + parent: legacy-dsvm-base + run: playbooks/legacy/glanceclient-dsvm-functional-identity-v3-only/run + post-run: playbooks/legacy/glanceclient-dsvm-functional-identity-v3-only/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/glance + - openstack/python-glanceclient + +- job: + name: legacy-glare-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/glare-dsvm/run + post-run: playbooks/legacy/glare-dsvm/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/glare + - openstack/python-glareclient + +- job: + name: legacy-golang-fmt + parent: legacy-base + run: playbooks/legacy/golang-fmt/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-golang-unit + parent: legacy-base + run: playbooks/legacy/golang-unit/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-governance-tox-validate + parent: legacy-base + run: playbooks/legacy/governance-tox-validate/run + post-run: playbooks/legacy/governance-tox-validate/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-grenade-dsvm-barbican + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-barbican/run + post-run: playbooks/legacy/grenade-dsvm-barbican/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/python-barbicanclient + +- job: + name: legacy-grenade-dsvm-ceilometer + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-ceilometer/run + post-run: playbooks/legacy/grenade-dsvm-ceilometer/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/ceilometer + +- job: + name: legacy-grenade-dsvm-cinder-mn-sub-bak + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/run + post-run: playbooks/legacy/grenade-dsvm-cinder-mn-sub-bak/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/cinder + +- job: + name: legacy-grenade-dsvm-cinder-mn-sub-volbak + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/run + post-run: playbooks/legacy/grenade-dsvm-cinder-mn-sub-volbak/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/cinder + +- job: + name: legacy-grenade-dsvm-cinder-mn-sub-volschbak + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/run + post-run: playbooks/legacy/grenade-dsvm-cinder-mn-sub-volschbak/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/cinder + +- job: + name: legacy-grenade-dsvm-designate-pdns4 + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-designate-pdns4/run + post-run: playbooks/legacy/grenade-dsvm-designate-pdns4/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/designate + - openstack/designate-dashboard + - openstack/designate-tempest-plugin + - openstack/python-designateclient + +- job: + name: legacy-grenade-dsvm-heat + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-heat/run + post-run: playbooks/legacy/grenade-dsvm-heat/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/heat + +- job: + name: legacy-grenade-dsvm-heat-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-heat-multinode/run + post-run: playbooks/legacy/grenade-dsvm-heat-multinode/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/heat + +- job: + name: legacy-grenade-dsvm-ironic + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-ironic/run + post-run: playbooks/legacy/grenade-dsvm-ironic/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/virtualbmc + +- job: + name: legacy-grenade-dsvm-ironic-inspector + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-ironic-inspector/run + post-run: playbooks/legacy/grenade-dsvm-ironic-inspector/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-inspector + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + - openstack/virtualbmc + +- job: + name: legacy-grenade-dsvm-ironic-multinode-multitenant + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-ironic-multinode-multitenant/run + post-run: playbooks/legacy/grenade-dsvm-ironic-multinode-multitenant/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/networking-generic-switch + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/virtualbmc + +- job: + name: legacy-grenade-dsvm-manila + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-manila/run + post-run: playbooks/legacy/grenade-dsvm-manila/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/manila + - openstack/python-manilaclient + +- job: + name: legacy-grenade-dsvm-mongodb-zaqar + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-mongodb-zaqar/run + post-run: playbooks/legacy/grenade-dsvm-mongodb-zaqar/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/python-zaqarclient + - openstack/zaqar + - openstack/zaqar-tempest-plugin + +- job: + name: legacy-grenade-dsvm-networking-midonet-ml2 + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-networking-midonet-ml2/run + post-run: playbooks/legacy/grenade-dsvm-networking-midonet-ml2/post + timeout: 9000 + vars: + BUILD_TIMEOUT: '9000000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/networking-midonet + +- job: + name: legacy-grenade-dsvm-networking-midonet-v2 + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-networking-midonet-v2/run + post-run: playbooks/legacy/grenade-dsvm-networking-midonet-v2/post + timeout: 9000 + vars: + BUILD_TIMEOUT: '9000000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/networking-midonet + +- job: + name: legacy-grenade-dsvm-networking-odl + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-networking-odl/run + post-run: playbooks/legacy/grenade-dsvm-networking-odl/post + timeout: 9000 + vars: + BUILD_TIMEOUT: '9000000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/networking-odl + +- job: + name: legacy-grenade-dsvm-networking-ovn + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-networking-ovn/run + post-run: playbooks/legacy/grenade-dsvm-networking-ovn/post + timeout: 9000 + vars: + BUILD_TIMEOUT: '9000000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/networking-ovn + +- job: + name: legacy-grenade-dsvm-neutron + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-neutron/run + post-run: playbooks/legacy/grenade-dsvm-neutron/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/neutron + +- job: + name: legacy-grenade-dsvm-neutron-dvr-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-neutron-dvr-multinode/run + post-run: playbooks/legacy/grenade-dsvm-neutron-dvr-multinode/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/neutron + +- job: + name: legacy-grenade-dsvm-neutron-forward + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-neutron-forward/run + post-run: playbooks/legacy/grenade-dsvm-neutron-forward/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/neutron + +- job: + name: legacy-grenade-dsvm-neutron-fwaas-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-neutron-fwaas-multinode/run + post-run: playbooks/legacy/grenade-dsvm-neutron-fwaas-multinode/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/neutron-fwaas + +- job: + name: legacy-grenade-dsvm-neutron-libs + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-neutron-libs/run + post-run: playbooks/legacy/grenade-dsvm-neutron-libs/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/keystoneauth + - openstack/neutron + - openstack/neutron-lib + - openstack/os-client-config + - openstack/python-cinderclient + - openstack/python-glanceclient + - openstack/python-ironicclient + - openstack/python-keystoneclient + - openstack/python-neutronclient + - openstack/python-novaclient + +- job: + name: legacy-grenade-dsvm-neutron-linuxbridge-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-neutron-linuxbridge-multinode/run + post-run: playbooks/legacy/grenade-dsvm-neutron-linuxbridge-multinode/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/neutron + +- job: + name: legacy-grenade-dsvm-neutron-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-neutron-multinode/run + post-run: playbooks/legacy/grenade-dsvm-neutron-multinode/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/neutron + +- job: + name: legacy-grenade-dsvm-neutron-multinode-live-migration + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-neutron-multinode-live-migration/run + post-run: playbooks/legacy/grenade-dsvm-neutron-multinode-live-migration/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/neutron + +- job: + name: legacy-grenade-dsvm-neutron-multinode-zero-downtime + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-neutron-multinode-zero-downtime/run + post-run: playbooks/legacy/grenade-dsvm-neutron-multinode-zero-downtime/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/neutron + +- job: + name: legacy-grenade-dsvm-neutron-nova-next + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-neutron-nova-next/run + post-run: playbooks/legacy/grenade-dsvm-neutron-nova-next/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/nova + +- job: + name: legacy-grenade-dsvm-redis-zaqar + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-redis-zaqar/run + post-run: playbooks/legacy/grenade-dsvm-redis-zaqar/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/python-zaqarclient + - openstack/zaqar + - openstack/zaqar-tempest-plugin + +- job: + name: legacy-grenade-dsvm-sahara + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-sahara/run + post-run: playbooks/legacy/grenade-dsvm-sahara/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/ara + - openstack/python-saharaclient + - openstack/sahara + +- job: + name: legacy-grenade-dsvm-trove + parent: legacy-dsvm-base + run: playbooks/legacy/grenade-dsvm-trove/run + post-run: playbooks/legacy/grenade-dsvm-trove/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-grenade-publish-docs + parent: legacy-base + run: playbooks/legacy/grenade-publish-docs/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-group-based-policy-dsvm-aim + parent: legacy-dsvm-base + run: playbooks/legacy/group-based-policy-dsvm-aim/run + post-run: playbooks/legacy/group-based-policy-dsvm-aim/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/group-based-policy + - openstack/group-based-policy-automation + - openstack/group-based-policy-ui + - openstack/python-group-based-policy-client + +- job: + name: legacy-group-based-policy-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/group-based-policy-dsvm-functional/run + post-run: playbooks/legacy/group-based-policy-dsvm-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/group-based-policy + - openstack/group-based-policy-automation + - openstack/group-based-policy-ui + - openstack/python-group-based-policy-client + +- job: + name: legacy-group-based-policy-dsvm-functional-ubuntu-trusty + parent: legacy-dsvm-base + run: playbooks/legacy/group-based-policy-dsvm-functional-ubuntu-trusty/run + post-run: playbooks/legacy/group-based-policy-dsvm-functional-ubuntu-trusty/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + nodeset: ubuntu-trusty + required-projects: + - openstack-infra/devstack-gate + - openstack/group-based-policy + - openstack/group-based-policy-automation + - openstack/group-based-policy-ui + - openstack/python-group-based-policy-client + +- job: + name: legacy-group-based-policy-dsvm-nfp + parent: legacy-dsvm-base + run: playbooks/legacy/group-based-policy-dsvm-nfp/run + post-run: playbooks/legacy/group-based-policy-dsvm-nfp/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/group-based-policy + - openstack/group-based-policy-automation + - openstack/group-based-policy-ui + - openstack/python-group-based-policy-client + +- job: + name: legacy-group-based-policy-dsvm-nfp-ubuntu-trusty + parent: legacy-dsvm-base + run: playbooks/legacy/group-based-policy-dsvm-nfp-ubuntu-trusty/run + post-run: playbooks/legacy/group-based-policy-dsvm-nfp-ubuntu-trusty/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + nodeset: ubuntu-trusty + required-projects: + - openstack-infra/devstack-gate + - openstack/group-based-policy + - openstack/group-based-policy-automation + - openstack/group-based-policy-ui + - openstack/python-group-based-policy-client + +- job: + name: legacy-group-based-policy-dsvm-rally + parent: legacy-dsvm-base + run: playbooks/legacy/group-based-policy-dsvm-rally/run + post-run: playbooks/legacy/group-based-policy-dsvm-rally/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/group-based-policy + - openstack/group-based-policy-automation + - openstack/group-based-policy-ui + - openstack/python-group-based-policy-client + - openstack/rally + +- job: + name: legacy-group-based-policy-dsvm-rally-ubuntu-trusty + parent: legacy-dsvm-base + run: playbooks/legacy/group-based-policy-dsvm-rally-ubuntu-trusty/run + post-run: playbooks/legacy/group-based-policy-dsvm-rally-ubuntu-trusty/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + nodeset: ubuntu-trusty + required-projects: + - openstack-infra/devstack-gate + - openstack/group-based-policy + - openstack/group-based-policy-automation + - openstack/group-based-policy-ui + - openstack/python-group-based-policy-client + - openstack/rally + +- job: + name: legacy-groups-release-branch + parent: legacy-base + run: playbooks/legacy/groups-release-branch/run + post-run: playbooks/legacy/groups-release-branch/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-groups-release-master + parent: legacy-base + run: playbooks/legacy/groups-release-master/run + post-run: playbooks/legacy/groups-release-master/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-groups-unittests + parent: legacy-base + run: playbooks/legacy/groups-unittests/run + post-run: playbooks/legacy/groups-unittests/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-hacking-integration-nova + parent: legacy-base + run: playbooks/legacy/hacking-integration-nova/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-heat-dsvm-functional-convg-mysql-lbaasv2 + parent: legacy-dsvm-base + run: playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2/run + post-run: playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/ceilometer + - openstack/devstack-plugin-amqp1 + - openstack/heat + - openstack/neutron + - openstack/neutron-lbaas + - openstack/oslo.messaging + - openstack/python-barbicanclient + - openstack/python-heatclient + - openstack/python-zaqarclient + - openstack/zaqar + +- job: + name: legacy-heat-dsvm-functional-convg-mysql-lbaasv2-amqp1 + parent: legacy-dsvm-base + run: playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-amqp1/run + post-run: playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-amqp1/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/ceilometer + - openstack/devstack-plugin-amqp1 + - openstack/heat + - openstack/neutron + - openstack/neutron-lbaas + - openstack/oslo.messaging + - openstack/python-barbicanclient + - openstack/python-heatclient + - openstack/python-zaqarclient + - openstack/zaqar + +- job: + name: legacy-heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only + parent: legacy-dsvm-base + run: playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only/run + post-run: playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-identity-v3-only/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/ceilometer + - openstack/devstack-plugin-amqp1 + - openstack/heat + - openstack/neutron + - openstack/neutron-lbaas + - openstack/oslo.messaging + - openstack/python-barbicanclient + - openstack/python-heatclient + - openstack/python-zaqarclient + - openstack/zaqar + +- job: + name: legacy-heat-dsvm-functional-convg-mysql-lbaasv2-non-apache + parent: legacy-dsvm-base + run: playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-non-apache/run + post-run: playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-non-apache/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/ceilometer + - openstack/devstack-plugin-amqp1 + - openstack/heat + - openstack/neutron + - openstack/neutron-lbaas + - openstack/oslo.messaging + - openstack/python-barbicanclient + - openstack/python-heatclient + - openstack/python-zaqarclient + - openstack/zaqar + +- job: + name: legacy-heat-dsvm-functional-convg-mysql-lbaasv2-py35 + parent: legacy-dsvm-base + run: playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-py35/run + post-run: playbooks/legacy/heat-dsvm-functional-convg-mysql-lbaasv2-py35/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/ceilometer + - openstack/devstack-plugin-amqp1 + - openstack/heat + - openstack/neutron + - openstack/neutron-lbaas + - openstack/oslo.messaging + - openstack/python-barbicanclient + - openstack/python-heatclient + - openstack/python-zaqarclient + - openstack/zaqar + +- job: + name: legacy-heat-dsvm-functional-orig-mysql-lbaasv2 + parent: legacy-dsvm-base + run: playbooks/legacy/heat-dsvm-functional-orig-mysql-lbaasv2/run + post-run: playbooks/legacy/heat-dsvm-functional-orig-mysql-lbaasv2/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/ceilometer + - openstack/devstack-plugin-amqp1 + - openstack/heat + - openstack/neutron + - openstack/neutron-lbaas + - openstack/oslo.messaging + - openstack/python-barbicanclient + - openstack/python-heatclient + - openstack/python-zaqarclient + - openstack/zaqar + +- job: + name: legacy-heat-templates-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/heat-templates-dsvm/run + post-run: playbooks/legacy/heat-templates-dsvm/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/heat + - openstack/heat-templates + +- job: + name: legacy-heat-translator-tox-py27-tp + parent: legacy-base + run: playbooks/legacy/heat-translator-tox-py27-tp/run + post-run: playbooks/legacy/heat-translator-tox-py27-tp/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-heatclient-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/heatclient-dsvm-functional/run + post-run: playbooks/legacy/heatclient-dsvm-functional/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/heat + - openstack/python-heatclient + +- job: + name: legacy-horizon-dsvm-tempest-plugin + parent: legacy-dsvm-base + run: playbooks/legacy/horizon-dsvm-tempest-plugin/run + post-run: playbooks/legacy/horizon-dsvm-tempest-plugin/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/horizon + - openstack/tempest + - openstack/tempest-horizon + +- job: + name: legacy-horizon-selenium-headless + parent: legacy-base + run: playbooks/legacy/horizon-selenium-headless/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-horizon-selenium-headless-legacy + parent: legacy-base + run: playbooks/legacy/horizon-selenium-headless-legacy/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-horizon-tox-py27dj110 + parent: legacy-base + run: playbooks/legacy/horizon-tox-py27dj110/run + post-run: playbooks/legacy/horizon-tox-py27dj110/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-horizon-tox-py27dj18 + parent: legacy-base + run: playbooks/legacy/horizon-tox-py27dj18/run + post-run: playbooks/legacy/horizon-tox-py27dj18/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-horizon-tox-py27dj19 + parent: legacy-base + run: playbooks/legacy/horizon-tox-py27dj19/run + post-run: playbooks/legacy/horizon-tox-py27dj19/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-i18n-tox-doc-docs + parent: legacy-base + run: playbooks/legacy/i18n-tox-doc-docs/run + post-run: playbooks/legacy/i18n-tox-doc-docs/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-infra-ansible + parent: legacy-base + run: playbooks/legacy/infra-ansible/run + post-run: playbooks/legacy/infra-ansible/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-infra-publications-publish + parent: legacy-base + run: playbooks/legacy/infra-publications-publish/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-infra-publications-publish-index + parent: legacy-base + run: playbooks/legacy/infra-publications-publish-index/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-infra-puppet-apply-3 + parent: legacy-base + run: playbooks/legacy/infra-puppet-apply-3/run + post-run: playbooks/legacy/infra-puppet-apply-3/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-infra-puppet-apply-3-centos-7 + parent: legacy-base + run: playbooks/legacy/infra-puppet-apply-3-centos-7/run + post-run: playbooks/legacy/infra-puppet-apply-3-centos-7/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + nodeset: centos-7 + +- job: + name: legacy-infra-puppet-apply-3-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/infra-puppet-apply-3-ubuntu-trusty/run + post-run: playbooks/legacy/infra-puppet-apply-3-ubuntu-trusty/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + nodeset: ubuntu-trusty + +- job: + name: legacy-infra-puppet-apply-4-centos-7 + parent: legacy-base + run: playbooks/legacy/infra-puppet-apply-4-centos-7/run + post-run: playbooks/legacy/infra-puppet-apply-4-centos-7/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + nodeset: centos-7 + +- job: + name: legacy-instack-undercloud-puppet-lint + parent: legacy-base + run: playbooks/legacy/instack-undercloud-puppet-lint/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-install-dsvm-default-kuryr-kubernetes + parent: legacy-dsvm-base + run: playbooks/legacy/install-dsvm-default-kuryr-kubernetes/run + post-run: playbooks/legacy/install-dsvm-default-kuryr-kubernetes/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/dragonflow + - openstack/kuryr + - openstack/kuryr-kubernetes + +- job: + name: legacy-install-dsvm-dragonflow-kuryr-kubernetes + parent: legacy-dsvm-base + run: playbooks/legacy/install-dsvm-dragonflow-kuryr-kubernetes/run + post-run: playbooks/legacy/install-dsvm-dragonflow-kuryr-kubernetes/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/dragonflow + - openstack/kuryr + - openstack/kuryr-kubernetes + +- job: + name: legacy-install-dsvm-kuryr-libnetwork + parent: legacy-dsvm-base + run: playbooks/legacy/install-dsvm-kuryr-libnetwork/run + post-run: playbooks/legacy/install-dsvm-kuryr-libnetwork/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/kuryr + - openstack/kuryr-libnetwork + +- job: + name: legacy-install-dsvm-kuryr-libnetwork-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/install-dsvm-kuryr-libnetwork-multinode/run + post-run: playbooks/legacy/install-dsvm-kuryr-libnetwork-multinode/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/kuryr + - openstack/kuryr-libnetwork + +- job: + name: legacy-install-dsvm-networking-ovn-kuryr + parent: legacy-dsvm-base + run: playbooks/legacy/install-dsvm-networking-ovn-kuryr/run + post-run: playbooks/legacy/install-dsvm-networking-ovn-kuryr/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/kuryr + - openstack/networking-ovn + +- job: + name: legacy-install-guide + parent: legacy-base + success-url: html/ + run: playbooks/legacy/install-guide/run + post-run: playbooks/legacy/install-guide/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-interop-tox-doc8 + parent: legacy-base + run: playbooks/legacy/interop-tox-doc8/run + post-run: playbooks/legacy/interop-tox-doc8/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-interop-tox-jsonlint + parent: legacy-base + run: playbooks/legacy/interop-tox-jsonlint/run + post-run: playbooks/legacy/interop-tox-jsonlint/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-interop-tox-jsonschema + parent: legacy-base + run: playbooks/legacy/interop-tox-jsonschema/run + post-run: playbooks/legacy/interop-tox-jsonschema/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-irc-meetings-tox-ical + parent: legacy-base + run: playbooks/legacy/irc-meetings-tox-ical/run + post-run: playbooks/legacy/irc-meetings-tox-ical/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-ironic-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/ironic-dsvm-functional/run + post-run: playbooks/legacy/ironic-dsvm-functional/post + timeout: 4800 + vars: + BUILD_TIMEOUT: '4800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-python-agent + +- job: + name: legacy-ironic-dsvm-standalone + parent: legacy-dsvm-base + run: playbooks/legacy/ironic-dsvm-standalone/run + post-run: playbooks/legacy/ironic-dsvm-standalone/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/python-ironicclient + +- job: + name: legacy-ironic-inspector-tox-func + parent: legacy-base + run: playbooks/legacy/ironic-inspector-tox-func/run + post-run: playbooks/legacy/ironic-inspector-tox-func/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-ironic-inspector-tox-func3 + parent: legacy-base + run: playbooks/legacy/ironic-inspector-tox-func3/run + post-run: playbooks/legacy/ironic-inspector-tox-func3/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-ironic-python-agent-buildimage-coreos + parent: publish-openstack-artifacts + run: playbooks/legacy/ironic-python-agent-buildimage-coreos/run + post-run: playbooks/legacy/ironic-python-agent-buildimage-coreos/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-ironic-python-agent-buildimage-tinyipa + parent: publish-openstack-artifacts + run: playbooks/legacy/ironic-python-agent-buildimage-tinyipa/run + post-run: playbooks/legacy/ironic-python-agent-buildimage-tinyipa/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-ironic-python-agent-tox-func + parent: legacy-base + run: playbooks/legacy/ironic-python-agent-tox-func/run + post-run: playbooks/legacy/ironic-python-agent-tox-func/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-ironic-staging-drivers-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/ironic-staging-drivers-dsvm/run + post-run: playbooks/legacy/ironic-staging-drivers-dsvm/post + timeout: 4800 + vars: + BUILD_TIMEOUT: '4800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-staging-drivers + +- job: + name: legacy-ironicclient-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/ironicclient-dsvm-functional/run + post-run: playbooks/legacy/ironicclient-dsvm-functional/post + timeout: 4800 + vars: + BUILD_TIMEOUT: '4800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/python-ironicclient + +- job: + name: legacy-its-storyboard-gerrit-plugin-stable-2.13 + parent: publish-openstack-artifacts + run: playbooks/legacy/its-storyboard-gerrit-plugin-stable-2.13/run + post-run: playbooks/legacy/its-storyboard-gerrit-plugin-stable-2.13/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-javamelody-gerrit-plugin-stable-2.13 + parent: publish-openstack-artifacts + run: playbooks/legacy/javamelody-gerrit-plugin-stable-2.13/run + post-run: playbooks/legacy/javamelody-gerrit-plugin-stable-2.13/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-js-generator-openstack-nodejs6-npm-docs + parent: legacy-base + run: playbooks/legacy/js-generator-openstack-nodejs6-npm-docs/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-js-openstack-lib-dsvm-nodejs4-npm-run-functional-test + parent: legacy-dsvm-base + run: playbooks/legacy/js-openstack-lib-dsvm-nodejs4-npm-run-functional-test/run + post-run: playbooks/legacy/js-openstack-lib-dsvm-nodejs4-npm-run-functional-test/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/js-openstack-lib + - openstack/openstack + +- job: + name: legacy-js-openstack-lib-dsvm-nodejs6-npm-run-functional-test + parent: legacy-dsvm-base + run: playbooks/legacy/js-openstack-lib-dsvm-nodejs6-npm-run-functional-test/run + post-run: playbooks/legacy/js-openstack-lib-dsvm-nodejs6-npm-run-functional-test/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/js-openstack-lib + - openstack/openstack + +- job: + name: legacy-js-openstack-lib-nodejs6-npm-sdk-docs + parent: legacy-base + run: playbooks/legacy/js-openstack-lib-nodejs6-npm-sdk-docs/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-k8s-cloud-provider-golang-dsvm-external + parent: legacy-dsvm-base + run: playbooks/legacy/k8s-cloud-provider-golang-dsvm-external/run + post-run: playbooks/legacy/k8s-cloud-provider-golang-dsvm-external/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/k8s-cloud-provider + +- job: + name: legacy-k8s-cloud-provider-golang-dsvm-local + parent: legacy-dsvm-base + run: playbooks/legacy/k8s-cloud-provider-golang-dsvm-local/run + post-run: playbooks/legacy/k8s-cloud-provider-golang-dsvm-local/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/k8s-cloud-provider + +- job: + name: legacy-k8s-docker-suite-app-murano-releasenotes + parent: legacy-base + success-url: html/ + run: playbooks/legacy/k8s-docker-suite-app-murano-releasenotes/run + post-run: playbooks/legacy/k8s-docker-suite-app-murano-releasenotes/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-karbor-dsvm-fullstack + parent: legacy-dsvm-base + run: playbooks/legacy/karbor-dsvm-fullstack/run + post-run: playbooks/legacy/karbor-dsvm-fullstack/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/karbor + - openstack/python-karborclient + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-keystone-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/keystone-dsvm-functional/run + post-run: playbooks/legacy/keystone-dsvm-functional/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/keystone + - openstack/keystone-tempest-plugin + +- job: + name: legacy-keystone-dsvm-functional-v3-only + parent: legacy-dsvm-base + run: playbooks/legacy/keystone-dsvm-functional-v3-only/run + post-run: playbooks/legacy/keystone-dsvm-functional-v3-only/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/keystone + - openstack/keystone-tempest-plugin + +- job: + name: legacy-keystone-dsvm-grenade-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/keystone-dsvm-grenade-multinode/run + post-run: playbooks/legacy/keystone-dsvm-grenade-multinode/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/keystone + +- job: + name: legacy-keystone-dsvm-py35-functional-v3-only + parent: legacy-dsvm-base + run: playbooks/legacy/keystone-dsvm-py35-functional-v3-only/run + post-run: playbooks/legacy/keystone-dsvm-py35-functional-v3-only/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/keystone + - openstack/keystone-tempest-plugin + +- job: + name: legacy-keystone-tox-patch_cover + parent: legacy-base + run: playbooks/legacy/keystone-tox-patch_cover/run + post-run: playbooks/legacy/keystone-tox-patch_cover/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-keystoneclient-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/keystoneclient-dsvm-functional/run + post-run: playbooks/legacy/keystoneclient-dsvm-functional/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/keystone + - openstack/python-keystoneclient + +- job: + name: legacy-kingbird-dsvm-multiregion + parent: legacy-dsvm-base + run: playbooks/legacy/kingbird-dsvm-multiregion/run + post-run: playbooks/legacy/kingbird-dsvm-multiregion/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/kingbird + +- job: + name: legacy-kolla-ansible-dsvm-deploy-centos-binary-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-deploy-centos-binary-centos-7/run + post-run: playbooks/legacy/kolla-ansible-dsvm-deploy-centos-binary-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + +- job: + name: legacy-kolla-ansible-dsvm-deploy-centos-source-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-deploy-centos-source-centos-7/run + post-run: playbooks/legacy/kolla-ansible-dsvm-deploy-centos-source-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + +- job: + name: legacy-kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node/run + post-run: playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-binary-centos-7-2-node/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7-2-node + +- job: + name: legacy-kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node/run + post-run: playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-centos-source-centos-7-2-node/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7-2-node + +- job: + name: legacy-kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node/run + post-run: playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-binary-centos-7-2-node/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7-2-node + +- job: + name: legacy-kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node/run + post-run: playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-oraclelinux-source-centos-7-2-node/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7-2-node + +- job: + name: legacy-kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node/run + post-run: playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-binary-ubuntu-xenial-2-node/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: ubuntu-xenial-2-node + +- job: + name: legacy-kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node/run + post-run: playbooks/legacy/kolla-ansible-dsvm-deploy-ceph-ubuntu-source-ubuntu-xenial-2-node/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: ubuntu-xenial-2-node + +- job: + name: legacy-kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node/run + post-run: playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-binary-centos-7-2-node/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7-2-node + +- job: + name: legacy-kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node/run + post-run: playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-centos-source-centos-7-2-node/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7-2-node + +- job: + name: legacy-kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node/run + post-run: playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-binary-centos-7-2-node/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7-2-node + +- job: + name: legacy-kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node/run + post-run: playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-oraclelinux-source-centos-7-2-node/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7-2-node + +- job: + name: legacy-kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node/run + post-run: playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-binary-ubuntu-xenial-2-node/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: ubuntu-xenial-2-node + +- job: + name: legacy-kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run + post-run: playbooks/legacy/kolla-ansible-dsvm-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: ubuntu-xenial-2-node + +- job: + name: legacy-kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7/run + post-run: playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-binary-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + +- job: + name: legacy-kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7/run + post-run: playbooks/legacy/kolla-ansible-dsvm-deploy-oraclelinux-source-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + +- job: + name: legacy-kolla-ansible-dsvm-deploy-ubuntu-binary + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-binary/run + post-run: playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-binary/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + +- job: + name: legacy-kolla-ansible-dsvm-deploy-ubuntu-source + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-source/run + post-run: playbooks/legacy/kolla-ansible-dsvm-deploy-ubuntu-source/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + +- job: + name: legacy-kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node/run + post-run: playbooks/legacy/kolla-ansible-dsvm-upgrade-multinode-centos-source-centos-7-2-node/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7-2-node + +- job: + name: legacy-kolla-dsvm-build-centos-binary-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-dsvm-build-centos-binary-centos-7/run + post-run: playbooks/legacy/kolla-dsvm-build-centos-binary-centos-7/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: centos-7 + +- job: + name: legacy-kolla-dsvm-build-centos-source-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-dsvm-build-centos-source-centos-7/run + post-run: playbooks/legacy/kolla-dsvm-build-centos-source-centos-7/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: centos-7 + +- job: + name: legacy-kolla-dsvm-build-oraclelinux-binary-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-dsvm-build-oraclelinux-binary-centos-7/run + post-run: playbooks/legacy/kolla-dsvm-build-oraclelinux-binary-centos-7/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: centos-7 + +- job: + name: legacy-kolla-dsvm-build-oraclelinux-source-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-dsvm-build-oraclelinux-source-centos-7/run + post-run: playbooks/legacy/kolla-dsvm-build-oraclelinux-source-centos-7/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: centos-7 + +- job: + name: legacy-kolla-dsvm-build-ubuntu-binary + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-dsvm-build-ubuntu-binary/run + post-run: playbooks/legacy/kolla-dsvm-build-ubuntu-binary/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + +- job: + name: legacy-kolla-dsvm-build-ubuntu-source + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-dsvm-build-ubuntu-source/run + post-run: playbooks/legacy/kolla-dsvm-build-ubuntu-source/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + +- job: + name: legacy-kolla-dsvm-deploy-centos-binary-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-dsvm-deploy-centos-binary-centos-7/run + post-run: playbooks/legacy/kolla-dsvm-deploy-centos-binary-centos-7/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: centos-7 + +- job: + name: legacy-kolla-dsvm-deploy-centos-source-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-dsvm-deploy-centos-source-centos-7/run + post-run: playbooks/legacy/kolla-dsvm-deploy-centos-source-centos-7/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: centos-7 + +- job: + name: legacy-kolla-dsvm-deploy-oraclelinux-binary-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-dsvm-deploy-oraclelinux-binary-centos-7/run + post-run: playbooks/legacy/kolla-dsvm-deploy-oraclelinux-binary-centos-7/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: centos-7 + +- job: + name: legacy-kolla-dsvm-deploy-oraclelinux-source-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-dsvm-deploy-oraclelinux-source-centos-7/run + post-run: playbooks/legacy/kolla-dsvm-deploy-oraclelinux-source-centos-7/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: centos-7 + +- job: + name: legacy-kolla-dsvm-deploy-ubuntu-binary + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-dsvm-deploy-ubuntu-binary/run + post-run: playbooks/legacy/kolla-dsvm-deploy-ubuntu-binary/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + +- job: + name: legacy-kolla-dsvm-deploy-ubuntu-source + parent: legacy-dsvm-base + run: playbooks/legacy/kolla-dsvm-deploy-ubuntu-source/run + post-run: playbooks/legacy/kolla-dsvm-deploy-ubuntu-source/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + +- job: + name: legacy-kolla-kubernetes-deploy-centos-binary-2-ceph + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-centos-binary-2-ceph-multi + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-multi/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-multi/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-centos-binary-2-ceph-reboot + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-reboot/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-ceph-reboot/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-centos-binary-2-external-ovs + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-external-ovs/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-external-ovs/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-compute-kit/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-entrypoint/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-centos-binary-2-helm-operator + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-operator/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-helm-operator/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-centos-binary-2-iscsi + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-iscsi/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-2-iscsi/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-centos-binary-3-ceph-multi + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-3-ceph-multi/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-3-ceph-multi/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-centos-binary-4-ceph-multi + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-ceph-multi/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-ceph-multi/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-compute-kit/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-4-helm-entrypoint/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-centos-binary-t-ceph-multi + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-t-ceph-multi/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-centos-binary-t-ceph-multi/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-centos-source-4-helm-compute-kit + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-compute-kit/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-compute-kit/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-centos-source-4-helm-entrypoint + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-entrypoint/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-helm-entrypoint/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-centos-source-4-ironic + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-ironic/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-ironic/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-centos-source-4-microchart-ansible + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-microchart-ansible/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-centos-source-4-microchart-ansible/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-centos-source-t-iscsi + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-centos-source-t-iscsi/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-centos-source-t-iscsi/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-ubuntu-binary-2-ceph + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-ceph/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-ceph/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-ubuntu-source-4-ironic + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-ironic/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-ironic/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-4-microchart-ansible/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-deploy-ubuntu-source-t-iscsi + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-t-iscsi/run + post-run: playbooks/legacy/kolla-kubernetes-deploy-ubuntu-source-t-iscsi/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-upgrade-centos-binary-2-ceph + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-2-ceph/run + post-run: playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-2-ceph/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kolla-kubernetes-upgrade-centos-binary-3-ceph + parent: legacy-base + run: playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-3-ceph/run + post-run: playbooks/legacy/kolla-kubernetes-upgrade-centos-binary-3-ceph/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-kuryr-libnetwork-dsvm-fullstack + parent: legacy-dsvm-base + run: playbooks/legacy/kuryr-libnetwork-dsvm-fullstack/run + post-run: playbooks/legacy/kuryr-libnetwork-dsvm-fullstack/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/kuryr + - openstack/kuryr-libnetwork + +- job: + name: legacy-kuryr-libnetwork-dsvm-fullstack-py35 + parent: legacy-dsvm-base + run: playbooks/legacy/kuryr-libnetwork-dsvm-fullstack-py35/run + post-run: playbooks/legacy/kuryr-libnetwork-dsvm-fullstack-py35/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/kuryr + - openstack/kuryr-libnetwork + +- job: + name: legacy-kuryr-libnetwork-dsvm-rally + parent: legacy-dsvm-base + run: playbooks/legacy/kuryr-libnetwork-dsvm-rally/run + post-run: playbooks/legacy/kuryr-libnetwork-dsvm-rally/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/kuryr + - openstack/kuryr-libnetwork + - openstack/rally + +- job: + name: legacy-kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack + parent: legacy-dsvm-base + run: playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack/run + post-run: playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-fullstack/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/kuryr + - openstack/kuryr-libnetwork + +- job: + name: legacy-kuryr-libnetwork-kuryr_lib-src-dsvm-rally + parent: legacy-dsvm-base + run: playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-rally/run + post-run: playbooks/legacy/kuryr-libnetwork-kuryr_lib-src-dsvm-rally/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/kuryr + - openstack/kuryr-libnetwork + - openstack/rally + +- job: + name: legacy-labs-ig-cluster-kvm-ubuntu + parent: legacy-base + run: playbooks/legacy/labs-ig-cluster-kvm-ubuntu/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-labs-ig-cluster-vbox-ubuntu + parent: legacy-base + run: playbooks/legacy/labs-ig-cluster-vbox-ubuntu/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-laravel-openstackid-release-branch + parent: legacy-base + run: playbooks/legacy/laravel-openstackid-release-branch/run + post-run: playbooks/legacy/laravel-openstackid-release-branch/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-laravel-openstackid-release-master + parent: legacy-base + run: playbooks/legacy/laravel-openstackid-release-master/run + post-run: playbooks/legacy/laravel-openstackid-release-master/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-laravel-openstackid-unittests + parent: legacy-base + run: playbooks/legacy/laravel-openstackid-unittests/run + post-run: playbooks/legacy/laravel-openstackid-unittests/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-libec-pyeclib-unit + parent: legacy-base + run: playbooks/legacy/libec-pyeclib-unit/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + required-projects: + - openstack/liberasurecode + - openstack/pyeclib + +- job: + name: legacy-libec-pyeclib-unit-centos-7 + parent: legacy-base + run: playbooks/legacy/libec-pyeclib-unit-centos-7/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + nodeset: centos-7 + required-projects: + - openstack/liberasurecode + - openstack/pyeclib + +- job: + name: legacy-liberasurecode-unit + parent: legacy-base + run: playbooks/legacy/liberasurecode-unit/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-liberasurecode-unit-centos-7 + parent: legacy-base + run: playbooks/legacy/liberasurecode-unit-centos-7/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + nodeset: centos-7 + +- job: + name: legacy-loci + parent: legacy-base + run: playbooks/legacy/loci/run + post-run: playbooks/legacy/loci/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-logstash-filters + parent: legacy-base + run: playbooks/legacy/logstash-filters/run + post-run: playbooks/legacy/logstash-filters/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-logstash-filters-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/logstash-filters-ubuntu-trusty/run + post-run: playbooks/legacy/logstash-filters-ubuntu-trusty/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + nodeset: ubuntu-trusty + +- job: + name: legacy-magnum-tox-migration + parent: legacy-base + run: playbooks/legacy/magnum-tox-migration/run + post-run: playbooks/legacy/magnum-tox-migration/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-manila-buildimage-docker + parent: legacy-base + run: playbooks/legacy/manila-buildimage-docker/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-manila-buildimage-generic + parent: legacy-base + run: playbooks/legacy/manila-buildimage-generic/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-manila-publishimage-generic + parent: publish-openstack-artifacts + run: playbooks/legacy/manila-publishimage-generic/run + post-run: playbooks/legacy/manila-publishimage-generic/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-manila-pylint + parent: legacy-base + run: playbooks/legacy/manila-pylint/run + post-run: playbooks/legacy/manila-pylint/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-manila-tempest-dsvm-container-scenario-custom-image + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/run + post-run: playbooks/legacy/manila-tempest-dsvm-container-scenario-custom-image/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/manila-image-elements + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-tempest-dsvm-generic-no-share-servers + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/run + post-run: playbooks/legacy/manila-tempest-dsvm-generic-no-share-servers/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/manila-image-elements + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-tempest-dsvm-generic-scenario-custom-image + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/run + post-run: playbooks/legacy/manila-tempest-dsvm-generic-scenario-custom-image/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/manila-image-elements + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-tempest-dsvm-glusterfs-native + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-glusterfs-native/run + post-run: playbooks/legacy/manila-tempest-dsvm-glusterfs-native/post + timeout: 4800 + vars: + BUILD_TIMEOUT: '4800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-glusterfs + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-tempest-dsvm-glusterfs-native-heketi + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/run + post-run: playbooks/legacy/manila-tempest-dsvm-glusterfs-native-heketi/post + timeout: 4800 + vars: + BUILD_TIMEOUT: '4800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-glusterfs + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-tempest-dsvm-glusterfs-nfs + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/run + post-run: playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs/post + timeout: 4800 + vars: + BUILD_TIMEOUT: '4800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-glusterfs + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-tempest-dsvm-glusterfs-nfs-heketi + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/run + post-run: playbooks/legacy/manila-tempest-dsvm-glusterfs-nfs-heketi/post + timeout: 4800 + vars: + BUILD_TIMEOUT: '4800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-glusterfs + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-tempest-dsvm-hdfs + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-hdfs/run + post-run: playbooks/legacy/manila-tempest-dsvm-hdfs/post + timeout: 4800 + vars: + BUILD_TIMEOUT: '4800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-hdfs + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-tempest-dsvm-mysql-generic + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-mysql-generic/run + post-run: playbooks/legacy/manila-tempest-dsvm-mysql-generic/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/manila-image-elements + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-tempest-dsvm-postgres-container + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-postgres-container/run + post-run: playbooks/legacy/manila-tempest-dsvm-postgres-container/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/manila-image-elements + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-tempest-dsvm-postgres-generic-singlebackend + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/run + post-run: playbooks/legacy/manila-tempest-dsvm-postgres-generic-singlebackend/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/manila-image-elements + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-tempest-dsvm-postgres-zfsonlinux + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/run + post-run: playbooks/legacy/manila-tempest-dsvm-postgres-zfsonlinux/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/manila-image-elements + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-tempest-dsvm-scenario + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-dsvm-scenario/run + post-run: playbooks/legacy/manila-tempest-dsvm-scenario/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/manila-image-elements + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-tempest-minimal-dsvm-cephfs-native-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/run + post-run: playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-native-centos-7/post + timeout: 4800 + vars: + BUILD_TIMEOUT: '4800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-ceph + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-tempest-minimal-dsvm-cephfs-nfs-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/run + post-run: playbooks/legacy/manila-tempest-minimal-dsvm-cephfs-nfs-centos-7/post + timeout: 4800 + vars: + BUILD_TIMEOUT: '4800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-ceph + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-tempest-minimal-dsvm-dummy + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-minimal-dsvm-dummy/run + post-run: playbooks/legacy/manila-tempest-minimal-dsvm-dummy/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-tempest-minimal-dsvm-lvm-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/run + post-run: playbooks/legacy/manila-tempest-minimal-dsvm-lvm-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/run + post-run: playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-native-centos-7/post + timeout: 4800 + vars: + BUILD_TIMEOUT: '4800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-ceph + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/run + post-run: playbooks/legacy/manila-tempest-minimal-py35-dsvm-cephfs-nfs-centos-7/post + timeout: 4800 + vars: + BUILD_TIMEOUT: '4800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-ceph + - openstack/manila + - openstack/python-manilaclient + - openstack/tempest + +- job: + name: legacy-manila-test-image-build + parent: legacy-base + run: playbooks/legacy/manila-test-image-build/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-manila-tox-genconfig + parent: legacy-base + run: playbooks/legacy/manila-tox-genconfig/run + post-run: playbooks/legacy/manila-tox-genconfig/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-manila-ui-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/manila-ui-dsvm/run + post-run: playbooks/legacy/manila-ui-dsvm/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/manila-ui + - openstack/python-manilaclient + +- job: + name: legacy-manila-ui-tox-py27dj110 + parent: legacy-base + run: playbooks/legacy/manila-ui-tox-py27dj110/run + post-run: playbooks/legacy/manila-ui-tox-py27dj110/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-manila-ui-tox-py27dj19 + parent: legacy-base + run: playbooks/legacy/manila-ui-tox-py27dj19/run + post-run: playbooks/legacy/manila-ui-tox-py27dj19/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-manilaclient-dsvm-neutron-functional + parent: legacy-dsvm-base + run: playbooks/legacy/manilaclient-dsvm-neutron-functional/run + post-run: playbooks/legacy/manilaclient-dsvm-neutron-functional/post + timeout: 4800 + vars: + BUILD_TIMEOUT: '4800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/neutron + - openstack/python-manilaclient + +- job: + name: legacy-merlin-js-release-branch + parent: legacy-base + run: playbooks/legacy/merlin-js-release-branch/run + post-run: playbooks/legacy/merlin-js-release-branch/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-merlin-js-release-master + parent: legacy-base + run: playbooks/legacy/merlin-js-release-master/run + post-run: playbooks/legacy/merlin-js-release-master/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-mistral-devstack-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/mistral-devstack-dsvm/run + post-run: playbooks/legacy/mistral-devstack-dsvm/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/heat + - openstack/mistral + - openstack/mistral-dashboard + - openstack/python-mistralclient + +- job: + name: legacy-mistral-devstack-dsvm-kombu + parent: legacy-dsvm-base + run: playbooks/legacy/mistral-devstack-dsvm-kombu/run + post-run: playbooks/legacy/mistral-devstack-dsvm-kombu/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/heat + - openstack/mistral + - openstack/mistral-dashboard + - openstack/python-mistralclient + +- job: + name: legacy-mistral-devstack-dsvm-non-apache + parent: legacy-dsvm-base + run: playbooks/legacy/mistral-devstack-dsvm-non-apache/run + post-run: playbooks/legacy/mistral-devstack-dsvm-non-apache/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/heat + - openstack/mistral + - openstack/mistral-dashboard + - openstack/python-mistralclient + +- job: + name: legacy-mistral-docker-buildimage + parent: publish-openstack-artifacts + run: playbooks/legacy/mistral-docker-buildimage/run + post-run: playbooks/legacy/mistral-docker-buildimage/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-mistral-ha + parent: legacy-base + run: playbooks/legacy/mistral-ha/run + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + +- job: + name: legacy-mistral-tox-unit-mysql + parent: legacy-base + run: playbooks/legacy/mistral-tox-unit-mysql/run + post-run: playbooks/legacy/mistral-tox-unit-mysql/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-mistral-tox-unit-postgresql + parent: legacy-base + run: playbooks/legacy/mistral-tox-unit-postgresql/run + post-run: playbooks/legacy/mistral-tox-unit-postgresql/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-mixmatch-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/mixmatch-dsvm-functional/run + post-run: playbooks/legacy/mixmatch-dsvm-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/mixmatch + +- job: + name: legacy-mogan-dsvm-tempest-plugin + parent: legacy-dsvm-base + run: playbooks/legacy/mogan-dsvm-tempest-plugin/run + post-run: playbooks/legacy/mogan-dsvm-tempest-plugin/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/mogan + - openstack/python-ironicclient + - openstack/python-moganclient + - openstack/tempest + +- job: + name: legacy-mogan-tox-functional + parent: legacy-base + run: playbooks/legacy/mogan-tox-functional/run + post-run: playbooks/legacy/mogan-tox-functional/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-monasca-api-localrepo-upload + parent: publish-openstack-artifacts + run: playbooks/legacy/monasca-api-localrepo-upload/run + post-run: playbooks/legacy/monasca-api-localrepo-upload/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-monasca-api-maven-build + parent: legacy-base + run: playbooks/legacy/monasca-api-maven-build/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-monasca-common-localrepo-upload + parent: publish-openstack-artifacts + run: playbooks/legacy/monasca-common-localrepo-upload/run + post-run: playbooks/legacy/monasca-common-localrepo-upload/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-monasca-common-maven-build + parent: legacy-base + run: playbooks/legacy/monasca-common-maven-build/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-monasca-persister-localrepo-upload + parent: publish-openstack-artifacts + run: playbooks/legacy/monasca-persister-localrepo-upload/run + post-run: playbooks/legacy/monasca-persister-localrepo-upload/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-monasca-persister-maven-build + parent: legacy-base + run: playbooks/legacy/monasca-persister-maven-build/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-monasca-thresh-localrepo-upload + parent: publish-openstack-artifacts + run: playbooks/legacy/monasca-thresh-localrepo-upload/run + post-run: playbooks/legacy/monasca-thresh-localrepo-upload/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-monasca-thresh-maven-build + parent: legacy-base + run: playbooks/legacy/monasca-thresh-maven-build/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-monitorstack-releasenotes + parent: legacy-base + success-url: html/ + run: playbooks/legacy/monitorstack-releasenotes/run + post-run: playbooks/legacy/monitorstack-releasenotes/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-murano-congress-devstack-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/murano-congress-devstack-dsvm/run + post-run: playbooks/legacy/murano-congress-devstack-dsvm/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/congress + - openstack/congress-dashboard + - openstack/heat + - openstack/mistral + - openstack/mistral-dashboard + - openstack/murano + - openstack/murano-dashboard + - openstack/python-congressclient + - openstack/python-heatclient + - openstack/python-mistralclient + - openstack/python-muranoclient + +- job: + name: legacy-murano-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/murano-dsvm-functional/run + post-run: playbooks/legacy/murano-dsvm-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/heat + - openstack/murano + - openstack/murano-dashboard + - openstack/python-heatclient + - openstack/python-muranoclient + +- job: + name: legacy-murano-firstapp-docs + parent: legacy-base + run: playbooks/legacy/murano-firstapp-docs/run + post-run: playbooks/legacy/murano-firstapp-docs/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-muranoclient-dsvm-functional-mysql-backend + parent: legacy-dsvm-base + run: playbooks/legacy/muranoclient-dsvm-functional-mysql-backend/run + post-run: playbooks/legacy/muranoclient-dsvm-functional-mysql-backend/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/heat + - openstack/murano + - openstack/murano-dashboard + - openstack/python-heatclient + - openstack/python-muranoclient + +- job: + name: legacy-networking-bagpipe-dsvm-fullstack + parent: legacy-dsvm-base + run: playbooks/legacy/networking-bagpipe-dsvm-fullstack/run + post-run: playbooks/legacy/networking-bagpipe-dsvm-fullstack/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-bagpipe + - openstack/networking-bgpvpn + +- job: + name: legacy-networking-bgpvpn-bagpipe-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-functional/run + post-run: playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-bagpipe + - openstack/networking-bgpvpn + +- job: + name: legacy-networking-bgpvpn-bagpipe-dsvm-install + parent: legacy-dsvm-base + run: playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-install/run + post-run: playbooks/legacy/networking-bgpvpn-bagpipe-dsvm-install/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-bagpipe + - openstack/networking-bgpvpn + +- job: + name: legacy-networking-bgpvpn-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/networking-bgpvpn-dsvm-functional/run + post-run: playbooks/legacy/networking-bgpvpn-dsvm-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-bgpvpn + +- job: + name: legacy-networking-bgpvpn-dsvm-install + parent: legacy-dsvm-base + run: playbooks/legacy/networking-bgpvpn-dsvm-install/run + post-run: playbooks/legacy/networking-bgpvpn-dsvm-install/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-bgpvpn + +- job: + name: legacy-networking-cisco-tox-master + parent: legacy-base + run: playbooks/legacy/networking-cisco-tox-master/run + post-run: playbooks/legacy/networking-cisco-tox-master/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-networking-cisco-tox-newton + parent: legacy-base + run: playbooks/legacy/networking-cisco-tox-newton/run + post-run: playbooks/legacy/networking-cisco-tox-newton/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-networking-cisco-tox-ocata + parent: legacy-base + run: playbooks/legacy/networking-cisco-tox-ocata/run + post-run: playbooks/legacy/networking-cisco-tox-ocata/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-networking-cisco-tox-pike + parent: legacy-base + run: playbooks/legacy/networking-cisco-tox-pike/run + post-run: playbooks/legacy/networking-cisco-tox-pike/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-networking-generic-switch-dsvm-tempest + parent: legacy-dsvm-base + run: playbooks/legacy/networking-generic-switch-dsvm-tempest/run + post-run: playbooks/legacy/networking-generic-switch-dsvm-tempest/post + timeout: 4800 + vars: + BUILD_TIMEOUT: '4800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-generic-switch + - openstack/tempest + +- job: + name: legacy-networking-l2gw-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/networking-l2gw-dsvm-functional/run + post-run: playbooks/legacy/networking-l2gw-dsvm-functional/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-l2gw + +- job: + name: legacy-networking-l2gw-dsvm-tempest-api-dummy-driver + parent: legacy-dsvm-base + run: playbooks/legacy/networking-l2gw-dsvm-tempest-api-dummy-driver/run + post-run: playbooks/legacy/networking-l2gw-dsvm-tempest-api-dummy-driver/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-l2gw + - openstack/tempest + +- job: + name: legacy-networking-midonet-rally-dsvm-ml2 + parent: legacy-dsvm-base + run: playbooks/legacy/networking-midonet-rally-dsvm-ml2/run + post-run: playbooks/legacy/networking-midonet-rally-dsvm-ml2/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-midonet + - openstack/rally + +- job: + name: legacy-networking-midonet-rally-dsvm-v2 + parent: legacy-dsvm-base + run: playbooks/legacy/networking-midonet-rally-dsvm-v2/run + post-run: playbooks/legacy/networking-midonet-rally-dsvm-v2/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-midonet + - openstack/rally + +- job: + name: legacy-networking-ovn-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/networking-ovn-dsvm-functional/run + post-run: playbooks/legacy/networking-ovn-dsvm-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-ovn + +- job: + name: legacy-networking-ovn-dsvm-functional-py35 + parent: legacy-dsvm-base + run: playbooks/legacy/networking-ovn-dsvm-functional-py35/run + post-run: playbooks/legacy/networking-ovn-dsvm-functional-py35/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-ovn + +- job: + name: legacy-networking-sfc-functional-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/networking-sfc-functional-dsvm/run + post-run: playbooks/legacy/networking-sfc-functional-dsvm/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-sfc + +- job: + name: legacy-networking-vpp-smoke + parent: legacy-base + run: playbooks/legacy/networking-vpp-smoke/run + post-run: playbooks/legacy/networking-vpp-smoke/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-vpp + +- job: + name: legacy-neutron-dsvm-api + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-dsvm-api/run + post-run: playbooks/legacy/neutron-dsvm-api/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + +- job: + name: legacy-neutron-dsvm-api-pecan + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-dsvm-api-pecan/run + post-run: playbooks/legacy/neutron-dsvm-api-pecan/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + +- job: + name: legacy-neutron-dsvm-fullstack + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-dsvm-fullstack/run + post-run: playbooks/legacy/neutron-dsvm-fullstack/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + +- job: + name: legacy-neutron-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-dsvm-functional/run + post-run: playbooks/legacy/neutron-dsvm-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + +- job: + name: legacy-neutron-dsvm-tempest-vpnaas + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-dsvm-tempest-vpnaas/run + post-run: playbooks/legacy/neutron-dsvm-tempest-vpnaas/post + timeout: 3900 + vars: + BUILD_TIMEOUT: '3900000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-neutron-dynamic-routing-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-dynamic-routing-dsvm-functional/run + post-run: playbooks/legacy/neutron-dynamic-routing-dsvm-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/neutron-dynamic-routing + +- job: + name: legacy-neutron-dynamic-routing-dsvm-tempest-api + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-api/run + post-run: playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-api/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/neutron-dynamic-routing + - openstack/tempest + +- job: + name: legacy-neutron-dynamic-routing-dsvm-tempest-scenario-basic + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-basic/run + post-run: playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-basic/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/neutron-dynamic-routing + - openstack/tempest + +- job: + name: legacy-neutron-dynamic-routing-dsvm-tempest-scenario-ipv4 + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv4/run + post-run: playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv4/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/neutron-dynamic-routing + - openstack/tempest + +- job: + name: legacy-neutron-dynamic-routing-dsvm-tempest-scenario-ipv6 + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv6/run + post-run: playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-scenario-ipv6/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/neutron-dynamic-routing + - openstack/tempest + +- job: + name: legacy-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4 + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/run + post-run: playbooks/legacy/neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/neutron-dynamic-routing + - openstack/tempest + +- job: + name: legacy-neutron-fwaas-dsvm-fullstack + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-fwaas-dsvm-fullstack/run + post-run: playbooks/legacy/neutron-fwaas-dsvm-fullstack/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/neutron-fwaas + +- job: + name: legacy-neutron-fwaas-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-fwaas-dsvm-functional/run + post-run: playbooks/legacy/neutron-fwaas-dsvm-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/neutron-fwaas + +- job: + name: legacy-neutron-fwaas-v1-dsvm-tempest + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-fwaas-v1-dsvm-tempest/run + post-run: playbooks/legacy/neutron-fwaas-v1-dsvm-tempest/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/neutron-fwaas + - openstack/tempest + +- job: + name: legacy-neutron-fwaas-v1-dsvm-tempest-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-fwaas-v1-dsvm-tempest-multinode/run + post-run: playbooks/legacy/neutron-fwaas-v1-dsvm-tempest-multinode/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/neutron-fwaas + - openstack/tempest + +- job: + name: legacy-neutron-fwaas-v2-dsvm-tempest + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-fwaas-v2-dsvm-tempest/run + post-run: playbooks/legacy/neutron-fwaas-v2-dsvm-tempest/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/neutron-fwaas + - openstack/tempest + +- job: + name: legacy-neutron-fwaas-v2-dsvm-tempest-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-fwaas-v2-dsvm-tempest-multinode/run + post-run: playbooks/legacy/neutron-fwaas-v2-dsvm-tempest-multinode/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/neutron-fwaas + - openstack/tempest + +- job: + name: legacy-neutron-lbaas-dashboard-nodejs4-npm-run-lint + parent: legacy-base + run: playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-lint/run + post-run: playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-lint/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-neutron-lbaas-dashboard-nodejs4-npm-run-test + parent: legacy-base + run: playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-test/run + post-run: playbooks/legacy/neutron-lbaas-dashboard-nodejs4-npm-run-test/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-neutron-lbaasv2-dsvm-api + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-lbaasv2-dsvm-api/run + post-run: playbooks/legacy/neutron-lbaasv2-dsvm-api/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/diskimage-builder + - openstack/neutron + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/tripleo-image-elements + +- job: + name: legacy-neutron-lbaasv2-dsvm-api-namespace + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-lbaasv2-dsvm-api-namespace/run + post-run: playbooks/legacy/neutron-lbaasv2-dsvm-api-namespace/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/diskimage-builder + - openstack/neutron + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/tripleo-image-elements + +- job: + name: legacy-neutron-lbaasv2-dsvm-healthmonitor + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-lbaasv2-dsvm-healthmonitor/run + post-run: playbooks/legacy/neutron-lbaasv2-dsvm-healthmonitor/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/diskimage-builder + - openstack/neutron + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/tripleo-image-elements + +- job: + name: legacy-neutron-lbaasv2-dsvm-listener + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-lbaasv2-dsvm-listener/run + post-run: playbooks/legacy/neutron-lbaasv2-dsvm-listener/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/diskimage-builder + - openstack/neutron + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/tripleo-image-elements + +- job: + name: legacy-neutron-lbaasv2-dsvm-loadbalancer + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-lbaasv2-dsvm-loadbalancer/run + post-run: playbooks/legacy/neutron-lbaasv2-dsvm-loadbalancer/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/diskimage-builder + - openstack/neutron + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/tripleo-image-elements + +- job: + name: legacy-neutron-lbaasv2-dsvm-member + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-lbaasv2-dsvm-member/run + post-run: playbooks/legacy/neutron-lbaasv2-dsvm-member/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/diskimage-builder + - openstack/neutron + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/tripleo-image-elements + +- job: + name: legacy-neutron-lbaasv2-dsvm-minimal + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-lbaasv2-dsvm-minimal/run + post-run: playbooks/legacy/neutron-lbaasv2-dsvm-minimal/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/diskimage-builder + - openstack/neutron + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/tripleo-image-elements + +- job: + name: legacy-neutron-lbaasv2-dsvm-pool + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-lbaasv2-dsvm-pool/run + post-run: playbooks/legacy/neutron-lbaasv2-dsvm-pool/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/diskimage-builder + - openstack/neutron + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/tripleo-image-elements + +- job: + name: legacy-neutron-lbaasv2-dsvm-py3x-api + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api/run + post-run: playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/diskimage-builder + - openstack/neutron + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/tripleo-image-elements + +- job: + name: legacy-neutron-lbaasv2-dsvm-py3x-api-namespace + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api-namespace/run + post-run: playbooks/legacy/neutron-lbaasv2-dsvm-py3x-api-namespace/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/diskimage-builder + - openstack/neutron + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/tripleo-image-elements + +- job: + name: legacy-neutron-lbaasv2-dsvm-py3x-scenario + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario/run + post-run: playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/diskimage-builder + - openstack/neutron + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/tripleo-image-elements + +- job: + name: legacy-neutron-lbaasv2-dsvm-py3x-scenario-namespace + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario-namespace/run + post-run: playbooks/legacy/neutron-lbaasv2-dsvm-py3x-scenario-namespace/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/diskimage-builder + - openstack/neutron + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/tripleo-image-elements + +- job: + name: legacy-neutron-lbaasv2-dsvm-scenario + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-lbaasv2-dsvm-scenario/run + post-run: playbooks/legacy/neutron-lbaasv2-dsvm-scenario/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/diskimage-builder + - openstack/neutron + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/tripleo-image-elements + +- job: + name: legacy-neutron-lbaasv2-dsvm-scenario-namespace + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-lbaasv2-dsvm-scenario-namespace/run + post-run: playbooks/legacy/neutron-lbaasv2-dsvm-scenario-namespace/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/diskimage-builder + - openstack/neutron + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/tripleo-image-elements + +- job: + name: legacy-neutron-vpnaas-dashboard-releasenotes + parent: legacy-base + success-url: html/ + run: playbooks/legacy/neutron-vpnaas-dashboard-releasenotes/run + post-run: playbooks/legacy/neutron-vpnaas-dashboard-releasenotes/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-neutron-vpnaas-dsvm-functional-sswan + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-vpnaas-dsvm-functional-sswan/run + post-run: playbooks/legacy/neutron-vpnaas-dsvm-functional-sswan/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/neutron-vpnaas + +- job: + name: legacy-neutron-vpnaas-dsvm-rally + parent: legacy-dsvm-base + run: playbooks/legacy/neutron-vpnaas-dsvm-rally/run + post-run: playbooks/legacy/neutron-vpnaas-dsvm-rally/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/neutron-vpnaas + - openstack/rally + +- job: + name: legacy-neutron-vpnaas-releasenotes + parent: legacy-base + success-url: html/ + run: playbooks/legacy/neutron-vpnaas-releasenotes/run + post-run: playbooks/legacy/neutron-vpnaas-releasenotes/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-neutronclient-test-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/neutronclient-test-dsvm-functional/run + post-run: playbooks/legacy/neutronclient-test-dsvm-functional/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/python-neutronclient + +- job: + name: legacy-neutronclient-test-dsvm-functional-adv-svcs + parent: legacy-dsvm-base + run: playbooks/legacy/neutronclient-test-dsvm-functional-adv-svcs/run + post-run: playbooks/legacy/neutronclient-test-dsvm-functional-adv-svcs/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/python-neutronclient + +- job: + name: legacy-nodejs4-npm-run-lint + parent: legacy-base + run: playbooks/legacy/nodejs4-npm-run-lint/run + post-run: playbooks/legacy/nodejs4-npm-run-lint/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-nodejs4-npm-run-test + parent: legacy-base + run: playbooks/legacy/nodejs4-npm-run-test/run + post-run: playbooks/legacy/nodejs4-npm-run-test/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-nodejs6-npm-run-lint + parent: legacy-base + run: playbooks/legacy/nodejs6-npm-run-lint/run + post-run: playbooks/legacy/nodejs6-npm-run-lint/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-nodejs6-npm-run-test + parent: legacy-base + run: playbooks/legacy/nodejs6-npm-run-test/run + post-run: playbooks/legacy/nodejs6-npm-run-test/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-nova-api-ref-src + parent: legacy-base + success-url: html/ + run: playbooks/legacy/nova-api-ref-src/run + post-run: playbooks/legacy/nova-api-ref-src/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + required-projects: + - openstack/nova + +- job: + name: legacy-nova-dpm-tox-functional + parent: legacy-base + run: playbooks/legacy/nova-dpm-tox-functional/run + post-run: playbooks/legacy/nova-dpm-tox-functional/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-nova-dpm-tox-functional-py35 + parent: legacy-base + run: playbooks/legacy/nova-dpm-tox-functional-py35/run + post-run: playbooks/legacy/nova-dpm-tox-functional-py35/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-nova-tox-functional + parent: legacy-base + run: playbooks/legacy/nova-tox-functional/run + post-run: playbooks/legacy/nova-tox-functional/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-nova-tox-functional-py35 + parent: legacy-base + run: playbooks/legacy/nova-tox-functional-py35/run + post-run: playbooks/legacy/nova-tox-functional-py35/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-novaclient-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/novaclient-dsvm-functional/run + post-run: playbooks/legacy/novaclient-dsvm-functional/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/nova + - openstack/python-novaclient + +- job: + name: legacy-novaclient-dsvm-functional-identity-v3-only + parent: legacy-dsvm-base + run: playbooks/legacy/novaclient-dsvm-functional-identity-v3-only/run + post-run: playbooks/legacy/novaclient-dsvm-functional-identity-v3-only/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/nova + - openstack/python-novaclient + +- job: + name: legacy-novaclient-dsvm-functional-neutron + parent: legacy-dsvm-base + run: playbooks/legacy/novaclient-dsvm-functional-neutron/run + post-run: playbooks/legacy/novaclient-dsvm-functional-neutron/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/nova + - openstack/python-novaclient + +- job: + name: legacy-npm-upload + parent: legacy-base + run: playbooks/legacy/npm-upload/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-oaktree-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/oaktree-dsvm-functional/run + post-run: playbooks/legacy/oaktree-dsvm-functional/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/shade + - openstack/oaktree + - openstack/oaktreemodel + +- job: + name: legacy-oaktreemodel-distcheck + parent: legacy-base + run: playbooks/legacy/oaktreemodel-distcheck/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-octavia-dashboard-nodejs4-npm-run-lint + parent: legacy-base + run: playbooks/legacy/octavia-dashboard-nodejs4-npm-run-lint/run + post-run: playbooks/legacy/octavia-dashboard-nodejs4-npm-run-lint/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-octavia-dashboard-nodejs4-npm-run-test + parent: legacy-base + run: playbooks/legacy/octavia-dashboard-nodejs4-npm-run-test/run + post-run: playbooks/legacy/octavia-dashboard-nodejs4-npm-run-test/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-octavia-tox-functional + parent: legacy-base + run: playbooks/legacy/octavia-tox-functional/run + post-run: playbooks/legacy/octavia-tox-functional/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-octavia-tox-functional-py35 + parent: legacy-base + run: playbooks/legacy/octavia-tox-functional-py35/run + post-run: playbooks/legacy/octavia-tox-functional-py35/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-octavia-v1-dsvm-py3x-scenario + parent: legacy-dsvm-base + run: playbooks/legacy/octavia-v1-dsvm-py3x-scenario/run + post-run: playbooks/legacy/octavia-v1-dsvm-py3x-scenario/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/diskimage-builder + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/python-octaviaclient + - openstack/tripleo-image-elements + +- job: + name: legacy-octavia-v1-dsvm-py3x-scenario-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/octavia-v1-dsvm-py3x-scenario-multinode/run + post-run: playbooks/legacy/octavia-v1-dsvm-py3x-scenario-multinode/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/diskimage-builder + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/python-octaviaclient + - openstack/tripleo-image-elements + +- job: + name: legacy-octavia-v1-dsvm-scenario + parent: legacy-dsvm-base + run: playbooks/legacy/octavia-v1-dsvm-scenario/run + post-run: playbooks/legacy/octavia-v1-dsvm-scenario/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/diskimage-builder + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/python-octaviaclient + - openstack/tripleo-image-elements + +- job: + name: legacy-octavia-v1-dsvm-scenario-kvm-centos.7 + parent: legacy-dsvm-base + run: playbooks/legacy/octavia-v1-dsvm-scenario-kvm-centos.7/run + post-run: playbooks/legacy/octavia-v1-dsvm-scenario-kvm-centos.7/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/diskimage-builder + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/python-octaviaclient + - openstack/tripleo-image-elements + +- job: + name: legacy-octavia-v1-dsvm-scenario-lxd + parent: legacy-dsvm-base + run: playbooks/legacy/octavia-v1-dsvm-scenario-lxd/run + post-run: playbooks/legacy/octavia-v1-dsvm-scenario-lxd/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/diskimage-builder + - openstack/neutron-lbaas + - openstack/nova-lxd + - openstack/octavia + - openstack/python-barbicanclient + - openstack/python-octaviaclient + - openstack/tripleo-image-elements + +- job: + name: legacy-octavia-v1-dsvm-scenario-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/octavia-v1-dsvm-scenario-multinode/run + post-run: playbooks/legacy/octavia-v1-dsvm-scenario-multinode/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/diskimage-builder + - openstack/neutron-lbaas + - openstack/octavia + - openstack/python-barbicanclient + - openstack/python-octaviaclient + - openstack/tripleo-image-elements + +- job: + name: legacy-omni-tests + parent: legacy-base + run: playbooks/legacy/omni-tests/run + post-run: playbooks/legacy/omni-tests/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack/cinder + - openstack/neutron + - openstack/nova + - openstack/omni + +- job: + name: legacy-ooi-tox-functional + parent: legacy-base + run: playbooks/legacy/ooi-tox-functional/run + post-run: playbooks/legacy/ooi-tox-functional/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-openstack-ansible-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-announce-release/run + post-run: playbooks/legacy/openstack-ansible-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-galera_server-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-galera_server-announce-release/run + post-run: playbooks/legacy/openstack-ansible-galera_server-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-galera_server-ansible-ssl + parent: legacy-base + run: playbooks/legacy/openstack-ansible-galera_server-ansible-ssl/run + post-run: playbooks/legacy/openstack-ansible-galera_server-ansible-ssl/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-galera_server + +- job: + name: legacy-openstack-ansible-galera_server-ansible-ssl-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-galera_server-ansible-ssl-centos-7/run + post-run: playbooks/legacy/openstack-ansible-galera_server-ansible-ssl-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-galera_server + +- job: + name: legacy-openstack-ansible-galera_server-ansible-upgrade + parent: legacy-base + run: playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade/run + post-run: playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-galera_server + +- job: + name: legacy-openstack-ansible-galera_server-ansible-upgrade-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade-centos-7/run + post-run: playbooks/legacy/openstack-ansible-galera_server-ansible-upgrade-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-galera_server + +- job: + name: legacy-openstack-ansible-haproxy_server-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-haproxy_server-announce-release/run + post-run: playbooks/legacy/openstack-ansible-haproxy_server-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-memcached_server-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-memcached_server-announce-release/run + post-run: playbooks/legacy/openstack-ansible-memcached_server-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-openstack-ansible-aio + parent: legacy-base + run: playbooks/legacy/openstack-ansible-openstack-ansible-aio/run + post-run: playbooks/legacy/openstack-ansible-openstack-ansible-aio/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + +- job: + name: legacy-openstack-ansible-openstack-ansible-aio-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-openstack-ansible-aio-centos-7/run + post-run: playbooks/legacy/openstack-ansible-openstack-ansible-aio-centos-7/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: centos-7 + +- job: + name: legacy-openstack-ansible-openstack-ansible-aio-opensuse-423 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-openstack-ansible-aio-opensuse-423/run + post-run: playbooks/legacy/openstack-ansible-openstack-ansible-aio-opensuse-423/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: opensuse-423 + +- job: + name: legacy-openstack-ansible-openstack-ansible-aio-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/openstack-ansible-openstack-ansible-aio-ubuntu-trusty/run + post-run: playbooks/legacy/openstack-ansible-openstack-ansible-aio-ubuntu-trusty/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: ubuntu-trusty + +- job: + name: legacy-openstack-ansible-openstack-ansible-ceph + parent: legacy-base + run: playbooks/legacy/openstack-ansible-openstack-ansible-ceph/run + post-run: playbooks/legacy/openstack-ansible-openstack-ansible-ceph/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + +- job: + name: legacy-openstack-ansible-openstack-ansible-ceph-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-openstack-ansible-ceph-centos-7/run + post-run: playbooks/legacy/openstack-ansible-openstack-ansible-ceph-centos-7/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: centos-7 + +- job: + name: legacy-openstack-ansible-openstack-ansible-ceph-opensuse-423 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-openstack-ansible-ceph-opensuse-423/run + post-run: playbooks/legacy/openstack-ansible-openstack-ansible-ceph-opensuse-423/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: opensuse-423 + +- job: + name: legacy-openstack-ansible-openstack-ansible-octavia + parent: legacy-base + run: playbooks/legacy/openstack-ansible-openstack-ansible-octavia/run + post-run: playbooks/legacy/openstack-ansible-openstack-ansible-octavia/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + +- job: + name: legacy-openstack-ansible-os_almanach-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_almanach-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_almanach-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_aodh-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_aodh-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_aodh-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_barbican-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_barbican-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_barbican-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_barbican-ansible-func-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_barbican-ansible-func-centos-7/run + post-run: playbooks/legacy/openstack-ansible-os_barbican-ansible-func-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/barbican + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_barbican + +- job: + name: legacy-openstack-ansible-os_barbican-ansible-func-opensuse-423 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_barbican-ansible-func-opensuse-423/run + post-run: playbooks/legacy/openstack-ansible-os_barbican-ansible-func-opensuse-423/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: opensuse-423 + required-projects: + - openstack/barbican + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_barbican + +- job: + name: legacy-openstack-ansible-os_ceilometer-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_ceilometer-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_ceilometer-ansible-gnocchi + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi/run + post-run: playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/ceilometer + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_ceilometer + +- job: + name: legacy-openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7/run + post-run: playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/ceilometer + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_ceilometer + +- job: + name: legacy-openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty/run + post-run: playbooks/legacy/openstack-ansible-os_ceilometer-ansible-gnocchi-ubuntu-trusty/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: ubuntu-trusty + required-projects: + - openstack/ceilometer + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_ceilometer + +- job: + name: legacy-openstack-ansible-os_cinder-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_cinder-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_cinder-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_cinder-ansible-upgrade + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_cinder-ansible-upgrade/run + post-run: playbooks/legacy/openstack-ansible-os_cinder-ansible-upgrade/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/cinder + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_cinder + +- job: + name: legacy-openstack-ansible-os_cloudkitty-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_cloudkitty-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_cloudkitty-ansible-func-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-centos-7/run + post-run: playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/cloudkitty + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_cloudkitty + +- job: + name: legacy-openstack-ansible-os_cloudkitty-ansible-func-opensuse-423 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-opensuse-423/run + post-run: playbooks/legacy/openstack-ansible-os_cloudkitty-ansible-func-opensuse-423/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: opensuse-423 + required-projects: + - openstack/cloudkitty + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_cloudkitty + +- job: + name: legacy-openstack-ansible-os_designate-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_designate-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_designate-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_freezer-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_freezer-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_freezer-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_glance-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_glance-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_glance-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_glance-ansible-upgrade + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade/run + post-run: playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/glance + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_glance + +- job: + name: legacy-openstack-ansible-os_glance-ansible-upgrade-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade-centos-7/run + post-run: playbooks/legacy/openstack-ansible-os_glance-ansible-upgrade-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/glance + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_glance + +- job: + name: legacy-openstack-ansible-os_gnocchi-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_gnocchi-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_heat-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_heat-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_heat-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_horizon-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_horizon-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_horizon-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_ironic-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_ironic-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_ironic-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_ironic-ansible-func-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_ironic-ansible-func-centos-7/run + post-run: playbooks/legacy/openstack-ansible-os_ironic-ansible-func-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/ironic + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_ironic + +- job: + name: legacy-openstack-ansible-os_ironic-ansible-func-opensuse-423 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_ironic-ansible-func-opensuse-423/run + post-run: playbooks/legacy/openstack-ansible-os_ironic-ansible-func-opensuse-423/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: opensuse-423 + required-projects: + - openstack/ironic + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_ironic + +- job: + name: legacy-openstack-ansible-os_keystone-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_keystone-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_keystone-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_keystone-ansible-upgrade + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade/run + post-run: playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/keystone + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_keystone + +- job: + name: legacy-openstack-ansible-os_keystone-ansible-upgrade-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade-centos-7/run + post-run: playbooks/legacy/openstack-ansible-os_keystone-ansible-upgrade-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/keystone + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_keystone + +- job: + name: legacy-openstack-ansible-os_keystone-ansible-uw_apache + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache/run + post-run: playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/keystone + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_keystone + +- job: + name: legacy-openstack-ansible-os_keystone-ansible-uw_apache-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-centos-7/run + post-run: playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/keystone + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_keystone + +- job: + name: legacy-openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty/run + post-run: playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_apache-ubuntu-trusty/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: ubuntu-trusty + required-projects: + - openstack/keystone + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_keystone + +- job: + name: legacy-openstack-ansible-os_keystone-ansible-uw_nginx + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx/run + post-run: playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/keystone + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_keystone + +- job: + name: legacy-openstack-ansible-os_keystone-ansible-uw_nginx-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-centos-7/run + post-run: playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/keystone + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_keystone + +- job: + name: legacy-openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty/run + post-run: playbooks/legacy/openstack-ansible-os_keystone-ansible-uw_nginx-ubuntu-trusty/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: ubuntu-trusty + required-projects: + - openstack/keystone + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_keystone + +- job: + name: legacy-openstack-ansible-os_magnum-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_magnum-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_magnum-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_magnum-ansible-func-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_magnum-ansible-func-centos-7/run + post-run: playbooks/legacy/openstack-ansible-os_magnum-ansible-func-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/magnum + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_magnum + +- job: + name: legacy-openstack-ansible-os_magnum-ansible-func-opensuse-423 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_magnum-ansible-func-opensuse-423/run + post-run: playbooks/legacy/openstack-ansible-os_magnum-ansible-func-opensuse-423/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: opensuse-423 + required-projects: + - openstack/magnum + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_magnum + +- job: + name: legacy-openstack-ansible-os_monasca-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_monasca-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_monasca-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_monasca-ansible-func-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_monasca-ansible-func-centos-7/run + post-run: playbooks/legacy/openstack-ansible-os_monasca-ansible-func-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_monasca + +- job: + name: legacy-openstack-ansible-os_monasca-ansible-func-opensuse-423 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_monasca-ansible-func-opensuse-423/run + post-run: playbooks/legacy/openstack-ansible-os_monasca-ansible-func-opensuse-423/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: opensuse-423 + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_monasca + +- job: + name: legacy-openstack-ansible-os_neutron-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_neutron-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_neutron-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_neutron-ansible-calico + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_neutron-ansible-calico/run + post-run: playbooks/legacy/openstack-ansible-os_neutron-ansible-calico/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/neutron + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_neutron + +- job: + name: legacy-openstack-ansible-os_neutron-ansible-dragonflow + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_neutron-ansible-dragonflow/run + post-run: playbooks/legacy/openstack-ansible-os_neutron-ansible-dragonflow/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/dragonflow + - openstack/neutron + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_neutron + +- job: + name: legacy-openstack-ansible-os_neutron-ansible-func_ovs + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs/run + post-run: playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/neutron + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_neutron + +- job: + name: legacy-openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty/run + post-run: playbooks/legacy/openstack-ansible-os_neutron-ansible-func_ovs-ubuntu-trusty/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: ubuntu-trusty + required-projects: + - openstack/neutron + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_neutron + +- job: + name: legacy-openstack-ansible-os_neutron-ansible-upgrade + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_neutron-ansible-upgrade/run + post-run: playbooks/legacy/openstack-ansible-os_neutron-ansible-upgrade/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/neutron + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_neutron + +- job: + name: legacy-openstack-ansible-os_nova-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_nova-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_nova-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_nova-ansible-func_lxd + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd/run + post-run: playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/nova + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_nova + +- job: + name: legacy-openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty/run + post-run: playbooks/legacy/openstack-ansible-os_nova-ansible-func_lxd-ubuntu-trusty/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: ubuntu-trusty + required-projects: + - openstack/nova + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_nova + +- job: + name: legacy-openstack-ansible-os_nova-ansible-upgrade + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_nova-ansible-upgrade/run + post-run: playbooks/legacy/openstack-ansible-os_nova-ansible-upgrade/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/nova + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_nova + +- job: + name: legacy-openstack-ansible-os_rally-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_rally-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_rally-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_rally-ansible-func-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_rally-ansible-func-centos-7/run + post-run: playbooks/legacy/openstack-ansible-os_rally-ansible-func-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_rally + - openstack/rally + +- job: + name: legacy-openstack-ansible-os_rally-ansible-func-opensuse-423 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_rally-ansible-func-opensuse-423/run + post-run: playbooks/legacy/openstack-ansible-os_rally-ansible-func-opensuse-423/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: opensuse-423 + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_rally + - openstack/rally + +- job: + name: legacy-openstack-ansible-os_sahara-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_sahara-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_sahara-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_sahara-ansible-func-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_sahara-ansible-func-centos-7/run + post-run: playbooks/legacy/openstack-ansible-os_sahara-ansible-func-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/ara + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_sahara + - openstack/sahara + +- job: + name: legacy-openstack-ansible-os_sahara-ansible-func-opensuse-423 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_sahara-ansible-func-opensuse-423/run + post-run: playbooks/legacy/openstack-ansible-os_sahara-ansible-func-opensuse-423/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: opensuse-423 + required-projects: + - openstack/ara + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_sahara + - openstack/sahara + +- job: + name: legacy-openstack-ansible-os_swift-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_swift-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_swift-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_swift-ansible-func_pypy + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy/run + post-run: playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_swift + - openstack/swift + +- job: + name: legacy-openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty/run + post-run: playbooks/legacy/openstack-ansible-os_swift-ansible-func_pypy-ubuntu-trusty/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: ubuntu-trusty + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_swift + - openstack/swift + +- job: + name: legacy-openstack-ansible-os_swift-ansible-multi_reg + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg/run + post-run: playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_swift + - openstack/swift + +- job: + name: legacy-openstack-ansible-os_swift-ansible-multi_reg-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-centos-7/run + post-run: playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_swift + - openstack/swift + +- job: + name: legacy-openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty/run + post-run: playbooks/legacy/openstack-ansible-os_swift-ansible-multi_reg-ubuntu-trusty/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: ubuntu-trusty + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_swift + - openstack/swift + +- job: + name: legacy-openstack-ansible-os_swift-ansible-upgrade + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade/run + post-run: playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_swift + - openstack/swift + +- job: + name: legacy-openstack-ansible-os_swift-ansible-upgrade-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade-centos-7/run + post-run: playbooks/legacy/openstack-ansible-os_swift-ansible-upgrade-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_swift + - openstack/swift + +- job: + name: legacy-openstack-ansible-os_trove-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_trove-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_trove-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_trove-ansible-func-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_trove-ansible-func-centos-7/run + post-run: playbooks/legacy/openstack-ansible-os_trove-ansible-func-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_trove + - openstack/trove + +- job: + name: legacy-openstack-ansible-os_trove-ansible-func-opensuse-423 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_trove-ansible-func-opensuse-423/run + post-run: playbooks/legacy/openstack-ansible-os_trove-ansible-func-opensuse-423/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: opensuse-423 + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_trove + - openstack/trove + +- job: + name: legacy-openstack-ansible-os_watcher-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_watcher-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_watcher-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_watcher-ansible-func-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_watcher-ansible-func-centos-7/run + post-run: playbooks/legacy/openstack-ansible-os_watcher-ansible-func-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_watcher + - openstack/watcher + +- job: + name: legacy-openstack-ansible-os_watcher-ansible-func-opensuse-423 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_watcher-ansible-func-opensuse-423/run + post-run: playbooks/legacy/openstack-ansible-os_watcher-ansible-func-opensuse-423/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: opensuse-423 + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_watcher + - openstack/watcher + +- job: + name: legacy-openstack-ansible-os_zaqar-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_zaqar-announce-release/run + post-run: playbooks/legacy/openstack-ansible-os_zaqar-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-os_zaqar-ansible-func-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-centos-7/run + post-run: playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_zaqar + - openstack/zaqar + +- job: + name: legacy-openstack-ansible-os_zaqar-ansible-func-opensuse-423 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-opensuse-423/run + post-run: playbooks/legacy/openstack-ansible-os_zaqar-ansible-func-opensuse-423/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: opensuse-423 + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-os_zaqar + - openstack/zaqar + +- job: + name: legacy-openstack-ansible-pip_lock_down-ansible-func-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-pip_lock_down-ansible-func-centos-7/run + post-run: playbooks/legacy/openstack-ansible-pip_lock_down-ansible-func-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-pip_lock_down + +- job: + name: legacy-openstack-ansible-plugins-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-plugins-announce-release/run + post-run: playbooks/legacy/openstack-ansible-plugins-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-plugins-ansible-func_py3 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-plugins-ansible-func_py3/run + post-run: playbooks/legacy/openstack-ansible-plugins-ansible-func_py3/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-plugins + +- job: + name: legacy-openstack-ansible-plugins-ansible-func_py3-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-ansible-plugins-ansible-func_py3-centos-7/run + post-run: playbooks/legacy/openstack-ansible-plugins-ansible-func_py3-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/openstack-ansible + - openstack/openstack-ansible-plugins + +- job: + name: legacy-openstack-ansible-rabbitmq_server-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/run + post-run: playbooks/legacy/openstack-ansible-rabbitmq_server-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-ansible-rsyslog_server-announce-release + parent: legacy-base + run: playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/run + post-run: playbooks/legacy/openstack-ansible-rsyslog_server-announce-release/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-api-ref + parent: legacy-base + run: playbooks/legacy/openstack-api-ref/run + post-run: playbooks/legacy/openstack-api-ref/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-api-ref-publish-lang + parent: legacy-base + run: playbooks/legacy/openstack-api-ref-publish-lang/run + post-run: playbooks/legacy/openstack-api-ref-publish-lang/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node + parent: legacy-base + run: playbooks/legacy/openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node/run + post-run: playbooks/legacy/openstack-helm-addons-multi-basic-ovs-rbd-ubuntu-xenial-3-node/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + nodeset: ubuntu-xenial-3-node + +- job: + name: legacy-openstack-helm-addons-nocluster-linter-ovs-rbd + parent: legacy-base + run: playbooks/legacy/openstack-helm-addons-nocluster-linter-ovs-rbd/run + post-run: playbooks/legacy/openstack-helm-addons-nocluster-linter-ovs-rbd/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + +- job: + name: legacy-openstack-helm-aio-basic-linuxbridge-rbd + parent: legacy-base + run: playbooks/legacy/openstack-helm-aio-basic-linuxbridge-rbd/run + post-run: playbooks/legacy/openstack-helm-aio-basic-linuxbridge-rbd/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + +- job: + name: legacy-openstack-helm-aio-basic-ovs-pvc + parent: legacy-base + run: playbooks/legacy/openstack-helm-aio-basic-ovs-pvc/run + post-run: playbooks/legacy/openstack-helm-aio-basic-ovs-pvc/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + +- job: + name: legacy-openstack-helm-aio-basic-ovs-radosgw + parent: legacy-base + run: playbooks/legacy/openstack-helm-aio-basic-ovs-radosgw/run + post-run: playbooks/legacy/openstack-helm-aio-basic-ovs-radosgw/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + +- job: + name: legacy-openstack-helm-aio-basic-ovs-rbd + parent: legacy-base + run: playbooks/legacy/openstack-helm-aio-basic-ovs-rbd/run + post-run: playbooks/legacy/openstack-helm-aio-basic-ovs-rbd/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + +- job: + name: legacy-openstack-helm-aio-basic-ovs-rbd-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-centos-7/run + post-run: playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-centos-7/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + nodeset: centos-7 + +- job: + name: legacy-openstack-helm-aio-basic-ovs-rbd-fedora-26 + parent: legacy-base + run: playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-fedora-26/run + post-run: playbooks/legacy/openstack-helm-aio-basic-ovs-rbd-fedora-26/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + nodeset: fedora-26 + +- job: + name: legacy-openstack-helm-aio-basic-ovs-swift + parent: legacy-base + run: playbooks/legacy/openstack-helm-aio-basic-ovs-swift/run + post-run: playbooks/legacy/openstack-helm-aio-basic-ovs-swift/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + +- job: + name: legacy-openstack-helm-infra-aio-basic-ovs-rbd + parent: legacy-base + run: playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd/run + post-run: playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + +- job: + name: legacy-openstack-helm-infra-aio-basic-ovs-rbd-centos-7 + parent: legacy-base + run: playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-centos-7/run + post-run: playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-centos-7/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + nodeset: centos-7 + +- job: + name: legacy-openstack-helm-infra-aio-basic-ovs-rbd-fedora-26 + parent: legacy-base + run: playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-fedora-26/run + post-run: playbooks/legacy/openstack-helm-infra-aio-basic-ovs-rbd-fedora-26/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + nodeset: fedora-26 + +- job: + name: legacy-openstack-helm-infra-nocluster-linter-ovs-rbd + parent: legacy-base + run: playbooks/legacy/openstack-helm-infra-nocluster-linter-ovs-rbd/run + post-run: playbooks/legacy/openstack-helm-infra-nocluster-linter-ovs-rbd/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + +- job: + name: legacy-openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node + parent: legacy-base + run: playbooks/legacy/openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node/run + post-run: playbooks/legacy/openstack-helm-multi-armada-ovs-rbd-ubuntu-xenial-3-node/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + nodeset: ubuntu-xenial-3-node + +- job: + name: legacy-openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node + parent: legacy-base + run: playbooks/legacy/openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node/run + post-run: playbooks/legacy/openstack-helm-multi-basic-linuxbridge-rbd-ubuntu-xenial-3-node/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + nodeset: ubuntu-xenial-3-node + +- job: + name: legacy-openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node + parent: legacy-base + run: playbooks/legacy/openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node/run + post-run: playbooks/legacy/openstack-helm-multi-basic-ovs-rbd-ubuntu-xenial-3-node/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + nodeset: ubuntu-xenial-3-node + +- job: + name: legacy-openstack-helm-nocluster-linter-ovs-rbd + parent: legacy-base + run: playbooks/legacy/openstack-helm-nocluster-linter-ovs-rbd/run + post-run: playbooks/legacy/openstack-helm-nocluster-linter-ovs-rbd/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + +- job: + name: legacy-openstack-manuals-tox-doc-publishdocs + parent: legacy-base + run: playbooks/legacy/openstack-manuals-tox-doc-publishdocs/run + post-run: playbooks/legacy/openstack-manuals-tox-doc-publishdocs/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-openstack-planet-unittest + parent: legacy-base + run: playbooks/legacy/openstack-planet-unittest/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstackci-beaker + parent: legacy-base + run: playbooks/legacy/openstackci-beaker/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-openstackci-beaker-centos-7 + parent: legacy-base + run: playbooks/legacy/openstackci-beaker-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-openstackci-beaker-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/openstackci-beaker-ubuntu-trusty/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: ubuntu-trusty + +- job: + name: legacy-openstackdocstheme-api-ref + parent: legacy-base + success-url: html/ + run: playbooks/legacy/openstackdocstheme-api-ref/run + post-run: playbooks/legacy/openstackdocstheme-api-ref/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-openstackdocstheme-tox-doc-publish-buildpdf + parent: legacy-base + success-url: html/ + run: playbooks/legacy/openstackdocstheme-tox-doc-publish-buildpdf/run + post-run: playbooks/legacy/openstackdocstheme-tox-doc-publish-buildpdf/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-os-brick-pylint + parent: legacy-base + run: playbooks/legacy/os-brick-pylint/run + post-run: playbooks/legacy/os-brick-pylint/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-osbackup-freezer-api-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/osbackup-freezer-api-dsvm/run + post-run: playbooks/legacy/osbackup-freezer-api-dsvm/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/freezer + - openstack/freezer-api + - openstack/freezer-web-ui + - openstack/python-freezerclient + +- job: + name: legacy-osbackup-freezer-api-dsvm-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/osbackup-freezer-api-dsvm-centos-7/run + post-run: playbooks/legacy/osbackup-freezer-api-dsvm-centos-7/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/freezer + - openstack/freezer-api + - openstack/freezer-web-ui + - openstack/python-freezerclient + +- job: + name: legacy-osbackup-freezer-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/osbackup-freezer-dsvm/run + post-run: playbooks/legacy/osbackup-freezer-dsvm/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/freezer + - openstack/freezer-api + - openstack/freezer-web-ui + - openstack/python-freezerclient + +- job: + name: legacy-osbackup-freezer-dsvm-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/osbackup-freezer-dsvm-centos-7/run + post-run: playbooks/legacy/osbackup-freezer-dsvm-centos-7/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/freezer + - openstack/freezer-api + - openstack/freezer-web-ui + - openstack/python-freezerclient + +- job: + name: legacy-osbackup-freezer-dsvm-opensuse-423 + parent: legacy-dsvm-base + run: playbooks/legacy/osbackup-freezer-dsvm-opensuse-423/run + post-run: playbooks/legacy/osbackup-freezer-dsvm-opensuse-423/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + nodeset: opensuse-423 + required-projects: + - openstack-infra/devstack-gate + - openstack/freezer + - openstack/freezer-api + - openstack/freezer-web-ui + - openstack/python-freezerclient + +- job: + name: legacy-osbackup-freezer-web-ui-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/osbackup-freezer-web-ui-dsvm/run + post-run: playbooks/legacy/osbackup-freezer-web-ui-dsvm/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/freezer + - openstack/freezer-api + - openstack/freezer-web-ui + - openstack/python-freezerclient + +- job: + name: legacy-osc-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/osc-dsvm-functional/run + post-run: playbooks/legacy/osc-dsvm-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/python-openstackclient + +- job: + name: legacy-osc-dsvm-functional-n-net + parent: legacy-dsvm-base + run: playbooks/legacy/osc-dsvm-functional-n-net/run + post-run: playbooks/legacy/osc-dsvm-functional-n-net/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/python-openstackclient + +- job: + name: legacy-osc-dsvm-functional-tips + parent: legacy-dsvm-base + run: playbooks/legacy/osc-dsvm-functional-tips/run + post-run: playbooks/legacy/osc-dsvm-functional-tips/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/os-client-config + - openstack/osc-lib + - openstack/python-openstackclient + - openstack/python-openstacksdk + +- job: + name: legacy-osc-placement-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/osc-placement-dsvm-functional/run + post-run: playbooks/legacy/osc-placement-dsvm-functional/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/osc-placement + +- job: + name: legacy-oslo-cookiecutter-tox-cookiecutter + parent: legacy-base + run: playbooks/legacy/oslo-cookiecutter-tox-cookiecutter/run + post-run: playbooks/legacy/oslo-cookiecutter-tox-cookiecutter/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-oslo.db-tox-mysql-python + parent: legacy-base + run: playbooks/legacy/oslo.db-tox-mysql-python/run + post-run: playbooks/legacy/oslo.db-tox-mysql-python/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-oslo.log-src-grenade-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/oslo.log-src-grenade-dsvm/run + post-run: playbooks/legacy/oslo.log-src-grenade-dsvm/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/oslo.log + +- job: + name: legacy-oslo.messaging-src-dsvm-full-amqp1-dual-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-dual-centos-7/run + post-run: playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-dual-centos-7/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-amqp1 + - openstack/oslo.messaging + +- job: + name: legacy-oslo.messaging-src-dsvm-full-amqp1-hybrid + parent: legacy-dsvm-base + run: playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-hybrid/run + post-run: playbooks/legacy/oslo.messaging-src-dsvm-full-amqp1-hybrid/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-amqp1 + - openstack/oslo.messaging + +- job: + name: legacy-oslo.messaging-src-dsvm-full-kafka-default + parent: legacy-dsvm-base + run: playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default/run + post-run: playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-kafka + - openstack/oslo.messaging + +- job: + name: legacy-oslo.messaging-src-dsvm-full-kafka-default-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default-centos-7/run + post-run: playbooks/legacy/oslo.messaging-src-dsvm-full-kafka-default-centos-7/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-kafka + - openstack/oslo.messaging + +- job: + name: legacy-oslo.messaging-src-dsvm-full-pika-default + parent: legacy-dsvm-base + run: playbooks/legacy/oslo.messaging-src-dsvm-full-pika-default/run + post-run: playbooks/legacy/oslo.messaging-src-dsvm-full-pika-default/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-pika + - openstack/oslo.messaging + +- job: + name: legacy-oslo.messaging-src-dsvm-full-zmq-default + parent: legacy-dsvm-base + run: playbooks/legacy/oslo.messaging-src-dsvm-full-zmq-default/run + post-run: playbooks/legacy/oslo.messaging-src-dsvm-full-zmq-default/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-zmq + - openstack/oslo.messaging + +- job: + name: legacy-oslo.messaging-src-grenade-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/oslo.messaging-src-grenade-dsvm/run + post-run: playbooks/legacy/oslo.messaging-src-grenade-dsvm/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/oslo.messaging + +- job: + name: legacy-oslo.messaging-src-grenade-dsvm-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/oslo.messaging-src-grenade-dsvm-multinode/run + post-run: playbooks/legacy/oslo.messaging-src-grenade-dsvm-multinode/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/oslo.messaging + +- job: + name: legacy-oslo.messaging-telemetry-dsvm-integration-amqp1 + parent: legacy-dsvm-base + run: playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-amqp1/run + post-run: playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-amqp1/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/devstack-plugin-amqp1 + - openstack/oslo.messaging + - openstack/panko + +- job: + name: legacy-oslo.messaging-telemetry-dsvm-integration-kafka + parent: legacy-dsvm-base + run: playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-kafka/run + post-run: playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-kafka/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/devstack-plugin-kafka + - openstack/oslo.messaging + - openstack/panko + +- job: + name: legacy-oslo.messaging-telemetry-dsvm-integration-pika + parent: legacy-dsvm-base + run: playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-pika/run + post-run: playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-pika/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/devstack-plugin-pika + - openstack/oslo.messaging + - openstack/panko + +- job: + name: legacy-oslo.messaging-telemetry-dsvm-integration-zmq + parent: legacy-dsvm-base + run: playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-zmq/run + post-run: playbooks/legacy/oslo.messaging-telemetry-dsvm-integration-zmq/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/devstack-plugin-zmq + - openstack/oslo.messaging + - openstack/panko + +- job: + name: legacy-oslo.messaging-tox-py27-func-amqp1 + parent: legacy-base + run: playbooks/legacy/oslo.messaging-tox-py27-func-amqp1/run + post-run: playbooks/legacy/oslo.messaging-tox-py27-func-amqp1/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-oslo.messaging-tox-py27-func-kafka + parent: legacy-base + run: playbooks/legacy/oslo.messaging-tox-py27-func-kafka/run + post-run: playbooks/legacy/oslo.messaging-tox-py27-func-kafka/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-oslo.messaging-tox-py27-func-pika + parent: legacy-base + run: playbooks/legacy/oslo.messaging-tox-py27-func-pika/run + post-run: playbooks/legacy/oslo.messaging-tox-py27-func-pika/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-oslo.messaging-tox-py27-func-rabbit + parent: legacy-base + run: playbooks/legacy/oslo.messaging-tox-py27-func-rabbit/run + post-run: playbooks/legacy/oslo.messaging-tox-py27-func-rabbit/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-oslo.messaging-tox-py27-func-zmq + parent: legacy-base + run: playbooks/legacy/oslo.messaging-tox-py27-func-zmq/run + post-run: playbooks/legacy/oslo.messaging-tox-py27-func-zmq/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-oslo.messaging-tox-py27-func-zmq-proxy + parent: legacy-base + run: playbooks/legacy/oslo.messaging-tox-py27-func-zmq-proxy/run + post-run: playbooks/legacy/oslo.messaging-tox-py27-func-zmq-proxy/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-oslo.messaging-tox-py27-func-zmq-pubsub + parent: legacy-base + run: playbooks/legacy/oslo.messaging-tox-py27-func-zmq-pubsub/run + post-run: playbooks/legacy/oslo.messaging-tox-py27-func-zmq-pubsub/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-oslo.messaging-tox-py35-func-amqp1 + parent: legacy-base + run: playbooks/legacy/oslo.messaging-tox-py35-func-amqp1/run + post-run: playbooks/legacy/oslo.messaging-tox-py35-func-amqp1/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-oslo.messaging-tox-py35-func-rabbit + parent: legacy-base + run: playbooks/legacy/oslo.messaging-tox-py35-func-rabbit/run + post-run: playbooks/legacy/oslo.messaging-tox-py35-func-rabbit/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-oslo.messaging-tox-py35-func-zmq + parent: legacy-base + run: playbooks/legacy/oslo.messaging-tox-py35-func-zmq/run + post-run: playbooks/legacy/oslo.messaging-tox-py35-func-zmq/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-oslo.versionedobjects-src-grenade-dsvm-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/oslo.versionedobjects-src-grenade-dsvm-multinode/run + post-run: playbooks/legacy/oslo.versionedobjects-src-grenade-dsvm-multinode/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/grenade + - openstack-infra/devstack-gate + - openstack/oslo.versionedobjects + +- job: + name: legacy-ospurge-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/ospurge-dsvm-functional/run + post-run: playbooks/legacy/ospurge-dsvm-functional/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ospurge + +- job: + name: legacy-ovsdbapp-tox-functional + parent: legacy-base + run: playbooks/legacy/ovsdbapp-tox-functional/run + post-run: playbooks/legacy/ovsdbapp-tox-functional/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-packstack-integration-scenario001-tempest-centos-7 + parent: legacy-base + run: playbooks/legacy/packstack-integration-scenario001-tempest-centos-7/run + post-run: playbooks/legacy/packstack-integration-scenario001-tempest-centos-7/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-packstack-integration-scenario002-tempest-centos-7 + parent: legacy-base + run: playbooks/legacy/packstack-integration-scenario002-tempest-centos-7/run + post-run: playbooks/legacy/packstack-integration-scenario002-tempest-centos-7/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-packstack-integration-scenario003-tempest-centos-7 + parent: legacy-base + run: playbooks/legacy/packstack-integration-scenario003-tempest-centos-7/run + post-run: playbooks/legacy/packstack-integration-scenario003-tempest-centos-7/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-packstack-releasenotes + parent: legacy-base + success-url: html/ + run: playbooks/legacy/packstack-releasenotes/run + post-run: playbooks/legacy/packstack-releasenotes/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-panko-tox-py27-mongodb + parent: legacy-base + run: playbooks/legacy/panko-tox-py27-mongodb/run + post-run: playbooks/legacy/panko-tox-py27-mongodb/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-panko-tox-py27-mysql + parent: legacy-base + run: playbooks/legacy/panko-tox-py27-mysql/run + post-run: playbooks/legacy/panko-tox-py27-mysql/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-panko-tox-py27-postgresql + parent: legacy-base + run: playbooks/legacy/panko-tox-py27-postgresql/run + post-run: playbooks/legacy/panko-tox-py27-postgresql/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-panko-tox-py35-mongodb + parent: legacy-base + run: playbooks/legacy/panko-tox-py35-mongodb/run + post-run: playbooks/legacy/panko-tox-py35-mongodb/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-panko-tox-py35-mysql + parent: legacy-base + run: playbooks/legacy/panko-tox-py35-mysql/run + post-run: playbooks/legacy/panko-tox-py35-mysql/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-panko-tox-py35-postgresql + parent: legacy-base + run: playbooks/legacy/panko-tox-py35-postgresql/run + post-run: playbooks/legacy/panko-tox-py35-postgresql/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-pbr-installation-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/pbr-installation-dsvm/run + post-run: playbooks/legacy/pbr-installation-dsvm/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-dev/devstack + - openstack-dev/grenade + - openstack-dev/pbr + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/automaton + - openstack/ceilometer + - openstack/ceilometermiddleware + - openstack/cinder + - openstack/cliff + - openstack/debtcollector + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/django_openstack_auth + - openstack/futurist + - openstack/glance + - openstack/glance_store + - openstack/heat + - openstack/heat-cfntools + - openstack/heat-templates + - openstack/horizon + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/keystone + - openstack/keystoneauth + - openstack/keystonemiddleware + - openstack/manila + - openstack/manila-ui + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/nova + - openstack/octavia + - openstack/os-apply-config + - openstack/os-brick + - openstack/os-client-config + - openstack/os-collect-config + - openstack/os-net-config + - openstack/os-refresh-config + - openstack/osc-lib + - openstack/oslo.cache + - openstack/oslo.concurrency + - openstack/oslo.config + - openstack/oslo.context + - openstack/oslo.db + - openstack/oslo.i18n + - openstack/oslo.log + - openstack/oslo.messaging + - openstack/oslo.middleware + - openstack/oslo.policy + - openstack/oslo.reports + - openstack/oslo.rootwrap + - openstack/oslo.serialization + - openstack/oslo.service + - openstack/oslo.utils + - openstack/oslo.versionedobjects + - openstack/oslo.vmware + - openstack/pycadf + - openstack/python-ceilometerclient + - openstack/python-cinderclient + - openstack/python-glanceclient + - openstack/python-heatclient + - openstack/python-ironicclient + - openstack/python-keystoneclient + - openstack/python-manilaclient + - openstack/python-neutronclient + - openstack/python-novaclient + - openstack/python-openstackclient + - openstack/python-saharaclient + - openstack/python-swiftclient + - openstack/python-troveclient + - openstack/python-zaqarclient + - openstack/requirements + - openstack/sahara + - openstack/sahara-dashboard + - openstack/stevedore + - openstack/swift + - openstack/taskflow + - openstack/tempest + - openstack/tempest-lib + - openstack/tooz + - openstack/tripleo-heat-templates + - openstack/tripleo-image-elements + - openstack/tripleo-incubator + - openstack/trove + - openstack/trove-dashboard + - openstack/zaqar + +- job: + name: legacy-pbr-installation-dsvm-upstream + parent: legacy-dsvm-base + run: playbooks/legacy/pbr-installation-dsvm-upstream/run + post-run: playbooks/legacy/pbr-installation-dsvm-upstream/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-dev/devstack + - openstack-dev/grenade + - openstack-dev/pbr + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/automaton + - openstack/ceilometer + - openstack/ceilometermiddleware + - openstack/cinder + - openstack/cliff + - openstack/debtcollector + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/django_openstack_auth + - openstack/futurist + - openstack/glance + - openstack/glance_store + - openstack/heat + - openstack/heat-cfntools + - openstack/heat-templates + - openstack/horizon + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/keystone + - openstack/keystoneauth + - openstack/keystonemiddleware + - openstack/manila + - openstack/manila-ui + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/nova + - openstack/octavia + - openstack/os-apply-config + - openstack/os-brick + - openstack/os-client-config + - openstack/os-collect-config + - openstack/os-net-config + - openstack/os-refresh-config + - openstack/osc-lib + - openstack/oslo.cache + - openstack/oslo.concurrency + - openstack/oslo.config + - openstack/oslo.context + - openstack/oslo.db + - openstack/oslo.i18n + - openstack/oslo.log + - openstack/oslo.messaging + - openstack/oslo.middleware + - openstack/oslo.policy + - openstack/oslo.reports + - openstack/oslo.rootwrap + - openstack/oslo.serialization + - openstack/oslo.service + - openstack/oslo.utils + - openstack/oslo.versionedobjects + - openstack/oslo.vmware + - openstack/pycadf + - openstack/python-ceilometerclient + - openstack/python-cinderclient + - openstack/python-glanceclient + - openstack/python-heatclient + - openstack/python-ironicclient + - openstack/python-keystoneclient + - openstack/python-manilaclient + - openstack/python-neutronclient + - openstack/python-novaclient + - openstack/python-openstackclient + - openstack/python-saharaclient + - openstack/python-swiftclient + - openstack/python-troveclient + - openstack/python-zaqarclient + - openstack/requirements + - openstack/sahara + - openstack/sahara-dashboard + - openstack/stevedore + - openstack/swift + - openstack/taskflow + - openstack/tempest + - openstack/tempest-lib + - openstack/tooz + - openstack/tripleo-heat-templates + - openstack/tripleo-image-elements + - openstack/tripleo-incubator + - openstack/trove + - openstack/trove-dashboard + - openstack/zaqar + +- job: + name: legacy-periodic-docs-newton + parent: legacy-base + run: playbooks/legacy/periodic-docs-newton/run + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-periodic-docs-ocata + parent: legacy-base + run: playbooks/legacy/periodic-docs-ocata/run + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-periodic-docs-pike + parent: legacy-base + run: playbooks/legacy/periodic-docs-pike/run + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-periodic-gitdm + parent: legacy-base + run: playbooks/legacy/periodic-gitdm/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-periodic-kolla-kubernetes-deploy-centos-binary-2-ceph + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-ceph/run + post-run: playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-ceph/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi/run + post-run: playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-2-iscsi/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-periodic-kolla-kubernetes-deploy-centos-binary-3-ceph + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-ceph/run + post-run: playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-ceph/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi/run + post-run: playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-3-iscsi/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-periodic-kolla-kubernetes-deploy-centos-binary-4-ceph + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-ceph/run + post-run: playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-ceph/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi/run + post-run: playbooks/legacy/periodic-kolla-kubernetes-deploy-centos-binary-4-iscsi/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph/run + post-run: playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-ceph/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/run + post-run: playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-2-iscsi/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph/run + post-run: playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-ceph/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi/run + post-run: playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-3-iscsi/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph/run + post-run: playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-ceph/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi/run + post-run: playbooks/legacy/periodic-kolla-kubernetes-deploy-ubuntu-binary-4-iscsi/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-periodic-magnum-dib-buildimage-centos-dcos + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-magnum-dib-buildimage-centos-dcos/run + post-run: playbooks/legacy/periodic-magnum-dib-buildimage-centos-dcos/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + required-projects: + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/magnum + +- job: + name: legacy-periodic-magnum-dib-buildimage-fedora-atomic-25 + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-magnum-dib-buildimage-fedora-atomic-25/run + post-run: playbooks/legacy/periodic-magnum-dib-buildimage-fedora-atomic-25/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + required-projects: + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/magnum + +- job: + name: legacy-periodic-magnum-dib-buildimage-ubuntu-mesos + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-magnum-dib-buildimage-ubuntu-mesos/run + post-run: playbooks/legacy/periodic-magnum-dib-buildimage-ubuntu-mesos/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + required-projects: + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/magnum + +- job: + name: legacy-periodic-neutron-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-neutron-dsvm-functional/run + post-run: playbooks/legacy/periodic-neutron-dsvm-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + +- job: + name: legacy-periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4 + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/run + post-run: playbooks/legacy/periodic-neutron-dynamic-routing-dsvm-tempest-with-ryu-master-scenario-ipv4/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/neutron-dynamic-routing + - openstack/tempest + +- job: + name: legacy-periodic-openstack-ansible-deploy-aio-master + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-deploy-aio-master/run + post-run: playbooks/legacy/periodic-openstack-ansible-deploy-aio-master/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + +- job: + name: legacy-periodic-openstack-ansible-deploy-aio-master-centos-7 + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-centos-7/run + post-run: playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-centos-7/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + +- job: + name: legacy-periodic-openstack-ansible-deploy-aio-master-opensuse-423 + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-opensuse-423/run + post-run: playbooks/legacy/periodic-openstack-ansible-deploy-aio-master-opensuse-423/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: opensuse-423 + +- job: + name: legacy-periodic-openstack-ansible-deploy-aio-ocata + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata/run + post-run: playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + +- job: + name: legacy-periodic-openstack-ansible-deploy-aio-ocata-centos-7 + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata-centos-7/run + post-run: playbooks/legacy/periodic-openstack-ansible-deploy-aio-ocata-centos-7/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + +- job: + name: legacy-periodic-openstack-ansible-deploy-aio-pike + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike/run + post-run: playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + +- job: + name: legacy-periodic-openstack-ansible-deploy-aio-pike-centos-7 + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-centos-7/run + post-run: playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-centos-7/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + +- job: + name: legacy-periodic-openstack-ansible-deploy-aio-pike-opensuse-423 + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-opensuse-423/run + post-run: playbooks/legacy/periodic-openstack-ansible-deploy-aio-pike-opensuse-423/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: opensuse-423 + +- job: + name: legacy-periodic-openstack-ansible-deploy-ceph-master + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master/run + post-run: playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + +- job: + name: legacy-periodic-openstack-ansible-deploy-ceph-master-centos-7 + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master-centos-7/run + post-run: playbooks/legacy/periodic-openstack-ansible-deploy-ceph-master-centos-7/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + +- job: + name: legacy-periodic-openstack-ansible-deploy-ceph-ocata + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata/run + post-run: playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + +- job: + name: legacy-periodic-openstack-ansible-deploy-ceph-ocata-centos-7 + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata-centos-7/run + post-run: playbooks/legacy/periodic-openstack-ansible-deploy-ceph-ocata-centos-7/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + +- job: + name: legacy-periodic-openstack-ansible-deploy-ceph-pike + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike/run + post-run: playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + +- job: + name: legacy-periodic-openstack-ansible-deploy-ceph-pike-centos-7 + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike-centos-7/run + post-run: playbooks/legacy/periodic-openstack-ansible-deploy-ceph-pike-centos-7/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + +- job: + name: legacy-periodic-openstack-ansible-deploy-translations-master + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-deploy-translations-master/run + post-run: playbooks/legacy/periodic-openstack-ansible-deploy-translations-master/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + +- job: + name: legacy-periodic-openstack-ansible-upgrade-aio-master + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master/run + post-run: playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + +- job: + name: legacy-periodic-openstack-ansible-upgrade-aio-master-centos-7 + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master-centos-7/run + post-run: playbooks/legacy/periodic-openstack-ansible-upgrade-aio-master-centos-7/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + +- job: + name: legacy-periodic-openstack-ansible-upgrade-aio-ocata + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-upgrade-aio-ocata/run + post-run: playbooks/legacy/periodic-openstack-ansible-upgrade-aio-ocata/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + +- job: + name: legacy-periodic-openstack-ansible-upgrade-aio-pike + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike/run + post-run: playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + +- job: + name: legacy-periodic-openstack-ansible-upgrade-aio-pike-centos-7 + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike-centos-7/run + post-run: playbooks/legacy/periodic-openstack-ansible-upgrade-aio-pike-centos-7/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + +- job: + name: legacy-periodic-openstack-ansible-upgrade-ceph-master + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master/run + post-run: playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + +- job: + name: legacy-periodic-openstack-ansible-upgrade-ceph-master-centos-7 + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master-centos-7/run + post-run: playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-master-centos-7/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + +- job: + name: legacy-periodic-openstack-ansible-upgrade-ceph-pike + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike/run + post-run: playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + +- job: + name: legacy-periodic-openstack-ansible-upgrade-ceph-pike-centos-7 + parent: legacy-base + run: playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike-centos-7/run + post-run: playbooks/legacy/periodic-openstack-ansible-upgrade-ceph-pike-centos-7/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + +- job: + name: legacy-periodic-package-stackviz-element + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-package-stackviz-element/run + post-run: playbooks/legacy/periodic-package-stackviz-element/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-periodic-py27-with-oslo-master + parent: legacy-base + run: playbooks/legacy/periodic-py27-with-oslo-master/run + post-run: playbooks/legacy/periodic-py27-with-oslo-master/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + +- job: + name: legacy-periodic-py35-with-neutron-lib-master + parent: legacy-base + run: playbooks/legacy/periodic-py35-with-neutron-lib-master/run + post-run: playbooks/legacy/periodic-py35-with-neutron-lib-master/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + +- job: + name: legacy-periodic-py35-with-oslo-master + parent: legacy-base + run: playbooks/legacy/periodic-py35-with-oslo-master/run + post-run: playbooks/legacy/periodic-py35-with-oslo-master/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + +- job: + name: legacy-periodic-py35-with-ovsdbapp-master + parent: legacy-base + run: playbooks/legacy/periodic-py35-with-ovsdbapp-master/run + post-run: playbooks/legacy/periodic-py35-with-ovsdbapp-master/post + timeout: 3000 + vars: + BUILD_TIMEOUT: '3000000' + +- job: + name: legacy-periodic-python27-newton + parent: legacy-base + run: playbooks/legacy/periodic-python27-newton/run + post-run: playbooks/legacy/periodic-python27-newton/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-periodic-python27-ocata + parent: legacy-base + run: playbooks/legacy/periodic-python27-ocata/run + post-run: playbooks/legacy/periodic-python27-ocata/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-periodic-python27-pike + parent: legacy-base + run: playbooks/legacy/periodic-python27-pike/run + post-run: playbooks/legacy/periodic-python27-pike/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-periodic-tempest-dsvm-all-master + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-all-master/run + post-run: playbooks/legacy/periodic-tempest-dsvm-all-master/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-periodic-tempest-dsvm-full-test-accounts-master + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-full-test-accounts-master/run + post-run: playbooks/legacy/periodic-tempest-dsvm-full-test-accounts-master/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-periodic-tempest-dsvm-networking-calico-master + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-networking-calico-master/run + post-run: playbooks/legacy/periodic-tempest-dsvm-networking-calico-master/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-calico + - openstack/tempest + +- job: + name: legacy-periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ocata + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ocata/run + post-run: playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-full-ocata/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-l2gw + - openstack/networking-midonet + - openstack/neutron-dynamic-routing + - openstack/tap-as-a-service + - openstack/tempest + +- job: + name: legacy-periodic-tempest-dsvm-networking-midonet-aio-ml2-newton + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-newton/run + post-run: playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-ml2-newton/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-l2gw + - openstack/networking-midonet + - openstack/neutron-dynamic-routing + - openstack/tap-as-a-service + - openstack/tempest + +- job: + name: legacy-periodic-tempest-dsvm-networking-midonet-aio-v2-full-ocata + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-full-ocata/run + post-run: playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-full-ocata/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-l2gw + - openstack/networking-midonet + - openstack/neutron-dynamic-routing + - openstack/tap-as-a-service + - openstack/tempest + +- job: + name: legacy-periodic-tempest-dsvm-networking-midonet-aio-v2-newton + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-newton/run + post-run: playbooks/legacy/periodic-tempest-dsvm-networking-midonet-aio-v2-newton/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-l2gw + - openstack/networking-midonet + - openstack/neutron-dynamic-routing + - openstack/tap-as-a-service + - openstack/tempest + +- job: + name: legacy-periodic-tempest-dsvm-networking-sfc + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-networking-sfc/run + post-run: playbooks/legacy/periodic-tempest-dsvm-networking-sfc/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-sfc + - openstack/tempest + +- job: + name: legacy-periodic-tempest-dsvm-neutron-full-newton + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-neutron-full-newton/run + post-run: playbooks/legacy/periodic-tempest-dsvm-neutron-full-newton/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-periodic-tempest-dsvm-neutron-full-non-admin-master + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-neutron-full-non-admin-master/run + post-run: playbooks/legacy/periodic-tempest-dsvm-neutron-full-non-admin-master/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-periodic-tempest-dsvm-neutron-full-ocata + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-neutron-full-ocata/run + post-run: playbooks/legacy/periodic-tempest-dsvm-neutron-full-ocata/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-periodic-tempest-dsvm-neutron-full-pike + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-neutron-full-pike/run + post-run: playbooks/legacy/periodic-tempest-dsvm-neutron-full-pike/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-periodic-tempest-dsvm-neutron-full-test-accounts-master + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-neutron-full-test-accounts-master/run + post-run: playbooks/legacy/periodic-tempest-dsvm-neutron-full-test-accounts-master/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-periodic-tempest-dsvm-neutron-pg-full + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-neutron-pg-full/run + post-run: playbooks/legacy/periodic-tempest-dsvm-neutron-pg-full/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-periodic-tempest-dsvm-neutron-with-ryu-master + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-neutron-with-ryu-master/run + post-run: playbooks/legacy/periodic-tempest-dsvm-neutron-with-ryu-master/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-periodic-tempest-dsvm-nnet-newton + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-nnet-newton/run + post-run: playbooks/legacy/periodic-tempest-dsvm-nnet-newton/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-periodic-tempest-dsvm-nnet-ocata + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-nnet-ocata/run + post-run: playbooks/legacy/periodic-tempest-dsvm-nnet-ocata/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-periodic-tempest-dsvm-nnet-pike + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-nnet-pike/run + post-run: playbooks/legacy/periodic-tempest-dsvm-nnet-pike/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-periodic-tempest-dsvm-oslo-latest-full-master + parent: legacy-dsvm-base + run: playbooks/legacy/periodic-tempest-dsvm-oslo-latest-full-master/run + post-run: playbooks/legacy/periodic-tempest-dsvm-oslo-latest-full-master/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/oslo.cache + - openstack/oslo.concurrency + - openstack/oslo.config + - openstack/oslo.context + - openstack/oslo.db + - openstack/oslo.i18n + - openstack/oslo.log + - openstack/oslo.messaging + - openstack/oslo.middleware + - openstack/oslo.policy + - openstack/oslo.privsep + - openstack/oslo.reports + - openstack/oslo.rootwrap + - openstack/oslo.serialization + - openstack/oslo.service + - openstack/oslo.utils + - openstack/oslo.versionedobjects + - openstack/oslo.vmware + - openstack/tempest + +- job: + name: legacy-periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024 + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/run + post-run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-periodic-tripleo-ci-centos-7-ovb-fakeha-caserver + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-fakeha-caserver/run + post-run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-fakeha-caserver/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq/run + post-run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-newton-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq/run + post-run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-ocata-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-periodic-tripleo-ci-centos-7-ovb-ha-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-oooq/run + post-run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq/run + post-run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-ha-pike-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-periodic-tripleo-ci-centos-7-ovb-nonha-containers + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-containers/run + post-run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-containers/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master/run + post-run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-master/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tempest + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata/run + post-run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-ocata/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tempest + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike/run + post-run: playbooks/legacy/periodic-tripleo-ci-centos-7-ovb-nonha-tempest-oooq-pike/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tempest + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-periodic-tripleo-ci-centos-7-scenario001-multinode-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-tripleo-ci-centos-7-scenario001-multinode-oooq/run + post-run: playbooks/legacy/periodic-tripleo-ci-centos-7-scenario001-multinode-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-periodic-tripleo-ci-centos-7-scenario002-multinode-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-tripleo-ci-centos-7-scenario002-multinode-oooq/run + post-run: playbooks/legacy/periodic-tripleo-ci-centos-7-scenario002-multinode-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-periodic-tripleo-ci-centos-7-scenario003-multinode-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-tripleo-ci-centos-7-scenario003-multinode-oooq/run + post-run: playbooks/legacy/periodic-tripleo-ci-centos-7-scenario003-multinode-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-periodic-tripleo-ci-centos-7-scenario004-multinode-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/periodic-tripleo-ci-centos-7-scenario004-multinode-oooq/run + post-run: playbooks/legacy/periodic-tripleo-ci-centos-7-scenario004-multinode-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-placement-api-ref + parent: legacy-base + run: playbooks/legacy/placement-api-ref/run + post-run: playbooks/legacy/placement-api-ref/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-post-sahara-extra-artifacts + parent: publish-openstack-artifacts + run: playbooks/legacy/post-sahara-extra-artifacts/run + post-run: playbooks/legacy/post-sahara-extra-artifacts/post + timeout: 3900 + vars: + BUILD_TIMEOUT: '3900000' + +- job: + name: legacy-project-config-jenkins-project + parent: legacy-base + run: playbooks/legacy/project-config-jenkins-project/run + post-run: playbooks/legacy/project-config-jenkins-project/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-project-config-layout + parent: legacy-base + run: playbooks/legacy/project-config-layout/run + post-run: playbooks/legacy/project-config-layout/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-project-navigator-data-tox-validate + parent: legacy-base + run: playbooks/legacy/project-navigator-data-tox-validate/run + post-run: playbooks/legacy/project-navigator-data-tox-validate/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-project-team-guide-publish + parent: legacy-base + run: playbooks/legacy/project-team-guide-publish/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-propose-requirements-constraints-master + parent: legacy-base + run: playbooks/legacy/propose-requirements-constraints-master/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-propose-translation-update + parent: legacy-base + run: playbooks/legacy/propose-translation-update/run + post-run: playbooks/legacy/propose-translation-update/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-propose-translation-update-ocata + parent: legacy-base + run: playbooks/legacy/propose-translation-update-ocata/run + post-run: playbooks/legacy/propose-translation-update-ocata/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-propose-translation-update-pike + parent: legacy-base + run: playbooks/legacy/propose-translation-update-pike/run + post-run: playbooks/legacy/propose-translation-update-pike/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-propose-update-constraints + parent: legacy-base + run: playbooks/legacy/propose-update-constraints/run + post-run: playbooks/legacy/propose-update-constraints/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node + parent: legacy-dsvm-base + run: playbooks/legacy/publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run + post-run: playbooks/legacy/publish-kolla-dsvm-ansible-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: ubuntu-xenial-2-node + +- job: + name: legacy-publish-kolla-dsvm-build-ubuntu-source + parent: legacy-dsvm-base + run: playbooks/legacy/publish-kolla-dsvm-build-ubuntu-source/run + post-run: playbooks/legacy/publish-kolla-dsvm-build-ubuntu-source/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + +- job: + name: legacy-publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node + parent: legacy-dsvm-base + run: playbooks/legacy/publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/run + post-run: playbooks/legacy/publish-kolla-dsvm-kubernetes-deploy-multinode-ubuntu-source-ubuntu-xenial-2-node/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: ubuntu-xenial-2-node + +- job: + name: legacy-publish-kolla-dsvm-save-ubuntu-source + parent: legacy-dsvm-base + run: playbooks/legacy/publish-kolla-dsvm-save-ubuntu-source/run + post-run: playbooks/legacy/publish-kolla-dsvm-save-ubuntu-source/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + +- job: + name: legacy-puppet-beaker-rspec + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-beaker-rspec/run + post-run: playbooks/legacy/puppet-beaker-rspec/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + required-projects: + - openstack/puppet-openstack-integration + +- job: + name: legacy-puppet-beaker-rspec-centos-7 + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-beaker-rspec-centos-7/run + post-run: playbooks/legacy/puppet-beaker-rspec-centos-7/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + required-projects: + - openstack/puppet-openstack-integration + +- job: + name: legacy-puppet-beaker-rspec-ubuntu-trusty + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-beaker-rspec-ubuntu-trusty/run + post-run: playbooks/legacy/puppet-beaker-rspec-ubuntu-trusty/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: ubuntu-trusty + required-projects: + - openstack/puppet-openstack-integration + +- job: + name: legacy-puppet-httpd-forge-upload + parent: legacy-base + run: playbooks/legacy/puppet-httpd-forge-upload/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-puppet-lint + parent: legacy-base + run: playbooks/legacy/puppet-lint/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-puppet-midonet-puppet-unit-3.6-centos-7 + parent: legacy-base + run: playbooks/legacy/puppet-midonet-puppet-unit-3.6-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-puppet-midonet-puppet-unit-3.8-centos-7 + parent: legacy-base + run: playbooks/legacy/puppet-midonet-puppet-unit-3.8-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-puppet-midonet-puppet-unit-4.5-centos-7 + parent: legacy-base + run: playbooks/legacy/puppet-midonet-puppet-unit-4.5-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-puppet-midonet-puppet-unit-latest-centos-7 + parent: legacy-base + run: playbooks/legacy/puppet-midonet-puppet-unit-latest-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-puppet-module-build + parent: legacy-base + run: playbooks/legacy/puppet-module-build/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-puppet-murano-puppet-beaker-rspec + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-murano-puppet-beaker-rspec/run + post-run: playbooks/legacy/puppet-murano-puppet-beaker-rspec/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + required-projects: + - openstack/murano + - openstack/puppet-murano + - openstack/puppet-openstack-integration + +- job: + name: legacy-puppet-openstack-infra-spec-helper-unit + parent: legacy-base + run: playbooks/legacy/puppet-openstack-infra-spec-helper-unit/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + +- job: + name: legacy-puppet-openstack-infra-spec-helper-unit-centos-7 + parent: legacy-base + run: playbooks/legacy/puppet-openstack-infra-spec-helper-unit-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-puppet-openstack-infra-spec-helper-unit-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/puppet-openstack-infra-spec-helper-unit-ubuntu-trusty/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: ubuntu-trusty + +- job: + name: legacy-puppet-openstack-integration-4-scenario001-tempest + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest/run + post-run: playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/openstack + - openstack/puppet-openstack-integration + - openstack/tempest + +- job: + name: legacy-puppet-openstack-integration-4-scenario001-tempest-centos-7 + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest-centos-7/run + post-run: playbooks/legacy/puppet-openstack-integration-4-scenario001-tempest-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/puppet-openstack-integration + - openstack/tempest + +- job: + name: legacy-puppet-openstack-integration-4-scenario002-tempest + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest/run + post-run: playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/openstack + - openstack/puppet-openstack-integration + - openstack/tempest + +- job: + name: legacy-puppet-openstack-integration-4-scenario002-tempest-centos-7 + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest-centos-7/run + post-run: playbooks/legacy/puppet-openstack-integration-4-scenario002-tempest-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/puppet-openstack-integration + - openstack/tempest + +- job: + name: legacy-puppet-openstack-integration-4-scenario003-tempest + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest/run + post-run: playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/openstack + - openstack/puppet-openstack-integration + - openstack/tempest + +- job: + name: legacy-puppet-openstack-integration-4-scenario003-tempest-centos-7 + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest-centos-7/run + post-run: playbooks/legacy/puppet-openstack-integration-4-scenario003-tempest-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/puppet-openstack-integration + - openstack/tempest + +- job: + name: legacy-puppet-openstack-integration-4-scenario004-tempest + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest/run + post-run: playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/openstack + - openstack/puppet-openstack-integration + - openstack/tempest + +- job: + name: legacy-puppet-openstack-integration-4-scenario004-tempest-centos-7 + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest-centos-7/run + post-run: playbooks/legacy/puppet-openstack-integration-4-scenario004-tempest-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/puppet-openstack-integration + - openstack/tempest + +- job: + name: legacy-puppet-openstack-integration-5-scenario001-tempest + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest/run + post-run: playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/openstack + - openstack/puppet-openstack-integration + - openstack/tempest + +- job: + name: legacy-puppet-openstack-integration-5-scenario001-tempest-centos-7 + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest-centos-7/run + post-run: playbooks/legacy/puppet-openstack-integration-5-scenario001-tempest-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/puppet-openstack-integration + - openstack/tempest + +- job: + name: legacy-puppet-openstack-integration-5-scenario002-tempest + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest/run + post-run: playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/openstack + - openstack/puppet-openstack-integration + - openstack/tempest + +- job: + name: legacy-puppet-openstack-integration-5-scenario002-tempest-centos-7 + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest-centos-7/run + post-run: playbooks/legacy/puppet-openstack-integration-5-scenario002-tempest-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/puppet-openstack-integration + - openstack/tempest + +- job: + name: legacy-puppet-openstack-integration-5-scenario003-tempest + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest/run + post-run: playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/openstack + - openstack/puppet-openstack-integration + - openstack/tempest + +- job: + name: legacy-puppet-openstack-integration-5-scenario003-tempest-centos-7 + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest-centos-7/run + post-run: playbooks/legacy/puppet-openstack-integration-5-scenario003-tempest-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/puppet-openstack-integration + - openstack/tempest + +- job: + name: legacy-puppet-openstack-integration-5-scenario004-tempest + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest/run + post-run: playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack/openstack + - openstack/puppet-openstack-integration + - openstack/tempest + +- job: + name: legacy-puppet-openstack-integration-5-scenario004-tempest-centos-7 + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest-centos-7/run + post-run: playbooks/legacy/puppet-openstack-integration-5-scenario004-tempest-centos-7/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/puppet-openstack-integration + - openstack/tempest + +- job: + name: legacy-puppet-openstack-libraries-puppet-beaker-rspec-centos-7 + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstack-libraries-puppet-beaker-rspec-centos-7/run + post-run: playbooks/legacy/puppet-openstack-libraries-puppet-beaker-rspec-centos-7/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + required-projects: + - openstack/openstack + - openstack/puppet-openstack-integration + +- job: + name: legacy-puppet-openstack-libraries-puppet-lint-centos-7 + parent: legacy-base + run: playbooks/legacy/puppet-openstack-libraries-puppet-lint-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-puppet-openstack-libraries-puppet-syntax-3-legacy-centos-7 + parent: legacy-base + run: playbooks/legacy/puppet-openstack-libraries-puppet-syntax-3-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-puppet-openstack-libraries-puppet-syntax-4-centos-7 + parent: legacy-base + run: playbooks/legacy/puppet-openstack-libraries-puppet-syntax-4-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-puppet-openstack-libraries-puppet-unit-centos-7 + parent: legacy-base + run: playbooks/legacy/puppet-openstack-libraries-puppet-unit-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-puppet-openstackci-puppet-beaker-rspec + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstackci-puppet-beaker-rspec/run + post-run: playbooks/legacy/puppet-openstackci-puppet-beaker-rspec/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + required-projects: + - openstack-infra/puppet-openstackci + - openstack/openstack + - openstack/puppet-openstack-integration + +- job: + name: legacy-puppet-openstackci-puppet-beaker-rspec-centos-7 + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-centos-7/run + post-run: playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-centos-7/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + required-projects: + - openstack-infra/puppet-openstackci + - openstack/openstack + - openstack/puppet-openstack-integration + +- job: + name: legacy-puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty + parent: legacy-puppet-openstack-integration + run: playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty/run + post-run: playbooks/legacy/puppet-openstackci-puppet-beaker-rspec-ubuntu-trusty/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: ubuntu-trusty + required-projects: + - openstack-infra/puppet-openstackci + - openstack/openstack + - openstack/puppet-openstack-integration + +- job: + name: legacy-puppet-storyboard-forge-upload + parent: legacy-base + run: playbooks/legacy/puppet-storyboard-forge-upload/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-puppet-syntax-3 + parent: legacy-base + run: playbooks/legacy/puppet-syntax-3/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-puppet-syntax-3-centos-7 + parent: legacy-base + run: playbooks/legacy/puppet-syntax-3-centos-7/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + nodeset: centos-7 + +- job: + name: legacy-puppet-syntax-3-legacy-centos-7 + parent: legacy-base + run: playbooks/legacy/puppet-syntax-3-centos-7/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + nodeset: centos-7 + +- job: + name: legacy-puppet-syntax-4-centos-7 + parent: legacy-base + run: playbooks/legacy/puppet-syntax-4-centos-7/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + nodeset: centos-7 + +- job: + name: legacy-puppet-tripleo-puppet-unit-4.8-centos-7 + parent: legacy-base + run: playbooks/legacy/puppet-tripleo-puppet-unit-4.8-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-puppet-tripleo-puppet-unit-latest-centos-7 + parent: legacy-base + run: playbooks/legacy/puppet-tripleo-puppet-unit-latest-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-puppet-unit-3.6-legacy-centos-7 + parent: legacy-base + run: playbooks/legacy/puppet-unit-3.6-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-puppet-unit-3.8-legacy-centos-7 + parent: legacy-base + run: playbooks/legacy/puppet-unit-3.8-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-puppet-unit-4.8-centos-7 + parent: legacy-base + run: playbooks/legacy/puppet-unit-4.8-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-puppet-unit-latest-centos-7 + parent: legacy-base + run: playbooks/legacy/puppet-unit-latest-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + +- job: + name: legacy-pyeclib-python35 + parent: legacy-base + run: playbooks/legacy/pyeclib-python35/run + post-run: playbooks/legacy/pyeclib-python35/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-pyeclib-tox-py27-centos-7 + parent: legacy-base + run: playbooks/legacy/pyeclib-tox-py27-centos-7/run + post-run: playbooks/legacy/pyeclib-tox-py27-centos-7/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + nodeset: centos-7 + +- job: + name: legacy-pypi-both-upload + parent: legacy-base + run: playbooks/legacy/pypi-both-upload/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-python-barbicanclient-devstack + parent: legacy-base + run: playbooks/legacy/python-barbicanclient-devstack/run + post-run: playbooks/legacy/python-barbicanclient-devstack/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/python-barbicanclient + +- job: + name: legacy-python-barbicanclient-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/python-barbicanclient-dsvm/run + post-run: playbooks/legacy/python-barbicanclient-dsvm/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/barbican-tempest-plugin + - openstack/python-barbicanclient + +- job: + name: legacy-python-cinderclient-pylint + parent: legacy-base + run: playbooks/legacy/python-cinderclient-pylint/run + post-run: playbooks/legacy/python-cinderclient-pylint/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-python-freezerclient-pylint + parent: legacy-base + run: playbooks/legacy/python-freezerclient-pylint/run + post-run: playbooks/legacy/python-freezerclient-pylint/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-python-ironic-inspector-client-tox-func + parent: legacy-base + run: playbooks/legacy/python-ironic-inspector-client-tox-func/run + post-run: playbooks/legacy/python-ironic-inspector-client-tox-func/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-python-mistralclient-devstack-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/python-mistralclient-devstack-dsvm/run + post-run: playbooks/legacy/python-mistralclient-devstack-dsvm/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/heat + - openstack/mistral + - openstack/mistral-dashboard + - openstack/python-mistralclient + +- job: + name: legacy-python-openstacksdk-docs + parent: legacy-base + run: playbooks/legacy/python-openstacksdk-docs/run + post-run: playbooks/legacy/python-openstacksdk-docs/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-python-swiftclient-python36-fedora-26 + parent: legacy-base + run: playbooks/legacy/python-swiftclient-python36-fedora-26/run + post-run: playbooks/legacy/python-swiftclient-python36-fedora-26/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + nodeset: fedora-26 + +- job: + name: legacy-python34 + parent: legacy-base + run: playbooks/legacy/python34/run + post-run: playbooks/legacy/python34/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-python35 + parent: legacy-base + run: playbooks/legacy/python35/run + post-run: playbooks/legacy/python35/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-qinling-dsvm-tempest + parent: legacy-dsvm-base + run: playbooks/legacy/qinling-dsvm-tempest/run + post-run: playbooks/legacy/qinling-dsvm-tempest/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/python-qinlingclient + - openstack/qinling + - openstack/tempest + +- job: + name: legacy-rally-dsvm-certification-with-keystone-v3 + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-certification-with-keystone-v3/run + post-run: playbooks/legacy/rally-dsvm-certification-with-keystone-v3/post + timeout: 3900 + vars: + BUILD_TIMEOUT: '3900000' + required-projects: + - openstack-infra/devstack-gate + - openstack/keystone + - openstack/rally + +- job: + name: legacy-rally-dsvm-cinder + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-cinder/run + post-run: playbooks/legacy/rally-dsvm-cinder/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/cinder + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-cli + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-cli/run + post-run: playbooks/legacy/rally-dsvm-cli/post + timeout: 4800 + vars: + BUILD_TIMEOUT: '4800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/rally + +- job: + name: legacy-rally-dsvm-cue-rabbitmq + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-cue-rabbitmq/run + post-run: playbooks/legacy/rally-dsvm-cue-rabbitmq/post + timeout: 6600 + vars: + BUILD_TIMEOUT: '6600000' + required-projects: + - openstack-infra/devstack-gate + - openstack/cue + - openstack/cue-dashboard + - openstack/python-cueclient + - openstack/rally + +- job: + name: legacy-rally-dsvm-designate-designate-pdns4 + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-designate-designate-pdns4/run + post-run: playbooks/legacy/rally-dsvm-designate-designate-pdns4/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/designate + - openstack/designate-dashboard + - openstack/python-designateclient + - openstack/rally + +- job: + name: legacy-rally-dsvm-designate-rally-pdns4 + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-designate-rally-pdns4/run + post-run: playbooks/legacy/rally-dsvm-designate-rally-pdns4/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/designate + - openstack/designate-dashboard + - openstack/python-designateclient + - openstack/rally + +- job: + name: legacy-rally-dsvm-fakevirt-ceilometer + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-fakevirt-ceilometer/run + post-run: playbooks/legacy/rally-dsvm-fakevirt-ceilometer/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-fakevirt-heat + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-fakevirt-heat/run + post-run: playbooks/legacy/rally-dsvm-fakevirt-heat/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/heat + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-glance + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-glance/run + post-run: playbooks/legacy/rally-dsvm-glance/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/glance + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-ironic-rally + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-ironic-rally/run + post-run: playbooks/legacy/rally-dsvm-ironic-rally/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-keystone + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-keystone/run + post-run: playbooks/legacy/rally-dsvm-keystone/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/keystone + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-keystone-v2api-rally + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-keystone-v2api-rally/run + post-run: playbooks/legacy/rally-dsvm-keystone-v2api-rally/post + timeout: 3900 + vars: + BUILD_TIMEOUT: '3900000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/keystone + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-magnum-rally + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-magnum-rally/run + post-run: playbooks/legacy/rally-dsvm-magnum-rally/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-manila-multibackend + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-manila-multibackend/run + post-run: playbooks/legacy/rally-dsvm-manila-multibackend/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/python-manilaclient + - openstack/rally + +- job: + name: legacy-rally-dsvm-manila-multibackend-no-ss + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/run + post-run: playbooks/legacy/rally-dsvm-manila-multibackend-no-ss/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/manila + - openstack/python-manilaclient + - openstack/rally + +- job: + name: legacy-rally-dsvm-mistral-rally + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-mistral-rally/run + post-run: playbooks/legacy/rally-dsvm-mistral-rally/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/mistral + - openstack/mistral-dashboard + - openstack/python-mistralclient + - openstack/rally + +- job: + name: legacy-rally-dsvm-mistral-task + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-mistral-task/run + post-run: playbooks/legacy/rally-dsvm-mistral-task/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/mistral + - openstack/mistral-dashboard + - openstack/python-mistralclient + - openstack/rally + +- job: + name: legacy-rally-dsvm-monasca-rally + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-monasca-rally/run + post-run: playbooks/legacy/rally-dsvm-monasca-rally/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/monasca-agent + - openstack/monasca-api + - openstack/monasca-common + - openstack/monasca-notification + - openstack/monasca-persister + - openstack/monasca-statsd + - openstack/monasca-thresh + - openstack/python-monascaclient + - openstack/rally + +- job: + name: legacy-rally-dsvm-murano-rally + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-murano-rally/run + post-run: playbooks/legacy/rally-dsvm-murano-rally/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/heat + - openstack/murano + - openstack/murano-dashboard + - openstack/python-heatclient + - openstack/python-muranoclient + - openstack/rally + +- job: + name: legacy-rally-dsvm-murano-task + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-murano-task/run + post-run: playbooks/legacy/rally-dsvm-murano-task/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/heat + - openstack/murano + - openstack/murano-dashboard + - openstack/python-heatclient + - openstack/python-muranoclient + - openstack/rally + +- job: + name: legacy-rally-dsvm-networking-odl-carbon-snapshot + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-networking-odl-carbon-snapshot/run + post-run: playbooks/legacy/rally-dsvm-networking-odl-carbon-snapshot/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-odl + - openstack/rally + +- job: + name: legacy-rally-dsvm-networking-odl-nitrogen-snapshot + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-networking-odl-nitrogen-snapshot/run + post-run: playbooks/legacy/rally-dsvm-networking-odl-nitrogen-snapshot/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-odl + - openstack/rally + +- job: + name: legacy-rally-dsvm-networking-ovn + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-networking-ovn/run + post-run: playbooks/legacy/rally-dsvm-networking-ovn/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-ovn + - openstack/rally + +- job: + name: legacy-rally-dsvm-neutron-existing-users-rally + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-neutron-existing-users-rally/run + post-run: playbooks/legacy/rally-dsvm-neutron-existing-users-rally/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-neutron-extensions-rally + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-neutron-extensions-rally/run + post-run: playbooks/legacy/rally-dsvm-neutron-extensions-rally/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-neutron-neutron + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-neutron-neutron/run + post-run: playbooks/legacy/rally-dsvm-neutron-neutron/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-neutron-rally + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-neutron-rally/run + post-run: playbooks/legacy/rally-dsvm-neutron-rally/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-neutron-telemetry + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-neutron-telemetry/run + post-run: playbooks/legacy/rally-dsvm-neutron-telemetry/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-py35-cinder + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-py35-cinder/run + post-run: playbooks/legacy/rally-dsvm-py35-cinder/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/cinder + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-py35-glance + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-py35-glance/run + post-run: playbooks/legacy/rally-dsvm-py35-glance/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/glance + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-py35-neutron-neutron + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-py35-neutron-neutron/run + post-run: playbooks/legacy/rally-dsvm-py35-neutron-neutron/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-py35-rally-nova + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-py35-rally-nova/run + post-run: playbooks/legacy/rally-dsvm-py35-rally-nova/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/nova + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-rally + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-rally/run + post-run: playbooks/legacy/rally-dsvm-rally/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-rally-cinder + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-rally-cinder/run + post-run: playbooks/legacy/rally-dsvm-rally-cinder/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/cinder + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-rally-heat + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-rally-heat/run + post-run: playbooks/legacy/rally-dsvm-rally-heat/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/heat + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-rally-nova + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-rally-nova/run + post-run: playbooks/legacy/rally-dsvm-rally-nova/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/nova + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-senlin-rally + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-senlin-rally/run + post-run: playbooks/legacy/rally-dsvm-senlin-rally/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-senlin-senlin + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-senlin-senlin/run + post-run: playbooks/legacy/rally-dsvm-senlin-senlin/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-verify-full-create-resources + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-verify-full-create-resources/run + post-run: playbooks/legacy/rally-dsvm-verify-full-create-resources/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/neutron + - openstack/rally + +- job: + name: legacy-rally-dsvm-verify-full-discover-resources + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-verify-full-discover-resources/run + post-run: playbooks/legacy/rally-dsvm-verify-full-discover-resources/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/neutron + - openstack/rally + +- job: + name: legacy-rally-dsvm-verify-light-create-resources + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-verify-light-create-resources/run + post-run: playbooks/legacy/rally-dsvm-verify-light-create-resources/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/neutron + - openstack/rally + +- job: + name: legacy-rally-dsvm-verify-light-discover-resources + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-verify-light-discover-resources/run + post-run: playbooks/legacy/rally-dsvm-verify-light-discover-resources/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/neutron + - openstack/rally + +- job: + name: legacy-rally-dsvm-watcher-rally + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-watcher-rally/run + post-run: playbooks/legacy/rally-dsvm-watcher-rally/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-watcher-watcher + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-watcher-watcher/run + post-run: playbooks/legacy/rally-dsvm-watcher-watcher/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-zaqar-rally + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-zaqar-rally/run + post-run: playbooks/legacy/rally-dsvm-zaqar-rally/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar + - openstack/zaqar-ui + +- job: + name: legacy-rally-dsvm-zaqar-zaqar + parent: legacy-dsvm-base + run: playbooks/legacy/rally-dsvm-zaqar-zaqar/run + post-run: playbooks/legacy/rally-dsvm-zaqar-zaqar/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/diskimage-builder + - openstack/ironic + - openstack/magnum + - openstack/networking-bgpvpn + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/octavia + - openstack/panko + - openstack/python-magnumclient + - openstack/python-senlinclient + - openstack/python-watcherclient + - openstack/python-zaqarclient + - openstack/rally + - openstack/senlin + - openstack/tripleo-image-elements + - openstack/watcher + - openstack/zaqar + - openstack/zaqar-ui + +- job: + name: legacy-rally-install + parent: legacy-base + run: playbooks/legacy/rally-install/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-rally-install-centos-7 + parent: legacy-base + run: playbooks/legacy/rally-install-centos-7/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + nodeset: centos-7 + +- job: + name: legacy-rally-tox-self + parent: legacy-base + run: playbooks/legacy/rally-tox-self/run + post-run: playbooks/legacy/rally-tox-self/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-refstack-tox-py27-func-mysql + parent: legacy-base + run: playbooks/legacy/refstack-tox-py27-func-mysql/run + post-run: playbooks/legacy/refstack-tox-py27-func-mysql/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-refstack-tox-py35-func-mysql + parent: legacy-base + run: playbooks/legacy/refstack-tox-py35-func-mysql/run + post-run: playbooks/legacy/refstack-tox-py35-func-mysql/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-releasenotes + parent: legacy-base + success-url: html/ + run: playbooks/legacy/releasenotes/run + post-run: playbooks/legacy/releasenotes/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-releases-python35 + parent: legacy-base + run: playbooks/legacy/releases-python35/run + post-run: playbooks/legacy/releases-python35/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-releases-tox-list-changes + parent: legacy-base + run: playbooks/legacy/releases-tox-list-changes/run + post-run: playbooks/legacy/releases-tox-list-changes/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-releases-tox-validate + parent: legacy-base + run: playbooks/legacy/releases-tox-validate/run + post-run: playbooks/legacy/releases-tox-validate/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-requests-mock-tox-keystoneclient-tip + parent: legacy-base + run: playbooks/legacy/requests-mock-tox-keystoneclient-tip/run + post-run: playbooks/legacy/requests-mock-tox-keystoneclient-tip/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-requests-mock-tox-novaclient-tip + parent: legacy-base + run: playbooks/legacy/requests-mock-tox-novaclient-tip/run + post-run: playbooks/legacy/requests-mock-tox-novaclient-tip/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-requirements + parent: legacy-base + run: playbooks/legacy/requirements/run + post-run: playbooks/legacy/requirements/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-requirements-integration-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/requirements-integration-dsvm/run + post-run: playbooks/legacy/requirements-integration-dsvm/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-dev/devstack + - openstack-dev/grenade + - openstack-dev/pbr + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/automaton + - openstack/ceilometer + - openstack/ceilometermiddleware + - openstack/cinder + - openstack/cliff + - openstack/debtcollector + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/django_openstack_auth + - openstack/futurist + - openstack/glance + - openstack/glance_store + - openstack/heat + - openstack/heat-cfntools + - openstack/heat-templates + - openstack/horizon + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/keystone + - openstack/keystoneauth + - openstack/keystonemiddleware + - openstack/manila + - openstack/manila-ui + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/nova + - openstack/octavia + - openstack/os-apply-config + - openstack/os-brick + - openstack/os-client-config + - openstack/os-collect-config + - openstack/os-net-config + - openstack/os-refresh-config + - openstack/osc-lib + - openstack/oslo.cache + - openstack/oslo.concurrency + - openstack/oslo.config + - openstack/oslo.context + - openstack/oslo.db + - openstack/oslo.i18n + - openstack/oslo.log + - openstack/oslo.messaging + - openstack/oslo.middleware + - openstack/oslo.policy + - openstack/oslo.reports + - openstack/oslo.rootwrap + - openstack/oslo.serialization + - openstack/oslo.service + - openstack/oslo.utils + - openstack/oslo.versionedobjects + - openstack/oslo.vmware + - openstack/pycadf + - openstack/python-ceilometerclient + - openstack/python-cinderclient + - openstack/python-glanceclient + - openstack/python-heatclient + - openstack/python-ironicclient + - openstack/python-keystoneclient + - openstack/python-manilaclient + - openstack/python-neutronclient + - openstack/python-novaclient + - openstack/python-openstackclient + - openstack/python-saharaclient + - openstack/python-swiftclient + - openstack/python-troveclient + - openstack/python-zaqarclient + - openstack/requirements + - openstack/sahara + - openstack/sahara-dashboard + - openstack/stevedore + - openstack/swift + - openstack/taskflow + - openstack/tempest + - openstack/tempest-lib + - openstack/tooz + - openstack/tripleo-heat-templates + - openstack/tripleo-image-elements + - openstack/tripleo-incubator + - openstack/trove + - openstack/trove-dashboard + - openstack/zaqar + +- job: + name: legacy-requirements-integration-dsvm-ubuntu-trusty + parent: legacy-dsvm-base + run: playbooks/legacy/requirements-integration-dsvm-ubuntu-trusty/run + post-run: playbooks/legacy/requirements-integration-dsvm-ubuntu-trusty/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + nodeset: ubuntu-trusty + required-projects: + - openstack-dev/devstack + - openstack-dev/grenade + - openstack-dev/pbr + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/automaton + - openstack/ceilometer + - openstack/ceilometermiddleware + - openstack/cinder + - openstack/cliff + - openstack/debtcollector + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/django_openstack_auth + - openstack/futurist + - openstack/glance + - openstack/glance_store + - openstack/heat + - openstack/heat-cfntools + - openstack/heat-templates + - openstack/horizon + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/keystone + - openstack/keystoneauth + - openstack/keystonemiddleware + - openstack/manila + - openstack/manila-ui + - openstack/neutron + - openstack/neutron-fwaas + - openstack/neutron-lbaas + - openstack/neutron-vpnaas + - openstack/nova + - openstack/octavia + - openstack/os-apply-config + - openstack/os-brick + - openstack/os-client-config + - openstack/os-collect-config + - openstack/os-net-config + - openstack/os-refresh-config + - openstack/osc-lib + - openstack/oslo.cache + - openstack/oslo.concurrency + - openstack/oslo.config + - openstack/oslo.context + - openstack/oslo.db + - openstack/oslo.i18n + - openstack/oslo.log + - openstack/oslo.messaging + - openstack/oslo.middleware + - openstack/oslo.policy + - openstack/oslo.reports + - openstack/oslo.rootwrap + - openstack/oslo.serialization + - openstack/oslo.service + - openstack/oslo.utils + - openstack/oslo.versionedobjects + - openstack/oslo.vmware + - openstack/pycadf + - openstack/python-ceilometerclient + - openstack/python-cinderclient + - openstack/python-glanceclient + - openstack/python-heatclient + - openstack/python-ironicclient + - openstack/python-keystoneclient + - openstack/python-manilaclient + - openstack/python-neutronclient + - openstack/python-novaclient + - openstack/python-openstackclient + - openstack/python-saharaclient + - openstack/python-swiftclient + - openstack/python-troveclient + - openstack/python-zaqarclient + - openstack/requirements + - openstack/sahara + - openstack/sahara-dashboard + - openstack/stevedore + - openstack/swift + - openstack/taskflow + - openstack/tempest + - openstack/tempest-lib + - openstack/tooz + - openstack/tripleo-heat-templates + - openstack/tripleo-image-elements + - openstack/tripleo-incubator + - openstack/trove + - openstack/trove-dashboard + - openstack/zaqar + +- job: + name: legacy-requirements-python34 + parent: legacy-base + run: playbooks/legacy/requirements-python34/run + post-run: playbooks/legacy/requirements-python34/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-requirements-tox-babel + parent: legacy-base + run: playbooks/legacy/requirements-tox-babel/run + post-run: playbooks/legacy/requirements-tox-babel/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-requirements-tox-py27-check-uc + parent: legacy-base + run: playbooks/legacy/requirements-tox-py27-check-uc/run + post-run: playbooks/legacy/requirements-tox-py27-check-uc/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-requirements-tox-py35-check-uc + parent: legacy-base + run: playbooks/legacy/requirements-tox-py35-check-uc/run + post-run: playbooks/legacy/requirements-tox-py35-check-uc/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-requirements-tox-validate + parent: legacy-base + run: playbooks/legacy/requirements-tox-validate/run + post-run: playbooks/legacy/requirements-tox-validate/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-requirements-tox-validate-projects + parent: legacy-base + run: playbooks/legacy/requirements-tox-validate-projects/run + post-run: playbooks/legacy/requirements-tox-validate-projects/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-rpm-packaging-tox-lint + parent: legacy-base + run: playbooks/legacy/rpm-packaging-tox-lint/run + post-run: playbooks/legacy/rpm-packaging-tox-lint/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-sahara-buildimages-ambari-centos-7 + parent: legacy-base + run: playbooks/legacy/sahara-buildimages-ambari-centos-7/run + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: centos-7 + +- job: + name: legacy-sahara-buildimages-cloudera-centos-7 + parent: legacy-base + run: playbooks/legacy/sahara-buildimages-cloudera-centos-7/run + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + nodeset: centos-7 + +- job: + name: legacy-sahara-cli + parent: legacy-base + run: playbooks/legacy/sahara-cli/run + post-run: playbooks/legacy/sahara-cli/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ara + - openstack/python-saharaclient + - openstack/sahara + - openstack/sahara-tests + +- job: + name: legacy-sahara-dashboard-dsvm-integration + parent: legacy-dsvm-base + run: playbooks/legacy/sahara-dashboard-dsvm-integration/run + post-run: playbooks/legacy/sahara-dashboard-dsvm-integration/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ara + - openstack/sahara + - openstack/sahara-dashboard + +- job: + name: legacy-sahara-dashboard-tox-py27dj110 + parent: legacy-base + run: playbooks/legacy/sahara-dashboard-tox-py27dj110/run + post-run: playbooks/legacy/sahara-dashboard-tox-py27dj110/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-sahara-dashboard-tox-py27dj19 + parent: legacy-base + run: playbooks/legacy/sahara-dashboard-tox-py27dj19/run + post-run: playbooks/legacy/sahara-dashboard-tox-py27dj19/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-sahara-dsvm-scenario-mod-wsgi + parent: legacy-dsvm-base + run: playbooks/legacy/sahara-dsvm-scenario-mod-wsgi/run + post-run: playbooks/legacy/sahara-dsvm-scenario-mod-wsgi/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ara + - openstack/python-saharaclient + - openstack/sahara + - openstack/sahara-extra + - openstack/sahara-image-elements + - openstack/sahara-tests + +- job: + name: legacy-sahara-dsvm-scenario-multinode-spark + parent: legacy-dsvm-base + run: playbooks/legacy/sahara-dsvm-scenario-multinode-spark/run + post-run: playbooks/legacy/sahara-dsvm-scenario-multinode-spark/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ara + - openstack/python-saharaclient + - openstack/sahara + - openstack/sahara-extra + - openstack/sahara-image-elements + - openstack/sahara-tests + +- job: + name: legacy-sahara-dsvm-scenario-neutron + parent: legacy-dsvm-base + run: playbooks/legacy/sahara-dsvm-scenario-neutron/run + post-run: playbooks/legacy/sahara-dsvm-scenario-neutron/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ara + - openstack/neutron + - openstack/python-saharaclient + - openstack/sahara + - openstack/sahara-extra + - openstack/sahara-image-elements + - openstack/sahara-tests + +- job: + name: legacy-sahara-dsvm-scenario-py3 + parent: legacy-dsvm-base + run: playbooks/legacy/sahara-dsvm-scenario-py3/run + post-run: playbooks/legacy/sahara-dsvm-scenario-py3/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ara + - openstack/python-saharaclient + - openstack/sahara + - openstack/sahara-extra + - openstack/sahara-image-elements + - openstack/sahara-tests + +- job: + name: legacy-sahara-extra-artifacts + parent: legacy-base + run: playbooks/legacy/sahara-extra-artifacts/run + timeout: 3900 + vars: + BUILD_TIMEOUT: '3900000' + +- job: + name: legacy-sahara-image-elements-buildimages-ambari + parent: legacy-base + run: playbooks/legacy/sahara-image-elements-buildimages-ambari/run + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + +- job: + name: legacy-sahara-image-elements-buildimages-cloudera + parent: legacy-base + run: playbooks/legacy/sahara-image-elements-buildimages-cloudera/run + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + +- job: + name: legacy-sahara-image-elements-buildimages-mapr + parent: legacy-base + run: playbooks/legacy/sahara-image-elements-buildimages-mapr/run + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + +- job: + name: legacy-sahara-image-elements-buildimages-plain + parent: legacy-base + run: playbooks/legacy/sahara-image-elements-buildimages-plain/run + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + +- job: + name: legacy-sahara-image-elements-buildimages-spark + parent: legacy-base + run: playbooks/legacy/sahara-image-elements-buildimages-spark/run + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + +- job: + name: legacy-sahara-image-elements-buildimages-storm + parent: legacy-base + run: playbooks/legacy/sahara-image-elements-buildimages-storm/run + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + +- job: + name: legacy-sahara-image-elements-buildimages-vanilla + parent: legacy-base + run: playbooks/legacy/sahara-image-elements-buildimages-vanilla/run + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + +- job: + name: legacy-sahara-pylint + parent: legacy-base + run: playbooks/legacy/sahara-pylint/run + post-run: playbooks/legacy/sahara-pylint/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-sahara-tests-pylint + parent: legacy-base + run: playbooks/legacy/sahara-tests-pylint/run + post-run: playbooks/legacy/sahara-tests-pylint/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-sandbox-tag + parent: legacy-base + run: playbooks/legacy/sandbox-tag/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-scalpels-dsvm-neutron + parent: legacy-dsvm-base + run: playbooks/legacy/scalpels-dsvm-neutron/run + post-run: playbooks/legacy/scalpels-dsvm-neutron/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/scalpels + +- job: + name: legacy-sdk-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/sdk-dsvm-functional/run + post-run: playbooks/legacy/sdk-dsvm-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/python-openstacksdk + +- job: + name: legacy-sdk-dsvm-load-balancer-functional + parent: legacy-dsvm-base + run: playbooks/legacy/sdk-dsvm-load-balancer-functional/run + post-run: playbooks/legacy/sdk-dsvm-load-balancer-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/octavia + - openstack/python-openstacksdk + +- job: + name: legacy-searchlight-ui-nodejs4-npm-run-lint + parent: legacy-base + run: playbooks/legacy/searchlight-ui-nodejs4-npm-run-lint/run + post-run: playbooks/legacy/searchlight-ui-nodejs4-npm-run-lint/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-searchlight-ui-nodejs4-npm-run-test + parent: legacy-base + run: playbooks/legacy/searchlight-ui-nodejs4-npm-run-test/run + post-run: playbooks/legacy/searchlight-ui-nodejs4-npm-run-test/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-security-doc-tox-doc-publishdocs + parent: legacy-base + run: playbooks/legacy/security-doc-tox-doc-publishdocs/run + post-run: playbooks/legacy/security-doc-tox-doc-publishdocs/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-senlin-dashboard-nodejs4-npm-run-lint + parent: legacy-base + run: playbooks/legacy/senlin-dashboard-nodejs4-npm-run-lint/run + post-run: playbooks/legacy/senlin-dashboard-nodejs4-npm-run-lint/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-senlin-dashboard-nodejs4-npm-run-test + parent: legacy-base + run: playbooks/legacy/senlin-dashboard-nodejs4-npm-run-test/run + post-run: playbooks/legacy/senlin-dashboard-nodejs4-npm-run-test/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-senlin-dsvm-tempest-py27-api + parent: legacy-dsvm-base + run: playbooks/legacy/senlin-dsvm-tempest-py27-api/run + post-run: playbooks/legacy/senlin-dsvm-tempest-py27-api/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/heat + - openstack/neutron-lbaas + - openstack/python-zaqarclient + - openstack/senlin + - openstack/tempest + - openstack/zaqar + - openstack/zaqar-ui + +- job: + name: legacy-senlin-dsvm-tempest-py27-functional + parent: legacy-dsvm-base + run: playbooks/legacy/senlin-dsvm-tempest-py27-functional/run + post-run: playbooks/legacy/senlin-dsvm-tempest-py27-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/heat + - openstack/neutron-lbaas + - openstack/python-zaqarclient + - openstack/senlin + - openstack/tempest + - openstack/zaqar + - openstack/zaqar-ui + +- job: + name: legacy-senlin-dsvm-tempest-py27-integration + parent: legacy-dsvm-base + run: playbooks/legacy/senlin-dsvm-tempest-py27-integration/run + post-run: playbooks/legacy/senlin-dsvm-tempest-py27-integration/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/heat + - openstack/neutron-lbaas + - openstack/python-zaqarclient + - openstack/senlin + - openstack/tempest + - openstack/zaqar + - openstack/zaqar-ui + +- job: + name: legacy-senlin-dsvm-tempest-py35-api + parent: legacy-dsvm-base + run: playbooks/legacy/senlin-dsvm-tempest-py35-api/run + post-run: playbooks/legacy/senlin-dsvm-tempest-py35-api/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/heat + - openstack/neutron-lbaas + - openstack/python-zaqarclient + - openstack/senlin + - openstack/tempest + - openstack/zaqar + - openstack/zaqar-ui + +- job: + name: legacy-senlin-dsvm-tempest-py35-functional + parent: legacy-dsvm-base + run: playbooks/legacy/senlin-dsvm-tempest-py35-functional/run + post-run: playbooks/legacy/senlin-dsvm-tempest-py35-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/heat + - openstack/neutron-lbaas + - openstack/python-zaqarclient + - openstack/senlin + - openstack/tempest + - openstack/zaqar + - openstack/zaqar-ui + +- job: + name: legacy-senlin-dsvm-tempest-py35-integration + parent: legacy-dsvm-base + run: playbooks/legacy/senlin-dsvm-tempest-py35-integration/run + post-run: playbooks/legacy/senlin-dsvm-tempest-py35-integration/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/heat + - openstack/neutron-lbaas + - openstack/python-zaqarclient + - openstack/senlin + - openstack/tempest + - openstack/zaqar + - openstack/zaqar-ui + +- job: + name: legacy-senlinclient-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/senlinclient-dsvm-functional/run + post-run: playbooks/legacy/senlinclient-dsvm-functional/post + timeout: 7200 + vars: + BUILD_TIMEOUT: '7200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/python-senlinclient + - openstack/senlin + +- job: + name: legacy-service-types-authority-validate + parent: legacy-base + run: playbooks/legacy/service-types-authority-validate/run + post-run: playbooks/legacy/service-types-authority-validate/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-shade-ansible + parent: legacy-base + run: playbooks/legacy/shade-ansible/run + post-run: playbooks/legacy/shade-ansible/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/shade + +- job: + name: legacy-shade-ansible-dev + parent: legacy-base + run: playbooks/legacy/shade-ansible-dev/run + post-run: playbooks/legacy/shade-ansible-dev/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/shade + +- job: + name: legacy-shade-functional + parent: legacy-base + run: playbooks/legacy/shade-functional/run + post-run: playbooks/legacy/shade-functional/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/shade + - openstack/keystoneauth + - openstack/os-client-config + - openstack/python-keystoneclient + - openstack/python-novaclient + +- job: + name: legacy-shade-functional-legacy + parent: legacy-base + run: playbooks/legacy/shade-functional-legacy/run + post-run: playbooks/legacy/shade-functional-legacy/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/shade + - openstack/keystoneauth + - openstack/os-client-config + - openstack/python-keystoneclient + - openstack/python-novaclient + +- job: + name: legacy-shade-functional-legacy-libs + parent: legacy-base + run: playbooks/legacy/shade-functional-libs/run + post-run: playbooks/legacy/shade-functional-libs/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/shade + - openstack/keystoneauth + - openstack/os-client-config + - openstack/python-keystoneclient + - openstack/python-novaclient + +- job: + name: legacy-shade-functional-legacy-libs-py35 + parent: legacy-base + run: playbooks/legacy/shade-functional-libs-py35/run + post-run: playbooks/legacy/shade-functional-libs-py35/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/shade + - openstack/keystoneauth + - openstack/os-client-config + - openstack/python-keystoneclient + - openstack/python-novaclient + +- job: + name: legacy-shade-functional-libs + parent: legacy-base + run: playbooks/legacy/shade-functional-libs/run + post-run: playbooks/legacy/shade-functional-libs/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/shade + - openstack/keystoneauth + - openstack/os-client-config + - openstack/python-keystoneclient + - openstack/python-novaclient + +- job: + name: legacy-shade-functional-libs-py35 + parent: legacy-base + run: playbooks/legacy/shade-functional-libs-py35/run + post-run: playbooks/legacy/shade-functional-libs-py35/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/shade + - openstack/keystoneauth + - openstack/os-client-config + - openstack/python-keystoneclient + - openstack/python-novaclient + +- job: + name: legacy-shade-functional-magnum + parent: legacy-base + run: playbooks/legacy/shade-functional-magnum/run + post-run: playbooks/legacy/shade-functional-magnum/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/shade + - openstack/magnum + - openstack/python-magnumclient + +- job: + name: legacy-shade-functional-py35 + parent: legacy-base + run: playbooks/legacy/shade-functional-py35/run + post-run: playbooks/legacy/shade-functional-py35/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/shade + - openstack/keystoneauth + - openstack/os-client-config + - openstack/python-keystoneclient + - openstack/python-novaclient + +- job: + name: legacy-solum-devstack-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/solum-devstack-dsvm/run + post-run: playbooks/legacy/solum-devstack-dsvm/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/devstack-plugin-container + - openstack/mistral + - openstack/python-solumclient + - openstack/python-zunclient + - openstack/solum + - openstack/solum-dashboard + - openstack/zun + +- job: + name: legacy-solum-devstack-dsvm-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/solum-devstack-dsvm-centos-7/run + post-run: playbooks/legacy/solum-devstack-dsvm-centos-7/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + nodeset: centos-7 + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/devstack-plugin-container + - openstack/mistral + - openstack/python-solumclient + - openstack/python-zunclient + - openstack/solum + - openstack/solum-dashboard + - openstack/zun + +- job: + name: legacy-solum-devstack-dsvm-py35 + parent: legacy-dsvm-base + run: playbooks/legacy/solum-devstack-dsvm-py35/run + post-run: playbooks/legacy/solum-devstack-dsvm-py35/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/devstack-plugin-container + - openstack/mistral + - openstack/python-solumclient + - openstack/python-zunclient + - openstack/solum + - openstack/solum-dashboard + - openstack/zun + +- job: + name: legacy-solum-devstack-dsvm-seperate-test + parent: legacy-dsvm-base + run: playbooks/legacy/solum-devstack-dsvm-seperate-test/run + post-run: playbooks/legacy/solum-devstack-dsvm-seperate-test/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/devstack-plugin-container + - openstack/mistral + - openstack/python-solumclient + - openstack/python-zunclient + - openstack/solum + - openstack/solum-dashboard + - openstack/solum-tempest-plugin + - openstack/zun + +- job: + name: legacy-sqlalchemy-migrate-devstack-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/sqlalchemy-migrate-devstack-dsvm/run + post-run: playbooks/legacy/sqlalchemy-migrate-devstack-dsvm/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/sqlalchemy-migrate + +- job: + name: legacy-sqlalchemy-migrate-tox-py27sa07 + parent: legacy-base + run: playbooks/legacy/sqlalchemy-migrate-tox-py27sa07/run + post-run: playbooks/legacy/sqlalchemy-migrate-tox-py27sa07/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-static-election-publish + parent: legacy-base + run: playbooks/legacy/static-election-publish/run + post-run: playbooks/legacy/static-election-publish/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-static-governance-publish + parent: legacy-base + run: playbooks/legacy/static-governance-publish/run + post-run: playbooks/legacy/static-governance-publish/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-static-governance-uc-publish + parent: legacy-base + run: playbooks/legacy/static-governance-uc-publish/run + post-run: playbooks/legacy/static-governance-uc-publish/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-static-governance-website-publish + parent: legacy-base + run: playbooks/legacy/static-governance-website-publish/run + post-run: playbooks/legacy/static-governance-website-publish/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-static-ossa-publish + parent: legacy-base + run: playbooks/legacy/static-ossa-publish/run + post-run: playbooks/legacy/static-ossa-publish/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-static-releases-publish + parent: legacy-base + run: playbooks/legacy/static-releases-publish/run + post-run: playbooks/legacy/static-releases-publish/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-static-transparency-policy-publish + parent: legacy-base + run: playbooks/legacy/static-transparency-policy-publish/run + post-run: playbooks/legacy/static-transparency-policy-publish/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-storlets-functional + parent: legacy-base + run: playbooks/legacy/storlets-functional/run + post-run: playbooks/legacy/storlets-functional/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-storyboard-js-integration + parent: legacy-base + run: playbooks/legacy/storyboard-js-integration/run + post-run: playbooks/legacy/storyboard-js-integration/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-storyboard-js-integration-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/storyboard-js-integration-ubuntu-trusty/run + post-run: playbooks/legacy/storyboard-js-integration-ubuntu-trusty/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + nodeset: ubuntu-trusty + +- job: + name: legacy-storyboard-webclient-js-draft + parent: legacy-base + success-url: html/ + run: playbooks/legacy/storyboard-webclient-js-draft/run + post-run: playbooks/legacy/storyboard-webclient-js-draft/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-storyboard-webclient-js-release-branch + parent: legacy-base + run: playbooks/legacy/storyboard-webclient-js-release-branch/run + post-run: playbooks/legacy/storyboard-webclient-js-release-branch/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-storyboard-webclient-js-release-master + parent: legacy-base + run: playbooks/legacy/storyboard-webclient-js-release-master/run + post-run: playbooks/legacy/storyboard-webclient-js-release-master/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-storyboard-webclient-nodejs4-npm-run-lint + parent: legacy-base + run: playbooks/legacy/storyboard-webclient-nodejs4-npm-run-lint/run + post-run: playbooks/legacy/storyboard-webclient-nodejs4-npm-run-lint/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-storyboard-webclient-nodejs4-npm-run-test-functional + parent: legacy-base + run: playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-functional/run + post-run: playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-functional/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-storyboard-webclient-nodejs4-npm-run-test-integration + parent: legacy-base + run: playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-integration/run + post-run: playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-integration/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-storyboard-webclient-nodejs4-npm-run-test-unit + parent: legacy-base + run: playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-unit/run + post-run: playbooks/legacy/storyboard-webclient-nodejs4-npm-run-test-unit/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-swift-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/swift-dsvm-functional/run + post-run: playbooks/legacy/swift-dsvm-functional/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/swift + +- job: + name: legacy-swift-dsvm-functional-identity-v3-only + parent: legacy-dsvm-base + run: playbooks/legacy/swift-dsvm-functional-identity-v3-only/run + post-run: playbooks/legacy/swift-dsvm-functional-identity-v3-only/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/swift + +- job: + name: legacy-swift-tox-xfs-tmp-func + parent: legacy-base + run: playbooks/legacy/swift-tox-xfs-tmp-func/run + post-run: playbooks/legacy/swift-tox-xfs-tmp-func/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-swift-tox-xfs-tmp-func-centos-7 + parent: legacy-base + run: playbooks/legacy/swift-tox-xfs-tmp-func-centos-7/run + post-run: playbooks/legacy/swift-tox-xfs-tmp-func-centos-7/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + nodeset: centos-7 + +- job: + name: legacy-swift-tox-xfs-tmp-func-ec + parent: legacy-base + run: playbooks/legacy/swift-tox-xfs-tmp-func-ec/run + post-run: playbooks/legacy/swift-tox-xfs-tmp-func-ec/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-swift-tox-xfs-tmp-func-ec-centos-7 + parent: legacy-base + run: playbooks/legacy/swift-tox-xfs-tmp-func-ec-centos-7/run + post-run: playbooks/legacy/swift-tox-xfs-tmp-func-ec-centos-7/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + nodeset: centos-7 + +- job: + name: legacy-swift-tox-xfs-tmp-func-encryption + parent: legacy-base + run: playbooks/legacy/swift-tox-xfs-tmp-func-encryption/run + post-run: playbooks/legacy/swift-tox-xfs-tmp-func-encryption/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-swift-tox-xfs-tmp-func-encryption-centos-7 + parent: legacy-base + run: playbooks/legacy/swift-tox-xfs-tmp-func-encryption-centos-7/run + post-run: playbooks/legacy/swift-tox-xfs-tmp-func-encryption-centos-7/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + nodeset: centos-7 + +- job: + name: legacy-swift-tox-xfs-tmp-func-fast-post + parent: legacy-base + run: playbooks/legacy/swift-tox-xfs-tmp-func-fast-post/run + post-run: playbooks/legacy/swift-tox-xfs-tmp-func-fast-post/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-swift-tox-xfs-tmp-func-fast-post-centos-7 + parent: legacy-base + run: playbooks/legacy/swift-tox-xfs-tmp-func-fast-post-centos-7/run + post-run: playbooks/legacy/swift-tox-xfs-tmp-func-fast-post-centos-7/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + nodeset: centos-7 + +- job: + name: legacy-swift-tox-xfs-tmp-func-post-as-copy + parent: legacy-base + run: playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy/run + post-run: playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-swift-tox-xfs-tmp-func-post-as-copy-centos-7 + parent: legacy-base + run: playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy-centos-7/run + post-run: playbooks/legacy/swift-tox-xfs-tmp-func-post-as-copy-centos-7/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + nodeset: centos-7 + +- job: + name: legacy-swift-tox-xfs-tmp-py27 + parent: legacy-base + run: playbooks/legacy/swift-tox-xfs-tmp-py27/run + post-run: playbooks/legacy/swift-tox-xfs-tmp-py27/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-swift-tox-xfs-tmp-py27-centos-7 + parent: legacy-base + run: playbooks/legacy/swift-tox-xfs-tmp-py27-centos-7/run + post-run: playbooks/legacy/swift-tox-xfs-tmp-py27-centos-7/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + nodeset: centos-7 + +- job: + name: legacy-swift-tox-xfs-tmp-py35 + parent: legacy-base + run: playbooks/legacy/swift-tox-xfs-tmp-py35/run + post-run: playbooks/legacy/swift-tox-xfs-tmp-py35/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-swift3-pylint + parent: legacy-base + run: playbooks/legacy/swift3-pylint/run + post-run: playbooks/legacy/swift3-pylint/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-swift3-tox-keystone + parent: legacy-base + run: playbooks/legacy/swift3-tox-keystone/run + post-run: playbooks/legacy/swift3-tox-keystone/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-swift3-tox-s3acl + parent: legacy-base + run: playbooks/legacy/swift3-tox-s3acl/run + post-run: playbooks/legacy/swift3-tox-s3acl/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-swift3-tox-s3tests_keystone + parent: legacy-base + run: playbooks/legacy/swift3-tox-s3tests_keystone/run + post-run: playbooks/legacy/swift3-tox-s3tests_keystone/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-swift3-tox-s3tests_tempauth + parent: legacy-base + run: playbooks/legacy/swift3-tox-s3tests_tempauth/run + post-run: playbooks/legacy/swift3-tox-s3tests_tempauth/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-swift3-tox-tempauth + parent: legacy-base + run: playbooks/legacy/swift3-tox-tempauth/run + post-run: playbooks/legacy/swift3-tox-tempauth/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-swiftclient-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/swiftclient-dsvm-functional/run + post-run: playbooks/legacy/swiftclient-dsvm-functional/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/python-swiftclient + - openstack/swift + +- job: + name: legacy-swiftclient-dsvm-functional-identity-v3-only + parent: legacy-dsvm-base + run: playbooks/legacy/swiftclient-dsvm-functional-identity-v3-only/run + post-run: playbooks/legacy/swiftclient-dsvm-functional-identity-v3-only/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/python-swiftclient + - openstack/swift + +- job: + name: legacy-system-config-puppet-syntax-3 + parent: legacy-base + run: playbooks/legacy/system-config-puppet-syntax-3/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-tacker-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/tacker-dsvm-functional/run + post-run: playbooks/legacy/tacker-dsvm-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/barbican + - openstack/ceilometer + - openstack/heat + - openstack/mistral + - openstack/mistral-dashboard + - openstack/networking-sfc + - openstack/python-barbicanclient + - openstack/python-mistralclient + - openstack/python-tackerclient + - openstack/tacker + - openstack/tacker-horizon + +- job: + name: legacy-telemetry-dsvm-integration-aodh + parent: legacy-dsvm-base + run: playbooks/legacy/telemetry-dsvm-integration-aodh/run + post-run: playbooks/legacy/telemetry-dsvm-integration-aodh/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/panko + +- job: + name: legacy-telemetry-dsvm-integration-ceilometer + parent: legacy-dsvm-base + run: playbooks/legacy/telemetry-dsvm-integration-ceilometer/run + post-run: playbooks/legacy/telemetry-dsvm-integration-ceilometer/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/panko + +- job: + name: legacy-telemetry-dsvm-integration-oslo.messaging + parent: legacy-dsvm-base + run: playbooks/legacy/telemetry-dsvm-integration-oslo.messaging/run + post-run: playbooks/legacy/telemetry-dsvm-integration-oslo.messaging/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/oslo.messaging + - openstack/panko + +- job: + name: legacy-telemetry-dsvm-integration-panko + parent: legacy-dsvm-base + run: playbooks/legacy/telemetry-dsvm-integration-panko/run + post-run: playbooks/legacy/telemetry-dsvm-integration-panko/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/panko + +- job: + name: legacy-telemetry-dsvm-integration-python-ceilometerclient + parent: legacy-dsvm-base + run: playbooks/legacy/telemetry-dsvm-integration-python-ceilometerclient/run + post-run: playbooks/legacy/telemetry-dsvm-integration-python-ceilometerclient/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/ceilometer + - openstack/panko + - openstack/python-ceilometerclient + +- job: + name: legacy-tempest-almanach-dsvm + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-almanach-dsvm/run + post-run: playbooks/legacy/tempest-almanach-dsvm/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/almanach + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-cells + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-cells/run + post-run: playbooks/legacy/tempest-dsvm-cells/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-cinder-v1 + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-cinder-v1/run + post-run: playbooks/legacy/tempest-dsvm-cinder-v1/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/cinder + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-designate-agent-djbdns + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-designate-agent-djbdns/run + post-run: playbooks/legacy/tempest-dsvm-designate-agent-djbdns/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/designate + - openstack/designate-dashboard + - openstack/designate-tempest-plugin + - openstack/python-designateclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-designate-agent-gdnsd + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-designate-agent-gdnsd/run + post-run: playbooks/legacy/tempest-dsvm-designate-agent-gdnsd/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/designate + - openstack/designate-dashboard + - openstack/designate-tempest-plugin + - openstack/python-designateclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-designate-agent-knot2 + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-designate-agent-knot2/run + post-run: playbooks/legacy/tempest-dsvm-designate-agent-knot2/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/designate + - openstack/designate-dashboard + - openstack/designate-tempest-plugin + - openstack/python-designateclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-designate-bind9 + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-designate-bind9/run + post-run: playbooks/legacy/tempest-dsvm-designate-bind9/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/designate + - openstack/designate-dashboard + - openstack/designate-tempest-plugin + - openstack/python-designateclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-designate-pdns4 + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-designate-pdns4/run + post-run: playbooks/legacy/tempest-dsvm-designate-pdns4/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/designate + - openstack/designate-dashboard + - openstack/designate-tempest-plugin + - openstack/python-designateclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-designate-pdns4-identity-v3-only + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-designate-pdns4-identity-v3-only/run + post-run: playbooks/legacy/tempest-dsvm-designate-pdns4-identity-v3-only/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/designate + - openstack/designate-dashboard + - openstack/designate-tempest-plugin + - openstack/python-designateclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-designate-pdns4-postgres + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-designate-pdns4-postgres/run + post-run: playbooks/legacy/tempest-dsvm-designate-pdns4-postgres/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/designate + - openstack/designate-dashboard + - openstack/designate-tempest-plugin + - openstack/python-designateclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-designate-pdns4-py35 + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-designate-pdns4-py35/run + post-run: playbooks/legacy/tempest-dsvm-designate-pdns4-py35/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/designate + - openstack/designate-dashboard + - openstack/designate-tempest-plugin + - openstack/python-designateclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-designate-pdns4-worker-model + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-designate-pdns4-worker-model/run + post-run: playbooks/legacy/tempest-dsvm-designate-pdns4-worker-model/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/designate + - openstack/designate-dashboard + - openstack/designate-tempest-plugin + - openstack/python-designateclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-dragonflow + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-dragonflow/run + post-run: playbooks/legacy/tempest-dsvm-dragonflow/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/dragonflow + - openstack/networking-sfc + - openstack/neutron-dynamic-routing + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-full-amqp1 + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-full-amqp1/run + post-run: playbooks/legacy/tempest-dsvm-full-amqp1/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-amqp1 + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-full-bdd + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-full-bdd/run + post-run: playbooks/legacy/tempest-dsvm-full-bdd/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-bdd + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-full-ceph-plugin-src-glance_store + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-glance_store/run + post-run: playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-glance_store/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-ceph + - openstack/glance + - openstack/glance_store + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-full-ceph-plugin-src-os-brick + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-os-brick/run + post-run: playbooks/legacy/tempest-dsvm-full-ceph-plugin-src-os-brick/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-ceph + - openstack/os-brick + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-full-devstack-plugin-ceph + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-full-devstack-plugin-ceph/run + post-run: playbooks/legacy/tempest-dsvm-full-devstack-plugin-ceph/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/devstack-plugin-ceph + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-full-devstack-plugin-nfs + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-full-devstack-plugin-nfs/run + post-run: playbooks/legacy/tempest-dsvm-full-devstack-plugin-nfs/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/devstack-plugin-nfs + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-full-drbd-devstack + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-full-drbd-devstack/run + post-run: playbooks/legacy/tempest-dsvm-full-drbd-devstack/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/drbd-devstack + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-full-hdfs + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-full-hdfs/run + post-run: playbooks/legacy/tempest-dsvm-full-hdfs/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-hdfs + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-full-kafka + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-full-kafka/run + post-run: playbooks/legacy/tempest-dsvm-full-kafka/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-kafka + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-full-lio + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-full-lio/run + post-run: playbooks/legacy/tempest-dsvm-full-lio/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/python-barbicanclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-full-lio-src-os-brick + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-full-lio-src-os-brick/run + post-run: playbooks/legacy/tempest-dsvm-full-lio-src-os-brick/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/os-brick + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-full-sheepdog + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-full-sheepdog/run + post-run: playbooks/legacy/tempest-dsvm-full-sheepdog/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-sheepdog + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-full-sheepdog-src-os-brick + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-full-sheepdog-src-os-brick/run + post-run: playbooks/legacy/tempest-dsvm-full-sheepdog-src-os-brick/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-sheepdog + - openstack/os-brick + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-full-test-accounts + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-full-test-accounts/run + post-run: playbooks/legacy/tempest-dsvm-full-test-accounts/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-full-zmq + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-full-zmq/run + post-run: playbooks/legacy/tempest-dsvm-full-zmq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-zmq + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-identity-v3-test-accounts + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-identity-v3-test-accounts/run + post-run: playbooks/legacy/tempest-dsvm-identity-v3-test-accounts/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-ironic-bfv + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-bfv/run + post-run: playbooks/legacy/tempest-dsvm-ironic-bfv/post + timeout: 9600 + vars: + BUILD_TIMEOUT: '9600000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-inspector + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-inspector/run + post-run: playbooks/legacy/tempest-dsvm-ironic-inspector/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-inspector + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-inspector-discovery + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-inspector-discovery/run + post-run: playbooks/legacy/tempest-dsvm-ironic-inspector-discovery/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-inspector + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-inspector-src + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-inspector-src/run + post-run: playbooks/legacy/tempest-dsvm-ironic-inspector-src/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-inspector + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-coreos-src/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-agent_ipmitool-tinyipa-src/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-coreos-src/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa-src/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-bios-pxe_ipmitool-tinyipa256-src/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3 + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-pxe_ipmitool-tinyipa-python3/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-partition-redfish-sushy-src + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-sushy-src/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-sushy-src/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/sushy + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-partition-redfish-tinyipa + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-tinyipa/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-redfish-tinyipa/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-partition-uefi-pxe_ipmitool-tinyipa/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-resourceclasses-partition-pxe_ipmitool-tinyipa/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-agent_ipmitool-tinyipa-multinode/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/networking-generic-switch + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-coreos-src/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-agent_ipmitool-tinyipa-src/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-coreos-src/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_ipmitool-tinyipa-src/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa/run + post-run: playbooks/legacy/tempest-dsvm-ironic-ipa-wholedisk-bios-pxe_snmp-tinyipa/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-lib-partition-agent_ipmitool + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-lib-partition-agent_ipmitool/run + post-run: playbooks/legacy/tempest-dsvm-ironic-lib-partition-agent_ipmitool/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-lib-partition-pxe_ipmitool + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-lib-partition-pxe_ipmitool/run + post-run: playbooks/legacy/tempest-dsvm-ironic-lib-partition-pxe_ipmitool/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool/run + post-run: playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-agent_ipmitool/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool/run + post-run: playbooks/legacy/tempest-dsvm-ironic-lib-wholedisk-pxe_ipmitool/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-multitenant-network + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-multitenant-network/run + post-run: playbooks/legacy/tempest-dsvm-ironic-multitenant-network/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/networking-generic-switch + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-parallel + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-parallel/run + post-run: playbooks/legacy/tempest-dsvm-ironic-parallel/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ara + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/python-ironicclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-ironic-pxe_ipa-full + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-pxe_ipa-full/run + post-run: playbooks/legacy/tempest-dsvm-ironic-pxe_ipa-full/post + timeout: 9600 + vars: + BUILD_TIMEOUT: '9600000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-pxe_ipmitool-postgres + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-postgres/run + post-run: playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-postgres/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src/run + post-run: playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-pyghmi-src/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src/run + post-run: playbooks/legacy/tempest-dsvm-ironic-pxe_ipmitool-virtualbmc-src/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-ironic-pxe_snmp-virtualpdu-src + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-pxe_snmp-virtualpdu-src/run + post-run: playbooks/legacy/tempest-dsvm-ironic-pxe_snmp-virtualpdu-src/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + - openstack/virtualpdu + +- job: + name: legacy-tempest-dsvm-ironic-staging-drivers-ansible-wholedisk + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ironic-staging-drivers-ansible-wholedisk/run + post-run: playbooks/legacy/tempest-dsvm-ironic-staging-drivers-ansible-wholedisk/post + timeout: 4800 + vars: + BUILD_TIMEOUT: '4800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/ironic-staging-drivers + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-kuryr-kubernetes-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-kuryr-kubernetes-multinode/run + post-run: playbooks/legacy/tempest-dsvm-kuryr-kubernetes-multinode/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/kuryr + - openstack/kuryr-kubernetes + - openstack/kuryr-tempest-plugin + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-lbaasv2-kuryr-kubernetes + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-lbaasv2-kuryr-kubernetes/run + post-run: playbooks/legacy/tempest-dsvm-lbaasv2-kuryr-kubernetes/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/kuryr + - openstack/kuryr-kubernetes + - openstack/kuryr-tempest-plugin + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-ldap-domain-specific-driver + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-ldap-domain-specific-driver/run + post-run: playbooks/legacy/tempest-dsvm-ldap-domain-specific-driver/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-lvm + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-lvm/run + post-run: playbooks/legacy/tempest-dsvm-lvm/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-lvm-multibackend + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-lvm-multibackend/run + post-run: playbooks/legacy/tempest-dsvm-lvm-multibackend/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-lxc + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-lxc/run + post-run: playbooks/legacy/tempest-dsvm-lxc/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-lxd-linuxbridge + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-lxd-linuxbridge/run + post-run: playbooks/legacy/tempest-dsvm-lxd-linuxbridge/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/nova-lxd + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-lxd-ovs + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-lxd-ovs/run + post-run: playbooks/legacy/tempest-dsvm-lxd-ovs/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/nova-lxd + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-monasca-java-mysql-full + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-monasca-java-mysql-full/run + post-run: playbooks/legacy/tempest-dsvm-monasca-java-mysql-full/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/monasca-agent + - openstack/monasca-api + - openstack/monasca-common + - openstack/monasca-grafana-datasource + - openstack/monasca-notification + - openstack/monasca-persister + - openstack/monasca-statsd + - openstack/monasca-thresh + - openstack/monasca-ui + - openstack/python-monascaclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-monasca-java-postgresql-full + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-monasca-java-postgresql-full/run + post-run: playbooks/legacy/tempest-dsvm-monasca-java-postgresql-full/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/monasca-agent + - openstack/monasca-api + - openstack/monasca-common + - openstack/monasca-grafana-datasource + - openstack/monasca-notification + - openstack/monasca-persister + - openstack/monasca-statsd + - openstack/monasca-thresh + - openstack/monasca-ui + - openstack/python-monascaclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-monasca-log-api + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-monasca-log-api/run + post-run: playbooks/legacy/tempest-dsvm-monasca-log-api/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/monasca-agent + - openstack/monasca-api + - openstack/monasca-common + - openstack/monasca-grafana-datasource + - openstack/monasca-kibana-plugin + - openstack/monasca-log-api + - openstack/monasca-notification + - openstack/monasca-persister + - openstack/monasca-statsd + - openstack/monasca-thresh + - openstack/monasca-ui + - openstack/python-monascaclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-monasca-pipeline-events + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-monasca-pipeline-events/run + post-run: playbooks/legacy/tempest-dsvm-monasca-pipeline-events/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-monasca-pipeline-logs + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-monasca-pipeline-logs/run + post-run: playbooks/legacy/tempest-dsvm-monasca-pipeline-logs/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-monasca-python-mysql-full + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-monasca-python-mysql-full/run + post-run: playbooks/legacy/tempest-dsvm-monasca-python-mysql-full/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/monasca-agent + - openstack/monasca-api + - openstack/monasca-common + - openstack/monasca-grafana-datasource + - openstack/monasca-notification + - openstack/monasca-persister + - openstack/monasca-statsd + - openstack/monasca-thresh + - openstack/monasca-ui + - openstack/python-monascaclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-monasca-python-postgresql-full + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-monasca-python-postgresql-full/run + post-run: playbooks/legacy/tempest-dsvm-monasca-python-postgresql-full/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/monasca-agent + - openstack/monasca-api + - openstack/monasca-common + - openstack/monasca-grafana-datasource + - openstack/monasca-notification + - openstack/monasca-persister + - openstack/monasca-statsd + - openstack/monasca-thresh + - openstack/monasca-ui + - openstack/python-monascaclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-monasca-transform-python-functional + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-monasca-transform-python-functional/run + post-run: playbooks/legacy/tempest-dsvm-monasca-transform-python-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/monasca-agent + - openstack/monasca-api + - openstack/monasca-common + - openstack/monasca-grafana-datasource + - openstack/monasca-notification + - openstack/monasca-persister + - openstack/monasca-statsd + - openstack/monasca-thresh + - openstack/monasca-transform + - openstack/monasca-ui + - openstack/python-monascaclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-monasca-transform-python35-functional + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-monasca-transform-python35-functional/run + post-run: playbooks/legacy/tempest-dsvm-monasca-transform-python35-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/monasca-agent + - openstack/monasca-api + - openstack/monasca-common + - openstack/monasca-grafana-datasource + - openstack/monasca-notification + - openstack/monasca-persister + - openstack/monasca-statsd + - openstack/monasca-thresh + - openstack/monasca-transform + - openstack/monasca-ui + - openstack/python-monascaclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-mongodb-zaqar + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-mongodb-zaqar/run + post-run: playbooks/legacy/tempest-dsvm-mongodb-zaqar/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/python-zaqarclient + - openstack/tempest + - openstack/zaqar + - openstack/zaqar-tempest-plugin + +- job: + name: legacy-tempest-dsvm-multibackend-matrix + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-multibackend-matrix/run + post-run: playbooks/legacy/tempest-dsvm-multibackend-matrix/post + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-ceph + - openstack/devstack-plugin-nfs + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-multinode-full + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-multinode-full/run + post-run: playbooks/legacy/tempest-dsvm-multinode-full/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-multinode-live-migration + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-multinode-live-migration/run + post-run: playbooks/legacy/tempest-dsvm-multinode-live-migration/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-murano-api + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-murano-api/run + post-run: playbooks/legacy/tempest-dsvm-murano-api/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/heat + - openstack/murano + - openstack/murano-dashboard + - openstack/python-heatclient + - openstack/python-muranoclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-murano-cfapi + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-murano-cfapi/run + post-run: playbooks/legacy/tempest-dsvm-murano-cfapi/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/heat + - openstack/murano + - openstack/murano-dashboard + - openstack/python-heatclient + - openstack/python-muranoclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-bagpipe + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-bagpipe/run + post-run: playbooks/legacy/tempest-dsvm-networking-bagpipe/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-bagpipe + - openstack/networking-bgpvpn + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-bgpvpn-bagpipe + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-bgpvpn-bagpipe/run + post-run: playbooks/legacy/tempest-dsvm-networking-bgpvpn-bagpipe/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-bagpipe + - openstack/networking-bgpvpn + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-calico + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-calico/run + post-run: playbooks/legacy/tempest-dsvm-networking-calico/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-calico + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-midonet-aio-ml2 + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2/run + post-run: playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-l2gw + - openstack/networking-midonet + - openstack/neutron-dynamic-routing + - openstack/tap-as-a-service + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-midonet-aio-ml2-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-centos-7/run + post-run: playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-centos-7/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-l2gw + - openstack/networking-midonet + - openstack/neutron-dynamic-routing + - openstack/tap-as-a-service + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-midonet-aio-ml2-full + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full/run + post-run: playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-l2gw + - openstack/networking-midonet + - openstack/neutron-dynamic-routing + - openstack/tap-as-a-service + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-midonet-aio-ml2-full-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-centos-7/run + post-run: playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-centos-7/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-l2gw + - openstack/networking-midonet + - openstack/neutron-dynamic-routing + - openstack/tap-as-a-service + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-midonet-aio-ml2-full-legacy + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-legacy/run + post-run: playbooks/legacy/tempest-dsvm-networking-midonet-aio-ml2-full-legacy/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-l2gw + - openstack/networking-midonet + - openstack/neutron-dynamic-routing + - openstack/tap-as-a-service + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-midonet-aio-v2 + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2/run + post-run: playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-l2gw + - openstack/networking-midonet + - openstack/neutron-dynamic-routing + - openstack/tap-as-a-service + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-midonet-aio-v2-full + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2-full/run + post-run: playbooks/legacy/tempest-dsvm-networking-midonet-aio-v2-full/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-l2gw + - openstack/networking-midonet + - openstack/neutron-dynamic-routing + - openstack/tap-as-a-service + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-midonet-multinode-ml2 + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-midonet-multinode-ml2/run + post-run: playbooks/legacy/tempest-dsvm-networking-midonet-multinode-ml2/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-l2gw + - openstack/networking-midonet + - openstack/neutron-dynamic-routing + - openstack/tap-as-a-service + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-odl-boron-snapshot-v2driver + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-odl-boron-snapshot-v2driver/run + post-run: playbooks/legacy/tempest-dsvm-networking-odl-boron-snapshot-v2driver/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-odl + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver/run + post-run: playbooks/legacy/tempest-dsvm-networking-odl-carbon-snapshot-vpnservice-v2driver/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-odl + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-odl-multinode-carbon-snapshot + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-odl-multinode-carbon-snapshot/run + post-run: playbooks/legacy/tempest-dsvm-networking-odl-multinode-carbon-snapshot/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-odl + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-odl-multinode-nitrogen-snapshot + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-odl-multinode-nitrogen-snapshot/run + post-run: playbooks/legacy/tempest-dsvm-networking-odl-multinode-nitrogen-snapshot/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-odl + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver/run + post-run: playbooks/legacy/tempest-dsvm-networking-odl-nitrogen-snapshot-vpnservice-v2driver/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-odl + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-onos + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-onos/run + post-run: playbooks/legacy/tempest-dsvm-networking-onos/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-onos + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-ovn-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-ovn-multinode/run + post-run: playbooks/legacy/tempest-dsvm-networking-ovn-multinode/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-ovn + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-ovn-neutron-api-ovs-release + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-ovn-neutron-api-ovs-release/run + post-run: playbooks/legacy/tempest-dsvm-networking-ovn-neutron-api-ovs-release/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-ovn + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-ovn-ovs-master + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master/run + post-run: playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-ovn + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-ovn-ovs-master-python3 + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master-python3/run + post-run: playbooks/legacy/tempest-dsvm-networking-ovn-ovs-master-python3/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-ovn + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-ovn-ovs-release + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release/run + post-run: playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-ovn + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src/run + post-run: playbooks/legacy/tempest-dsvm-networking-ovn-ovs-release-ovsdbapp-src/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-ovn + - openstack/ovsdbapp + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-ovs-dpdk + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-ovs-dpdk/run + post-run: playbooks/legacy/tempest-dsvm-networking-ovs-dpdk/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-ovs-dpdk + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-sfc + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-sfc/run + post-run: playbooks/legacy/tempest-dsvm-networking-sfc/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-sfc + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-networking-sfc-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-networking-sfc-multinode/run + post-run: playbooks/legacy/tempest-dsvm-networking-sfc-multinode/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-sfc + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-dvr + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-dvr/run + post-run: playbooks/legacy/tempest-dsvm-neutron-dvr/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-dvr-ha-multinode-full + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-dvr-ha-multinode-full/run + post-run: playbooks/legacy/tempest-dsvm-neutron-dvr-ha-multinode-full/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-dvr-multinode-full + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-full/run + post-run: playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-full/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-dvr-multinode-scenario + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-scenario/run + post-run: playbooks/legacy/tempest-dsvm-neutron-dvr-multinode-scenario/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-full + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-full/run + post-run: playbooks/legacy/tempest-dsvm-neutron-full/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-full-centos-7 + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-full-centos-7/run + post-run: playbooks/legacy/tempest-dsvm-neutron-full-centos-7/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-full-fedora-26 + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-full-fedora-26/run + post-run: playbooks/legacy/tempest-dsvm-neutron-full-fedora-26/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: fedora-26 + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-full-newton + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-full-newton/run + post-run: playbooks/legacy/tempest-dsvm-neutron-full-newton/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-full-non-admin + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-full-non-admin/run + post-run: playbooks/legacy/tempest-dsvm-neutron-full-non-admin/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-full-ocata + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-full-ocata/run + post-run: playbooks/legacy/tempest-dsvm-neutron-full-ocata/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-full-opensuse-423 + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-full-opensuse-423/run + post-run: playbooks/legacy/tempest-dsvm-neutron-full-opensuse-423/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: opensuse-423 + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-full-pike + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-full-pike/run + post-run: playbooks/legacy/tempest-dsvm-neutron-full-pike/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-full-test-accounts + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-full-test-accounts/run + post-run: playbooks/legacy/tempest-dsvm-neutron-full-test-accounts/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-ipv6only + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-ipv6only/run + post-run: playbooks/legacy/tempest-dsvm-neutron-ipv6only/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-linuxbridge + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-linuxbridge/run + post-run: playbooks/legacy/tempest-dsvm-neutron-linuxbridge/post + timeout: 8400 + vars: + BUILD_TIMEOUT: '8400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-multinode-full + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-multinode-full/run + post-run: playbooks/legacy/tempest-dsvm-neutron-multinode-full/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-nova-next-full + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-nova-next-full/run + post-run: playbooks/legacy/tempest-dsvm-neutron-nova-next-full/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/nova + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-ovsfw + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-ovsfw/run + post-run: playbooks/legacy/tempest-dsvm-neutron-ovsfw/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-pecan + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-pecan/run + post-run: playbooks/legacy/tempest-dsvm-neutron-pecan/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-pg-full + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-pg-full/run + post-run: playbooks/legacy/tempest-dsvm-neutron-pg-full/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-scenario-linuxbridge + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-scenario-linuxbridge/run + post-run: playbooks/legacy/tempest-dsvm-neutron-scenario-linuxbridge/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-scenario-multinode-lvm-multibackend + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-scenario-multinode-lvm-multibackend/run + post-run: playbooks/legacy/tempest-dsvm-neutron-scenario-multinode-lvm-multibackend/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-serviceipv6 + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-serviceipv6/run + post-run: playbooks/legacy/tempest-dsvm-neutron-serviceipv6/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-src + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-src/run + post-run: playbooks/legacy/tempest-dsvm-neutron-src/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-src-oslo.versionedobjects + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-src-oslo.versionedobjects/run + post-run: playbooks/legacy/tempest-dsvm-neutron-src-oslo.versionedobjects/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/oslo.versionedobjects + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-src-plugin + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-src-plugin/run + post-run: playbooks/legacy/tempest-dsvm-neutron-src-plugin/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-src-python-saharaclient + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-src-python-saharaclient/run + post-run: playbooks/legacy/tempest-dsvm-neutron-src-python-saharaclient/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ara + - openstack/neutron + - openstack/python-saharaclient + - openstack/sahara + - openstack/sahara-tests + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-neutron-with-ryu-master + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-neutron-with-ryu-master/run + post-run: playbooks/legacy/tempest-dsvm-neutron-with-ryu-master/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/neutron + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-nnet + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-nnet/run + post-run: playbooks/legacy/tempest-dsvm-nnet/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-nnet-newton + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-nnet-newton/run + post-run: playbooks/legacy/tempest-dsvm-nnet-newton/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-nnet-ocata + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-nnet-ocata/run + post-run: playbooks/legacy/tempest-dsvm-nnet-ocata/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-nova-libvirt-kvm-apr + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-nova-libvirt-kvm-apr/run + post-run: playbooks/legacy/tempest-dsvm-nova-libvirt-kvm-apr/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-additional-pkg-repos + - openstack/nova + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-nova-os-vif + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-nova-os-vif/run + post-run: playbooks/legacy/tempest-dsvm-nova-os-vif/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/nova + - openstack/os-vif + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-nova-v20-api + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-nova-v20-api/run + post-run: playbooks/legacy/tempest-dsvm-nova-v20-api/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/nova + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-nova-wsgi-full + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-nova-wsgi-full/run + post-run: playbooks/legacy/tempest-dsvm-nova-wsgi-full/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/nova + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-octavia-kuryr-kubernetes + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-octavia-kuryr-kubernetes/run + post-run: playbooks/legacy/tempest-dsvm-octavia-kuryr-kubernetes/post + timeout: 7500 + vars: + BUILD_TIMEOUT: '7500000' + required-projects: + - openstack-infra/devstack-gate + - openstack/barbican + - openstack/devstack-plugin-container + - openstack/kuryr + - openstack/kuryr-kubernetes + - openstack/kuryr-tempest-plugin + - openstack/octavia + - openstack/python-barbicanclient + - openstack/python-octaviaclient + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-patrole-admin + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-patrole-admin/run + post-run: playbooks/legacy/tempest-dsvm-patrole-admin/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/patrole + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-patrole-member + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-patrole-member/run + post-run: playbooks/legacy/tempest-dsvm-patrole-member/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/patrole + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-patrole-multinode-admin + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-patrole-multinode-admin/run + post-run: playbooks/legacy/tempest-dsvm-patrole-multinode-admin/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/patrole + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-patrole-multinode-member + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-patrole-multinode-member/run + post-run: playbooks/legacy/tempest-dsvm-patrole-multinode-member/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/patrole + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-patrole-py35-member + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-patrole-py35-member/run + post-run: playbooks/legacy/tempest-dsvm-patrole-py35-member/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/patrole + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-py35 + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-py35/run + post-run: playbooks/legacy/tempest-dsvm-py35/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-py35-full-devstack-plugin-ceph + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-py35-full-devstack-plugin-ceph/run + post-run: playbooks/legacy/tempest-dsvm-py35-full-devstack-plugin-ceph/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/devstack-plugin-ceph + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-python-ironic-inspector-client + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-python-ironic-inspector-client/run + post-run: playbooks/legacy/tempest-dsvm-python-ironic-inspector-client/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-inspector + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironic-inspector-client + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-python-ironicclient-src + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-python-ironicclient-src/run + post-run: playbooks/legacy/tempest-dsvm-python-ironicclient-src/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ironic + - openstack/ironic-lib + - openstack/ironic-python-agent + - openstack/pyghmi + - openstack/python-ironicclient + - openstack/tempest + - openstack/virtualbmc + +- job: + name: legacy-tempest-dsvm-redis-zaqar + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-redis-zaqar/run + post-run: playbooks/legacy/tempest-dsvm-redis-zaqar/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/python-zaqarclient + - openstack/tempest + - openstack/zaqar + - openstack/zaqar-tempest-plugin + +- job: + name: legacy-tempest-dsvm-sahara + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-sahara/run + post-run: playbooks/legacy/tempest-dsvm-sahara/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/ara + - openstack/sahara + - openstack/sahara-tests + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-swift-zaqar + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-swift-zaqar/run + post-run: playbooks/legacy/tempest-dsvm-swift-zaqar/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/python-zaqarclient + - openstack/swift + - openstack/tempest + - openstack/zaqar + - openstack/zaqar-tempest-plugin + +- job: + name: legacy-tempest-dsvm-tap-as-a-service + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-tap-as-a-service/run + post-run: playbooks/legacy/tempest-dsvm-tap-as-a-service/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tap-as-a-service + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-zeromq-multibackend + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-zeromq-multibackend/run + post-run: playbooks/legacy/tempest-dsvm-zeromq-multibackend/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-zmq + - openstack/tempest + +- job: + name: legacy-tempest-dsvm-zun-multinode-docker-sql + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-dsvm-zun-multinode-docker-sql/run + post-run: playbooks/legacy/tempest-dsvm-zun-multinode-docker-sql/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/kuryr-libnetwork + - openstack/python-zunclient + - openstack/tempest + - openstack/zun + +- job: + name: legacy-tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid/run + post-run: playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-amqp1-hybrid/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-amqp1 + - openstack/neutron + - openstack/oslo.messaging + - openstack/tempest + +- job: + name: legacy-tempest-neutron-dsvm-src-oslo.messaging-kafka-default + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-kafka-default/run + post-run: playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-kafka-default/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-kafka + - openstack/neutron + - openstack/oslo.messaging + - openstack/tempest + +- job: + name: legacy-tempest-neutron-dsvm-src-oslo.messaging-pika-default + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-pika-default/run + post-run: playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-pika-default/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-pika + - openstack/neutron + - openstack/oslo.messaging + - openstack/tempest + +- job: + name: legacy-tempest-neutron-dsvm-src-oslo.messaging-zmq-default + parent: legacy-dsvm-base + run: playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-zmq-default/run + post-run: playbooks/legacy/tempest-neutron-dsvm-src-oslo.messaging-zmq-default/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/devstack-plugin-zmq + - openstack/neutron + - openstack/oslo.messaging + - openstack/tempest + +- job: + name: legacy-tempest-tox-plugin-sanity-check + parent: legacy-base + run: playbooks/legacy/tempest-tox-plugin-sanity-check/run + post-run: playbooks/legacy/tempest-tox-plugin-sanity-check/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py27-consul + parent: legacy-base + run: playbooks/legacy/tooz-tox-py27-consul/run + post-run: playbooks/legacy/tooz-tox-py27-consul/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py27-etcd + parent: legacy-base + run: playbooks/legacy/tooz-tox-py27-etcd/run + post-run: playbooks/legacy/tooz-tox-py27-etcd/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py27-etcd3 + parent: legacy-base + run: playbooks/legacy/tooz-tox-py27-etcd3/run + post-run: playbooks/legacy/tooz-tox-py27-etcd3/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py27-etcd3gw + parent: legacy-base + run: playbooks/legacy/tooz-tox-py27-etcd3gw/run + post-run: playbooks/legacy/tooz-tox-py27-etcd3gw/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py27-memcached + parent: legacy-base + run: playbooks/legacy/tooz-tox-py27-memcached/run + post-run: playbooks/legacy/tooz-tox-py27-memcached/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py27-mysql + parent: legacy-base + run: playbooks/legacy/tooz-tox-py27-mysql/run + post-run: playbooks/legacy/tooz-tox-py27-mysql/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py27-postgresql + parent: legacy-base + run: playbooks/legacy/tooz-tox-py27-postgresql/run + post-run: playbooks/legacy/tooz-tox-py27-postgresql/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py27-redis + parent: legacy-base + run: playbooks/legacy/tooz-tox-py27-redis/run + post-run: playbooks/legacy/tooz-tox-py27-redis/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py27-sentinel + parent: legacy-base + run: playbooks/legacy/tooz-tox-py27-sentinel/run + post-run: playbooks/legacy/tooz-tox-py27-sentinel/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py27-zookeeper + parent: legacy-base + run: playbooks/legacy/tooz-tox-py27-zookeeper/run + post-run: playbooks/legacy/tooz-tox-py27-zookeeper/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py35-consul + parent: legacy-base + run: playbooks/legacy/tooz-tox-py35-consul/run + post-run: playbooks/legacy/tooz-tox-py35-consul/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py35-etcd + parent: legacy-base + run: playbooks/legacy/tooz-tox-py35-etcd/run + post-run: playbooks/legacy/tooz-tox-py35-etcd/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py35-etcd3 + parent: legacy-base + run: playbooks/legacy/tooz-tox-py35-etcd3/run + post-run: playbooks/legacy/tooz-tox-py35-etcd3/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py35-etcd3gw + parent: legacy-base + run: playbooks/legacy/tooz-tox-py35-etcd3gw/run + post-run: playbooks/legacy/tooz-tox-py35-etcd3gw/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py35-memcached + parent: legacy-base + run: playbooks/legacy/tooz-tox-py35-memcached/run + post-run: playbooks/legacy/tooz-tox-py35-memcached/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py35-mysql + parent: legacy-base + run: playbooks/legacy/tooz-tox-py35-mysql/run + post-run: playbooks/legacy/tooz-tox-py35-mysql/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py35-postgresql + parent: legacy-base + run: playbooks/legacy/tooz-tox-py35-postgresql/run + post-run: playbooks/legacy/tooz-tox-py35-postgresql/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py35-redis + parent: legacy-base + run: playbooks/legacy/tooz-tox-py35-redis/run + post-run: playbooks/legacy/tooz-tox-py35-redis/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py35-sentinel + parent: legacy-base + run: playbooks/legacy/tooz-tox-py35-sentinel/run + post-run: playbooks/legacy/tooz-tox-py35-sentinel/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tooz-tox-py35-zookeeper + parent: legacy-base + run: playbooks/legacy/tooz-tox-py35-zookeeper/run + post-run: playbooks/legacy/tooz-tox-py35-zookeeper/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tox-build + parent: legacy-base + run: playbooks/legacy/tox-build/run + post-run: playbooks/legacy/tox-build/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tox-checkniceness + parent: legacy-base + run: playbooks/legacy/tox-checkniceness/run + post-run: playbooks/legacy/tox-checkniceness/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tox-doc-publish-checkbuild + parent: legacy-base + success-url: html/ + run: playbooks/legacy/tox-doc-publish-checkbuild/run + post-run: playbooks/legacy/tox-doc-publish-checkbuild/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tox-doc-publish-checklang + parent: legacy-base + success-url: html/ + run: playbooks/legacy/tox-doc-publish-checklang/run + post-run: playbooks/legacy/tox-doc-publish-checklang/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tox-doc-publishlang + parent: legacy-base + run: playbooks/legacy/tox-doc-publishlang/run + post-run: playbooks/legacy/tox-doc-publishlang/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tox-with-sudo-snap + parent: legacy-base + run: playbooks/legacy/tox-with-sudo-snap/run + post-run: playbooks/legacy/tox-with-sudo-snap/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-training-guides-tox-doc-publish-checkbuild + parent: legacy-base + success-url: html/ + run: playbooks/legacy/training-guides-tox-doc-publish-checkbuild/run + post-run: playbooks/legacy/training-guides-tox-doc-publish-checkbuild/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-training-guides-tox-doc-publishdocs + parent: legacy-base + run: playbooks/legacy/training-guides-tox-doc-publishdocs/run + post-run: playbooks/legacy/training-guides-tox-doc-publishdocs/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-training-labs-scripts + parent: publish-openstack-artifacts + run: playbooks/legacy/training-labs-scripts/run + post-run: playbooks/legacy/training-labs-scripts/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-tricircle-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/tricircle-dsvm-functional/run + post-run: playbooks/legacy/tricircle-dsvm-functional/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/tricircle + +- job: + name: legacy-tricircle-dsvm-multiregion + parent: legacy-dsvm-base + run: playbooks/legacy/tricircle-dsvm-multiregion/run + post-run: playbooks/legacy/tricircle-dsvm-multiregion/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/networking-sfc + - openstack/tricircle + +- job: + name: legacy-trio2o-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/trio2o-dsvm-functional/run + post-run: playbooks/legacy/trio2o-dsvm-functional/post + timeout: 5400 + vars: + BUILD_TIMEOUT: '5400000' + required-projects: + - openstack-infra/devstack-gate + - openstack/trio2o + +- job: + name: legacy-tripleo-buildimage-ironic-python-agent-centos-7 + parent: legacy-base + run: playbooks/legacy/tripleo-buildimage-ironic-python-agent-centos-7/run + post-run: playbooks/legacy/tripleo-buildimage-ironic-python-agent-centos-7/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + nodeset: centos-7 + required-projects: + - openstack/diskimage-builder + - openstack/heat-agents + - openstack/heat-templates + - openstack/instack-undercloud + - openstack/ironic + - openstack/ironic-python-agent + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-image-elements + - openstack/tripleo-puppet-elements + +- job: + name: legacy-tripleo-buildimage-overcloud-full-centos-7 + parent: legacy-base + run: playbooks/legacy/tripleo-buildimage-overcloud-full-centos-7/run + post-run: playbooks/legacy/tripleo-buildimage-overcloud-full-centos-7/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + nodeset: centos-7 + required-projects: + - openstack/diskimage-builder + - openstack/heat-agents + - openstack/heat-templates + - openstack/instack-undercloud + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-image-elements + - openstack/tripleo-puppet-elements + +- job: + name: legacy-tripleo-buildimage-overcloud-hardened-full-centos-7 + parent: legacy-base + run: playbooks/legacy/tripleo-buildimage-overcloud-hardened-full-centos-7/run + post-run: playbooks/legacy/tripleo-buildimage-overcloud-hardened-full-centos-7/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + nodeset: centos-7 + required-projects: + - openstack/diskimage-builder + - openstack/heat-agents + - openstack/heat-templates + - openstack/instack-undercloud + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-image-elements + - openstack/tripleo-puppet-elements + +- job: + name: legacy-tripleo-ci-centos-7-3nodes-multinode + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-3nodes-multinode/run + post-run: playbooks/legacy/tripleo-ci-centos-7-3nodes-multinode/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-containers-multinode + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-containers-multinode/run + post-run: playbooks/legacy/tripleo-ci-centos-7-containers-multinode/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-containers-multinode-upgrades + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-containers-multinode-upgrades/run + post-run: playbooks/legacy/tripleo-ci-centos-7-containers-multinode-upgrades/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-multinode-upgrades + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-multinode-upgrades/run + post-run: playbooks/legacy/tripleo-ci-centos-7-multinode-upgrades/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-nonha-multinode-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-nonha-multinode-oooq/run + post-run: playbooks/legacy/tripleo-ci-centos-7-nonha-multinode-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024 + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/run + post-run: playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton/run + post-run: playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-newton/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata/run + post-run: playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-ocata/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike/run + post-run: playbooks/legacy/tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024-puppet-pike/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-ovb-containers-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-ovb-containers-oooq/run + post-run: playbooks/legacy/tripleo-ci-centos-7-ovb-containers-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-ovb-convergence-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-ovb-convergence-oooq/run + post-run: playbooks/legacy/tripleo-ci-centos-7-ovb-convergence-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-ovb-fakeha-caserver + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-ovb-fakeha-caserver/run + post-run: playbooks/legacy/tripleo-ci-centos-7-ovb-fakeha-caserver/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-ovb-ha-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq/run + post-run: playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-ovb-ha-oooq-newton + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-newton/run + post-run: playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-newton/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-ovb-ha-oooq-ocata + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-ocata/run + post-run: playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-ocata/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-ovb-ha-oooq-pike + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-pike/run + post-run: playbooks/legacy/tripleo-ci-centos-7-ovb-ha-oooq-pike/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-ovb-ha-tempest-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-ovb-ha-tempest-oooq/run + post-run: playbooks/legacy/tripleo-ci-centos-7-ovb-ha-tempest-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tempest + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario001-multinode-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario001-multinode-oooq-container + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario001-multinode-oooq-puppet + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-puppet/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-oooq-puppet/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario001-multinode-upgrades + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-upgrades/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario001-multinode-upgrades/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario002-multinode-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario002-multinode-oooq-container + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario002-multinode-oooq-puppet + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-puppet/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-oooq-puppet/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario002-multinode-upgrades + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-upgrades/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario002-multinode-upgrades/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario003-multinode-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario003-multinode-oooq-container + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario003-multinode-oooq-puppet + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-puppet/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-oooq-puppet/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario003-multinode-upgrades + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-upgrades/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario003-multinode-upgrades/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario004-multinode-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario004-multinode-oooq-container + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario004-multinode-oooq-puppet + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-puppet/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario004-multinode-oooq-puppet/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario005-multinode-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario005-multinode-oooq/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario005-multinode-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario006-multinode-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario006-multinode-oooq/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario006-multinode-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario007-multinode-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario007-multinode-oooq-container + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-container/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-container/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario007-multinode-oooq-puppet + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-puppet/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario007-multinode-oooq-puppet/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario008-multinode-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario008-multinode-oooq/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario008-multinode-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-scenario009-multinode-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-scenario009-multinode-oooq/run + post-run: playbooks/legacy/tripleo-ci-centos-7-scenario009-multinode-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-undercloud-containers + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-undercloud-containers/run + post-run: playbooks/legacy/tripleo-ci-centos-7-undercloud-containers/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-undercloud-oooq + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-undercloud-oooq/run + post-run: playbooks/legacy/tripleo-ci-centos-7-undercloud-oooq/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ci-centos-7-undercloud-upgrades + parent: publish-openstack-artifacts + run: playbooks/legacy/tripleo-ci-centos-7-undercloud-upgrades/run + post-run: playbooks/legacy/tripleo-ci-centos-7-undercloud-upgrades/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + nodeset: centos-7 + required-projects: + - openstack-infra/devstack-gate + - openstack-infra/tripleo-ci + - openstack/aodh + - openstack/barbican + - openstack/dib-utils + - openstack/diskimage-builder + - openstack/instack + - openstack/instack-undercloud + - openstack/mistral + - openstack/panko + - openstack/puppet-aodh + - openstack/puppet-barbican + - openstack/puppet-ceilometer + - openstack/puppet-ceph + - openstack/puppet-cinder + - openstack/puppet-ganesha + - openstack/puppet-glance + - openstack/puppet-gnocchi + - openstack/puppet-heat + - openstack/puppet-horizon + - openstack/puppet-ironic + - openstack/puppet-keystone + - openstack/puppet-mistral + - openstack/puppet-neutron + - openstack/puppet-nova + - openstack/puppet-openstack_extras + - openstack/puppet-openstacklib + - openstack/puppet-oslo + - openstack/puppet-pacemaker + - openstack/puppet-sahara + - openstack/puppet-swift + - openstack/puppet-tripleo + - openstack/puppet-vswitch + - openstack/puppet-zaqar + - openstack/python-ironic-inspector-client + - openstack/python-tripleoclient + - openstack/tripleo-common + - openstack/tripleo-puppet-elements + - openstack/tripleo-quickstart + - openstack/tripleo-quickstart-extras + - openstack/tripleo-ui + +- job: + name: legacy-tripleo-ui-nodejs6-npm-run-lint + parent: legacy-base + run: playbooks/legacy/tripleo-ui-nodejs6-npm-run-lint/run + post-run: playbooks/legacy/tripleo-ui-nodejs6-npm-run-lint/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-tripleo-ui-nodejs6-npm-run-test + parent: legacy-base + run: playbooks/legacy/tripleo-ui-nodejs6-npm-run-test/run + post-run: playbooks/legacy/tripleo-ui-nodejs6-npm-run-test/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-trove-functional-dsvm-mysql + parent: legacy-dsvm-base + run: playbooks/legacy/trove-functional-dsvm-mysql/run + post-run: playbooks/legacy/trove-functional-dsvm-mysql/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-legacy-functional-dsvm-mysql + parent: legacy-dsvm-base + run: playbooks/legacy/trove-functional-dsvm-mysql/run + post-run: playbooks/legacy/trove-functional-dsvm-mysql/post + timeout: 9000 + vars: + BUILD_TIMEOUT: '9000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + - openstack/trove-integration + +- job: + name: legacy-trove-legacy-functional-dsvm-mysql-newton + parent: legacy-dsvm-base + run: playbooks/legacy/trove-functional-dsvm-mysql-newton/run + post-run: playbooks/legacy/trove-functional-dsvm-mysql-newton/post + timeout: 9000 + vars: + BUILD_TIMEOUT: '9000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + - openstack/trove-integration + +- job: + name: legacy-trove-legacy-functional-dsvm-redis-newton + parent: legacy-dsvm-base + run: playbooks/legacy/trove-functional-dsvm-redis-newton/run + post-run: playbooks/legacy/trove-functional-dsvm-redis-newton/post + timeout: 9000 + vars: + BUILD_TIMEOUT: '9000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + - openstack/trove-integration + +- job: + name: legacy-trove-legacy-scenario-dsvm-mysql + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-mysql/run + post-run: playbooks/legacy/trove-scenario-dsvm-mysql/post + timeout: 9000 + vars: + BUILD_TIMEOUT: '9000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + - openstack/trove-integration + +- job: + name: legacy-trove-legacy-scenario-dsvm-postgresql + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-postgresql/run + post-run: playbooks/legacy/trove-scenario-dsvm-postgresql/post + timeout: 9000 + vars: + BUILD_TIMEOUT: '9000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + - openstack/trove-integration + +- job: + name: legacy-trove-legacy-scenario-dsvm-pxc + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-pxc/run + post-run: playbooks/legacy/trove-scenario-dsvm-pxc/post + timeout: 9000 + vars: + BUILD_TIMEOUT: '9000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + - openstack/trove-integration + +- job: + name: legacy-trove-legacy-scenario-dsvm-redis + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-redis/run + post-run: playbooks/legacy/trove-scenario-dsvm-redis/post + timeout: 9000 + vars: + BUILD_TIMEOUT: '9000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + - openstack/trove-integration + +- job: + name: legacy-trove-pylint + parent: legacy-base + run: playbooks/legacy/trove-pylint/run + post-run: playbooks/legacy/trove-pylint/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-trove-scenario-dsvm-cassandra-multi + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-cassandra-multi/run + post-run: playbooks/legacy/trove-scenario-dsvm-cassandra-multi/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-scenario-dsvm-cassandra-single + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-cassandra-single/run + post-run: playbooks/legacy/trove-scenario-dsvm-cassandra-single/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-scenario-dsvm-couchbase-single + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-couchbase-single/run + post-run: playbooks/legacy/trove-scenario-dsvm-couchbase-single/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-scenario-dsvm-couchdb-single + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-couchdb-single/run + post-run: playbooks/legacy/trove-scenario-dsvm-couchdb-single/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-scenario-dsvm-mariadb-multi + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-mariadb-multi/run + post-run: playbooks/legacy/trove-scenario-dsvm-mariadb-multi/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-scenario-dsvm-mariadb-single + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-mariadb-single/run + post-run: playbooks/legacy/trove-scenario-dsvm-mariadb-single/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-scenario-dsvm-mongodb-multi + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-mongodb-multi/run + post-run: playbooks/legacy/trove-scenario-dsvm-mongodb-multi/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-scenario-dsvm-mongodb-single + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-mongodb-single/run + post-run: playbooks/legacy/trove-scenario-dsvm-mongodb-single/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-scenario-dsvm-mysql-multi + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-mysql-multi/run + post-run: playbooks/legacy/trove-scenario-dsvm-mysql-multi/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-scenario-dsvm-mysql-single + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-mysql-single/run + post-run: playbooks/legacy/trove-scenario-dsvm-mysql-single/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-scenario-dsvm-percona-multi + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-percona-multi/run + post-run: playbooks/legacy/trove-scenario-dsvm-percona-multi/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-scenario-dsvm-percona-single + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-percona-single/run + post-run: playbooks/legacy/trove-scenario-dsvm-percona-single/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-scenario-dsvm-postgresql-multi + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-postgresql-multi/run + post-run: playbooks/legacy/trove-scenario-dsvm-postgresql-multi/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-scenario-dsvm-postgresql-single + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-postgresql-single/run + post-run: playbooks/legacy/trove-scenario-dsvm-postgresql-single/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-scenario-dsvm-pxc-multi + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-pxc-multi/run + post-run: playbooks/legacy/trove-scenario-dsvm-pxc-multi/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-scenario-dsvm-pxc-single + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-pxc-single/run + post-run: playbooks/legacy/trove-scenario-dsvm-pxc-single/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-scenario-dsvm-redis-multi + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-redis-multi/run + post-run: playbooks/legacy/trove-scenario-dsvm-redis-multi/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-scenario-dsvm-redis-single + parent: legacy-dsvm-base + run: playbooks/legacy/trove-scenario-dsvm-redis-single/run + post-run: playbooks/legacy/trove-scenario-dsvm-redis-single/post + timeout: 10800 + vars: + BUILD_TIMEOUT: '10800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/diskimage-builder + - openstack/python-troveclient + - openstack/tripleo-image-elements + - openstack/trove + - openstack/trove-dashboard + +- job: + name: legacy-trove-tox-apiexamples + parent: legacy-base + run: playbooks/legacy/trove-tox-apiexamples/run + post-run: playbooks/legacy/trove-tox-apiexamples/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-trove-tox-fakemodetests + parent: legacy-base + run: playbooks/legacy/trove-tox-fakemodetests/run + post-run: playbooks/legacy/trove-tox-fakemodetests/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-upstream-translation-update + parent: publish-openstack-artifacts + run: playbooks/legacy/upstream-translation-update/run + post-run: playbooks/legacy/upstream-translation-update/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-vinz-webclient-js-draft + parent: legacy-base + success-url: html/ + run: playbooks/legacy/vinz-webclient-js-draft/run + post-run: playbooks/legacy/vinz-webclient-js-draft/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-vinz-webclient-js-release-branch + parent: legacy-base + run: playbooks/legacy/vinz-webclient-js-release-branch/run + post-run: playbooks/legacy/vinz-webclient-js-release-branch/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-vinz-webclient-js-release-master + parent: legacy-base + run: playbooks/legacy/vinz-webclient-js-release-master/run + post-run: playbooks/legacy/vinz-webclient-js-release-master/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-vitrage-dsvm-api-py27 + parent: legacy-dsvm-base + run: playbooks/legacy/vitrage-dsvm-api-py27/run + post-run: playbooks/legacy/vitrage-dsvm-api-py27/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/mistral + - openstack/python-vitrageclient + - openstack/vitrage + - openstack/vitrage-dashboard + +- job: + name: legacy-vitrage-dsvm-api-py35 + parent: legacy-dsvm-base + run: playbooks/legacy/vitrage-dsvm-api-py35/run + post-run: playbooks/legacy/vitrage-dsvm-api-py35/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/mistral + - openstack/python-vitrageclient + - openstack/vitrage + - openstack/vitrage-dashboard + +- job: + name: legacy-vitrage-dsvm-datasources-py27 + parent: legacy-dsvm-base + run: playbooks/legacy/vitrage-dsvm-datasources-py27/run + post-run: playbooks/legacy/vitrage-dsvm-datasources-py27/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/mistral + - openstack/python-vitrageclient + - openstack/vitrage + - openstack/vitrage-dashboard + +- job: + name: legacy-vitrage-dsvm-datasources-py35 + parent: legacy-dsvm-base + run: playbooks/legacy/vitrage-dsvm-datasources-py35/run + post-run: playbooks/legacy/vitrage-dsvm-datasources-py35/post + timeout: 7800 + vars: + BUILD_TIMEOUT: '7800000' + required-projects: + - openstack-infra/devstack-gate + - openstack/aodh + - openstack/mistral + - openstack/python-vitrageclient + - openstack/vitrage + - openstack/vitrage-dashboard + +- job: + name: legacy-watcher-dsvm-multinode + parent: legacy-dsvm-base + run: playbooks/legacy/watcher-dsvm-multinode/run + post-run: playbooks/legacy/watcher-dsvm-multinode/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/python-watcherclient + - openstack/watcher + - openstack/watcher-tempest-plugin + +- job: + name: legacy-watcherclient-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/watcherclient-dsvm-functional/run + post-run: playbooks/legacy/watcherclient-dsvm-functional/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-infra/devstack-gate + - openstack/python-watcherclient + - openstack/watcher + +- job: + name: legacy-windmill-buildimages + parent: legacy-base + run: playbooks/legacy/windmill-buildimages/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + required-projects: + - openstack/windmill + +- job: + name: legacy-windmill-deploy + parent: legacy-base + run: playbooks/legacy/windmill-deploy/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + required-projects: + - openstack/windmill + +- job: + name: legacy-windmill-deploy-centos-7 + parent: legacy-base + run: playbooks/legacy/windmill-deploy-centos-7/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: centos-7 + required-projects: + - openstack/windmill + +- job: + name: legacy-windmill-deploy-fedora-26 + parent: legacy-base + run: playbooks/legacy/windmill-deploy-fedora-26/run + timeout: 3600 + vars: + BUILD_TIMEOUT: '3600000' + nodeset: fedora-26 + required-projects: + - openstack/windmill + +- job: + name: legacy-zaqar-tox-integration + parent: legacy-base + run: playbooks/legacy/zaqar-tox-integration/run + post-run: playbooks/legacy/zaqar-tox-integration/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-zaqar-ui-nodejs4-npm-run-lint + parent: legacy-base + run: playbooks/legacy/zaqar-ui-nodejs4-npm-run-lint/run + post-run: playbooks/legacy/zaqar-ui-nodejs4-npm-run-lint/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-zaqar-ui-nodejs4-npm-run-test + parent: legacy-base + run: playbooks/legacy/zaqar-ui-nodejs4-npm-run-test/run + post-run: playbooks/legacy/zaqar-ui-nodejs4-npm-run-test/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-zaqarclient-dsvm-functional + parent: legacy-dsvm-base + run: playbooks/legacy/zaqarclient-dsvm-functional/run + post-run: playbooks/legacy/zaqarclient-dsvm-functional/post + timeout: 6000 + vars: + BUILD_TIMEOUT: '6000000' + required-projects: + - openstack-infra/devstack-gate + - openstack/python-zaqarclient + - openstack/zaqar + - openstack/zaqar-tempest-plugin + - openstack/zaqar-ui + +- job: + name: legacy-zmq-event-publisher-hpi-artifact + parent: publish-openstack-artifacts + run: playbooks/legacy/zmq-event-publisher-hpi-artifact/run + post-run: playbooks/legacy/zmq-event-publisher-hpi-artifact/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-zmq-event-publisher-jenkinsci-upload + parent: legacy-base + run: playbooks/legacy/zmq-event-publisher-jenkinsci-upload/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + +- job: + name: legacy-zmq-event-publisher-maven-build-ubuntu-trusty + parent: legacy-base + run: playbooks/legacy/zmq-event-publisher-maven-build-ubuntu-trusty/run + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + nodeset: ubuntu-trusty + +- job: + name: legacy-zun-devstack-dsvm-docker-etcd + parent: legacy-dsvm-base + run: playbooks/legacy/zun-devstack-dsvm-docker-etcd/run + post-run: playbooks/legacy/zun-devstack-dsvm-docker-etcd/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/kuryr-libnetwork + - openstack/python-zunclient + - openstack/zun + +- job: + name: legacy-zun-devstack-dsvm-docker-split-plugin-sql + parent: legacy-dsvm-base + run: playbooks/legacy/zun-devstack-dsvm-docker-split-plugin-sql/run + post-run: playbooks/legacy/zun-devstack-dsvm-docker-split-plugin-sql/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/kuryr-libnetwork + - openstack/python-zunclient + - openstack/zun + - openstack/zun-tempest-plugin + +- job: + name: legacy-zun-devstack-dsvm-docker-sql + parent: legacy-dsvm-base + run: playbooks/legacy/zun-devstack-dsvm-docker-sql/run + post-run: playbooks/legacy/zun-devstack-dsvm-docker-sql/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/kuryr-libnetwork + - openstack/python-zunclient + - openstack/zun + +- job: + name: legacy-zun-devstack-dsvm-py35-docker-sql + parent: legacy-dsvm-base + run: playbooks/legacy/zun-devstack-dsvm-py35-docker-sql/run + post-run: playbooks/legacy/zun-devstack-dsvm-py35-docker-sql/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/kuryr-libnetwork + - openstack/python-zunclient + - openstack/zun + +- job: + name: legacy-zun-ui-nodejs4-npm-run-lint + parent: legacy-base + run: playbooks/legacy/zun-ui-nodejs4-npm-run-lint/run + post-run: playbooks/legacy/zun-ui-nodejs4-npm-run-lint/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-zun-ui-nodejs4-npm-run-test + parent: legacy-base + run: playbooks/legacy/zun-ui-nodejs4-npm-run-test/run + post-run: playbooks/legacy/zun-ui-nodejs4-npm-run-test/post + timeout: 2400 + vars: + BUILD_TIMEOUT: '2400000' + +- job: + name: legacy-zunclient-devstack-dsvm-docker-sql + parent: legacy-dsvm-base + run: playbooks/legacy/zunclient-devstack-dsvm-docker-sql/run + post-run: playbooks/legacy/zunclient-devstack-dsvm-docker-sql/post + timeout: 4200 + vars: + BUILD_TIMEOUT: '4200000' + required-projects: + - openstack-dev/devstack + - openstack-infra/devstack-gate + - openstack/devstack-plugin-container + - openstack/kuryr-libnetwork + - openstack/python-zunclient + - openstack/zun + +- job: + name: legacy-zuul-nodepool + parent: legacy-base + run: playbooks/legacy/zuul-nodepool/run + post-run: playbooks/legacy/zuul-nodepool/post + timeout: 1800 + vars: + BUILD_TIMEOUT: '1800000' + required-projects: + - openstack-infra/nodepool + - openstack-infra/zuul diff --git a/zuul.d/zuul-legacy-project-templates.yaml b/zuul.d/zuul-legacy-project-templates.yaml new file mode 100644 index 00000000..2c010fd1 --- /dev/null +++ b/zuul.d/zuul-legacy-project-templates.yaml @@ -0,0 +1,1892 @@ +- project-template: + name: ansible-lint-jobs + check: + jobs: + - legacy-ansible-lint + gate: + jobs: + - legacy-ansible-lint + +- project-template: + name: ansible-role-functional-dsvm-jobs-centos7 + check: + jobs: + - legacy-dsvm-ansible-func-centos-7 + gate: + jobs: + - legacy-dsvm-ansible-func-centos-7 + +- project-template: + name: ansible-role-functional-dsvm-jobs-trusty + check: + jobs: + - legacy-dsvm-ansible-func-ubuntu-trusty: + branches: master + gate: + jobs: + - legacy-dsvm-ansible-func-ubuntu-trusty: + branches: master + +- project-template: + name: ansible-role-functional-jobs-centos7 + check: + jobs: + - legacy-ansible-func-centos-7 + gate: + jobs: + - legacy-ansible-func-centos-7 + +- project-template: + name: ansible-role-functional-jobs-centos7-nv + check: + jobs: + - legacy-ansible-func-centos-7: + voting: false + +- project-template: + name: ansible-role-functional-jobs-fedora-26 + check: + jobs: + - legacy-ansible-func-fedora-26 + gate: + jobs: + - legacy-ansible-func-fedora-26 + +- project-template: + name: ansible-role-functional-jobs-opensuse-423 + check: + jobs: + - legacy-ansible-func-opensuse-423 + gate: + jobs: + - legacy-ansible-func-opensuse-423 + +- project-template: + name: ansible-role-functional-jobs-trusty + check: + jobs: + - legacy-ansible-func-ubuntu-trusty: + branches: master + gate: + jobs: + - legacy-ansible-func-ubuntu-trusty: + branches: master + +- project-template: + name: ansible-role-functional-jobs-xenial + check: + jobs: + - legacy-ansible-func + gate: + jobs: + - legacy-ansible-func + +- project-template: + name: ansible-role-functional-jobs-xenial-nv + check: + jobs: + - legacy-ansible-func: + voting: false + +- project-template: + name: ansible-role-jobs + check: + jobs: + - build-openstack-sphinx-docs + - openstack-tox-linters + gate: + jobs: + - build-openstack-sphinx-docs + - openstack-tox-linters + +- project-template: + name: api-guide-jobs + check: + jobs: + - legacy-api-guide: + branches: master + files: + - ^tox.ini$ + - ^api-guide/.* + gate: + jobs: + - legacy-api-guide: + branches: master + files: + - ^tox.ini$ + - ^api-guide/.* + post: + jobs: + - legacy-api-guide: + branches: master + +- project-template: + name: api-ref-jobs + check: + jobs: + - legacy-api-ref: + branches: master + files: + - ^tox.ini$ + - ^api-ref/.* + - ^doc/api_samples/.* + gate: + jobs: + - legacy-api-ref: + branches: master + files: + - ^tox.ini$ + - ^api-ref/.* + - ^doc/api_samples/.* + post: + jobs: + - legacy-api-ref: + branches: master + +- project-template: + name: bindep-fallback + check: + jobs: + - legacy-bindep-fallback-centos-7 + - legacy-bindep-fallback-fedora-26 + - legacy-bindep-fallback-debian-jessie + - legacy-bindep-fallback-opensuse-423 + - legacy-bindep-fallback-ubuntu-trusty + - legacy-bindep-fallback + gate: + jobs: + - legacy-bindep-fallback-centos-7 + - legacy-bindep-fallback-fedora-26 + - legacy-bindep-fallback-debian-jessie + - legacy-bindep-fallback-opensuse-423 + - legacy-bindep-fallback-ubuntu-trusty + - legacy-bindep-fallback + +- project-template: + name: build-only-specs-jobs + check: + jobs: + - build-openstack-sphinx-docs + gate: + jobs: + - build-openstack-sphinx-docs + +- project-template: + name: check-requirements + check: + jobs: + - legacy-requirements: + files: + - ^tools/.*-requires$ + - ^.*requirements.txt$ + - ^.*requirements-py[2,3].txt$ + gate: + jobs: + - legacy-requirements: + files: + - ^tools/.*-requires$ + - ^.*requirements.txt$ + - ^.*requirements-py[2,3].txt$ + +- project-template: + name: check-tripleo-jobs + check-tripleo: + jobs: + - legacy-tripleo-ci-centos-7-ovb-ha-oooq + - legacy-tripleo-ci-centos-7-ovb-containers-oooq: + branches: ^(?!stable/(newton|ocata)).*$ + - legacy-tripleo-ci-centos-7-ovb-1ctlr_1comp_1ceph-featureset024 + check: + jobs: + - legacy-tripleo-ci-centos-7-nonha-multinode-oooq + - legacy-tripleo-ci-centos-7-scenario001-multinode-oooq: + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/aodh.*$ + - ^manifests/profile/base/aodh.*$ + - ^(docker|puppet)/services/ceilometer.*$ + - ^manifests/profile/base/ceilometer.*$ + - ^(docker|puppet)/services/gnocchi.*$ + - ^manifests/profile/base/gnocchi.*$ + - ^(docker|puppet)/services/panko.*$ + - ^manifests/profile/base/panko.*$ + - ^(docker|puppet)/services/ceph.*$ + - ^manifests/profile/base/ceph.*$ + - ^manifests/profile/base/monitoring.*$ + - ^(docker|puppet)/services/monitoring.*$ + - ^manifests/profile/base/metrics.*$ + - ^(docker|puppet)/services/metrics.*$ + - ^manifests/profile/base/logging.*$ + - ^(docker|puppet)/services/logging.*$ + - ^(docker|puppet)/services/tacker.*$ + - ^manifests/profile/base/tacker.*$ + - ^(docker|puppet)/services/congress.*$ + - ^manifests/profile/base/congress.*$ + - ^(docker|puppet)/services/cinder.*$ + - ^manifests/profile/base/cinder.*$ + - ci/environments/scenario001.*$ + - ci/pingtests/scenario001.*$ + - config/general_config/featureset005.yml + - config/general_config/featureset012.yml + - config/general_config/featureset016.yml + - workbooks/ceph-ansible.yaml + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario001-multinode-oooq-container: + branches: ^(?!stable/(newton|ocata)).*$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/aodh.*$ + - ^manifests/profile/base/aodh.*$ + - ^(docker|puppet)/services/ceilometer.*$ + - ^manifests/profile/base/ceilometer.*$ + - ^(docker|puppet)/services/gnocchi.*$ + - ^manifests/profile/base/gnocchi.*$ + - ^(docker|puppet)/services/panko.*$ + - ^manifests/profile/base/panko.*$ + - ^(docker|puppet)/services/ceph.*$ + - ^manifests/profile/base/ceph.*$ + - ^manifests/profile/base/monitoring.*$ + - ^(docker|puppet)/services/monitoring.*$ + - ^manifests/profile/base/metrics.*$ + - ^(docker|puppet)/services/metrics.*$ + - ^manifests/profile/base/logging.*$ + - ^(docker|puppet)/services/logging.*$ + - ^(docker|puppet)/services/tacker.*$ + - ^manifests/profile/base/tacker.*$ + - ^(docker|puppet)/services/congress.*$ + - ^manifests/profile/base/congress.*$ + - ^(docker|puppet)/services/cinder.*$ + - ^manifests/profile/base/cinder.*$ + - ci/environments/scenario001.*$ + - ci/pingtests/scenario001.*$ + - config/general_config/featureset005.yml + - config/general_config/featureset012.yml + - config/general_config/featureset016.yml + - workbooks/ceph-ansible.yaml + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario002-multinode-oooq: + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/barbican.*$ + - ^manifests/profile/base/barbican.*$ + - ^(docker|puppet)/services/cinder.*$ + - ^manifests/profile/base/cinder.*$ + - ^(docker|puppet)/services/ec2-api.*$ + - ^manifests/profile/base/nova/ec2.*$ + - ^(docker|puppet)/services/swift.*$ + - ^manifests/profile/base/swift.*$ + - ^(docker|puppet)/services/zaqar.*$ + - ^manifests/profile/base/zaqar.*$ + - ^(docker|puppet)/services/aodh.*$ + - ^manifests/profile/base/aodh.*$ + - ^(docker|puppet)/services/ceilometer.*$ + - ^manifests/profile/base/ceilometer.*$ + - ^(docker|puppet)/services/gnocchi.*$ + - ^manifests/profile/base/gnocchi.*$ + - ^(docker|puppet)/services/panko.*$ + - ^manifests/profile/base/panko.*$ + - ci/environments/scenario002.*$ + - ci/pingtests/scenario002.*$ + - config/general_config/featureset006.yml + - config/general_config/featureset013.yml + - config/general_config/featureset017.yml + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario002-multinode-oooq-container: + branches: ^(?!stable/(newton|ocata)).*$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/barbican.*$ + - ^manifests/profile/base/barbican.*$ + - ^(docker|puppet)/services/cinder.*$ + - ^manifests/profile/base/cinder.*$ + - ^(docker|puppet)/services/ec2-api.*$ + - ^manifests/profile/base/nova/ec2.*$ + - ^(docker|puppet)/services/swift.*$ + - ^manifests/profile/base/swift.*$ + - ^(docker|puppet)/services/zaqar.*$ + - ^manifests/profile/base/zaqar.*$ + - ^(docker|puppet)/services/aodh.*$ + - ^manifests/profile/base/aodh.*$ + - ^(docker|puppet)/services/ceilometer.*$ + - ^manifests/profile/base/ceilometer.*$ + - ^(docker|puppet)/services/gnocchi.*$ + - ^manifests/profile/base/gnocchi.*$ + - ^(docker|puppet)/services/panko.*$ + - ^manifests/profile/base/panko.*$ + - ci/environments/scenario002.*$ + - ci/pingtests/scenario002.*$ + - config/general_config/featureset006.yml + - config/general_config/featureset013.yml + - config/general_config/featureset017.yml + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario003-multinode-oooq: + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/sahara.*$ + - ^manifests/profile/base/sahara.*$ + - ^(docker|puppet)/services/mistral.*$ + - ^manifests/profile/base/mistral.*$ + - ci/environments/scenario003.*$ + - ci/pingtests/scenario003.*$ + - config/general_config/featureset007.yml + - config/general_config/featureset014.yml + - config/general_config/featureset018.yml + - roles\/(.+\/) + - toci-quickstart\/(config|playbooks)\/(.+) + - toci_.+ + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario003-multinode-oooq-container: + branches: ^(?!stable/(newton|ocata)).*$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/sahara.*$ + - ^manifests/profile/base/sahara.*$ + - ^(docker|puppet)/services/mistral.*$ + - ^manifests/profile/base/mistral.*$ + - ci/environments/scenario003.*$ + - ci/pingtests/scenario003.*$ + - config/general_config/featureset007.yml + - config/general_config/featureset014.yml + - config/general_config/featureset018.yml + - roles\/(.+\/) + - toci-quickstart\/(config|playbooks)\/(.+) + - toci_.+ + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario004-multinode-oooq: + branches: ^(?!stable/newton).*$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/ceph.*$ + - ^manifests/profile/base/ceph.*$ + - ^(docker|puppet)/services/manila.*$ + - ^manifests/profile/base/manila.*$ + - ^manifests/profile/pacemaker/manila.*$ + - ci/environments/scenario004.*$ + - ci/pingtests/scenario004.*$ + - config/general_config/featureset008.yml + - config/general_config/featureset015.yml + - config/general_config/featureset019.yml + - workbooks/ceph-ansible.yaml + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario004-multinode-oooq-container: + branches: ^(?!stable/(newton|ocata)).*$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/ceph.*$ + - ^manifests/profile/base/ceph.*$ + - ^(docker|puppet)/services/manila.*$ + - ^manifests/profile/base/manila.*$ + - ^manifests/profile/pacemaker/manila.*$ + - ci/environments/scenario004.*$ + - ci/pingtests/scenario004.*$ + - config/general_config/featureset008.yml + - config/general_config/featureset015.yml + - config/general_config/featureset019.yml + - workbooks/ceph-ansible.yaml + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario007-multinode-oooq: + branches: ^(?!stable/(newton|ocata)).*$ + files: + - ci/environments/scenario007-multinode.yaml + - ci/pingtests/scenario007-multinode.yaml + - ^puppet/services/.*ovn.*$ + - ^manifests/profile/base/neutron/plugins/ml2/ovn.*$ + - ^manifests/profile/base/neutron/agents/ovn.*$ + - ^manifests/profile/base/neutron/ovn.*$ + - config/general_config/featureset028.yml + - legacy-tripleo-ci-centos-7-containers-multinode: + branches: ^(?!stable/(newton|ocata)).*$ + - legacy-tripleo-ci-centos-7-undercloud-containers: + voting: false + branches: ^(?!stable/(newton|ocata)).*$ + gate: + jobs: + - legacy-tripleo-ci-centos-7-nonha-multinode-oooq + - legacy-tripleo-ci-centos-7-containers-multinode: + branches: ^(?!stable/(newton|ocata)).*$ + - legacy-tripleo-ci-centos-7-scenario001-multinode-oooq: + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/aodh.*$ + - ^manifests/profile/base/aodh.*$ + - ^(docker|puppet)/services/ceilometer.*$ + - ^manifests/profile/base/ceilometer.*$ + - ^(docker|puppet)/services/gnocchi.*$ + - ^manifests/profile/base/gnocchi.*$ + - ^(docker|puppet)/services/panko.*$ + - ^manifests/profile/base/panko.*$ + - ^(docker|puppet)/services/ceph.*$ + - ^manifests/profile/base/ceph.*$ + - ^manifests/profile/base/monitoring.*$ + - ^(docker|puppet)/services/monitoring.*$ + - ^manifests/profile/base/metrics.*$ + - ^(docker|puppet)/services/metrics.*$ + - ^manifests/profile/base/logging.*$ + - ^(docker|puppet)/services/logging.*$ + - ^(docker|puppet)/services/tacker.*$ + - ^manifests/profile/base/tacker.*$ + - ^(docker|puppet)/services/congress.*$ + - ^manifests/profile/base/congress.*$ + - ^(docker|puppet)/services/cinder.*$ + - ^manifests/profile/base/cinder.*$ + - ci/environments/scenario001.*$ + - ci/pingtests/scenario001.*$ + - config/general_config/featureset005.yml + - config/general_config/featureset012.yml + - config/general_config/featureset016.yml + - workbooks/ceph-ansible.yaml + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario001-multinode-oooq-container: + branches: ^(?!stable/(newton|ocata)).*$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/aodh.*$ + - ^manifests/profile/base/aodh.*$ + - ^(docker|puppet)/services/ceilometer.*$ + - ^manifests/profile/base/ceilometer.*$ + - ^(docker|puppet)/services/gnocchi.*$ + - ^manifests/profile/base/gnocchi.*$ + - ^(docker|puppet)/services/panko.*$ + - ^manifests/profile/base/panko.*$ + - ^(docker|puppet)/services/ceph.*$ + - ^manifests/profile/base/ceph.*$ + - ^manifests/profile/base/monitoring.*$ + - ^(docker|puppet)/services/monitoring.*$ + - ^manifests/profile/base/metrics.*$ + - ^(docker|puppet)/services/metrics.*$ + - ^manifests/profile/base/logging.*$ + - ^(docker|puppet)/services/logging.*$ + - ^(docker|puppet)/services/tacker.*$ + - ^manifests/profile/base/tacker.*$ + - ^(docker|puppet)/services/congress.*$ + - ^manifests/profile/base/congress.*$ + - ^(docker|puppet)/services/cinder.*$ + - ^manifests/profile/base/cinder.*$ + - ci/environments/scenario001.*$ + - ci/pingtests/scenario001.*$ + - config/general_config/featureset005.yml + - config/general_config/featureset012.yml + - config/general_config/featureset016.yml + - workbooks/ceph-ansible.yaml + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario002-multinode-oooq: + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/barbican.*$ + - ^manifests/profile/base/barbican.*$ + - ^(docker|puppet)/services/cinder.*$ + - ^manifests/profile/base/cinder.*$ + - ^(docker|puppet)/services/ec2-api.*$ + - ^manifests/profile/base/nova/ec2.*$ + - ^(docker|puppet)/services/swift.*$ + - ^manifests/profile/base/swift.*$ + - ^(docker|puppet)/services/zaqar.*$ + - ^manifests/profile/base/zaqar.*$ + - ^(docker|puppet)/services/aodh.*$ + - ^manifests/profile/base/aodh.*$ + - ^(docker|puppet)/services/ceilometer.*$ + - ^manifests/profile/base/ceilometer.*$ + - ^(docker|puppet)/services/gnocchi.*$ + - ^manifests/profile/base/gnocchi.*$ + - ^(docker|puppet)/services/panko.*$ + - ^manifests/profile/base/panko.*$ + - ci/environments/scenario002.*$ + - ci/pingtests/scenario002.*$ + - config/general_config/featureset006.yml + - config/general_config/featureset013.yml + - config/general_config/featureset017.yml + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario002-multinode-oooq-container: + branches: ^(?!stable/(newton|ocata)).*$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/barbican.*$ + - ^manifests/profile/base/barbican.*$ + - ^(docker|puppet)/services/cinder.*$ + - ^manifests/profile/base/cinder.*$ + - ^(docker|puppet)/services/ec2-api.*$ + - ^manifests/profile/base/nova/ec2.*$ + - ^(docker|puppet)/services/swift.*$ + - ^manifests/profile/base/swift.*$ + - ^(docker|puppet)/services/zaqar.*$ + - ^manifests/profile/base/zaqar.*$ + - ^(docker|puppet)/services/aodh.*$ + - ^manifests/profile/base/aodh.*$ + - ^(docker|puppet)/services/ceilometer.*$ + - ^manifests/profile/base/ceilometer.*$ + - ^(docker|puppet)/services/gnocchi.*$ + - ^manifests/profile/base/gnocchi.*$ + - ^(docker|puppet)/services/panko.*$ + - ^manifests/profile/base/panko.*$ + - ci/environments/scenario002.*$ + - ci/pingtests/scenario002.*$ + - config/general_config/featureset006.yml + - config/general_config/featureset013.yml + - config/general_config/featureset017.yml + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario003-multinode-oooq: + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/sahara.*$ + - ^manifests/profile/base/sahara.*$ + - ^(docker|puppet)/services/mistral.*$ + - ^manifests/profile/base/mistral.*$ + - ci/environments/scenario003.*$ + - ci/pingtests/scenario003.*$ + - config/general_config/featureset007.yml + - config/general_config/featureset014.yml + - config/general_config/featureset018.yml + - roles\/(.+\/) + - toci-quickstart\/(config|playbooks)\/(.+) + - toci_.+ + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario003-multinode-oooq-container: + branches: ^(?!stable/(newton|ocata)).*$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/sahara.*$ + - ^manifests/profile/base/sahara.*$ + - ^(docker|puppet)/services/mistral.*$ + - ^manifests/profile/base/mistral.*$ + - ci/environments/scenario003.*$ + - ci/pingtests/scenario003.*$ + - config/general_config/featureset007.yml + - config/general_config/featureset014.yml + - config/general_config/featureset018.yml + - roles\/(.+\/) + - toci-quickstart\/(config|playbooks)\/(.+) + - toci_.+ + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario004-multinode-oooq: + branches: ^(?!stable/newton).*$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/ceph.*$ + - ^manifests/profile/base/ceph.*$ + - ^(docker|puppet)/services/manila.*$ + - ^manifests/profile/base/manila.*$ + - ^manifests/profile/pacemaker/manila.*$ + - ci/environments/scenario004.*$ + - ci/pingtests/scenario004.*$ + - config/general_config/featureset008.yml + - config/general_config/featureset015.yml + - config/general_config/featureset019.yml + - workbooks/ceph-ansible.yaml + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario004-multinode-oooq-container: + branches: ^(?!stable/(newton|ocata)).*$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/ceph.*$ + - ^manifests/profile/base/ceph.*$ + - ^(docker|puppet)/services/manila.*$ + - ^manifests/profile/base/manila.*$ + - ^manifests/profile/pacemaker/manila.*$ + - ci/environments/scenario004.*$ + - ci/pingtests/scenario004.*$ + - config/general_config/featureset008.yml + - config/general_config/featureset015.yml + - config/general_config/featureset019.yml + - workbooks/ceph-ansible.yaml + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario007-multinode-oooq: + branches: ^(?!stable/(newton|ocata)).*$ + files: + - ci/environments/scenario007-multinode.yaml + - ci/pingtests/scenario007-multinode.yaml + - ^puppet/services/.*ovn.*$ + - ^manifests/profile/base/neutron/plugins/ml2/ovn.*$ + - ^manifests/profile/base/neutron/agents/ovn.*$ + - ^manifests/profile/base/neutron/ovn.*$ + - config/general_config/featureset028.yml + experimental: + jobs: + - legacy-tripleo-ci-centos-7-scenario005-multinode-oooq: + voting: false + branches: ^(?!stable/newton).*$ + files: + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/pacemaker.*$ + - ^manifests/pacemaker/.*$ + - ^manifests/profile/pacemaker.*$ + - manifests/profile/base/pacemaker.pp + - ci/environments/scenario005-multinode.yaml + - ci/pingtests/scenario005-multinode.yaml + - config/general_config/featureset009.yml + - legacy-tripleo-ci-centos-7-scenario006-multinode-oooq: + voting: false + branches: ^(?!stable/(newton|ocata)).*$ + files: + - ^coe/kubernetes.*$ + - ^environments/kubernetes.*$ + - ci/environments/scenario006-multinode.yaml + - ci/pingtests/scenario006-multinode.yaml + - config/general_config/featureset026.yml + - legacy-tripleo-ci-centos-7-scenario008-multinode-oooq: + voting: false + branches: ^(?!stable/(newton|ocata)).*$ + files: + - ^environments/.*opendaylight.*$ + - ^puppet/services/.*opendaylight.*$ + - manifests/profile/base/neutron/opendaylight.pp + - manifests/profile/base/neutron/plugins/ml2/opendaylight.pp + - manifests/profile/base/neutron/plugins/ovs/opendaylight.pp + - ^manifests/profile/base/neutron/opendaylight/.*$ + - ci/environments/scenario008-multinode.yaml + - ci/pingtests/scenario008-multinode.yaml + - config/general_config/featureset031.yml + - legacy-tripleo-ci-centos-7-scenario007-multinode-oooq-container: + voting: false + branches: ^(?!stable/(newton|ocata)).*$ + files: + - ci/environments/scenario007-multinode-containers.yaml + - ci/pingtests/scenario007-multinode.yaml + - ^(docker|puppet)/services/.*ovn.*$ + - ^manifests/profile/pacemaker/ovn.*$ + - ^manifests/profile/base/neutron/plugins/ml2/ovn.*$ + - ^manifests/profile/base/neutron/agents/ovn.*$ + - ^manifests/profile/base/neutron/ovn.*$ + - config/general_config/featureset030.yml + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario009-multinode-oooq: + voting: false + branches: ^(?!stable/(newton|ocata)).*$ + files: + - ^coe/openshift.*$ + - ^environments/openshift.*$ + - ci/environments/scenario009-multinode.yaml + - ci/pingtests/scenario009-multinode.yaml + - config/general_config/featureset033.yml + +- project-template: + name: check-tripleo-undercloud-jobs + check: + jobs: + - legacy-tripleo-ci-centos-7-undercloud-oooq + - legacy-tripleo-ci-centos-7-undercloud-upgrades: + voting: false + branches: ^(?!stable/newton).*$ + gate: + jobs: + - legacy-tripleo-ci-centos-7-undercloud-oooq + +- project-template: + name: chef-rake-jobs + check: + jobs: + - legacy-chef-rake + - legacy-chef-rake-integration: + voting: false + gate: + jobs: + - legacy-chef-rake + experimental: + jobs: + - legacy-chef-rake-integration-centos-7: + voting: false + - legacy-chef-rake-integration-multinode: + voting: false + +- project-template: + name: deploy-guide-jobs + check: + jobs: + - legacy-deploy-guide: + files: + - ^tox.ini$ + - ^deploy-guide/.* + - bindep.txt + - other-requirements.txt + gate: + jobs: + - legacy-deploy-guide: + files: + - ^tox.ini$ + - ^deploy-guide/.* + - bindep.txt + - other-requirements.txt + post: + jobs: + - legacy-deploy-guide + +- project-template: + name: designate-dsvm-jobs + check: + jobs: + - legacy-tempest-dsvm-designate-pdns4 + - legacy-tempest-dsvm-designate-bind9 + - legacy-tempest-dsvm-designate-pdns4-postgres: + branches: ^(?!stable/newton).*$ + - legacy-tempest-dsvm-designate-pdns4-worker-model + - legacy-rally-dsvm-designate-designate-pdns4: + voting: false + - legacy-grenade-dsvm-designate-pdns4: + branches: ^(?!stable/newton).*$ + - legacy-tempest-dsvm-designate-pdns4-identity-v3-only + - legacy-tempest-dsvm-designate-pdns4-py35: + voting: false + branches: ^(?!stable/(newton|ocata)).*$ + gate: + jobs: + - legacy-tempest-dsvm-designate-pdns4 + - legacy-tempest-dsvm-designate-bind9 + - legacy-grenade-dsvm-designate-pdns4: + branches: ^(?!stable/newton).*$ + - legacy-tempest-dsvm-designate-pdns4-postgres: + branches: ^(?!stable/newton).*$ + - legacy-tempest-dsvm-designate-pdns4-worker-model + - legacy-tempest-dsvm-designate-pdns4-identity-v3-only + experimental: + jobs: + - legacy-tempest-dsvm-designate-agent-knot2 + - legacy-tempest-dsvm-designate-agent-djbdns + - legacy-tempest-dsvm-designate-agent-gdnsd + +- project-template: + name: experimental-tripleo-jobs + experimental-tripleo: + jobs: + - legacy-tripleo-ci-centos-7-ovb-fakeha-caserver + - legacy-tripleo-ci-centos-7-ovb-ha-tempest-oooq + +- project-template: + name: fuel-ccp-component + check: + jobs: + - openstack-tox-linters + - legacy-fuel-ccp-validate + gate: + jobs: + - openstack-tox-linters + - legacy-fuel-ccp-validate + +- project-template: + name: fuel-ccp-cross-repo-gate + check: + jobs: + - legacy-fuel-ccp-validate + gate: + jobs: + - legacy-fuel-ccp-validate + +- project-template: + name: golang-jobs + check: + jobs: + - legacy-golang-fmt + - legacy-golang-unit + gate: + jobs: + - legacy-golang-fmt + - legacy-golang-unit + +- project-template: + name: infra-logstash-filter-jobs + check: + jobs: + - legacy-logstash-filters-ubuntu-trusty: + branches: master + - legacy-logstash-filters: + voting: false + gate: + jobs: + - legacy-logstash-filters-ubuntu-trusty: + branches: master + +- project-template: + name: infra-puppet-apply-jobs + check: + jobs: + - legacy-infra-puppet-apply-3-centos-7 + - legacy-infra-puppet-apply-3-ubuntu-trusty: + branches: master + - legacy-infra-puppet-apply-3 + - legacy-openstackci-beaker-centos-7 + - legacy-openstackci-beaker-ubuntu-trusty + - legacy-openstackci-beaker: + voting: false + gate: + jobs: + - legacy-infra-puppet-apply-3-centos-7 + - legacy-infra-puppet-apply-3-ubuntu-trusty: + branches: master + - legacy-infra-puppet-apply-3 + - legacy-openstackci-beaker-centos-7 + - legacy-openstackci-beaker-ubuntu-trusty + experimental: + jobs: + - legacy-infra-puppet-apply-4-centos-7 + +- project-template: + name: infra-puppet-check-jobs + check: + jobs: + - legacy-puppet-lint + - legacy-puppet-syntax-3 + gate: + jobs: + - legacy-puppet-lint + - legacy-puppet-syntax-3 + experimental: + jobs: + - legacy-puppet-syntax-4-centos-7 + +- project-template: + name: install-guide-jobs + check: + jobs: + - legacy-install-guide: + branches: ^stable/(newton|ocata).*$ + files: + - ^tox.ini$ + - ^install-guide/.* + - bindep.txt + - other-requirements.txt + gate: + jobs: + - legacy-install-guide: + branches: ^stable/(newton|ocata).*$ + files: + - ^tox.ini$ + - ^install-guide/.* + - bindep.txt + - other-requirements.txt + post: + jobs: + - legacy-install-guide: + branches: ^stable/(newton|ocata).*$ + +- project-template: + name: integrated-gate + check: + jobs: + - legacy-tempest-dsvm-neutron-full: + branches: ^(?!driverfixes/).*$ + - legacy-grenade-dsvm-neutron: + branches: ^(?!stable/newton).*$ + gate: + jobs: + - legacy-tempest-dsvm-neutron-full: + branches: ^(?!driverfixes/).*$ + - legacy-grenade-dsvm-neutron: + branches: ^(?!stable/newton).*$ + experimental: + jobs: + - legacy-tempest-dsvm-neutron-pg-full: + voting: false + - legacy-tempest-dsvm-neutron-full-opensuse-423: + voting: false + branches: ^(?!stable/(newton|ocata)).*$ + +- project-template: + name: integrated-gate-nova-net + check: + jobs: + - legacy-tempest-dsvm-nnet: + branches: stable/newton + gate: + jobs: + - legacy-tempest-dsvm-nnet: + branches: stable/newton + +- project-template: + name: integrated-gate-py35 + check: + jobs: + - legacy-tempest-dsvm-py35: + branches: ^(?!(stable|driverfixes)) + gate: + jobs: + - legacy-tempest-dsvm-py35: + branches: ^(?!(stable|driverfixes)) + +- project-template: + name: lib-forward-testing + check: + jobs: + - legacy-tempest-dsvm-neutron-src + gate: + jobs: + - legacy-tempest-dsvm-neutron-src + +- project-template: + name: lib-forward-testing-plugin + check: + jobs: + - legacy-tempest-dsvm-neutron-src-plugin + gate: + jobs: + - legacy-tempest-dsvm-neutron-src-plugin + +- project-template: + name: loci-jobs + check: + jobs: + - legacy-loci + gate: + jobs: + - legacy-loci + +- project-template: + name: merge-check + merge-check: + jobs: + - noop + +- project-template: + name: nodejs4-docs + check: + jobs: + - build-openstack-sphinx-docs + gate: + jobs: + - build-openstack-sphinx-docs + +- project-template: + name: nodejs4-jobs + check: + jobs: + - legacy-nodejs4-npm-run-lint + - legacy-nodejs4-npm-run-test + gate: + jobs: + - legacy-nodejs4-npm-run-lint + - legacy-nodejs4-npm-run-test + +- project-template: + name: nodejs4-publish-to-npm + release: + jobs: + - publish-openstack-python-tarball: + dependencies: + - publish-openstack-python-tarball + - legacy-announce-release: + dependencies: + - legacy-npm-upload + - legacy-npm-upload: + dependencies: + - publish-openstack-python-tarball + - publish-openstack-python-tarball + +- project-template: + name: nodejs6-docs + check: + jobs: + - build-openstack-sphinx-docs + gate: + jobs: + - build-openstack-sphinx-docs + +- project-template: + name: nodejs6-jobs + check: + jobs: + - legacy-nodejs6-npm-run-lint + - legacy-nodejs6-npm-run-test + +- project-template: + name: nodejs6-publish-to-npm + release: + jobs: + - publish-openstack-python-tarball: + dependencies: + - publish-openstack-python-tarball + - legacy-announce-release: + dependencies: + - legacy-npm-upload + - legacy-npm-upload: + dependencies: + - publish-openstack-python-tarball + - publish-openstack-python-tarball + +- project-template: + name: noop-jobs + check: + jobs: + - noop + gate: + jobs: + - noop + +- project-template: + name: openstack-doc-rst-gate + check: + jobs: + - legacy-tox-checkniceness + - legacy-tox-doc-publish-checkbuild + gate: + jobs: + - legacy-tox-checkniceness + - legacy-tox-doc-publish-checkbuild + +- project-template: + name: openstack-doc-translation + check: + jobs: + - legacy-tox-doc-publish-checklang: + files: + - ^.*\.po$ + - ^.*\.pot$ + gate: + jobs: + - legacy-tox-doc-publish-checklang: + files: + - ^.*\.po$ + - ^.*\.pot$ + post: + jobs: + - legacy-upstream-translation-update + - legacy-tox-doc-publishlang + periodic: + jobs: + - legacy-propose-translation-update + +- project-template: + name: openstack-specs-jobs + check: + jobs: + - build-openstack-sphinx-docs + gate: + jobs: + - build-openstack-sphinx-docs + post: + jobs: + - publish-openstack-specs + +- project-template: + name: osc-plugin-jobs + check: + jobs: + - legacy-check-osc-plugins: + voting: false + +- project-template: + name: packstack-integration-jobs + check: + jobs: + - legacy-packstack-integration-scenario001-tempest-centos-7 + - legacy-packstack-integration-scenario002-tempest-centos-7 + - legacy-packstack-integration-scenario003-tempest-centos-7 + gate: + jobs: + - legacy-packstack-integration-scenario001-tempest-centos-7 + - legacy-packstack-integration-scenario002-tempest-centos-7 + - legacy-packstack-integration-scenario003-tempest-centos-7 + +- project-template: + name: periodic-jobs-with-neutron-lib-master + periodic: + jobs: + - legacy-periodic-py35-with-neutron-lib-master + +- project-template: + name: periodic-jobs-with-oslo-master + periodic: + jobs: + - legacy-periodic-py27-with-oslo-master + - legacy-periodic-py35-with-oslo-master + +- project-template: + name: periodic-jobs-with-ovsdbapp-master + periodic: + jobs: + - legacy-periodic-py35-with-ovsdbapp-master + +- project-template: + name: periodic-newton + periodic-stable: + jobs: + - legacy-periodic-docs-newton + - legacy-periodic-python27-newton + +- project-template: + name: periodic-ocata + periodic-stable: + jobs: + - legacy-periodic-docs-ocata + - legacy-periodic-python27-ocata + +- project-template: + name: periodic-pike + periodic-stable: + jobs: + - legacy-periodic-docs-pike + - legacy-periodic-python27-pike + +- project-template: + name: puppet-beaker-jobs + check: + jobs: + - legacy-puppet-beaker-rspec-centos-7 + gate: + jobs: + - legacy-puppet-beaker-rspec-centos-7 + +- project-template: + name: puppet-beaker-jobs-trusty-nv + check: + jobs: + - legacy-puppet-beaker-rspec-ubuntu-trusty: + voting: false + +- project-template: + name: puppet-beaker-jobs-xenial + check: + jobs: + - legacy-puppet-beaker-rspec + gate: + jobs: + - legacy-puppet-beaker-rspec + +- project-template: + name: puppet-beaker-jobs-xenial-nv + check: + jobs: + - legacy-puppet-beaker-rspec: + voting: false + +- project-template: + name: puppet-check-jobs + check: + jobs: + - legacy-puppet-lint + - legacy-puppet-syntax-3-legacy-centos-7 + - legacy-puppet-syntax-4-centos-7 + - legacy-puppet-module-build + gate: + jobs: + - legacy-puppet-lint + - legacy-puppet-syntax-3-legacy-centos-7 + - legacy-puppet-syntax-4-centos-7 + - legacy-puppet-module-build + +- project-template: + name: puppet-module-unit-jobs + check: + jobs: + - legacy-puppet-unit-3.6-legacy-centos-7 + - legacy-puppet-unit-3.8-legacy-centos-7 + - legacy-puppet-unit-4.8-centos-7 + - legacy-puppet-unit-latest-centos-7 + gate: + jobs: + - legacy-puppet-unit-3.6-legacy-centos-7 + - legacy-puppet-unit-3.8-legacy-centos-7 + - legacy-puppet-unit-4.8-centos-7 + +- project-template: + name: puppet-openstack-integration-jobs-all + check: + jobs: + - legacy-puppet-openstack-integration-4-scenario001-tempest-centos-7 + - legacy-puppet-openstack-integration-4-scenario002-tempest-centos-7 + - legacy-puppet-openstack-integration-4-scenario003-tempest-centos-7 + - legacy-puppet-openstack-integration-4-scenario004-tempest-centos-7: + branches: ^(?!stable/newton).*$ + - legacy-puppet-openstack-integration-4-scenario001-tempest + - legacy-puppet-openstack-integration-4-scenario002-tempest + - legacy-puppet-openstack-integration-4-scenario003-tempest + - legacy-puppet-openstack-integration-4-scenario004-tempest: + branches: ^(?!stable/newton).*$ + gate: + jobs: + - legacy-puppet-openstack-integration-4-scenario001-tempest-centos-7 + - legacy-puppet-openstack-integration-4-scenario002-tempest-centos-7 + - legacy-puppet-openstack-integration-4-scenario003-tempest-centos-7 + - legacy-puppet-openstack-integration-4-scenario004-tempest-centos-7: + branches: ^(?!stable/newton).*$ + - legacy-puppet-openstack-integration-4-scenario001-tempest + - legacy-puppet-openstack-integration-4-scenario002-tempest + - legacy-puppet-openstack-integration-4-scenario003-tempest + - legacy-puppet-openstack-integration-4-scenario004-tempest: + branches: ^(?!stable/newton).*$ + experimental: + jobs: + - legacy-puppet-openstack-integration-5-scenario001-tempest-centos-7 + - legacy-puppet-openstack-integration-5-scenario002-tempest-centos-7 + - legacy-puppet-openstack-integration-5-scenario003-tempest-centos-7 + - legacy-puppet-openstack-integration-5-scenario004-tempest-centos-7 + - legacy-puppet-openstack-integration-5-scenario001-tempest + - legacy-puppet-openstack-integration-5-scenario002-tempest + - legacy-puppet-openstack-integration-5-scenario003-tempest + - legacy-puppet-openstack-integration-5-scenario004-tempest + +- project-template: + name: puppet-openstack-integration-jobs-scenario001 + check: + jobs: + - legacy-puppet-openstack-integration-4-scenario001-tempest + - legacy-puppet-openstack-integration-4-scenario001-tempest-centos-7 + gate: + jobs: + - legacy-puppet-openstack-integration-4-scenario001-tempest + - legacy-puppet-openstack-integration-4-scenario001-tempest-centos-7 + +- project-template: + name: puppet-openstack-integration-jobs-scenario002 + check: + jobs: + - legacy-puppet-openstack-integration-4-scenario002-tempest + - legacy-puppet-openstack-integration-4-scenario002-tempest-centos-7 + gate: + jobs: + - legacy-puppet-openstack-integration-4-scenario002-tempest + - legacy-puppet-openstack-integration-4-scenario002-tempest-centos-7 + +- project-template: + name: puppet-openstack-integration-jobs-scenario003 + check: + jobs: + - legacy-puppet-openstack-integration-4-scenario003-tempest + - legacy-puppet-openstack-integration-4-scenario003-tempest-centos-7 + gate: + jobs: + - legacy-puppet-openstack-integration-4-scenario003-tempest + - legacy-puppet-openstack-integration-4-scenario003-tempest-centos-7 + +- project-template: + name: puppet-openstack-integration-jobs-scenario004 + check: + jobs: + - legacy-puppet-openstack-integration-4-scenario004-tempest: + branches: ^(?!stable/newton).*$ + - legacy-puppet-openstack-integration-4-scenario004-tempest-centos-7: + branches: ^(?!stable/newton).*$ + gate: + jobs: + - legacy-puppet-openstack-integration-4-scenario004-tempest: + branches: ^(?!stable/newton).*$ + - legacy-puppet-openstack-integration-4-scenario004-tempest-centos-7: + branches: ^(?!stable/newton).*$ + +- project-template: + name: puppet-openstack-libraries-jobs + check: + jobs: + - legacy-puppet-openstack-libraries-puppet-lint-centos-7 + - legacy-puppet-openstack-libraries-puppet-syntax-3-legacy-centos-7: + branches: ^(stable/(newton|ocata)).*$ + - legacy-puppet-openstack-libraries-puppet-syntax-4-centos-7 + - legacy-puppet-openstack-libraries-puppet-unit-centos-7 + - legacy-puppet-openstack-libraries-puppet-beaker-rspec-centos-7 + gate: + jobs: + - legacy-puppet-openstack-libraries-puppet-lint-centos-7 + - legacy-puppet-openstack-libraries-puppet-syntax-3-legacy-centos-7: + branches: ^(stable/(newton|ocata)).*$ + - legacy-puppet-openstack-libraries-puppet-syntax-4-centos-7 + - legacy-puppet-openstack-libraries-puppet-unit-centos-7 + - legacy-puppet-openstack-libraries-puppet-beaker-rspec-centos-7 + +- project-template: + name: puppet-release-jobs + pre-release: + jobs: + - publish-openstack-python-tarball: + dependencies: + - publish-openstack-python-tarball + - legacy-announce-release: + dependencies: + - publish-openstack-python-tarball + - publish-openstack-python-tarball + release: + jobs: + - publish-openstack-python-tarball: + dependencies: + - publish-openstack-python-tarball + - legacy-announce-release: + dependencies: + - publish-openstack-python-tarball + - publish-openstack-python-tarball + post: + jobs: + - publish-openstack-python-branch-tarball + +- project-template: + name: puppet-syntax + check: + jobs: + - legacy-puppet-syntax-3-centos-7 + - legacy-puppet-syntax-4-centos-7 + gate: + jobs: + - legacy-puppet-syntax-3-centos-7 + - legacy-puppet-syntax-4-centos-7 + +- project-template: + name: python-charm-interface-jobs + check: + jobs: + - openstack-tox-pep8 + gate: + jobs: + - openstack-tox-pep8 + +- project-template: + name: python-charm-jobs + check: + jobs: + - openstack-tox-pep8 + - openstack-tox-py27 + gate: + jobs: + - openstack-tox-pep8 + - openstack-tox-py27 + post: + jobs: + - publish-openstack-python-branch-tarball + +- project-template: + name: python-charm-layer-jobs + check: + jobs: + - openstack-tox-pep8 + - legacy-tox-build + gate: + jobs: + - openstack-tox-pep8 + - legacy-tox-build + +- project-template: + name: release-notes-jobs + check: + jobs: + - legacy-releasenotes: + files: + - ^releasenotes/.* + - ^tox.ini + - ^.*requirements.txt$ + gate: + jobs: + - legacy-releasenotes: + files: + - ^releasenotes/.* + - ^tox.ini + - ^.*requirements.txt$ + post: + jobs: + - legacy-releasenotes + tag: + jobs: + - legacy-releasenotes + +- project-template: + name: snap-jobs + check: + jobs: + - legacy-tox-with-sudo-snap + gate: + jobs: + - legacy-tox-with-sudo-snap + +- project-template: + name: translation-jobs + post: + jobs: + - legacy-upstream-translation-update + periodic: + jobs: + - legacy-propose-translation-update + +- project-template: + name: translation-jobs-ocata + periodic: + jobs: + - legacy-propose-translation-update-ocata + +- project-template: + name: translation-jobs-pike + periodic: + jobs: + - legacy-propose-translation-update-pike + +- project-template: + name: tripleo-puppet-jobs + check: + jobs: + - legacy-tripleo-ci-centos-7-nonha-multinode-oooq + gate: + jobs: + - legacy-tripleo-ci-centos-7-nonha-multinode-oooq + +- project-template: + name: tripleo-scenario-jobs-scenario001 + check: + jobs: + - legacy-tripleo-ci-centos-7-scenario001-multinode-oooq-puppet + gate: + jobs: + - legacy-tripleo-ci-centos-7-scenario001-multinode-oooq-puppet + +- project-template: + name: tripleo-scenario-jobs-scenario002 + check: + jobs: + - legacy-tripleo-ci-centos-7-scenario002-multinode-oooq-puppet: + branches: ^(?!stable/newton).*$ + gate: + jobs: + - legacy-tripleo-ci-centos-7-scenario002-multinode-oooq-puppet: + branches: ^(?!stable/newton).*$ + +- project-template: + name: tripleo-scenario-jobs-scenario003 + check: + jobs: + - legacy-tripleo-ci-centos-7-scenario003-multinode-oooq-puppet: + branches: ^(?!stable/newton).*$ + gate: + jobs: + - legacy-tripleo-ci-centos-7-scenario003-multinode-oooq-puppet: + branches: ^(?!stable/newton).*$ + +- project-template: + name: tripleo-scenario-jobs-scenario004 + check: + jobs: + - legacy-tripleo-ci-centos-7-scenario004-multinode-oooq-puppet: + branches: ^(?!stable/newton).*$ + gate: + jobs: + - legacy-tripleo-ci-centos-7-scenario004-multinode-oooq-puppet: + branches: ^(?!stable/newton).*$ + +- project-template: + name: tripleo-scenario-jobs-scenario007 + check: + jobs: + - legacy-tripleo-ci-centos-7-scenario007-multinode-oooq-puppet: + branches: ^(?!stable/(newton|ocata)).*$ + gate: + jobs: + - legacy-tripleo-ci-centos-7-scenario007-multinode-oooq-puppet: + branches: ^(?!stable/(newton|ocata)).*$ + +- project-template: + name: tripleo-scenario-jobs-scenario007-nv + check: + jobs: + - legacy-tripleo-ci-centos-7-scenario007-multinode-oooq-puppet: + voting: false + branches: ^(?!stable/(newton|ocata)).*$ + +- project-template: + name: tripleo-upgrade-jobs + check: + jobs: + - legacy-tripleo-ci-centos-7-multinode-upgrades: + branches: ^stable/ocata$ + - legacy-tripleo-ci-centos-7-containers-multinode-upgrades: + voting: false + branches: ^(?!stable/(newton|ocata)).*$ + gate: + jobs: + - legacy-tripleo-ci-centos-7-multinode-upgrades: + branches: ^stable/ocata$ + +- project-template: + name: tripleo-upgrade-jobs-scenario001 + check: + jobs: + - legacy-tripleo-ci-centos-7-scenario001-multinode-upgrades: + branches: ^stable/ocata$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/aodh.*$ + - ^manifests/profile/base/aodh.*$ + - ^(docker|puppet)/services/ceilometer.*$ + - ^manifests/profile/base/ceilometer.*$ + - ^(docker|puppet)/services/gnocchi.*$ + - ^manifests/profile/base/gnocchi.*$ + - ^(docker|puppet)/services/panko.*$ + - ^manifests/profile/base/panko.*$ + - ^(docker|puppet)/services/ceph.*$ + - ^manifests/profile/base/ceph.*$ + - ^manifests/profile/base/monitoring.*$ + - ^(docker|puppet)/services/monitoring.*$ + - ^manifests/profile/base/metrics.*$ + - ^(docker|puppet)/services/metrics.*$ + - ^manifests/profile/base/logging.*$ + - ^(docker|puppet)/services/logging.*$ + - ^(docker|puppet)/services/tacker.*$ + - ^manifests/profile/base/tacker.*$ + - ^(docker|puppet)/services/congress.*$ + - ^manifests/profile/base/congress.*$ + - ^(docker|puppet)/services/cinder.*$ + - ^manifests/profile/base/cinder.*$ + - ci/environments/scenario001.*$ + - ci/pingtests/scenario001.*$ + - config/general_config/featureset005.yml + - config/general_config/featureset012.yml + - config/general_config/featureset016.yml + - workbooks/ceph-ansible.yaml + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario001-multinode-oooq-container-upgrades: + voting: false + branches: ^(?!stable/(newton|ocata)).*$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/aodh.*$ + - ^manifests/profile/base/aodh.*$ + - ^(docker|puppet)/services/ceilometer.*$ + - ^manifests/profile/base/ceilometer.*$ + - ^(docker|puppet)/services/gnocchi.*$ + - ^manifests/profile/base/gnocchi.*$ + - ^(docker|puppet)/services/panko.*$ + - ^manifests/profile/base/panko.*$ + - ^(docker|puppet)/services/ceph.*$ + - ^manifests/profile/base/ceph.*$ + - ^manifests/profile/base/monitoring.*$ + - ^(docker|puppet)/services/monitoring.*$ + - ^manifests/profile/base/metrics.*$ + - ^(docker|puppet)/services/metrics.*$ + - ^manifests/profile/base/logging.*$ + - ^(docker|puppet)/services/logging.*$ + - ^(docker|puppet)/services/tacker.*$ + - ^manifests/profile/base/tacker.*$ + - ^(docker|puppet)/services/congress.*$ + - ^manifests/profile/base/congress.*$ + - ^(docker|puppet)/services/cinder.*$ + - ^manifests/profile/base/cinder.*$ + - ci/environments/scenario001.*$ + - ci/pingtests/scenario001.*$ + - config/general_config/featureset005.yml + - config/general_config/featureset012.yml + - config/general_config/featureset016.yml + - workbooks/ceph-ansible.yaml + - ^container-images/.*$ + - ^environments\/.*.yaml + gate: + jobs: + - legacy-tripleo-ci-centos-7-scenario001-multinode-upgrades: + branches: ^stable/ocata$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/aodh.*$ + - ^manifests/profile/base/aodh.*$ + - ^(docker|puppet)/services/ceilometer.*$ + - ^manifests/profile/base/ceilometer.*$ + - ^(docker|puppet)/services/gnocchi.*$ + - ^manifests/profile/base/gnocchi.*$ + - ^(docker|puppet)/services/panko.*$ + - ^manifests/profile/base/panko.*$ + - ^(docker|puppet)/services/ceph.*$ + - ^manifests/profile/base/ceph.*$ + - ^manifests/profile/base/monitoring.*$ + - ^(docker|puppet)/services/monitoring.*$ + - ^manifests/profile/base/metrics.*$ + - ^(docker|puppet)/services/metrics.*$ + - ^manifests/profile/base/logging.*$ + - ^(docker|puppet)/services/logging.*$ + - ^(docker|puppet)/services/tacker.*$ + - ^manifests/profile/base/tacker.*$ + - ^(docker|puppet)/services/congress.*$ + - ^manifests/profile/base/congress.*$ + - ^(docker|puppet)/services/cinder.*$ + - ^manifests/profile/base/cinder.*$ + - ci/environments/scenario001.*$ + - ci/pingtests/scenario001.*$ + - config/general_config/featureset005.yml + - config/general_config/featureset012.yml + - config/general_config/featureset016.yml + - workbooks/ceph-ansible.yaml + - ^container-images/.*$ + - ^environments\/.*.yaml + +- project-template: + name: tripleo-upgrade-jobs-scenario002 + check: + jobs: + - legacy-tripleo-ci-centos-7-scenario002-multinode-upgrades: + branches: ^stable/ocata$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/barbican.*$ + - ^manifests/profile/base/barbican.*$ + - ^(docker|puppet)/services/cinder.*$ + - ^manifests/profile/base/cinder.*$ + - ^(docker|puppet)/services/ec2-api.*$ + - ^manifests/profile/base/nova/ec2.*$ + - ^(docker|puppet)/services/swift.*$ + - ^manifests/profile/base/swift.*$ + - ^(docker|puppet)/services/zaqar.*$ + - ^manifests/profile/base/zaqar.*$ + - ^(docker|puppet)/services/aodh.*$ + - ^manifests/profile/base/aodh.*$ + - ^(docker|puppet)/services/ceilometer.*$ + - ^manifests/profile/base/ceilometer.*$ + - ^(docker|puppet)/services/gnocchi.*$ + - ^manifests/profile/base/gnocchi.*$ + - ^(docker|puppet)/services/panko.*$ + - ^manifests/profile/base/panko.*$ + - ci/environments/scenario002.*$ + - ci/pingtests/scenario002.*$ + - config/general_config/featureset006.yml + - config/general_config/featureset013.yml + - config/general_config/featureset017.yml + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario002-multinode-oooq-container-upgrades: + voting: false + branches: ^(?!stable/(newton|ocata)).*$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/barbican.*$ + - ^manifests/profile/base/barbican.*$ + - ^(docker|puppet)/services/cinder.*$ + - ^manifests/profile/base/cinder.*$ + - ^(docker|puppet)/services/ec2-api.*$ + - ^manifests/profile/base/nova/ec2.*$ + - ^(docker|puppet)/services/swift.*$ + - ^manifests/profile/base/swift.*$ + - ^(docker|puppet)/services/zaqar.*$ + - ^manifests/profile/base/zaqar.*$ + - ^(docker|puppet)/services/aodh.*$ + - ^manifests/profile/base/aodh.*$ + - ^(docker|puppet)/services/ceilometer.*$ + - ^manifests/profile/base/ceilometer.*$ + - ^(docker|puppet)/services/gnocchi.*$ + - ^manifests/profile/base/gnocchi.*$ + - ^(docker|puppet)/services/panko.*$ + - ^manifests/profile/base/panko.*$ + - ci/environments/scenario002.*$ + - ci/pingtests/scenario002.*$ + - config/general_config/featureset006.yml + - config/general_config/featureset013.yml + - config/general_config/featureset017.yml + - ^container-images/.*$ + - ^environments\/.*.yaml + gate: + jobs: + - legacy-tripleo-ci-centos-7-scenario002-multinode-upgrades: + branches: ^stable/ocata$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/barbican.*$ + - ^manifests/profile/base/barbican.*$ + - ^(docker|puppet)/services/cinder.*$ + - ^manifests/profile/base/cinder.*$ + - ^(docker|puppet)/services/ec2-api.*$ + - ^manifests/profile/base/nova/ec2.*$ + - ^(docker|puppet)/services/swift.*$ + - ^manifests/profile/base/swift.*$ + - ^(docker|puppet)/services/zaqar.*$ + - ^manifests/profile/base/zaqar.*$ + - ^(docker|puppet)/services/aodh.*$ + - ^manifests/profile/base/aodh.*$ + - ^(docker|puppet)/services/ceilometer.*$ + - ^manifests/profile/base/ceilometer.*$ + - ^(docker|puppet)/services/gnocchi.*$ + - ^manifests/profile/base/gnocchi.*$ + - ^(docker|puppet)/services/panko.*$ + - ^manifests/profile/base/panko.*$ + - ci/environments/scenario002.*$ + - ci/pingtests/scenario002.*$ + - config/general_config/featureset006.yml + - config/general_config/featureset013.yml + - config/general_config/featureset017.yml + - ^container-images/.*$ + - ^environments\/.*.yaml + +- project-template: + name: tripleo-upgrade-jobs-scenario003 + check: + jobs: + - legacy-tripleo-ci-centos-7-scenario003-multinode-upgrades: + branches: ^stable/ocata$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/sahara.*$ + - ^manifests/profile/base/sahara.*$ + - ^(docker|puppet)/services/mistral.*$ + - ^manifests/profile/base/mistral.*$ + - ci/environments/scenario003.*$ + - ci/pingtests/scenario003.*$ + - config/general_config/featureset007.yml + - config/general_config/featureset014.yml + - config/general_config/featureset018.yml + - roles\/(.+\/) + - toci-quickstart\/(config|playbooks)\/(.+) + - toci_.+ + - ^container-images/.*$ + - ^environments\/.*.yaml + - legacy-tripleo-ci-centos-7-scenario003-multinode-oooq-container-upgrades: + voting: false + branches: ^(?!stable/(newton|ocata)).*$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/sahara.*$ + - ^manifests/profile/base/sahara.*$ + - ^(docker|puppet)/services/mistral.*$ + - ^manifests/profile/base/mistral.*$ + - ci/environments/scenario003.*$ + - ci/pingtests/scenario003.*$ + - config/general_config/featureset007.yml + - config/general_config/featureset014.yml + - config/general_config/featureset018.yml + - roles\/(.+\/) + - toci-quickstart\/(config|playbooks)\/(.+) + - toci_.+ + - ^container-images/.*$ + - ^environments\/.*.yaml + gate: + jobs: + - legacy-tripleo-ci-centos-7-scenario003-multinode-upgrades: + branches: ^stable/ocata$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/sahara.*$ + - ^manifests/profile/base/sahara.*$ + - ^(docker|puppet)/services/mistral.*$ + - ^manifests/profile/base/mistral.*$ + - ci/environments/scenario003.*$ + - ci/pingtests/scenario003.*$ + - config/general_config/featureset007.yml + - config/general_config/featureset014.yml + - config/general_config/featureset018.yml + - roles\/(.+\/) + - toci-quickstart\/(config|playbooks)\/(.+) + - toci_.+ + - ^container-images/.*$ + - ^environments\/.*.yaml + +- project-template: + name: tripleo-upgrade-jobs-scenario004 + check: + jobs: + - legacy-tripleo-ci-centos-7-scenario004-multinode-oooq-container-upgrades: + voting: false + branches: ^(?!stable/(newton|ocata)).*$ + files: + - ^(docker|puppet)/services/glance.*$ + - ^manifests/profile/base/glance.*$ + - ^manifests/haproxy.*$ + - ^(docker|puppet)/services/ceph.*$ + - ^manifests/profile/base/ceph.*$ + - ^(docker|puppet)/services/manila.*$ + - ^manifests/profile/base/manila.*$ + - ^manifests/profile/pacemaker/manila.*$ + - ci/environments/scenario004.*$ + - ci/pingtests/scenario004.*$ + - config/general_config/featureset008.yml + - config/general_config/featureset015.yml + - config/general_config/featureset019.yml + - workbooks/ceph-ansible.yaml + - ^container-images/.*$ + - ^environments\/.*.yaml + +- project-template: + name: windmill-buildimages-xenial + check: + jobs: + - legacy-windmill-buildimages + gate: + jobs: + - legacy-windmill-buildimages + +- project-template: + name: windmill-jobs-centos7-nv + check: + jobs: + - legacy-windmill-deploy-centos-7: + voting: false + +- project-template: + name: windmill-jobs-fedora-26 + check: + jobs: + - legacy-windmill-deploy-fedora-26 + gate: + jobs: + - legacy-windmill-deploy-fedora-26 + +- project-template: + name: windmill-jobs-fedora-26-nv + check: + jobs: + - legacy-windmill-deploy-fedora-26: + voting: false + +- project-template: + name: windmill-jobs-xenial + check: + jobs: + - legacy-windmill-deploy + gate: + jobs: + - legacy-windmill-deploy + +- project-template: + name: windmill-jobs-xenial-nv + check: + jobs: + - legacy-windmill-deploy: + voting: false