Comment 17 for bug 1242942

Revision history for this message
Flavio Percoco (flaper87) wrote :

I was able to replicate this issue. Since the driver was not initialized correctly - due to thenon existing VG - the rpc cast fails even before getting into the volume manager. This failure is caused by the check done in this decorator[0].

Unfortunately, this is true not just in the case of volume creation but also for all other decorated methods. One possible solution for this is to move the decorator inside the volume manager method and set the volume status as error if there's no driver available. Another possible solution, perhaps a more complex one, would be to re-schedule the task and send it to another volume node in order to fulfill the volume creation request.

In both cases, I think this decorator should be moved into the method body.

[0] https://git.openstack.org/cgit/openstack/cinder/tree/cinder/volume/manager.py#n236