# Could this be a bug in yum module?

**URL:** <https://forum.ansible.com/t/could-this-be-a-bug-in-yum-module/12825>\
**Category:** Ansible Project\
**Created:** [May 17, 2013, 9:53pm UTC](https://forum.ansible.com/t/could-this-be-a-bug-in-yum-module/12825 "2013-05-17T21:53:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_Truong](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@Steven\_Truong](https://forum.ansible.com/u/Steven_Truong)\
**Post date:** [May 17, 2013, 9:53pm UTC](https://forum.ansible.com/t/could-this-be-a-bug-in-yum-module/12825/1 "2013-05-17T21:53:31Z")

</div>

Hi all,

I need to install about 60 perl rpm packages and there is one particular module that fell through the crack for yum module.

On the 20 nodes that I applied this module, all of them still do not have this perl-Parse-CPAN-meta rpm packaged installed.

Here is one such node:

[root@m-dev-bst-hadoop01 ~]# yum search all perl-Parse-CPAN-meta  
Loaded plugins: security  
============ Matched: perl-Parse-CPAN-meta =============  
perl-Parse-CPAN-Meta.x86\_64 : Parse META.yml and other

---

<div class="post-metadata">

**Author:** ![Steven\_Truong](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@Steven\_Truong](https://forum.ansible.com/u/Steven_Truong)\
**Post date:** [May 17, 2013, 10:05pm UTC](https://forum.ansible.com/t/could-this-be-a-bug-in-yum-module/12825/2 "2013-05-17T22:05:55Z")

</div>

Please ignore the Meta/meta. I checked and this problem still holds.

[root@m-dev-bst-hadoop07 ~]# yum search perl-Parse-CPAN-Meta  
Loaded plugins: security  
====================== N/S Matched: perl-Parse-CPAN-Meta =======================  
perl-Parse-CPAN-Meta.x86\_64 : Parse META.yml and other similar CPAN metadata  
: files

Name and summary matches only, use “search all” for everything.  
[root@m-dev-bst-hadoop07 ~]# rpm -q perl-Parse-CPAN-Meta  
package perl-Parse-CPAN-Meta is not installed

Thank you.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [May 17, 2013, 10:29pm UTC](https://forum.ansible.com/t/could-this-be-a-bug-in-yum-module/12825/3 "2013-05-17T22:29:22Z")

</div>

What happens when you yum install it manually on that box?

Also, you abbreviated the playbook output, could you run it in verbose mode and include the output, perhaps using gist or pastebin?

---

<div class="post-metadata">

**Author:** ![Steven\_Truong](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@Steven\_Truong](https://forum.ansible.com/u/Steven_Truong)\
**Post date:** [May 17, 2013, 11:42pm UTC](https://forum.ansible.com/t/could-this-be-a-bug-in-yum-module/12825/4 "2013-05-17T23:42:18Z")

</div>

Hi Micheal,

It is great to speak to you again. I hope that your company is doing great. Wish you the best of lucks.

Here is the node that I tried to install but failed. I installed this perl rpm manually and it went well.

[root@m-dev-bst-hadoop07 ~]# yum install perl-Parse-CPAN-Meta  
Loaded plugins: security  
Setting up Install Process  
Resolving Dependencies  
 → Running transaction check  
—\> Package perl-Parse-CPAN-Meta.x86\_64 1:1.40-131.el6\_4 will be installed  
 → Finished Dependency Resolution

Dependencies Resolved

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [May 18, 2013, 12:16am UTC](https://forum.ansible.com/t/could-this-be-a-bug-in-yum-module/12825/5 "2013-05-18T00:16:10Z")

</div>

So you said it was on a different box, could it be because the box is using a different yum repository or perhaps the mirror is missing the package?

---

<div class="post-metadata">

**Author:** ![Steven\_Truong](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@Steven\_Truong](https://forum.ansible.com/u/Steven_Truong)\
**Post date:** [May 18, 2013, 12:46am UTC](https://forum.ansible.com/t/could-this-be-a-bug-in-yum-module/12825/6 "2013-05-18T00:46:32Z")

</div>

Hi Michael,

This is in private network where we have one repository. All machines do not have direct connection to the Internet to fetch packages from EPEL or similar.

This happened only within ansible-playbook run and I could install the rpm package just fine from the CLI. This has happened to 20 nodes that do have the same private repository. I just did the same to another set of th

All of this appears to be more than just a coincident to me. I am not sure what is the error.

I tried to install this with task using yum module with just “name=perl-Parse-CPAN-Meta state=latest” on another 30 nodes and here is one output.

ok: [m-prd-bst-hadoop25] =\> {“changed”: false, “item”: “”, “msg”: “”, “rc”: 0, “results”: [“All packages providing perl-Parse-CPAN-Meta are up to date”]}

[root@m-prd-bst-hadoop25 ~]# rpm -q perl-Parse-CPAN-Meta  
package perl-Parse-CPAN-Meta is not installed  
[root@m-prd-bst-hadoop25 ~]# yum install perl-Parse-CPAN-Meta  
Loaded plugins: security  
Setting up Install Process  
Resolving Dependencies  
 → Running transaction check  
—\> Package perl-Parse-CPAN-Meta.x86\_64 1:1.40-131.el6\_4 will be installed  
 → Finished Dependency Resolution

Dependencies Resolved

---

<div class="post-metadata">

**Author:** ![kahlil.hodgson](https://avatars.discourse-cdn.com/v4/letter/k/b9bd4f/32.png) [@kahlil.hodgson](https://forum.ansible.com/u/kahlil.hodgson)\
**Post date:** [May 19, 2013, 12:00am UTC](https://forum.ansible.com/t/could-this-be-a-bug-in-yum-module/12825/7 "2013-05-19T00:00:33Z")

</div>

This seems very odd. A couple of possibilities occur:

1. Corrupted rpmdb and inconsistent yum metadata. Try ‘yum clean all; rpmdb --rebuild’.

2. Some other package other than perl-Parse-CPAN-Meta is ‘providing’ perl-Parse-CPAN-Meta – perhaps a local custom meta package.

3. Inventory host/group names (or even .ssh/config Host lines) are screwed up and ansible is not talking to the host you think you are (okay, this ones a little crazy).

K

---

<div class="post-metadata">

**Author:** ![Steven\_Truong](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@Steven\_Truong](https://forum.ansible.com/u/Steven_Truong)\
**Post date:** [May 20, 2013, 6:35pm UTC](https://forum.ansible.com/t/could-this-be-a-bug-in-yum-module/12825/8 "2013-05-20T18:35:05Z")

</div>

Hi Kahlil,

"rpm -q --provides perl " shows that perl rpm provides perl-Parse-CPAN-Meta.

Thanks.

Steven.
