[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2015-10-19 Thread Launchpad Bug Tracker
This bug was fixed in the package apport - 2.14.1-0ubuntu3.16 --- apport (2.14.1-0ubuntu3.16) trusty-proposed; urgency=medium * Add data/general-hooks/powerpc.py: Collect some PowerPC[64] information. Thanks to Thierry FAUCK! (LP: #1336462) -- Brian Murray Thu, 24 Sep 2015 1

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2015-09-28 Thread Brian Murray
** Changed in: apport (Ubuntu Trusty) Status: Triaged => In Progress -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1336462 Title: Make apport collect some Power inf

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2015-09-30 Thread Chris J Arges
Hello Thierry, or anyone else affected, Accepted apport into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/apport/2.14.1-0ubuntu3.16 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https:

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2015-10-16 Thread Brian Murray
I confirm that with apport version 2.14.1-0ubuntu3.16 the powerpc.py hook is installed in /usr/share/apport/general-hooks/. ** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2015-09-15 Thread Kamalesh Babulal
The patch attached to comment#25: Enhances PowerPC hook to capture more information if the underlying platform is PowerNV. This patch adds support to collect following information: - List all dump generated (ls -l) - OPAL console log, if available. - All of the OPAL-elog dump (if kernel specified

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2015-09-15 Thread Kamalesh Babulal
** Patch added: "[RFC PATCH] data/general-hooks/powerpc: Add support to collect more data on PowerNV" https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1336462/+attachment/4464703/+files/powernv-enchantments.patch -- You received this bug notification because you are a member of Ubuntu T

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2015-09-15 Thread Steve Langasek
** Also affects: apport (Ubuntu Trusty) Importance: Undecided Status: New ** Changed in: apport (Ubuntu Trusty) Status: New => Triaged ** Changed in: apport (Ubuntu Trusty) Assignee: (unassigned) => Brian Murray (brian-murray) -- You received this bug notification because

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2015-09-16 Thread Brian Murray
I briefly looked at the patch in comment #25 and it seems fine, however this would first need to be added to apport in wily. Please open a new bug for the patch in comment #25. Thanks. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscri

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2015-09-16 Thread Brian Murray
I've backported the powerpc hook from wily to trusty and uploaded a new version of apport to trusty-proposed for the SRU team to review. ** Description changed: + TEST CASE + - + Verify that /usr/share/apport/general-hooks/powerpc.py exists after installing the version of the package fro

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2015-09-23 Thread Chris J Arges
Hello Thierry, or anyone else affected, Accepted apport into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/apport/2.14.1-0ubuntu3.14 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https:

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2015-09-24 Thread Brian Murray
The Trusty fix for the this bug was shadowed by a security update and needs reuploading. apport (2.14.1-0ubuntu3.15) trusty-security; urgency=medium [ Marc Deslauriers ] * This package does _not_ contain the changes from 2.14.1-0ubuntu3.14 in trusty-proposed. ** Changed in: apport

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-07-24 Thread Thierry FAUCK
** Attachment added: "output of apport-debug coreutils" https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1336462/+attachment/4161940/+files/test.apport -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu.

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-07-24 Thread Thierry FAUCK
Need to remove the debug staement and fix the tar directory ** Attachment added: "python script" https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1336462/+attachment/4161941/+files/powerpc.py -- You received this bug notification because you are a member of Ubuntu Touch seeded packages,

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-07-24 Thread Thierry FAUCK
Hi Martin Thanks for your comment Off course the print statement will disappear. I will attach the /tmp/test.apport As for the 2 questions I raised and the wondering you have here is what the developer of the initial query tool (in sosreport) answered: > Mostly for /proc/device-tree/ as a t

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-07-25 Thread Martin Pitt
Thanks Thierry; the coreutils output actually looks quite reasonable, just the cpu_smt error message is a bit ugly. It might inflate a bit when the device tree tar gets added, but I propose to only do that for if report['ProblemType'].startswith('Kernel') or 'linux' in report.get('Package') How

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-07-25 Thread Thierry FAUCK
Hello Martin, That sounds good to me. I would also think - according to previous comment on /dev/nvram, it would be good to add the only for the kernel type of report. Great thanks for your help with that issue (and programming advise) . -- You received this bug notification because you are a

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-07-30 Thread Thierry FAUCK
As per last comment Canonical to handle it now. ** Changed in: apport (Ubuntu) Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1336

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-08-08 Thread Martin Pitt
** Changed in: apport (Ubuntu) Status: Fix Committed => In Progress ** Changed in: apport (Ubuntu) Assignee: (unassigned) => Martin Pitt (pitti) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. ht

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-08-08 Thread Martin Pitt
I'm struggling with /proc/ppc64; "tar cv /proc/ppc64/ | tar t" only archives the dir, and never anything inside it, so it seems tar has some trouble with the "magic" dirs in /proc. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-08-08 Thread Martin Pitt
Ah, nevermind, it's a symlink. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1336462 Title: Make apport collect some Power information Status in “apport” package in Ubunt

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-08-08 Thread Launchpad Bug Tracker
** Branch linked: lp:~ubuntu-core-dev/ubuntu/utopic/apport/ubuntu -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1336462 Title: Make apport collect some Power information

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-08-08 Thread Martin Pitt
OK, cleaned this up and tested in a ppc64 VM: http://bazaar.launchpad.net/~ubuntu-core- dev/ubuntu/utopic/apport/ubuntu/revision/2340 Please let me know if anything is still missing, we can always reiterate on that. Thanks! ** Changed in: apport (Ubuntu) Status: In Progress => Fix Committe

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-08-08 Thread Launchpad Bug Tracker
This bug was fixed in the package apport - 2.14.5-0ubuntu4 --- apport (2.14.5-0ubuntu4) utopic; urgency=medium [ Steve Langasek ] * Fix invalid shebang lines for apport-noui maintainer scripts which I somehow overlooked. [ Martin Pitt ] * Add data/general-hooks/powerpc.py

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-07-11 Thread Martin Pitt
Hello Thierry, so you found the .txt.gz issue already (text files get automatically compressed by dpkg when they exceed 1 kB or so, thus the reference is wrong, sorry). Going through your replies one by one, starting with the first questions: > Do I understand correctly I would need so create a f

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-07-11 Thread Martin Pitt
sosreport.py from comment 3: except: FYI, it's better to do "except IOError:" here. Otherwise this will catch absolutely all exceptions, including e. g. SyntaxError or ValueError if you have a typo. That way you'll still get unexpected exceptions on stderr. self.add_cmd_ou

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-07-11 Thread Martin Pitt
FTR, I'm subscribed to this bug now, so I'll read/reply to your responses timely. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1336462 Title: Make apport collect some Pow

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-07-11 Thread Martin Pitt
Comment 4, proposed hook: > if arch in [ "ppc64", "ppc64le"]: > print "Processing power %s" %arch Please use print(...) to be compatible with Python 3. Ubuntu has used Apport with Python3 for several releases already. Also, please use 4 spaces for indentation, but I can fix such small issues mys

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-07-11 Thread Thierry FAUCK
The servicelog package is as follow: NAME servicelog - query the contents of the servicelog SYNOPSIS /usr/bin/servicelog [options] DESCRIPTION The servicelog command queries and displays the contents of the system servicelog. You can use the --query option to select

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-07-11 Thread Thierry FAUCK
To answer the security question, as far as I understand it it can report about system or drivers as it reports about system events Man page precise the following: The following column names can used to select OS-type events: os.ver- sion, subsystem, driver, and device (all text).

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-07-15 Thread Thierry FAUCK
Sorry, 2 caveats - the add_copy_spec() function is not yet properly done as it covers tree of files and it sounds not clear yet if all files are needed and if a tar file is better than a set of single small files. - the case of /dev/nvram is not solved either as it potentially reports info on c

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-07-15 Thread Thierry FAUCK
Here is a new version of the python file: (It runs now). import os, re, os.path, sys, platform import apport.packaging import apport.hookutils from glob import glob from apport.hookutils import command_output, attach_root_command_outputs, attach_file, attach_file_if_exists, command_available

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-07-23 Thread Martin Pitt
Hello Thierry, sorry for the late response (buried in stuff/extra day off). I suppose all those debug statements like print("try") will go away? As I don't have access to such a machine, could you perhaps run apport-bug --save /tmp/test.apport coreutils with that hook installed, and attach /

[Touch-packages] [Bug 1336462] Re: Make apport collect some Power information

2014-07-23 Thread Martin Pitt
As for /dev/nvram: This seems to be the kind of information which we should only attach to kernel reports, or which bug triagers should request explicity. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https