"Not authorized" error trying to access Ajax console

Bug #750635 reported by Tushar Patil
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Won't Fix
Undecided
Unassigned

Bug Description

Tested using nova revision no 938.

Steps to reproduce:-
1) Run one VM instance
2) $./euca-get-ajax-console <instance id>
Output of euca-get-ajax-console command:
http://10.2.3.150:8000/?token=46c061ff-aec6-4282-9007-3e7a29046df9
3) Open the browser and paste the above URL
4) Click on the GET button, it gives an error message "Connnection lost timeout"
5) On the terminal console where I am running nova-compute service, I am getting error message saying Not authorized
Exception happened during processing of request from ('10.2.3.150', 50643)
Traceback (most recent call last):
  File "/usr/lib/python2.6/SocketServer.py", line 283, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/home/tpatil/nova/tools/ajaxterm/qweb.py", line 1317, in process_request
    return BaseHTTPServer.HTTPServer.process_request(self,*p)
  File "/usr/lib/python2.6/SocketServer.py", line 309, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python2.6/SocketServer.py", line 322, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.6/SocketServer.py", line 617, in __init__
    self.handle()
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in handle_one_request
    method()
  File "/home/tpatil/nova/tools/ajaxterm/qweb.py", line 1291, in do_POST
    self.serve('GET')
  File "/home/tpatil/nova/tools/ajaxterm/qweb.py", line 1283, in serve
    appiter=self.server.wsgiapp(environ, self.start_response)
  File "/home/tpatil/nova//tools/ajaxterm/ajaxterm.py", line 506, in __call__
    raise Exception('Not Authorized')
Exception: Not Authorized
---------------------------------------

Thierry Carrez (ttx)
summary: - Not authorized to access HTTP console log of VM instance
+ "Not authorized" error trying to access Ajax console
Revision history for this message
Brian Waldon (bcwaldon) wrote :

Please verify that this bug is still valid. I wouldnt be surprised if the codepath being used here has been completely changed.

Changed in nova:
status: New → Incomplete
Revision history for this message
Dave Walker (davewalker) wrote :

Isn't ajaxterm deprecated in essex?

Revision history for this message
Thierry Carrez (ttx) wrote :

Ajaxterm is getting removed.

Changed in nova:
status: Incomplete → Won't Fix
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.