← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1340167] Re: VMware: Horizon reports incorrect message for PAUSE instance

 

I'm guessing pause is an asynchronous operation. Horizon depend on the
APIs, if "nova pause" returns successfully we can't tell if something
goes wrong later on, we don't have access to the compute logs.

Possible solutions would be for either Nova to surface this error
message when calling "nova pause", and/or for Horizon to somehow query
Nova to check whether an action is allowed and hide the "Pause" button
when it's not possible. But since there could be multiple compute nodes,
some that support pausing and others that don't, I'm not sure how
feasible that would be either... Adding the Nova folks to see if they
have some thoughts about this. It would be nice to have some way of
letting the user know that no matter how many times they try to pause,
it won't work in this case.

** Also affects: nova
   Importance: Undecided
       Status: New

-- 
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/1340167

Title:
  VMware: Horizon reports incorrect message for PAUSE instance

Status in OpenStack Dashboard (Horizon):
  New
Status in OpenStack Compute (Nova):
  New

Bug description:
  When I pause an instance hosted on VMware cluster, it shows 
  SUCCESS: Paused Instance: <instance_name>; 
  in horizon portal and nothing happens (instance does not go to Pause state)

  In nova-compute log it shows: pause not supported for vmwareapi

  2014-07-10 06:53:37.212 ERROR oslo.messaging.rpc.dispatcher [req-f8159224-a1e2-4271-84d8-eea2edeaaee1 admin demo] Exception during message handling: pause not supported for vmwareapi
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher     incoming.message))
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher     result = getattr(endpoint, method)(ctxt, **new_args)
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/exception.py", line 88, in wrapped
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher     payload)
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/exception.py", line 71, in wrapped
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher     return f(self, context, *args, **kw)
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 285, in decorated_function
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher     pass
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 271, in decorated_function
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 335, in decorated_function
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher     function(self, context, *args, **kwargs)
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 313, in decorated_function
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher     kwargs['instance'], e, sys.exc_info())
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 301, in decorated_function
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/compute/manager.py", line 3680, in pause_instance
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher     self.driver.pause(instance)
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 678, in pause
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher     _vmops.pause(instance)
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/nova/nova/virt/vmwareapi/vmops.py", line 938, in pause
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher     raise NotImplementedError(msg)
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher NotImplementedError: pause not supported for vmwareapi
  2014-07-10 06:53:37.212 TRACE oslo.messaging.rpc.dispatcher
  2014-07-10 06:53:37.214 ERROR oslo.messaging._drivers.common [req-f8159224-a1e2-4271-84d8-eea2edeaaee1 admin demo] Returning exception pause not supported for vmwareapi to caller

  
  This information is quite misleading for the user.
  The message should come as "Pause not supported for vmwareapi"

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


References