Bootstrap-servers broken on CentOS/RHEL with Ansible 2.6

Bug #1819173 reported by Mark Goddard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Mark Goddard

Bug Description

Recently as part of adding support for Docker CE we added the following task to the baremetal role:

- name: Update yum cache
  yum:
    update_cache: yes
  become: True
  when: ansible_os_family == 'RedHat'

This works fine on Ansible 2.5, but no longer works on Ansible 2.6, which complains that either the 'name' or 'list' argument is mandatory for the yum module.

Revision history for this message
Mark Goddard (mgoddard) wrote :
Changed in kolla-ansible:
importance: Undecided → Medium
assignee: nobody → Mark Goddard (mgoddard)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.openstack.org/642034
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=1b5353593c8f17594b7d39015b6093ef2ae65b14
Submitter: Zuul
Branch: master

commit 1b5353593c8f17594b7d39015b6093ef2ae65b14
Author: Mark Goddard <email address hidden>
Date: Fri Mar 8 14:36:08 2019 +0000

    Fix bootstrap-servers on Ansible 2.6+

    Recently as part of adding support for Docker CE we added the following
    task to the baremetal role:

    - name: Update yum cache
      yum:
        update_cache: yes
      become: True
      when: ansible_os_family == 'RedHat'

    This works fine on Ansible 2.5, but no longer works on Ansible
    2.6, which complains that either the 'name' or 'list' argument
    is mandatory for the yum module.

    This change updates the cache later on, when installing packages.

    Change-Id: I1a158bda52c4e362cb12d361d7f961cfc699b385
    Closes-Bug: #1819173

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/642440

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/rocky)

Reviewed: https://review.openstack.org/642440
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=03a1a61e4789a83de08e42133ba39ecdea9d78db
Submitter: Zuul
Branch: stable/rocky

commit 03a1a61e4789a83de08e42133ba39ecdea9d78db
Author: Mark Goddard <email address hidden>
Date: Fri Mar 8 14:36:08 2019 +0000

    Fix bootstrap-servers on Ansible 2.6+

    Recently as part of adding support for Docker CE we added the following
    task to the baremetal role:

    - name: Update yum cache
      yum:
        update_cache: yes
      become: True
      when: ansible_os_family == 'RedHat'

    This works fine on Ansible 2.5, but no longer works on Ansible
    2.6, which complains that either the 'name' or 'list' argument
    is mandatory for the yum module.

    This change updates the cache later on, when installing packages.

    Change-Id: I1a158bda52c4e362cb12d361d7f961cfc699b385
    Closes-Bug: #1819173
    (cherry picked from commit 1b5353593c8f17594b7d39015b6093ef2ae65b14)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 8.0.0.0rc1

This issue was fixed in the openstack/kolla-ansible 8.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 7.1.0

This issue was fixed in the openstack/kolla-ansible 7.1.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.