ubuntu-bug should report touch image information

Bug #1225113 reported by Chris Johnston
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Wishlist
Martin Pitt

Bug Description

When reporting a bug using ubuntu-bug on touch images, more information about the touch image should be provided. This would include if a user is on a cdimage-touch vs ubuntu-system. If a user is on a system-image, what version are they on and also daily/daily-proposed.

Revision history for this message
Martin Pitt (pitti) wrote :

Sure, I can add that. Can you please tell me how apport can figure this out, i. e. how to tell apart cdimage-touch vs. ubuntu-system and -proposed or not?

affects: apport → apport (Ubuntu)
Changed in apport (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
status: New → Incomplete
Revision history for this message
Chris Johnston (cjohnston) wrote :

Presently it isn't the easiest thing, soon it should get easier...

https://bugs.launchpad.net/ubuntu-system-image/+bug/1220907 for reference...

root@ubuntu-phablet:/# system-image-cli -i
current build number: 46
device name: mako
channel: daily-proposed
last update: 2013-09-13 03:15:49

With the bug above, you will in theory be able to get the ubuntufs build number and potentially also the androidfs build number. Presently you can get the ubuntufs build number from /etc/media-info. The only current way to get the androidfs number is from the json file on system-image.ubuntu.com

On cdimage I'm not presently aware of a way to tell that it is a touch build vs a desktop build. This part would require more research, though with the system-images now being the 'preferred method' of running touch, I'm not sure how much effort should be spent on cdimage if it isn't quite easy.

Revision history for this message
Martin Pitt (pitti) wrote :

On my phone I still use the cdimage ones as I need to install lots of extra deb packages for development. In that case, /var/log/system-image/ does not exist, and system-image-cli crashes:

phablet@android:/home/phablet $ system-image-cli -i
Traceback (most recent call last):
  File "/usr/bin/system-image-cli", line 9, in <module>
    load_entry_point('system-image==1.4', 'console_scripts', 'system-image-cli')()
  File "/usr/lib/python3/dist-packages/systemimage/main.py", line 123, in main
    initialize(verbosity=args.verbose)
  File "/usr/lib/python3/dist-packages/systemimage/logging.py", line 56, in initialize
    handler = logging.FileHandler(config.system.logfile, encoding='utf-8')
  File "/usr/lib/python3.3/logging/__init__.py", line 966, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python3.3/logging/__init__.py", line 988, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/var/log/system-image/client.log'

Can you please verify that calling this as phablet user works?

For the classic cdimage builds, reports already contain the InstallationMedia field which gives the contents of /var/log/installer/media-info (which is a real file on desktop, and a symlink to /etc/media-info on touch; which is a misfeature, because that file is not a configuration file, but more like a log).

Revision history for this message
Martin Pitt (pitti) wrote :
Changed in apport (Ubuntu):
status: Incomplete → Fix Committed
importance: Undecided → Wishlist
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.12.2-0ubuntu1

---------------
apport (2.12.2-0ubuntu1) saucy; urgency=low

  * New upstream bug fix release. Changes since previous snapshot:
    - crash-digger: Write pid into lock file. Thanks Steve Langasek.
    - apport-gtk: When loading a Bug report from a file, properly set up for
      bug reporting mode. (LP: #1226140)
    - Move "program is not installed any more" check from report loading into
      data collection, so that crash reports can be moved and reported on
      machines without that program installed. (LP: #1226030)
  * data/general-hooks/ubuntu.py: Add output of "system-image-info -i" to
    reports as field "SystemImageInfo", to better identify phablet builds.
    (LP: #1225113)
  * Add gdb-minimal dependency to apport-noui, as for crashes we always need a
    StacktraceAddressSignature at least. (part of LP #1226030)
 -- Martin Pitt <email address hidden> Tue, 17 Sep 2013 16:25:55 -0500

Changed in apport (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.