Merge lp:~zulcss/ubuntu/lucid/eucalyptus/eucalyptus-apport-hook into lp:ubuntu/lucid/eucalyptus

Proposed by Chuck Short
Status: Needs review
Proposed branch: lp:~zulcss/ubuntu/lucid/eucalyptus/eucalyptus-apport-hook
Merge into: lp:ubuntu/lucid/eucalyptus
Diff against target: 74 lines (+48/-0)
2 files modified
debian/changelog (+3/-0)
debian/source_eucalyptus.py (+45/-0)
To merge this branch: bzr merge lp:~zulcss/ubuntu/lucid/eucalyptus/eucalyptus-apport-hook
Reviewer Review Type Date Requested Status
Dustin Kirkland  Approve
Review via email: mp+17776@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Chuck Short (zulcss) wrote :

This branch updates the apport hook which provides a bit more information and asks the users question on their UEC setup.

Revision history for this message
Dustin Kirkland  (kirkland) :
review: Approve

Unmerged revisions

100. By Chuck Short

debian/source_eucalptus.py: Update apport hook with a bit more information.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-01-18 09:35:11 +0000
3+++ debian/changelog 2010-01-20 19:42:19 +0000
4@@ -3,6 +3,9 @@
5 * Merge from upstream 1.6.2 tree, minor logging fixes
6 * debian/eucalyptus-common.links: fix broken link
7
8+ [Chuck Short]
9+ * debian/source_eucalptus.py: Update apport hook with a bit more information.
10+
11 -- Dustin Kirkland <kirkland@ubuntu.com> Mon, 18 Jan 2010 09:35:11 +1300
12
13 eucalyptus (1.6.2~bzr1124-0ubuntu3) lucid; urgency=low
14
15=== modified file 'debian/source_eucalyptus.py'
16--- debian/source_eucalyptus.py 2010-01-12 00:21:33 +0000
17+++ debian/source_eucalyptus.py 2010-01-20 19:42:19 +0000
18@@ -2,7 +2,27 @@
19
20 from apport.hookutils import *
21
22+def installed_packages(report):
23+ packages=['vmbuilder', 'euca2ools', 'ec2-api-tools', 'ec2-ami-tools', 'eucalyptus-common', 'eucalyptus-sc',
24+ 'eucalyptus-cloud', 'eucalyptus-walrus', 'eucalyptus-java-common', 'eucalyptus-cc',
25+ 'eucalyptus-nc', 'eucalyptus-gl', 'uec-component-listener']
26+
27+ version = ''
28+ for package in packages:
29+ try:
30+ vesion = packaging.get_versions(package)
31+ except ValueError:
32+ version = 'N/A'
33+ if version is None:
34+ version = 'N/A'
35+ versions += '%s %s\n' %(package, version)
36+ report['EucalyptusInstalledVersions'] = versions
37+
38 def add_info(report):
39+ # Report on the versions that are installed, including: vmbuilder, ec2-api-tools
40+ # ec2-ami-tools, euca2ools, and eucalyptus*
41+ installed_packages(report)
42+
43 attach_file_if_exists(report, '/etc/eucalyptus/eucalyptus.conf', key='eucalyptus.conf')
44 attach_file_if_exists(report, '/etc/eucalyptus/eucalyptus.local.conf', key='eucalyptus.local.conf')
45 attach_file_if_exists(report, '/etc/eucalyptus/eucalyptus-cc.conf')
46@@ -14,3 +34,28 @@
47 attach_file_if_exists(report, '/var/log/eucalyptus/cloud-debug.log', key='EucalyptusCloudDebugLog')
48 attach_file_if_exists(report, '/var/log/eucalyptus/cloud-output.log', key='EucalyptusCloudOutputLog')
49 attach_file_if_exists(report, '/var/log/eucalyptus/httpd-cc_error_log', key='EucalyptusHTTPDErrorLog')
50+
51+ tags = []
52+
53+ ui.information("As part of the bug reporting process, you'll be asked a series of questions to help provide a more descriptive bug report. Please answer the following questions to the best of your ability. Afterwards, a browser will be opened to finish filling this as a bug in the Launchpad bug tracking system.")
54+
55+ response = ui.yesno("Is this issue easily reproducable in the current version of Eucalytptus?")
56+ if response == None: #user canceled
57+ raise StopIteration
58+
59+ if response == False:
60+ report['EasilyReproduced'] = 'No'
61+ elif rsponse == True:
62+ report['EasilyReproduced'] = 'Yes'
63+ ui.information("Please provide clear steps so that the Ubuntu Developers can reproduce your bug.")
64+
65+ response = ui.yesno("Are you able to provide more information on how your UEC is setup")
66+ if response == None: #use canceled
67+ raise StopIteration
68+
69+ if response == False:
70+ report['UECDescSetup'] = 'No'
71+ ui.information("It would be benefial to the bug report if you could provide how your UEC is setup.")
72+ if response == True:
73+ report['UECDescSetup'] = 'Yes'
74+ ui.information("Please provide a detailed description of your UEC setup.")

Subscribers

People subscribed via source and target branches