init initializes the backend vol service, except when it doesn't
Bug #1555370 reported by
John Griffith
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
John Griffith |
Bug Description
In the Replication code we do an update of the service during manager init to set the capabilities based on the info returned by the driver. It turns out that we don't really initialize the backend like I thought here. Instead we now do it in bits and pieces. We have an __init__ routine, followed by an init_host routine that then goes to an init_host_with_rpc routine.
And the service module creates the service for a "new" backend when it doesn't exist. So, we need to move the replication initialization stuff out of the init method and make sure it's *after* service.py checks/creates the service. OR make init_host return the data we want updated in the service model.
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/290917
Review: https:/