← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1348128] [NEW] Zone Manager throws exception for undefined '_'

 

Public bug reported:

Zone Manager throws exception for undefined '_' as follows
(zoning_mode=fabric set in cinder.conf for FC).

2014-07-24 00:48:35.120 224449 ERROR oslo.messaging.rpc.dispatcher [req-d68e568f-d8af-466c-9754-a3217fbb912b 9892262ce133464f96a192b6c655bdfa 589ac6f777544115b7ede70619558b2e - - -] Exception during message handling: Bad or unexpected response from the storage volume backend API: Unable to fetch connection information from backend: global name '_' is not defined
2014-07-24 00:48:35.120 224449 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2014-07-24 00:48:35.120 224449 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-24 00:48:35.120 224449 TRACE oslo.messaging.rpc.dispatcher     incoming.message))
2014-07-24 00:48:35.120 224449 TRACE oslo.messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
2014-07-24 00:48:35.120 224449 TRACE oslo.messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
2014-07-24 00:48:35.120 224449 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-24 00:48:35.120 224449 TRACE oslo.messaging.rpc.dispatcher     result = getattr(endpoint, method)(ctxt, **new_args)
2014-07-24 00:48:35.120 224449 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/cinder/cinder/volume/manager.py", line 815, in initialize_connection
2014-07-24 00:48:35.120 224449 TRACE oslo.messaging.rpc.dispatcher     raise exception.VolumeBackendAPIException(data=err_msg)
2014-07-24 00:48:35.120 224449 TRACE oslo.messaging.rpc.dispatcher VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Unable to fetch connection information from backend: global name '_' is not defined


It seems that the change in I18N removed the implicit import of '_' and the following statement need be added explicitly to cinder/zonemanager/utils.py
from cinder.openstack.common.gettextutils import _

** Affects: nova
     Importance: Undecided
         Status: Invalid

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

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

Title:
  Zone Manager throws exception for undefined '_'

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  Zone Manager throws exception for undefined '_' as follows
  (zoning_mode=fabric set in cinder.conf for FC).

  2014-07-24 00:48:35.120 224449 ERROR oslo.messaging.rpc.dispatcher [req-d68e568f-d8af-466c-9754-a3217fbb912b 9892262ce133464f96a192b6c655bdfa 589ac6f777544115b7ede70619558b2e - - -] Exception during message handling: Bad or unexpected response from the storage volume backend API: Unable to fetch connection information from backend: global name '_' is not defined
  2014-07-24 00:48:35.120 224449 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
  2014-07-24 00:48:35.120 224449 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-24 00:48:35.120 224449 TRACE oslo.messaging.rpc.dispatcher     incoming.message))
  2014-07-24 00:48:35.120 224449 TRACE oslo.messaging.rpc.dispatcher   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
  2014-07-24 00:48:35.120 224449 TRACE oslo.messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
  2014-07-24 00:48:35.120 224449 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-24 00:48:35.120 224449 TRACE oslo.messaging.rpc.dispatcher     result = getattr(endpoint, method)(ctxt, **new_args)
  2014-07-24 00:48:35.120 224449 TRACE oslo.messaging.rpc.dispatcher   File "/opt/stack/cinder/cinder/volume/manager.py", line 815, in initialize_connection
  2014-07-24 00:48:35.120 224449 TRACE oslo.messaging.rpc.dispatcher     raise exception.VolumeBackendAPIException(data=err_msg)
  2014-07-24 00:48:35.120 224449 TRACE oslo.messaging.rpc.dispatcher VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Unable to fetch connection information from backend: global name '_' is not defined

  
  It seems that the change in I18N removed the implicit import of '_' and the following statement need be added explicitly to cinder/zonemanager/utils.py
  from cinder.openstack.common.gettextutils import _

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


Follow ups

References