← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1235088] Re: LOG.warn() should support translation

 

** Changed in: nova
       Status: Fix Committed => Fix Released

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

Title:
  LOG.warn() should support translation

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  $ grep 'LOG.warn([^_]' * -r

  $ grep 'LOG.warn([^_]' * -r
  nova/virt/xenapi/vm_utils.py:        LOG.warn(msg % e)
  nova/virt/libvirt/driver.py:                LOG.warn(msg)
  nova/virt/libvirt/volume.py:            LOG.warn(msg)
  nova/virt/libvirt/volume.py:            LOG.warn(msg)
  nova/virt/libvirt/volume.py:            LOG.warn(msg)
  nova/virt/libvirt/volume.py:            LOG.warn(msg)
  nova/tests/scheduler/test_host_manager.py:        host_manager.LOG.warn("No service for compute ID 5")
  nova/tests/image/fake.py:        LOG.warn('Unable to find image id %s.  Have images: %s',
  nova/db/sqlalchemy/api.py:        LOG.warn(msg)
  nova/db/sqlalchemy/api.py:        LOG.warn(msg)
  nova/db/sqlalchemy/api.py:            LOG.warn(msg)
  nova/db/sqlalchemy/api.py:        LOG.warn(msg)
  nova/db/sqlalchemy/api.py:        LOG.warn(msg)
  nova/db/sqlalchemy/api.py:        LOG.warn(msg)
  nova/db/sqlalchemy/api.py:        LOG.warn(msg)
  nova/db/sqlalchemy/api.py:                    LOG.warn(msg)
  nova/db/sqlalchemy/migrate_repo/versions/186_new_bdm_format.py:            LOG.warn("Got an unexpected block device %s"
  nova/openstack/common/db/sqlalchemy/session.py:            LOG.warn(msg % remaining)
  nova/openstack/common/rpc/impl_zmq.py:                        LOG.warn(emsg)
  nova/compute/api.py:                LOG.warn(msg)
  nova/compute/api.py:                LOG.warn(msg)
  nova/compute/api.py:                LOG.warn(msg)
  nova/compute/manager.py:                LOG.warn(err_str % exc, instance=instance)
  nova/compute/manager.py:                LOG.warn(e, instance=instance)
  nova/network/linux_net.py:        LOG.warn(msg % {'num': num_rules, 'float': floating_ip})
  nova/network/manager.py:                    LOG.warn(oversize_msg)
  nova/api/openstack/compute/plugins/v3/quota_sets.py:                    LOG.warn(msg)
  nova/api/openstack/compute/contrib/quotas.py:                    LOG.warn(msg)
  nova/api/metadata/vendordata_json.py:                    LOG.warn(logprefix + _("file does not exist"))
  nova/api/metadata/vendordata_json.py:                    LOG.warn(logprefix + _("Unexpected IOError when reading"))
  nova/api/metadata/vendordata_json.py:                LOG.warn(logprefix + _("failed to load json"))


  They shoud make use of "_" defined in
  nova/openstack/common/gettextutils.py, like this:

    LOG.warn(_("parent device '%s' not found"), dev)

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