tools/euca-get-ajax-console traps early without meaningful error message

Bug #728398 reported by Andrey Brindeyev
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Won't Fix
Low
Unassigned

Bug Description

This is with euca2ools version 1.2 installed and euca-get-ajax-console from 2011.1.1-bzr653:
# /usr/bin/euca-get-ajax-console i-0000000e
No handlers could be found for logger "nova.root"

however, there is an actual error message that was eaten due unconfigured logger:
# /usr/bin/euca-get-ajax-console.gd i-0000000e
2011-03-03 15:07:33,827 CRITICAL nova.root [-] cannot import name ConnectionFailed
(nova.root): TRACE: Traceback (most recent call last):
(nova.root): TRACE: File "/usr/bin/euca-get-ajax-console.gd", line 40, in <module>
(nova.root): TRACE: from euca2ools import Euca2ool, InstanceValidationError, Util, ConnectionFailed
(nova.root): TRACE: ImportError: cannot import name ConnectionFailed
(nova.root): TRACE:

Patch for euca-get-ajax-console follows:

# diff -Naur /usr/bin/euca-get-ajax-console{,.gd}
--- /usr/bin/euca-get-ajax-console 2011-03-03 15:02:11.118209963 +0300
+++ /usr/bin/euca-get-ajax-console.gd 2011-03-03 15:08:56.844018746 +0300
@@ -34,6 +34,7 @@

 import boto
 import nova
+nova.log.basicConfig()
 from boto.ec2.connection import EC2Connection
 from euca2ools import Euca2ool, InstanceValidationError, Util, ConnectionFailed

Eldar Nugaev (reldan)
Changed in nova:
assignee: nobody → openstack-gd (openstack-gd)
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Thierry Carrez (ttx) wrote :

GridDynamic folks: are you currently working on that ? If not, we should unassign you to let someone else potentially have a shot at it...

Revision history for this message
Andrey Brindeyev (abrindeyev) wrote :

Done.

Thank you, Thierry

Changed in nova:
assignee: openstack-gd (openstack-gd) → nobody
Thierry Carrez (ttx)
Changed in nova:
status: In Progress → Triaged
Revision history for this message
Jesse Andrews (anotherjesse) wrote :

I propose this for removal - this was an extension to the ec2 api that shouldn't exist - we should use the openstack extensions

tags: added: low-hanging-fruit
Revision history for this message
Thierry Carrez (ttx) wrote :

Should be removed as part of ajaxtermectomy

Changed in nova:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

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