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 1688274

Summary: redhat-support-tool automatic sosreport collection stopped working on rhel-8
Product: Red Hat Enterprise Linux 8 Reporter: Miroslav Hradílek <mhradile>
Component: redhat-support-toolAssignee: A.P. Rajshekhar <randalap>
Status: CLOSED CURRENTRELEASE QA Contact: Miroslav Hradílek <mhradile>
Severity: medium Docs Contact: Abhimanyu Jamaiyar <ajamaiya>
Priority: high    
Version: 8.0CC: bnater, cww, igkioka, jwboyer, lmanasko, pghole, randalap, stefw, toneata
Target Milestone: rcKeywords: ZStream
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
.`redhat-support-tool` now creates an `sosreport` archive Previously, the `redhat-support-tool` utility was unable to create an `sosreport` archive. The workaround was running the `sosreport` command separately and then entering the `redhat-support-tool addattachment -c` command to upload the archive. Users can also use the web UI on Customer Portal which creates the customer case and uploads the `sosreport` archive. In addition, command options such as `findkerneldebugs`, `btextract`, `analyze`, or `diagnose` do not work as expected and will be fixed in a future release.
Story Points: ---
Clone Of:
: 1706735 (view as bug list) Environment:
Last Closed: 2020-04-24 12:00:38 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: 1680690    
Bug Blocks: 1699673, 1706735    
Attachments:
Description Flags
RST log after the fail. none

Description Miroslav Hradílek 2019-03-13 12:30:47 UTC
Created attachment 1543611 [details]
RST log after the fail.

Description of problem:
When opening case via RST there is option to automatically attach sosreport. It does not work on RHEL8. Log says TypeError: a bytes-like object is required, not 'str'.

Version-Release number of selected component (if applicable):
sos-3.6-10.el8.noarch
redhat-support-tool-0.10.1-1.el8.noarch
redhat-support-lib-python-0.10.1-1.el8.noarch

How reproducible:
100%

Steps to Reproduce:

# cat .redhat-support-tool/redhat-support-tool.conf
[RHHelp]
url = https://api.access.qa.redhat.com
user = qa
password = *******

# redhat-support-tool 
Welcome to the Red Hat Support Tool.
Command (? for help): opencase
Do you want to use the default product - "Red Hat Enterprise Linux" (y/N)?:y
 1   4 - ELP                                                                    
 2   5 - ELS                                                                    
 3   5.1                                                                        
 4   5.10                                                                       
 5   5.2                                                                        
 6   5.3                                                                        
 7   5.4                                                                        
 8   5.5                                                                        
 9   5.6                                                                        
 10  5.7                                                                        
 11  5.8                                                                        
 12  5.9                                                                        
 13  6.0                                                                        
 14  6.1                                                                        
 15  6.10                                                                       
 16  6.2                                                                        
 17  6.3                                                                        
 18  6.4                                                                        
 19  6.5                                                                        
 20  6.6                                                                        
 21  6.7                                                                        
 22  6.8                                                                        
 23  6.9                                                                        
 24  7.0                                                                        
 25  7.1                                                                        
 26  7.2                                                                        
 27  7.3                                                                        
 28  7.4                                                                        
 29  7.5                                                                        
 30  7.6                                                                        
 31  8.0 Beta                                                                   
Please select a version (or 'q' to exit): 31
Please enter a summary (or 'q' to exit): Test sosreport upload
Please enter a description (Ctrl-D on an empty line when complete):
Tests that sosreport is uploaded.
 1   Urgent                                                                     
 2   High                                                                       
 3   Normal                                                                     
 4   Low                                                                        
Please select a severity (or 'q' to exit): 3
Would you like to use the default (test) Case Group (y/N)? :y
Would you like to see if there's a solution to this problem before opening a support case? (y/N) n
-------------------------------------------------------------------------------
Support case 02319940 has successfully been opened.

Would you like Red Hat Support Tool to automatically generate and
attach a SoS report to 02319940 now? (y/N) y
Unable to create case.
Command (? for help): q

# tail .redhat-support-tool/logs/red_hat_support_tool.log 
2019-03-13 08:10:04,060 - redhat-support-tool.rhhelp - Level 31 - Loading plugin listkerneldebugs
2019-03-13 08:10:04,060 - redhat-support-tool.rhhelp - Level 31 - Loading plugin rmkerneldebug
2019-03-13 08:13:03,833 - redhat_support_tool.plugins.add_case - WARNING - Unable to create case.
2019-03-13 08:13:03,833 - redhat_support_tool.helpers.launchhelper - ERROR - a bytes-like object is required, not 'str'
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/redhat_support_tool/helpers/launchhelper.py", line 106, in run
    return cls.non_interactive_action()
  File "/usr/lib/python3.6/site-packages/redhat_support_tool/plugins/open_case.py", line 500, in non_interactive_action
    output = p.communicate()[0].split('\n')
TypeError: a bytes-like object is required, not 'str'


Additional info:
Sos could be collected outside of RST.

Comment 18 Abhimanyu Jamaiyar 2019-10-01 15:07:19 UTC
Hi Rajshekhar,

Please review the doc text content and provide your feedback.

Regards,
Abhimanyu Jamaiyar