Bug 1456602 - Packages with longer names are ignored during package updates (#24330)
Summary: Packages with longer names are ignored during package updates (#24330)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ansible Engine
Classification: Red Hat
Component: ansible
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Pavel Cahyna
QA Contact: Leos Pol
URL:
Whiteboard:
Depends On: 1461920
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-29 19:37 UTC by Jan Chaloupka
Modified: 2018-04-18 14:58 UTC (History)
2 users (show)

Fixed In Version: ansible-2.3.1.0-2.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-02 00:19:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:2366 0 normal SHIPPED_LIVE new package: ansible 2017-08-08 22:54:16 UTC

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


Note You need to log in before you can comment on or make changes to this bug.