Comment 9 for bug 1956902

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-ansible (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/825059
Committed: https://opendev.org/openstack/tripleo-ansible/commit/549545e78237057ac4285e926f69d9cbc47c8d6a
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 549545e78237057ac4285e926f69d9cbc47c8d6a
Author: Sorin Sbarnea <email address hidden>
Date: Wed Jan 13 17:11:03 2021 +0000

    Set the ansible-lint version to v5.3.2

    The ansible-lint version used is v5.0.2. This path increases the version
    of the ansible-lint on the .pre-commit-config.yaml

    It also includes cherry-pick of https://review.opendev.org/c/openstack/tripleo-ansible/+/779180
    ```
    Upgrade ansible-lint to 5.0

    - remove role name rule as is included in newer versions
    - added .cache folder to git ignore (used by linter)
    - enabled optional yamllint run on ansible-lint
    - assured repository has a valid root requirements.yml (so linter can make use of it)
    - assured that we do not mix playbooks with non playbooks inside same folders
    - renamed undocumented "role" argument received by import_role to official "name".
    - added mocked roles/modules to avoid linter errors (ideally they should be provided by
      requiremetns.yml).
    ```
    requirements.yml is removed from this cherry-pick as it is not needed
    here.

    Use centos8 image to fix following issue
    ```
    file /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release from install of containers-common-2:1-6.module_el8.6.0+954+963caf36.noarch conflicts with file from package redhat-release-8.2-1.0.el8.x86_64
    ```
    Pin to container-tools:3.0 will fix the issue.

    Change-Id: I14b855f8a15afccaf4973e2a612aa7e9eae3bfa5
    (cherry picked from commit af40f9ff8eac8ac7ecb2a29344362afb9db21f95)

    Related-bug: #1956902
    Change-Id: I36e1327a2cc3c66ef4662b473e0fd03fe97cccf6
    (cherry picked from commit 60ef62e9f21279a9dbfcdb9e3943e8490f6bbbb3)
    Signed-off-by: Ananya <email address hidden>
    Co-authored-by: Chandan Kumar (raukadah) <email address hidden>