ceph: fix crush-class osd on non-PVC
We need to use storeConfig instead device config as the later never seems to be populated. Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
1 parent
6b211eacba
commit
bc5c8d32f1
1 file changed
+2
-2
@@ -524,10 +524,10 @@ func (a *OsdAgent) initializeDevices(context *clusterd.Context, devices *DeviceO
|
||||
deviceArg,
|
||||
}...)
|
||||
|
||||
if device.Config.DeviceClass != "" {
|
||||
if a.storeConfig.DeviceClass != "" {
|
||||
immediateExecuteArgs = append(immediateExecuteArgs, []string{
|
||||
crushDeviceClassFlag,
|
||||
device.Config.DeviceClass,
|
||||
a.storeConfig.DeviceClass,
|
||||
}...)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user