ceph: osd update error message

Add a more meaninful message.

Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Sébastien Han
2019-10-29 16:58:16 +01:00
parent 3d5addc282
commit 6dff2afe8b
+6 -1
View File
@@ -54,7 +54,12 @@ func StartOSD(context *clusterd.Context, osdType, osdID, osdUUID, lvPath string,
// Update LVM config at runtime
if err := updateLVMConfig(context, pvcBackedOSD); err != nil {
return fmt.Errorf("sed failure, %+v", err) // fail return here as validation provided by ceph-volume
return fmt.Errorf("failed to update lvm configuration file, %+v", err) // fail return here as validation provided by ceph-volume
}
// Hide restorecon command, only when hostnetworking is enabled
if err := hideRestoreconCommand(context); err != nil {
return fmt.Errorf("failed to hide 'restorecon' command. %+v", err)
}
var volumeGroupName string