← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1156490] [NEW] There is a chance to call conductor_api in the driver before the conductor_api is initialized

 

You have been subscribed to a public bug:

Many functions use self._compute.conductor_api  in class ComputeVirtAPI(virtapi.VirtAPI):
so during the driver loading (or the function __init__() of the driver), the driver can call conductor_api.
But conductor_api is initialized later than the driver loading, there will be some issue : 
"ComputeManager object has no attribute 'conductor_api' "

https://github.com/openstack/nova/blob/master/nova/compute/manager.py

class ComputeManager(manager.SchedulerDependentManager):
    """Manages the running instances from creation to destruction."""

    RPC_API_VERSION = '2.27'

    def __init__(self, compute_driver=None, *args, **kwargs):
        """Load configuration options and connect to the hypervisor."""
        self.virtapi = ComputeVirtAPI(self)
        self.driver = driver.load_compute_driver(self.virtapi, compute_driver)
        ...
        self.conductor_api = conductor.API()
        ...

** Affects: nova
     Importance: Undecided
         Status: New

-- 
There is a chance to call conductor_api in the driver before the conductor_api is initialized
https://bugs.launchpad.net/bugs/1156490
You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova).