← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1253629] Re: don't print trace in cli command output

 

The instance fault information is stored in the database and is tied to
the instance when it fails, so as Jay points out it's used for
diagnosing problems with the instance.  It's not the CLI that's dumping
the stack trace, it's the server code that's storing the stack trace in
the InstanceFault table in the database, the nova show API is just show
the db record. I don't have a problem with showing the stack trace.

** Changed in: nova
       Status: New => Opinion

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1253629

Title:
  don't print trace in cli command output

Status in OpenStack Compute (Nova):
  Opinion

Bug description:
  stack trace should be printed to log and not command output. 
  As admin a general or specific error would be better and easier to debug than the entire trace mixed in with the command. 

  i tried booting an instance from a volume while i blocked the connectivity to the nfs server. 
  once the instance failed booting on timeout and changed status to ERROR, I ran nova show <instance UUID>.  

  the print shows stack trace

  Steps to Reproduce:
  1. create an nfs server
  2. create a volume 
  3. block connectivity to the server using iptables: iptables -A OUTPUT -d >Server>  -j DROP
  4. boot an instance from the volume: nova boot --flavor 2  --block_device_mapping=vda=<volume_uuid>::: <name>
  5. run nova show <instance_UUID>

  
  fault                               | {u'message': u'ClientException', u'code': 500, u'details': u'The server has either erred or is incapable of performing the requested ope
  ration. (HTTP 500) (Request-ID: req-6cfa3ce9-312b-42f8-a3a2-846d87ae63bb) |
  |                                     |   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 224, in decorated_function                                      
                                                                            |
  |                                     |     return function(self, context, *args, **kwargs)                                                                                     
                                                                            |
  |                                     |   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1224, in run_instance                                           
                                                                            |
  |                                     |     do_run_instance()                                                                                                                   
                                                                            |
  |                                     |   File "/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py", line 242, in inner                                        
                                                                            |
  |                                     |     retval = f(*args, **kwargs)                                                                                                         
                                                                            |
  |                                     |   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1223, in do_run_instance                                        
                                                                            |
  |                                     |     admin_password, is_first_time, node, instance)                                                                                      
                                                                            |
  |                                     |   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 879, in _run_instance                                           
                                                                            |
  |                                     |     self._set_instance_error_state(context, instance[\'uuid\'])                                                                         
                                                                            |
  |                                     |   File "/usr/lib64/python2.6/contextlib.py", line 23, in __exit__                                                                       
                                                                            |
  |                                     |     self.gen.next()                                                                                                                     
                                                                            |
  |                                     |   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 871, in _run_instance                                           
                                                                            |
  |                                     |     filter_properties, bdms)                                                                                                            
                                                                            |
  |                                     |   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 911, in _reschedule_or_reraise                                  
                                                                            |
  |                                     |     self._log_original_error(exc_info, instance_uuid)                                                                                   
                                                                            |
  :

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1253629/+subscriptions