rpc.cleanup method is not reachable due to wrong import of rpc module
Bug #1334661 reported by
Abhijeet Malawade
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Medium
|
Abhijeet Malawade | ||
oslo-incubator |
Invalid
|
Medium
|
Abhijeet Malawade |
Bug Description
In nova service rpc.cleanup method is not getting called because 'rpc' is not imported properly.
rpc = importutils.
It should be
rpc = importutils.
'rpc' module is not present in nova/openstack/
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.
description: | updated |
Changed in oslo: | |
assignee: | nobody → Abhijeet Malawade (abhijeet-malawade) |
Changed in nova: | |
assignee: | nobody → Abhijeet Malawade (abhijeet-malawade) |
Changed in oslo: | |
status: | Invalid → Triaged |
importance: | Undecided → Medium |
Changed in nova: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: oslo |
Changed in oslo: | |
assignee: | Abhijeet Malawade (abhijeet-malawade) → Abhishek Kekane (abhishek-kekane) |
Changed in oslo: | |
assignee: | Abhishek Kekane (abhishek-kekane) → nobody |
Changed in oslo: | |
assignee: | nobody → Abhijeet Malawade (abhijeet-malawade) |
Changed in oslo-incubator: | |
status: | In Progress → Invalid |
Changed in nova: | |
status: | Triaged → Invalid |
To post a comment you must log in.
This is not a bug in Oslo AFAICT. It sounds like an Oslo rpc reference wasn't cleaned up in Nova when it converted to oslo.messaging. I'm not even sure where this bad import is happening (it would be good to link to the file where you see this), but it's likely that something needs to be imported from oslo.messaging.