← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1334661] Re: rpc.cleanup method is not reachable due to wrong import of rpc module

 

** Changed in: oslo
       Status: Invalid => Triaged

** Changed in: oslo
   Importance: Undecided => Medium

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

Title:
  rpc.cleanup method is not reachable due to wrong import of rpc module

Status in OpenStack Compute (Nova):
  New
Status in Oslo - a Library of Common OpenStack Code:
  Triaged

Bug description:
  In nova service rpc.cleanup method is not getting called because 'rpc'
  is not imported properly.

  rpc = importutils.try_import('nova.openstack.common.rpc')
  It should be
  rpc = importutils.try_import('nova.rpc')

  'rpc' module is not present in nova/openstack/common package.
  As it is present in nova package it should be imported from there only.

  Also rpc cleanup method should not be called while restarting the
  service as ideally cleanup task should be done only while exiting from
  the service. In case of SIGHUP signal, service gets restarted and
  tries to cleanup the rpc.

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