Bug 1456602

Summary: Packages with longer names are ignored during package updates (#24330)
Product: Red Hat Ansible Engine Reporter: Jan Chaloupka <jchaloup>
Component: ansibleAssignee: Pavel Cahyna <pcahyna>
Status: CLOSED ERRATA QA Contact: Leos Pol <lpol>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: jchaloup, ovasik
Target Milestone: ---Keywords: Extras
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ansible-2.3.1.0-2.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-02 00:19:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1461920    
Bug Blocks:    

Description Jan Chaloupka 2017-05-29 19:37:33 UTC
When updating rpms with the package module with docker container as a driver packages with longer names are ignored and the module reports all packages are up-to-date. E.g.

```yaml
- hosts: container_host
  tasks:
  - name: "Update packages"
    package:
      name: "verylongpackagenamethatiscompletelyignoredfromtheupdates"
      state: "latest"
```

The issues is upstream reported and fixed by https://github.com/ansible/ansible/pull/24331.

Version-Release number of selected component (if applicable):
ansible-2.3.0.0-4.el7

This blocks molecule testing of ansible roles.

Comment 2 Pavel Cahyna 2017-06-15 16:41:57 UTC
Does 2.3.1 fix your problem? It is in EPEL-testing. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-b316d2bb3b

Comment 3 Jan Chaloupka 2017-06-19 12:48:45 UTC
The https://github.com/ansible/ansible/pull/24331 is applied in 2.3.1. So it will work too. But there is no plan to upgrade it to 2.3.1. The backport will do fine.

Comment 4 Pavel Cahyna 2017-06-19 13:29:54 UTC
It turns out that this bug is specific to the usage in OpenShift and the version of Ansible that is shipped with OpenShift should have been used, which is currently ansible-2.2.3.0-1.el7. The ansible component in RHEL Extras exists mainly for rhel-system-roles, see https://bugzilla.redhat.com/show_bug.cgi?id=1313263

Comment 7 errata-xmlrpc 2017-08-02 00:19:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:2366