Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1443673

Summary: Puppet agent fails in monkey_patches.rb and loading xmlrpc/client in F26
Product: [Fedora] Fedora Reporter: Michael Watters <wattersm>
Component: puppetAssignee: Dominic Cleal <dominic>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: dominic, esm, fedora, gchamoul, greg.loscombe, jose.p.oliveira.oss, k.georgiou, marianne, mastahnke, mmagr, moses, s, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: puppet-4.6.2-4.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-09 19:08:10 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:
Attachments:
Description Flags
dist-git (master/f26): fix Ruby 2.4 compat, xmlrpc/OpenSSL errors none

Description Michael Watters 2017-04-19 17:11:20 UTC
Description of problem:

The puppet package provided in Fedora 26 does not work properly due to multiple issues.  After installing the puppet package running the agent results in an error as follows.


[root@mdct-dev27-f26 ~]# puppet agent -t --environment f26_test
/usr/share/ruby/vendor_ruby/puppet/util/monkey_patches.rb:104:in `<class:SSLContext>': undefined method `<<' for nil:NilClass (NoMethodError)

Deleting line 104 in the /usr/share/ruby/vendor_ruby/puppet/util/monkey_patches.rb file does allow the agent to run however another error is then given.

Error: Could not autoload puppet/provider/package/pip3: cannot load such file -- xmlrpc/client
Error: Could not retrieve local facts: Could not autoload puppet/provider/package/pip3: cannot load such file -- xmlrpc/client
Error: Failed to apply catalog: Could not retrieve local facts: Could not autoload puppet/provider/package/pip3: cannot load such file -- xmlrpc/client

This is due to an incorrect dependency on the xmlrpc/client library which is no longer included in ruby 2.4.

github.com/puppetlabs/puppet/commit/484623ed

Comment 1 Dominic Cleal 2017-04-26 12:08:58 UTC
*** Bug 1445508 has been marked as a duplicate of this bug. ***

Comment 2 Dominic Cleal 2017-05-18 07:39:17 UTC
Created attachment 1279886 [details]
dist-git (master/f26): fix Ruby 2.4 compat, xmlrpc/OpenSSL errors

Bug #1440710 also describes the monkey_patches issue, fixed in https://github.com/puppetlabs/puppet/commit/578687a00195191185f44d8cb38f4b7716d99c31 (.patch).

dist-git patch attached to fix both errors using upstream patches. Tested on Rawhide, Puppet now runs.

Comment 3 Fedora Update System 2017-05-23 08:41:32 UTC
puppet-4.6.2-4.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-b9b66117bb

Comment 4 Fedora Update System 2017-05-23 18:16:12 UTC
puppet-4.6.2-4.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-b9b66117bb

Comment 5 Fedora Update System 2017-06-09 19:08:10 UTC
puppet-4.6.2-4.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.