Jira (PUP-10484) Unregistered yum subscription-manager confuses yum package provider

23 views
Skip to first unread message

Kevin Reeuwijk (Jira)

unread,
May 1, 2020, 8:12:03 AM5/1/20
to puppe...@googlegroups.com
Kevin Reeuwijk created an issue
 
Puppet / Improvement PUP-10484
Unregistered yum subscription-manager confuses yum package provider
Issue Type: Improvement Improvement
Affects Versions: PUP 6.14.0
Assignee: Unassigned
Components: Types and Providers
Created: 2020/05/01 5:11 AM
Environment:

Somehow the subscription-manager.conf appeared in my system as I was setting up docker and docker-compose. It was not until later that I realized it broke puppet's package provider.

Priority: Normal Normal
Reporter: Kevin Reeuwijk

If the yum subscription-manager is enabled but not registered with an entitlement server, a warning will show in every output of the yum command:

 

This system is not registered with an entitlement server. You can use subscription-manager to register. 

This confuses the yum package provider, causing Package resources to no longer be able to update packages.

Steps to repro:

  1. Install CentOS 7
  2. Create /etc/yum/pluginconf.d/subscription-manager.conf
  3. Set contents of the above .conf file to:
    [main]
    enabled=1
  4. Run yum check-update and notice the warning
  5. Now try to update a yum package using puppet:
    puppet resource package <name> ensure=latest
  6. You'll notice the package doesn't get updated
  7. Go back to the .conf file and set enabled=0
  8. Retry updating the yum package using puppet and notice it now works.
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
May 1, 2020, 12:19:03 PM5/1/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Puppet / Bug PUP-10484
Change By: Josh Cooper
Method Found: Needs Assessment
Issue Type: Improvement Bug

Josh Cooper (Jira)

unread,
May 1, 2020, 12:21:03 PM5/1/20
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-10484
 
Re: Unregistered yum subscription-manager confuses yum package provider

Kevin Reeuwijk I think this is a dup of PUP-10432. Could you try the just released 6.15.0 puppet-agent and see if that resolves the issue? If so, please close this as a dup.

Reply all
Reply to author
Forward
0 new messages