Bug 2072119

Summary: [tar-split] Drop requirement on golang/x/crypto [17.0]
Product: Red Hat OpenStack Reporter: Lon Hohberger <lhh>
Component: distributionAssignee: OSP Team <rhos-maint>
Status: CLOSED ERRATA QA Contact: Lon Hohberger <lhh>
Severity: low Docs Contact:
Priority: high    
Version: 17.0 (Wallaby)CC: jjoyce, jschluet, mburns, shrjoshi
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: golang-github-vbatts-tar-split-0.11.1-9.el9ost golang-github-Sirupsen-logrus-1.1.1-7.el9ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2072683 2072688 (view as bug list) Environment:
Last Closed: 2022-09-21 12:20:11 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: 2072683, 2072688    

Description Lon Hohberger 2022-04-05 16:09:34 UTC
Description of problem:

Golang is static binaries, and cryptography has been a source of problems.

We ship a binary package called "tar-split", needed by openstack-tripleo-common. This requires logrus (which is a structured logging facility). Unfortunately, logrus imports golang/x/crypto in order to determine whether or not something is a terminal.

Rather than do that, let's use a syscall directly, so we do not end up with the maintenance burden of golang/x/crypto.

golang-googlecode-go-crypto
    golang-github-Sirupsen-logrus | # let me see if I can patch it out here
        golang-github-vbatts-tar-split
            openstack-tripleo-common


Version-Release number of selected component (if applicable): golang-github-Sirupsen-logrus-1.1.1-5.el9ost

Comment 1 Lon Hohberger 2022-04-05 16:12:28 UTC
I've been able to patch out golang/x/crypto and unit tests all pass for Sirupsen-logrus.

Comment 10 errata-xmlrpc 2022-09-21 12:20:11 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 (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), 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-2022:6543