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
=== modified file 'debian/changelog'
--- debian/changelog 2010-01-18 09:35:11 +0000
+++ debian/changelog 2010-01-20 19:42:19 +0000
@@ -3,6 +3,9 @@
3 * Merge from upstream 1.6.2 tree, minor logging fixes3 * Merge from upstream 1.6.2 tree, minor logging fixes
4 * debian/eucalyptus-common.links: fix broken link4 * debian/eucalyptus-common.links: fix broken link
55
6 [Chuck Short]
7 * debian/source_eucalptus.py: Update apport hook with a bit more information.
8
6 -- Dustin Kirkland <kirkland@ubuntu.com> Mon, 18 Jan 2010 09:35:11 +13009 -- Dustin Kirkland <kirkland@ubuntu.com> Mon, 18 Jan 2010 09:35:11 +1300
710
8eucalyptus (1.6.2~bzr1124-0ubuntu3) lucid; urgency=low11eucalyptus (1.6.2~bzr1124-0ubuntu3) lucid; urgency=low
912
=== modified file 'debian/source_eucalyptus.py'
--- debian/source_eucalyptus.py 2010-01-12 00:21:33 +0000
+++ debian/source_eucalyptus.py 2010-01-20 19:42:19 +0000
@@ -2,7 +2,27 @@
22
3from apport.hookutils import *3from apport.hookutils import *
44
5def installed_packages(report):
6 packages=['vmbuilder', 'euca2ools', 'ec2-api-tools', 'ec2-ami-tools', 'eucalyptus-common', 'eucalyptus-sc',
7 'eucalyptus-cloud', 'eucalyptus-walrus', 'eucalyptus-java-common', 'eucalyptus-cc',
8 'eucalyptus-nc', 'eucalyptus-gl', 'uec-component-listener']
9
10 version = ''
11 for package in packages:
12 try:
13 vesion = packaging.get_versions(package)
14 except ValueError:
15 version = 'N/A'
16 if version is None:
17 version = 'N/A'
18 versions += '%s %s\n' %(package, version)
19 report['EucalyptusInstalledVersions'] = versions
20
5def add_info(report):21def add_info(report):
22 # Report on the versions that are installed, including: vmbuilder, ec2-api-tools
23 # ec2-ami-tools, euca2ools, and eucalyptus*
24 installed_packages(report)
25
6 attach_file_if_exists(report, '/etc/eucalyptus/eucalyptus.conf', key='eucalyptus.conf')26 attach_file_if_exists(report, '/etc/eucalyptus/eucalyptus.conf', key='eucalyptus.conf')
7 attach_file_if_exists(report, '/etc/eucalyptus/eucalyptus.local.conf', key='eucalyptus.local.conf')27 attach_file_if_exists(report, '/etc/eucalyptus/eucalyptus.local.conf', key='eucalyptus.local.conf')
8 attach_file_if_exists(report, '/etc/eucalyptus/eucalyptus-cc.conf')28 attach_file_if_exists(report, '/etc/eucalyptus/eucalyptus-cc.conf')
@@ -14,3 +34,28 @@
14 attach_file_if_exists(report, '/var/log/eucalyptus/cloud-debug.log', key='EucalyptusCloudDebugLog')34 attach_file_if_exists(report, '/var/log/eucalyptus/cloud-debug.log', key='EucalyptusCloudDebugLog')
15 attach_file_if_exists(report, '/var/log/eucalyptus/cloud-output.log', key='EucalyptusCloudOutputLog')35 attach_file_if_exists(report, '/var/log/eucalyptus/cloud-output.log', key='EucalyptusCloudOutputLog')
16 attach_file_if_exists(report, '/var/log/eucalyptus/httpd-cc_error_log', key='EucalyptusHTTPDErrorLog')36 attach_file_if_exists(report, '/var/log/eucalyptus/httpd-cc_error_log', key='EucalyptusHTTPDErrorLog')
37
38 tags = []
39
40 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.")
41
42 response = ui.yesno("Is this issue easily reproducable in the current version of Eucalytptus?")
43 if response == None: #user canceled
44 raise StopIteration
45
46 if response == False:
47 report['EasilyReproduced'] = 'No'
48 elif rsponse == True:
49 report['EasilyReproduced'] = 'Yes'
50 ui.information("Please provide clear steps so that the Ubuntu Developers can reproduce your bug.")
51
52 response = ui.yesno("Are you able to provide more information on how your UEC is setup")
53 if response == None: #use canceled
54 raise StopIteration
55
56 if response == False:
57 report['UECDescSetup'] = 'No'
58 ui.information("It would be benefial to the bug report if you could provide how your UEC is setup.")
59 if response == True:
60 report['UECDescSetup'] = 'Yes'
61 ui.information("Please provide a detailed description of your UEC setup.")

Subscribers

People subscribed via source and target branches