Bug 1435475

Summary: Registering with subscription-manager-1.18 failing with Unable to connect to certificate server: __init__() got an unexpected keyword argument 'family'.
Product: Red Hat Enterprise Linux 6 Reporter: Kathryn Dixon <kdixon>
Component: subscription-managerAssignee: Alex Wood <awood>
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.9CC: aburch, akarimi, asakpal, bcourt, cdonnell, cww, egolov, fcami, hmore, hshukla, janarula, jreznik, khowell, ktordeur, mverma, myamazak, redakkan, rjerrido, skallesh, syamamot, thunder367, vanhoof, vchepkov
Target Milestone: rcKeywords: PrioBumpGSS, Regression, Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1459209 (view as bug list) Environment:
Last Closed: 2018-06-19 05:21:43 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:    
Bug Blocks: 1374441, 1459209    

Comment 2 Kathryn Dixon 2017-03-23 22:57:32 UTC
Seem like this is occurring when the m2crpyto package is

m2crypto-0.21.1.pulp-8.el6sat.x86_64 

this can be installed from the sam repository and rh-commons-beta repository..

Comment 5 Craig Donnelly 2017-03-23 23:59:48 UTC
Places the incompatible packages appear to be available via RHN:

m2crypto-0.21.1.pulp-8.el6sat.x86_64	SAM for RHEL Server (v. 6 64-bit x86_64)
m2crypto-0.21.1.pulp-7.el6.x86_64	Red Hat CloudForms System Engine
m2crypto-0.21.1.pulp-10.el6sat.x86_64	RHEL OpenStack Platform Installer for Server 6
m2crypto-0.21.1.pulp-8.el6sat.x86_64	RHEL OpenStack Platform Installer for Server 6

Places the incompatible packages appear to be available via RHSM:

m2crypto-0.21.1.pulp-8.el6sat.x86_64.rpm
  rhel-6-server-sam-rpms 
  rhel-6-server-openstack-foreman-rpms 

m2crypto-0.21.1.pulp-10.el6sat.x86_64.rpm
  rhel-6-server-rh-common-beta-rpms

Comment 10 Alex Wood 2017-03-27 18:24:00 UTC
commit 0ebe2b3b523cdffb2d7674b1c178091551f4c80d
Author: Alex Wood <awood>
Date:   Fri Mar 24 14:25:39 2017 -0400

    1435475: Support older versions of M2Crypto
    
    Older versions of M2Crypto do not support the "family" parameter in
    M2Crypto.SSL.Connection.  This parameter allows one to create an IPv4 or
    IPv6 connection.  This patch checks to see if "family" is supported and
    if so, it provides the correct value.  Otherwise, nothing is supplied.
    Usage of an older version of M2Crypto will limit python-rhsm to IPv4
    but this was always the case in actual fact.  Usage of newer versions
    will be able to use either IPv6 or IPv4.

Comment 11 Alex Wood 2017-03-27 18:24:34 UTC
As a side note, the alternative to this patch is to fix the Pulp packaged version of M2Crypto to include the required patch.  Personally, I favor this option as the base RHEL M2Crypto carries 16 other patches that likely need to be in the Pulp version at well!

Comment 22 Shwetha Kallesh 2018-04-24 10:36:25 UTC
AS per comment20 moving the bug to verified!!

Comment 25 errata-xmlrpc 2018-06-19 05:21:43 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/RHBA-2018:1916