Browse Source

Remove venv build process

The packaged venvs are no longer used by any of the roles,
so we remove the whole process.

Change-Id: I086c7f53f90c11969f56391551a573e1bd526c50
Jesse Pretorius 7 months ago
parent
commit
b1148411cc

+ 2
- 32
defaults/main.yml View File

@@ -50,7 +50,7 @@ repo_build_git_dir: "{{ repo_build_base_path }}/openstackgit"
50 50
 repo_build_pool_dir: "{{ repo_build_base_path }}/pools/{{ repo_build_os_distro_version }}"
51 51
 
52 52
 # Toggle whether git repositories should be cloned selectively or not
53
-repo_build_git_selective: "{{ true if (repo_build_wheel_selective | bool and repo_build_venv_selective | bool) else false }}"
53
+repo_build_git_selective: "{{ repo_build_wheel_selective | bool }}"
54 54
 
55 55
 # Toggle whether a git clone should be forced
56 56
 repo_build_git_reclone: no
@@ -59,20 +59,11 @@ repo_build_git_reclone: no
59 59
 repo_build_git_depth: 1
60 60
 
61 61
 # Toggle whether wheels should be built selectively or not
62
-repo_build_wheel_selective: "{{ true if repo_build_venv_selective | bool else false }}"
62
+repo_build_wheel_selective: yes
63 63
 
64 64
 # Toggle whether a wheel rebuild should be forced
65 65
 repo_build_wheel_rebuild: no
66 66
 
67
-# Toggle whether venvs should be built selectively or not
68
-repo_build_venv_selective: yes
69
-
70
-# Toggle whether a venv rebuild should be forced
71
-repo_build_venv_rebuild: no
72
-
73
-# Timeout (in minutes) for a venv build
74
-repo_build_venv_timeout: 30
75
-
76 67
 # Optionally set this to change the default index from pypi to an alternative
77 68
 repo_build_pip_default_index: "https://pypi.python.org/simple"
78 69
 
@@ -87,23 +78,6 @@ repo_build_pip_default_index: "https://pypi.python.org/simple"
87 78
 #  - libvirt-python
88 79
 
89 80
 repo_build_timeout: 120
90
-repo_build_concurrency: "{{ (((ansible_processor_vcpus|default(1)) | int) > 4) | ternary(8, 4) }}"
91
-repo_build_venv_build_dir: "/tmp/openstack-venv-builder"
92
-repo_build_venv_dir: "{{ repo_build_base_path }}/venvs/{{ repo_build_release_tag }}/{{ repo_build_os_distro_version }}"
93
-
94
-# We use find-links here in order to prefer the locally
95
-# built wheels.
96
-repo_build_venv_pip_install_options: >-
97
-  --timeout 120
98
-  --find-links {{ repo_build_release_path }}
99
-  --pre
100
-
101
-# NOTE(odyssey4me):
102
-# Not using --always-copy for CentOS/SuSE due to
103
-# https://github.com/pypa/virtualenv/issues/565
104
-repo_build_venv_command_options: >-
105
-  {{ virtualenv_bin }}
106
-  {{ (ansible_pkg_mgr == 'apt') | ternary('--always-copy', '') }}
107 81
 
108 82
 # Path to the repo build venv binaries
109 83
 repo_build_bin: "/openstack/venvs/repo-build-{{ repo_build_release_tag }}/bin"
@@ -117,7 +91,3 @@ repo_pip_packages:
117 91
   - wheel
118 92
 
119 93
 repo_build_store_pip_sources: false
120
-
121
-# Default python packages which will be installed
122
-# into every venv.
123
-repo_venv_default_pip_packages: []

+ 21
- 0
releasenotes/notes/repo-build-venv-removed-80686a21b693b0cd.yaml View File

@@ -0,0 +1,21 @@
1
+---
2
+deprecations:
3
+  - |
4
+    The repo build process no longer builds packaged venvs. Instead, the venvs
5
+    are created on the target hosts as the install process for each service
6
+    needs to. This opens up the opportunity for roles to be capable of creating
7
+    multiple venvs, and for any role to create venvs - neither of these options
8
+    were possible in previous releases.
9
+
10
+    The following variables therefore have been removed.
11
+
12
+    * ``repo_build_venv_selective``
13
+    * ``repo_build_venv_rebuild``
14
+    * ``repo_build_venv_timeout``
15
+    * ``repo_build_concurrency``
16
+    * ``repo_build_venv_build_dir``
17
+    * ``repo_build_venv_dir``
18
+    * ``repo_build_venv_pip_install_options``
19
+    * ``repo_build_venv_command_options``
20
+    * ``repo_venv_default_pip_packages``
21
+

+ 0
- 4
tasks/main.yml View File

@@ -45,10 +45,6 @@
45 45
   tags:
46 46
     - repo-build-wheels
47 47
 
48
-- include_tasks: repo_build_venvs.yml
49
-  tags:
50
-    - repo-build-venvs
51
-
52 48
 - include_tasks: repo_build_index.yml
53 49
   tags:
54 50
     - repo-build-index

+ 0
- 1
tasks/repo_build_index.yml View File

@@ -18,7 +18,6 @@
18 18
     file_type: any
19 19
     paths:
20 20
       - "{{ repo_build_release_path }}"
21
-      - "{{ repo_build_venv_dir }}"
22 21
   register: manifest_items
23 22
   tags:
24 23
     - repo-create-release-manifest

+ 2
- 18
tasks/repo_build_prepare.yml View File

@@ -17,17 +17,13 @@
17 17
   ini_file:
18 18
     dest: "/etc/ansible/facts.d/openstack_ansible.fact"
19 19
     section: repo_build
20
-    option: "{{ item }}"
20
+    option: "need_wheel_build"
21 21
     value: False
22
-  with_items:
23
-    - "need_wheel_build"
24
-    - "need_venv_build"
25 22
   when:
26 23
     - "(ansible_local is not defined) or
27 24
        ('openstack_ansible' not in ansible_local) or
28 25
        ('repo_build' not in ansible_local['openstack_ansible']) or
29
-       ('need_wheel_build' not in ansible_local['openstack_ansible']['repo_build']) or
30
-       ('need_venv_build' not in ansible_local['openstack_ansible']['repo_build'])"
26
+       ('need_wheel_build' not in ansible_local['openstack_ansible']['repo_build'])"
31 27
 
32 28
 - name: Create package directories
33 29
   file:
@@ -77,18 +73,6 @@
77 73
       (_wheel_build_constraints | changed) or
78 74
       (repo_build_wheel_rebuild | bool)
79 75
 
80
-- name: Record whether a venv build is required
81
-  ini_file:
82
-    dest: "/etc/ansible/facts.d/openstack_ansible.fact"
83
-    section: repo_build
84
-    option: "need_venv_build"
85
-    value: True
86
-  when:
87
-    - (_wheel_build_requirements | changed) or
88
-      (_wheel_build_constraints | changed) or
89
-      (repo_build_wheel_rebuild | bool) or
90
-      (repo_build_venv_rebuild | bool)
91
-
92 76
 # Note(odyssey4me):
93 77
 # To cater for a situation where the pip packages are changing, but the repo
94 78
 # does not yet have the package built, we need to ensure that this task can

+ 0
- 81
tasks/repo_build_venvs.yml View File

@@ -1,81 +0,0 @@
1
----
2
-# Copyright 2015, Rackspace US, Inc.
3
-#
4
-# Licensed under the Apache License, Version 2.0 (the "License");
5
-# you may not use this file except in compliance with the License.
6
-# You may obtain a copy of the License at
7
-#
8
-#     http://www.apache.org/licenses/LICENSE-2.0
9
-#
10
-# Unless required by applicable law or agreed to in writing, software
11
-# distributed under the License is distributed on an "AS IS" BASIS,
12
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
-# See the License for the specific language governing permissions and
14
-# limitations under the License.
15
-
16
-- name: Create venv directories
17
-  file:
18
-    path: "{{ repo_build_venv_dir }}"
19
-    state: "directory"
20
-    owner: "{{ repo_build_service_user_name }}"
21
-    mode: 02755
22
-
23
-- name: Get venv command path
24
-  command: which virtualenv
25
-  changed_when: false
26
-  register: virtualenv_path
27
-
28
-- name: Set virtualenv command path
29
-  set_fact:
30
-    virtualenv_bin: "{{ virtualenv_path.stdout }}"
31
-
32
-- name: Create venv build script
33
-  template:
34
-    src: "venv-build-script.sh.j2"
35
-    dest: "/opt/venv-build-script.sh"
36
-    mode: "0755"
37
-  register: _create_venv_build_script
38
-
39
-- name: Create venv build options files
40
-  template:
41
-    src: "venv-build-options.txt.j2"
42
-    dest: "{{ repo_build_release_path }}/venv-build-options-{{ item['role_name'] }}.txt"
43
-  with_items: "{{ filtered_venv_role_python_requirements }}"
44
-  register: _create_venv_options_files
45
-
46
-- name: Execute the venv build scripts asynchonously
47
-  shell: "/opt/venv-build-script.sh {{ repo_build_release_path }}/venv-build-options-{{ item['item']['role_name'] }}.txt"
48
-  args:
49
-    executable: "/bin/bash"
50
-  when:
51
-    - (item | changed) or
52
-      (_create_venv_build_script | changed) or
53
-      (ansible_local['openstack_ansible']['repo_build']['need_venv_build'] | bool)
54
-  with_items:
55
-    - "{{ _create_venv_options_files.results }}"
56
-  register: _build_venv
57
-  async: "{{ repo_build_venv_timeout * 60 }}"
58
-  poll: 0
59
-  # This task requires the use of the shell module, so we skip lint
60
-  # to avoid:
61
-  # ANSIBLE0013 Use shell only when shell functionality is required
62
-  tags:
63
-    - skip_ansible_lint
64
-
65
-- name: Wait for the venvs builds to complete
66
-  async_status:
67
-    jid: "{{ item['ansible_job_id'] }}"
68
-  register: _venv_jobs
69
-  until: _venv_jobs['finished'] | bool
70
-  delay: 10
71
-  retries: "{{ repo_build_venv_timeout * 6 }}"
72
-  with_items: "{{ _build_venv['results'] }}"
73
-  when:
74
-    - item['ansible_job_id'] is defined
75
-
76
-- name: Disable the venv build requirement now that it is complete
77
-  ini_file:
78
-    dest: "/etc/ansible/facts.d/openstack_ansible.fact"
79
-    section: repo_build
80
-    option: need_venv_build
81
-    value: False

+ 0
- 2
tasks/repo_package_sync.yml View File

@@ -31,8 +31,6 @@
31 31
       dest: "{{ repo_build_base_path }}/{{ repo_build_release_version_path }}"
32 32
     - src: "{{ repo_build_pool_dir }}"
33 33
       dest: "{{ repo_build_base_path }}/pools"
34
-    - src: "{{ repo_build_venv_dir }}"
35
-      dest: "{{ repo_build_base_path }}/venvs/{{ repo_build_release_tag }}"
36 34
   become: true
37 35
   become_user: "{{ repo_build_service_user_name }}"
38 36
   changed_when: false

+ 0
- 149
templates/venv-build-options.txt.j2 View File

@@ -1,149 +0,0 @@
1
-# The purpose of this file is to provide the configuration options to the venv
2
-# build script for each venv. These options are all set out in a file in order
3
-# to enable the idempotence of the venv build process.
4
-
5
-{% set venv_service_name = item['role_name'] | replace('os_', '')           %}
6
-# The working directory for the venv build
7
-ROLE_VENV_PATH="{{ repo_build_venv_build_dir }}/venvs/{{ venv_service_name }}"
8
-
9
-# The name used for the venv working directory, and resulting compressed venv
10
-ROLE_VENV_FILE="{{ venv_service_name }}-{{ repo_build_release_tag }}-{{ ansible_architecture | lower }}"
11
-
12
-# The index options used by pip when building the venvs
13
-PIP_INDEX_OPTIONS=""
14
-{#                                                                          #}
15
-{# In order to build venvs with packages not generally available in the     #}
16
-{# repo through the wheel build, the boolean 'venvwithindex' flag provided  #}
17
-{# in the remote_package_parts data enables the use of additional indexes.  #}
18
-{# This is useful when building venvs which require different constraints.  #}
19
-{#                                                                          #}
20
-{% set remote_package_parts = local_packages.results.0.item.remote_package_parts %}
21
-{#                                                                          #}
22
-{# We need to verify whether there are any git sources which apply to the   #}
23
-{# role. If there are not, then we need not bother with any of this.        #}
24
-{#                                                                          #}
25
-{% set git_source_available = ((remote_package_parts | selectattr('name', 'equalto', venv_service_name)) | list) | length > 0 %}
26
-{% if git_source_available | bool                                           %}
27
-{%   for clone_item in remote_package_parts                                 %}
28
-{#                                                                          #}
29
-{#     Loop through the remote_package_parts to find the role               #}
30
-{%     if clone_item['name'] == item['role_name'] | replace('os_', '')      %}
31
-{#                                                                          #}
32
-{#       Check whether there is a venvwithindex setting                     #}
33
-{%       if clone_item['original'] | search('venvwithindex')                %}
34
-{#                                                                          #}
35
-{#         Check if venvwithindex is set to boolean true                    #}
36
-{%         set venvwithindex=clone_item['original'] | regex_replace('(?i).*venvwithindex=(true|false).*', '\\1') %}
37
-{%         if venvwithindex | bool                                          %}
38
-{#                                                                          #}
39
-{#           Add the extra indexes if they're defined                       #}
40
-{%           if repo_build_pip_default_index is defined                     %}
41
-PIP_INDEX_OPTIONS="${PIP_INDEX_OPTIONS} --index-url {{ repo_build_pip_default_index }}"
42
-PIP_INDEX_OPTIONS="${PIP_INDEX_OPTIONS} --trusted-host {{ repo_build_pip_default_index | netloc_no_port }}"
43
-{%           endif                                                          %}
44
-{%           if repo_build_pip_extra_indexes is defined                     %}
45
-PIP_INDEX_OPTIONS="${PIP_INDEX_OPTIONS} --extra-index-url {{ repo_build_pip_extra_indexes | join(' --extra-index-url ') }}"
46
-PIP_INDEX_OPTIONS="${PIP_INDEX_OPTIONS} --trusted-host {{ repo_build_pip_extra_indexes | map('netloc_no_port') | join(' --trusted-host ') }}"
47
-{%           endif                                                          %}
48
-{%         else                                                             %}
49
-{#           If not true, then venvwithindex is set to boolean false        #}
50
-PIP_INDEX_OPTIONS="${PIP_INDEX_OPTIONS} --no-index"
51
-{%         endif                                                            %}
52
-{%       else                                                               %}
53
-{#         If not set, then assume that venvwithindex is false              #}
54
-PIP_INDEX_OPTIONS="${PIP_INDEX_OPTIONS} --no-index"
55
-{%       endif                                                              %}
56
-{%     endif                                                                %}
57
-{%   endfor                                                                 %}
58
-{% else                                                                     %}
59
-{#   If there is no git source available, then we should not be using any   #}
60
-{#   upstream indexes either.                                               #}
61
-PIP_INDEX_OPTIONS="${PIP_INDEX_OPTIONS} --no-index"
62
-{% endif                                                                    %}
63
-
64
-# The options used by pip when building the venvs
65
-PIP_INSTALL_OPTIONS="{{ repo_build_venv_pip_install_options }}"
66
-
67
-# The command used when creating the venv
68
-VENV_CREATE_COMMAND="{{ repo_build_venv_command_options }}"
69
-
70
-# The requirements list for the venv
71
-{#                                                                          #}
72
-{# Rules for inclusion:                                                     #}
73
-{# - The requirements are compiled from the *_pip_packages values.          #}
74
-{# - Any key containing the word 'requires' will be ignored as these        #}
75
-{#   packages are destined for installation on the host, not in the venv.   #}
76
-{# - Any key containing the word 'optional' will be ignored as these        #}
77
-{#   are destined for optional installation into the venv at run time       #}
78
-{#   based on the user configuration.                                       #}
79
-{# - Any key containing the word 'proprietary' will be ignored as these     #}
80
-{#   are destined for optional installation into the venv at run time       #}
81
-{#   based on the user configuration and are not available on pypi.         #}
82
-{#                                                                          #}
83
-{# Input Example:                                                           #}
84
-{#                                                                          #}
85
-{# role_name: os_neutron                                                    #}
86
-{# role_data: neutron_optional_calico_pip_packages:                         #}
87
-{#             - calico                                                     #}
88
-{#             - networking-calico                                          #}
89
-{#             - python-etcd                                                #}
90
-{#             neutron_pip_packages:                                        #}
91
-{#             - cliff                                                      #}
92
-{#             - configobj                                                  #}
93
-{#             - keystonemiddleware                                         #}
94
-{#             - neutron                                                    #}
95
-{#             - neutron_dynamic_routing                                    #}
96
-{#             - neutron_fwaas                                              #}
97
-{#             - neutron_lbaas                                              #}
98
-{#             - neutron_vpnaas                                             #}
99
-{#             - pycrypto                                                   #}
100
-{#             - pymysql                                                    #}
101
-{#             - python-glanceclient                                        #}
102
-{#             - python-keystoneclient                                      #}
103
-{#             - python-memcached                                           #}
104
-{#             - python-neutronclient                                       #}
105
-{#             - python-novaclient                                          #}
106
-{#             - repoze.lru                                                 #}
107
-{#             neutron_requires_pip_packages:                               #}
108
-{#             - httplib2                                                   #}
109
-{#             - python-keystoneclient                                      #}
110
-{#             - virtualenv                                                 #}
111
-{#             project_group: neutron_all                                   #}
112
-{#                                                                          #}
113
-{# Output Example:                                                          #}
114
-{#                                                                          #}
115
-{# cliff                                                                    #}
116
-{# configobj                                                                #}
117
-{# keystonemiddleware                                                       #}
118
-{# neutron                                                                  #}
119
-{# neutron_dynamic_routing                                                  #}
120
-{# neutron_fwaas                                                            #}
121
-{# neutron_lbaas                                                            #}
122
-{# neutron_vpnaas                                                           #}
123
-{# pycrypto                                                                 #}
124
-{# pymysql                                                                  #}
125
-{# python-glanceclient                                                      #}
126
-{# python-keystoneclient                                                    #}
127
-{# python-memcached                                                         #}
128
-{# python-neutronclient                                                     #}
129
-{# python-novaclient                                                        #}
130
-{# repoze.lru                                                               #}
131
-{#                                                                          #}
132
-{# Here we loop through the data, and apply the rules to produce the list   #}
133
-{# of requirements.                                                         #}
134
-{#                                                                          #}
135
-{% set requirement_list = []                                                %}
136
-{% for requirement_key, requirement_data in item['role_data'].items()       %}
137
-{%   if (requirement_key | match(".*_pip_packages$")) and
138
-         (not requirement_key | match(".*_requires_.*")) and
139
-          (not requirement_key | match(".*_optional_.*")) and
140
-           (not requirement_key | match(".*_proprietary_.*"))               %}
141
-{%     for requirement in requirement_data                                  %}
142
-{%       set _ = requirement_list.append(requirement)                       %}
143
-{%     endfor                                                               %}
144
-{%   endif                                                                  %}
145
-{% endfor                                                                   %}
146
-{#                                                                          #}
147
-{# Finally, we output the alphabetically sorted requirements.               #}
148
-{#                                                                          #}
149
-ROLE_VENV_REQUIREMENTS="{{ (repo_venv_default_pip_packages | union(requirement_list) | sort) | join(' ') }}"

+ 0
- 119
templates/venv-build-script.sh.j2 View File

@@ -1,119 +0,0 @@
1
-#!/bin/bash
2
-# Copyright 2017, Rackspace US, Inc.
3
-#
4
-# Licensed under the Apache License, Version 2.0 (the "License");
5
-# you may not use this file except in compliance with the License.
6
-# You may obtain a copy of the License at
7
-#
8
-#     http://www.apache.org/licenses/LICENSE-2.0
9
-#
10
-# Unless required by applicable law or agreed to in writing, software
11
-# distributed under the License is distributed on an "AS IS" BASIS,
12
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
-# See the License for the specific language governing permissions and
14
-# limitations under the License.
15
-
16
-## Shell Opts ----------------------------------------------------------------
17
-set -e
18
-
19
-## Variables -----------------------------------------------------------------
20
-
21
-# The options file for the venv
22
-ROLE_VENV_REQUIREMENTS_FILE="${1}"
23
-
24
-## Functions -----------------------------------------------------------------
25
-
26
-usage() {
27
-    cat <<EOF
28
-
29
-    Usage:
30
-    ${0} <path to configuration options file>
31
-
32
-EOF
33
-}
34
-
35
-## Main ----------------------------------------------------------------------
36
-
37
-# Validate that an options file as been provided
38
-if [[ -z "${ROLE_VENV_REQUIREMENTS_FILE}" ]]; then
39
-  usage
40
-  exit 1
41
-fi
42
-
43
-# Source the options file
44
-source "${ROLE_VENV_REQUIREMENTS_FILE}"
45
-
46
-# Output the beginning of the build
47
-echo -n "Building venv ${ROLE_VENV_FILE}..."
48
-
49
-# Set the log file path
50
-ROLE_VENV_LOG="/var/log/repo/venv_build_${ROLE_VENV_FILE}.log"
51
-
52
-# Begin the venv build
53
-pushd "{{ repo_build_venv_dir }}" &>/dev/null
54
-
55
-    # If the venv achive already exists, remove it
56
-    [[ -e "${ROLE_VENV_FILE}.tgz" ]] && rm -f "${ROLE_VENV_FILE}.tgz"
57
-
58
-    # If the venv checksum file already exists, remove it
59
-    [[ -e "${ROLE_VENV_FILE}.checksum" ]] && rm -f "${ROLE_VENV_FILE}.checksum"
60
-
61
-    # If the venv working directory already exists, remove it
62
-    [[ -d "${ROLE_VENV_PATH}" ]] && rm -rf "${ROLE_VENV_PATH}"
63
-
64
-    # If the pip build directory already exists, remove it
65
-    [[ -d "/tmp/${ROLE_VENV_FILE}" ]] && rm -rf "/tmp/${ROLE_VENV_FILE}"
66
-
67
-    # Create the virtualenv shell
68
-    ${VENV_CREATE_COMMAND} "${ROLE_VENV_PATH}" &>${ROLE_VENV_LOG}
69
-
70
-    # Create the pip build directory
71
-    mkdir -p "/tmp/${ROLE_VENV_FILE}"
72
-
73
-    # Activate the python virtual environment for good measure
74
-    source "${ROLE_VENV_PATH}/bin/activate"
75
-
76
-    # Upgrade pip, setuptools and wheel to the version we want
77
-    ${ROLE_VENV_PATH}/bin/pip install \
78
-        --disable-pip-version-check \
79
-        --quiet --quiet \
80
-        --build "/tmp/${ROLE_VENV_FILE}" \
81
-        ${PIP_INSTALL_OPTIONS} \
82
-        --constraint {{ repo_build_release_path }}/requirements_constraints.txt \
83
-        --upgrade \
84
-        --index-url {{ repo_build_pip_default_index }} \
85
-        --trusted-host {{ repo_build_pip_default_index | netloc_no_port }} \
86
-        pip setuptools wheel \
87
-        --log "${ROLE_VENV_LOG}"
88
-
89
-    # Install the packages into the venv
90
-    ${ROLE_VENV_PATH}/bin/pip install \
91
-        --disable-pip-version-check \
92
-        --quiet --quiet \
93
-        --build "/tmp/${ROLE_VENV_FILE}" \
94
-        ${PIP_INSTALL_OPTIONS} \
95
-        ${PIP_INDEX_OPTIONS} \
96
-        ${ROLE_VENV_REQUIREMENTS} \
97
-        --log "${ROLE_VENV_LOG}"
98
-
99
-    # Deactivate the venv for good measure
100
-    deactivate
101
-
102
-    # Find and remove all of the python pyc files
103
-    find "${ROLE_VENV_PATH}" -type f -name '*.pyc' -delete 2>>${ROLE_VENV_LOG}
104
-
105
-    # Create the archive
106
-    tar czf "${ROLE_VENV_FILE}.tgz" -C "${ROLE_VENV_PATH}" . 2>>${ROLE_VENV_LOG}
107
-
108
-    # Create a checksum file for the archive
109
-    sha1sum "${ROLE_VENV_FILE}.tgz" | awk '{print $1}' > "${ROLE_VENV_FILE}.checksum" 2>>${ROLE_VENV_LOG}
110
-
111
-    # Delete working directories
112
-    rm -rf "${ROLE_VENV_PATH}"
113
-    rm -rf "/tmp/${ROLE_VENV_FILE}"
114
-
115
-popd &>/dev/null
116
-
117
-# Output the end of the build
118
-echo "done"
119
-

+ 0
- 17
tests/test-repo-build.yml View File

@@ -59,23 +59,6 @@
59 59
   roles:
60 60
     - "repo_build"
61 61
   post_tasks:
62
-    - name: List the files in the venv folder
63
-      command: ls -1 {{ repo_build_venv_dir }}/
64
-      register: venv_folder_content
65
-      changed_when: false
66
-
67
-    - name: Ensure that the keystone venv is present
68
-      assert:
69
-        that: "'keystone-{{ repo_build_release_tag }}-{{ ansible_architecture | lower }}.tgz' in venv_folder_content.stdout"
70
-
71
-    - name: Ensure that the tempest venv is present
72
-      assert:
73
-        that: "'tempest-{{ repo_build_release_tag }}-{{ ansible_architecture | lower }}.tgz' in venv_folder_content.stdout"
74
-
75
-    - name: Ensure that the nova venv is NOT present
76
-      assert:
77
-        that: "'nova-{{ repo_build_release_tag }}-{{ ansible_architecture | lower }}.tgz' not in venv_folder_content.stdout"
78
-
79 62
     - name: List the files in the git folder
80 63
       command: ls -1 /var/www/repo/openstackgit/
81 64
       register: git_folder_content

Loading…
Cancel
Save