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.
DescriptionMiroslav Hradílek
2017-04-19 11:51:23 UTC
Description of problem:
There was a bug 997101 requesting sosreport to collect domain restricted 'wbinfo' command output. But after rebase to 3.4, it no longer collects wbinfo at all.
Version-Release number of selected component (if applicable):
Unreleased! sos-3.4-1.el7.noarch
How reproducible:
100%
Steps to Reproduce:
1. sosreport -o samba --batch
2. tar -tf /var/tmp/sosreport-*.tar.xz
Actual results:
No wbinfo collected.
Expected results:
Command outputs of "wbinfo --domain='.' -g" and "wbinfo --domain='.' -u" should be collected.
Additional info:
The plugin samba.py contains the requiored lines but the command outputs don't make it to the archive for some reason.
-v -v -v output of sos suggests their collection though...
Setting up archive ...
[archive:TarFileArchive] initialised empty FileCacheArchive at '/var/tmp/sos.P6Gv1U/sosreport-hp-dl165g7-03.lab.eng.brq.redhat.com-20170328212510'
[sos.sosreport:setup] executing 'sosreport -o samba -v --batch'
Setting up plugins ...
[plugin:samba] added cmd output 'wbinfo --domain='.' -g'
[plugin:samba] added cmd output 'wbinfo --domain='.' -u'
[plugin:samba] added cmd output 'testparm -s'
Running plugins. Please wait ...
Running 1/1: samba...
[plugin:samba] collecting path '/etc/samba/lmhosts'
[plugin:samba] collecting path '/etc/sysconfig/samba'
[plugin:samba] collecting path '/etc/samba/smb.conf'
[plugin:samba] collecting output of 'wbinfo --domain='.' -g'
[plugin:samba] collecting output of 'wbinfo --domain='.' -u'
[plugin:samba] collecting output of 'testparm -s'
Do you have the samba-winbind-clients package installed?
I think these commands were moved there from the main samba-clients RPM some time ago.
The output you have above does not look like '-vvv' - you are missing command tuple messages from the plugin, and any messages from archive/TarArchive - I suspect with more '-v' you would also see:
[plugin:samba] collecting output of 'wbinfo --domain='.' -u'
[plugin:samba] command 'wbinfo' not found in / - re-trying in host root
[plugin:samba] could not run 'wbinfo --domain='.' -u': command not found
(the 2nd message is a minor bug but nothing to worry about - we should not retry if we are not in a container, but the cost is effectively zero).
I think this is dup of bz1438257 / the fix is common to both BZs. Anyway since the symptoms are absolutely different, I leave this BZ open to re-check on a build fixing the bz1438257.