]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix rpc initialization of cinder-manager volume
authorMehdi Abaakouk <sileht@sileht.net>
Tue, 2 Dec 2014 09:04:54 +0000 (10:04 +0100)
committerMehdi Abaakouk <sileht@sileht.net>
Tue, 2 Dec 2014 14:00:41 +0000 (15:00 +0100)
commitd496b7879517c1891a8ea260cb205c4a4694e247
treedb03eabe3b638079732de10602d03e80262163b9
parentdd006ad496900f4599af41d047bac39b23d05fe8
Fix rpc initialization of cinder-manager volume

VolumeCommands.rpc_client is a property, so when the oslo.config argparser
introspect the class VolumeCommands at module loading time, it launch the
method. But the method depends on a initialized oslo.config.cfg.CONF object,
but this one is not yet initialized.

So don't use python property, to initialize the rpc_client correctly.

No test because of bug: #1398401

Change-Id: I2c2f0be6e7a9d0866f063d98e1f8213f62fb9f92
Closes-bug: #1398319
bin/cinder-manage