Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1767359

Summary: [sos] Fix OVN plugins and add support for containerized environments [rhel-8.1.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: Oneata Mircea Teodor <toneata>
Component: sosAssignee: Pavel Moravec <pmoravec>
Status: CLOSED ERRATA QA Contact: Miroslav HradĂ­lek <mhradile>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 8.0CC: agk, bmr, dalvarez, fkrska, gavin, jhunsaker, mhradile, plambri, pmoravec, sbradley
Target Milestone: rcKeywords: OtherQA, ZStream
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sos-3.7-8.el8_1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1744553 Environment:
Last Closed: 2019-12-17 10:50:02 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: 1732525, 1744553    
Bug Blocks:    

Comment 2 Pavel Moravec 2019-11-07 13:03:29 UTC
Take

Comment 4 Pavel Moravec 2019-11-07 13:14:28 UTC
Hello,
could you please verify this BZ against below build for 8.1.z?


A yum repository for the build of sos-3.7-7.el8_1 (task 24542408) is available at:

http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.7/7.el8_1/

You can install the rpms locally by putting this .repo file in your /etc/yum.repos.d/ directory:

http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.7/7.el8_1/sos-3.7-7.el8_1.repo

RPMs and build logs can be found in the following locations:
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.7/7.el8_1/noarch/

The full list of available rpms is:
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.7/7.el8_1/noarch/sos-3.7-7.el8_1.src.rpm
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.7/7.el8_1/noarch/sos-audit-3.7-7.el8_1.noarch.rpm
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.7/7.el8_1/noarch/sos-3.7-7.el8_1.noarch.rpm

Build output will be available for the next 21 days.

Comment 5 Daniel Alvarez Sanchez 2019-11-08 09:37:12 UTC
Sorry forgot to update this on the RHEL8 BZs. I tried it on an OSP15 setup and it worked as expected

Comment 6 Daniel Alvarez Sanchez 2019-11-08 11:00:11 UTC
Sorry again, it only works with this patch. It was refused to be merged in 'sos' upstream because it is a workaround to a podman issue.
I reported the podman issue here [1] so either we merge [0] or we wait until [1] gets fixed.

Without [0], 'sosreport' command will hang forever.


I installed this package and applied [0], then all works:

[root@controller-0 ovn_central]# rpm -qa| grep sos
sos-3.7-7.el8_1.noarch

[root@controller-0 ovn_central]# wc -l  podman_exec_ovn-dbs-bundle-podman-0_ovn-sbctl_list_Chassis
35 podman_exec_ovn-dbs-bundle-podman-0_ovn-sbctl_list_Chassis

[root@controller-0 ovn_host]# wc -l  ovs-vsctl_list_Open_vSwitch
17 ovs-vsctl_list_Open_vSwitch

Please, Pavel can you reconsider merging [0]?

[0] https://github.com/danalsan/sos/commit/61262f347a685489336646d23f5aeb73a9c55aa3
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1732525

Comment 7 Pavel Moravec 2019-11-08 11:30:19 UTC
(In reply to Daniel Alvarez Sanchez from comment #6)
> Sorry again, it only works with this patch. It was refused to be merged in
> 'sos' upstream because it is a workaround to a podman issue.
> I reported the podman issue here [1] so either we merge [0] or we wait until
> [1] gets fixed.
> 
> Without [0], 'sosreport' command will hang forever.
> 
> 
> I installed this package and applied [0], then all works:
> 
> [root@controller-0 ovn_central]# rpm -qa| grep sos
> sos-3.7-7.el8_1.noarch
> 
> [root@controller-0 ovn_central]# wc -l 
> podman_exec_ovn-dbs-bundle-podman-0_ovn-sbctl_list_Chassis
> 35 podman_exec_ovn-dbs-bundle-podman-0_ovn-sbctl_list_Chassis
> 
> [root@controller-0 ovn_host]# wc -l  ovs-vsctl_list_Open_vSwitch
> 17 ovs-vsctl_list_Open_vSwitch
> 
> Please, Pavel can you reconsider merging [0]?
> 
> [0]
> https://github.com/danalsan/sos/commit/
> 61262f347a685489336646d23f5aeb73a9c55aa3
> [1] https://bugzilla.redhat.com/show_bug.cgi?id=1732525


Hi Bryn,
what is your opinion to add https://github.com/danalsan/sos/commit/61262f347a685489336646d23f5aeb73a9c55aa3 that you dropped from the PR in https://github.com/sosreport/sos/pull/1767#issuecomment-530431096 ?

I dont like much workarounding bugs in other components in sosreport in the way it can possibly affect collection of _any_ command. Esp. when the workaround sounds to live forever (the podman bug is untouched).

Rather as a workaround in sos, I am OK with either dropping / not collecting the problematic command, or calling it in some other way ("/bin/bash cmd" or "time 10s cmd" or similar, or adding some TERM variable? if either of that works).

Comment 8 Pavel Moravec 2019-11-11 13:36:07 UTC
(In reply to Daniel Alvarez Sanchez from comment #6)
> Without [0], 'sosreport' command will hang forever.

Just to confirm if I got this right: the tested sos-3.7-7.el8_1 (without [0]) does hang forever on the "podman ps" command?

If so, and since I doubt we will risk the adding pipe/stdin to each and every command in a _z_ stream, we must either:
- revert the change completely
- or at least remove the hung command "podman ps" from being collected (i.e. remove https://github.com/sosreport/sos/blob/master/sos/plugins/podman.py#L52-L53)
- or come up with a workaround like "/bin/bash podman ps" or whatever that will work

Daniel, could you please check if some such workaround is possible, or agree with either option? (default is dropping the cmd)

Comment 21 Daniel Alvarez Sanchez 2019-11-19 12:57:57 UTC
I sent a new PR to overcome the pipe issue discussed here:

https://github.com/sosreport/sos/pull/1865

Comment 23 Pavel Moravec 2019-12-04 15:00:35 UTC
Daniel,
could you pls. review if https://github.com/sosreport/sos/pull/1875 is sufficient workaround in sos?

Comment 24 Pavel Moravec 2019-12-05 21:55:21 UTC
(In reply to Pavel Moravec from comment #23)
> Daniel,
> could you pls. review if https://github.com/sosreport/sos/pull/1875 is
> sufficient workaround in sos?

.. and verify the current plugin works fine in downstream package? Thanks in advance.


A yum repository for the build of sos-3.7-8.el8_1 (task 25182251) is available at:

http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.7/8.el8_1/

You can install the rpms locally by putting this .repo file in your /etc/yum.repos.d/ directory:

http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.7/8.el8_1/sos-3.7-8.el8_1.repo

RPMs and build logs can be found in the following locations:
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.7/8.el8_1/noarch/

The full list of available rpms is:
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.7/8.el8_1/noarch/sos-3.7-8.el8_1.src.rpm
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.7/8.el8_1/noarch/sos-3.7-8.el8_1.noarch.rpm
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.7/8.el8_1/noarch/sos-audit-3.7-8.el8_1.noarch.rpm

Build output will be available for the next 21 days.

Comment 25 Pavel Moravec 2019-12-08 20:56:27 UTC
removing obsolete needinfo

Comment 28 errata-xmlrpc 2019-12-17 10:50:02 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-2019:4278