diff options
| author | Mark Goddard <mark@stackhpc.com> | 2020-03-05 14:34:18 +0000 |
|---|---|---|
| committer | Radosław Piliszek <radoslaw.piliszek@gmail.com> | 2020-03-05 17:54:44 +0000 |
| commit | a755304795eb7bd43a26b7380aa2686151295c64 (patch) | |
| tree | 949334cd7688f9764f0aaba324e2e7d2aea0919e | |
| parent | e58653c436af6c3cc9f0dfd6019c43be8e5844da (diff) | |
| download | kolla-a755304795eb7bd43a26b7380aa2686151295c64.tar.gz kolla-a755304795eb7bd43a26b7380aa2686151295c64.zip | |
Multiple fixes to unblock CI
This change includes a number of fixes to make CI functional.
* Blacklist ansible 2.8.9 in kolla-toolbox
Ansible 2.8.9 broke the OpenStack modules, see
https://bugs.launchpad.net/kolla/+bug/1866181 for details.
This causes us to fail with the following error:
/usr/lib64/python2.7/distutils/version.py\", line 40, in __init__
self.parse(vstring)
File "/usr/lib64/python2.7/distutils/version.py", line 105, in parse
match = self.version_re.match(vstring)\nTypeError: expected string or buffer
This change works around the issue by blacklisting ansible 2.8.9 in
the kolla-toolbox image.
* Drop CentOS 7 CI jobs. There are multiple issues with CentOS 7 now,
and we have CentOS 8 jobs in place so it's time to move on
* pin requirements to commit
ea42244642c3c091cb4f70917ae8d79af217b6af. This is required to avoid
oslo.cache 2.1.0, which breaks us. See
https://bugs.launchpad.net/kolla-ansible/+bug/1866008.
Change-Id: Iebc39bd804d2c4f553d42c285549f50f4c8bc8be
Closes-Bug: #1866181
Related-Bug: #1866008
| -rw-r--r-- | .zuul.d/centos.yaml | 58 | ||||
| -rw-r--r-- | docker/kolla-toolbox/Dockerfile.j2 | 4 | ||||
| -rwxr-xr-x | kolla/common/config.py | 10 |
3 files changed, 16 insertions, 56 deletions
diff --git a/.zuul.d/centos.yaml b/.zuul.d/centos.yaml index 9b734498f..35a9b9900 100644 --- a/.zuul.d/centos.yaml +++ b/.zuul.d/centos.yaml @@ -2,15 +2,10 @@ - project: check: jobs: - - kolla-build-centos-binary - - kolla-build-centos-source - kolla-build-centos8-binary - kolla-build-centos8-source - - kolla-ansible-centos-source - kolla-ansible-centos8-source - - kolla-ansible-centos-binary - kolla-ansible-centos8-binary - - kolla-ansible-centos-source-upgrade - tripleo-build-containers-centos-8: voting: false files: @@ -20,51 +15,32 @@ - ^requirements.txt$ - ^setup.cfg$ - ^setup.py$ - - kolla-ansible-bifrost-centos-source: - files: ^docker\/(base|bifrost|openstack-base)\/.* # FIXME(mgoddard): Bifrost deploy jobs not yet passing. # - kolla-ansible-centos8-source-bifrost: # files: ^docker\/(base|bifrost|openstack-base)\/.* # Test rabbitmq & mariadb changes in multinode ceph jobs. - - kolla-ansible-centos-source-ceph-ansible: - files: ^docker\/(base|cinder|glance|mariadb|openstack-base|rabbitmq)\/.* - - kolla-ansible-centos-source-upgrade-ceph-ansible: - files: ^docker\/(base|cinder|glance|mariadb|openstack-base|rabbitmq)\/.* - - kolla-ansible-centos-source-zun: - files: ^docker\/(base|cinder|etcd|iscsid|kuryr|openstack-base|zun)\/.* - kolla-ansible-centos8-source-zun: files: ^docker\/(base|cinder|etcd|iscsid|kuryr|openstack-base|zun)\/.* - - kolla-ansible-centos-source-scenario-nfv: - files: ^docker\/(base|barbican|heat|mistral|openstack-base|redis|tacker)\/.* - kolla-ansible-centos8-source-scenario-nfv: files: ^docker\/(base|barbican|heat|mistral|openstack-base|redis|tacker)\/.* - - kolla-ansible-centos-source-ironic: - files: ^docker\/(base|dnsmasq|ironic|ironic-inspector|iscsid|openstack-base)\/.* - kolla-ansible-centos8-source-ironic: files: ^docker\/(base|dnsmasq|ironic|ironic-inspector|iscsid|openstack-base)\/.* gate: queue: kolla jobs: - - kolla-build-centos-source - kolla-build-centos8-source - - kolla-ansible-centos-source - kolla-ansible-centos8-source - - kolla-ansible-centos-source-upgrade periodic: jobs: - - kolla-publish-centos-source - - kolla-publish-centos-binary - kolla-publish-centos8-source - kolla-publish-centos8-binary release: jobs: - - kolla-publish-centos-source - - kolla-publish-centos-binary - kolla-publish-centos8-source - kolla-publish-centos8-binary - job: - name: kolla-build-centos-binary + name: kolla-build-centos8-binary parent: kolla-base nodeset: kolla-centos8 voting: false @@ -72,16 +48,11 @@ action: build base_distro: centos install_type: binary - -- job: - name: kolla-build-centos8-binary - parent: kolla-build-centos-binary - vars: base_tag: 8 - job: - name: kolla-publish-centos-binary - parent: kolla-build-centos-binary + name: kolla-publish-centos8-binary + parent: kolla-build-centos8-binary post-run: tests/playbooks/publish.yml vars: publisher: true @@ -89,37 +60,20 @@ - kolla_dockerhub_creds - job: - name: kolla-publish-centos8-binary - parent: kolla-publish-centos-binary - vars: - base_tag: 8 - -- job: - name: kolla-build-centos-source + name: kolla-build-centos8-source parent: kolla-base nodeset: kolla-centos8 vars: action: build base_distro: centos install_type: source - -- job: - name: kolla-build-centos8-source - parent: kolla-build-centos-source - vars: base_tag: 8 - job: - name: kolla-publish-centos-source - parent: kolla-build-centos-source + name: kolla-publish-centos8-source + parent: kolla-build-centos8-source post-run: tests/playbooks/publish.yml vars: publisher: true secrets: - kolla_dockerhub_creds - -- job: - name: kolla-publish-centos8-source - parent: kolla-publish-centos-source - vars: - base_tag: 8 diff --git a/docker/kolla-toolbox/Dockerfile.j2 b/docker/kolla-toolbox/Dockerfile.j2 index c826f0692..44ebaf329 100644 --- a/docker/kolla-toolbox/Dockerfile.j2 +++ b/docker/kolla-toolbox/Dockerfile.j2 @@ -79,8 +79,10 @@ RUN {{ macros.install_pip(kolla_toolbox_pip_virtualenv_packages | customizable(" ENV PATH {{ virtualenv_path }}/bin:$PATH +# NOTE(mgoddard): Ansible 2.8.9 broke OpenStack modules. +# https://bugs.launchpad.net/kolla/+bug/1866181 {% set kolla_toolbox_pip_packages = [ - 'ansible==2.8.*', + 'ansible==2.8.*,!=2.8.9', 'cmd2', 'influxdb', 'mysqlclient', diff --git a/kolla/common/config.py b/kolla/common/config.py index 12920586e..88951d9c0 100755 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -292,10 +292,14 @@ _BASE_OPTS = [ SOURCES = { + # FIXME(mgoddard): Pinning requirements to + # ea42244642c3c091cb4f70917ae8d79af217b6af. This is required to avoid + # oslo.cache 2.1.0, which breaks us. See + # https://bugs.launchpad.net/kolla-ansible/+bug/1866008. 'openstack-base': { - 'type': 'url', - 'location': ('$tarballs_base/requirements/' - 'requirements-${openstack_branch}.tar.gz')}, + 'type': 'git', + 'location': 'https://opendev.org/openstack/requirements', + 'reference': 'ea42244642c3c091cb4f70917ae8d79af217b6af'}, 'aodh-base': { 'type': 'url', 'location': ('$tarballs_base/aodh/' |
