Bug 1262937

Summary: 'fpaste --sysinfo' truncates on 'rpm -qa' section
Product: [Fedora] Fedora Reporter: Striker Leggette <striker>
Component: fpasteAssignee: Ankur Sinha (FranciscoD) <sanjay.ankur>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 22CC: athmanem, robyduck, sanjay.ankur
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: fpaste-0.3.8.1-1.fc23 fpaste-0.3.8.1-1.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-04 22:51:47 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:
Attachments:
Description Flags
patch to fix 'rpm -qa' truncating output none

Description Striker Leggette 2015-09-14 16:32:05 UTC
Description of problem:
 - when using 'fpaste --sysinfo', the output is truncated by the 'rpm -qa' section

Version-Release number of selected component (if applicable):


How reproducible:
 - always

Steps to Reproduce:
1. fpaste --sysinfo
2.
3.

Actual results:
 - http://paste.fedoraproject.org/267028/42247943/ (example)

Expected results:
 - 'rpm -qa --nodigest --nosignature --last | head -20' only shows 20 lines

Additional info:

$ fpaste --sysinfo --printonly | wc -l
Gathering system info ...........................2486

Comment 1 Striker Leggette 2015-09-14 16:35:29 UTC
Fixed.  Change:

        ('Last 20 packages installed', '''rpm -qa --nodigest --nosignature
         --last | head -20''')]

To:

        ('Last 20 packages installed', '''rpm -qa --nodigest --nosignature --last | head -20''')]

Comment 2 Striker Leggette 2015-09-14 16:41:32 UTC
Created attachment 1073343 [details]
patch to fix 'rpm -qa' truncating output

Comment 3 Striker Leggette 2015-09-24 17:08:19 UTC
Fixed script:

https://strikerttd.fedorapeople.org/fpaste-sysinfo-fixed_2015-09-18

Comment 4 Ankur Sinha (FranciscoD) 2015-09-24 19:30:16 UTC
I'll look into this. Thanks for the fix. Sorry for the delay :(

Cheers,
Ankur

Comment 5 Fedora Update System 2015-09-29 09:36:54 UTC
fpaste-0.3.8.1-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16614

Comment 6 Fedora Update System 2015-09-29 09:36:54 UTC
fpaste-0.3.8.1-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16614

Comment 7 Fedora Update System 2015-09-29 09:41:54 UTC
fpaste-0.3.8.1-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-8168a6fa2e

Comment 8 Striker Leggette 2015-09-30 22:19:11 UTC
0.3.8.1-1.fc22:

         '''grep -v '^#' /etc/yum.conf'''),
        ('DNF Extras',         '''dnf -C list extras'''),
        ('Last 20 packages installed', '''rpm -qa --nodigest --nosignature --last | head -20''')]
        #('Installed packages', '''rpm -qa --nodigest --nosignature | sort''', '''dpkg -l''') ]
    si = []

looks good, will test

Comment 10 Fedora Update System 2015-10-01 23:54:29 UTC
fpaste-0.3.8.1-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update fpaste'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-8168a6fa2e

Comment 11 Fedora Update System 2015-10-02 01:50:13 UTC
fpaste-0.3.8.1-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update fpaste'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-8168a6fa2e

Comment 12 Fedora Update System 2015-10-02 13:25:58 UTC
fpaste-0.3.8.1-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2015-10-04 01:38:10 UTC
fpaste-0.3.8.1-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update fpaste'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16614

Comment 14 Fedora Update System 2015-10-04 22:51:43 UTC
fpaste-0.3.8.1-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.