Skip to content

Commit

Permalink
rbd: manager.CreateVolumeGroupSnapshot() logging improvement
Browse files Browse the repository at this point in the history
Signed-off-by: Niels de Vos <[email protected]>
  • Loading branch information
nixpanic committed Oct 1, 2024
1 parent 19867f4 commit b258654
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/rbd/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,12 +415,14 @@ func (mgr *rbdManager) CreateVolumeGroupSnapshot(ctx context.Context, vg types.V
if err != nil {
err = vgJournal.UndoReservation(ctx, journalPool, uuid, name)
if err != nil {
log.ErrorLog(ctx, "failed to undo the reservation for volume group %q: %w", name, err)
log.ErrorLog(ctx, "failed to undo the reservation for volume group snapshot %q: %w", name, err)
}
}
}()
}

log.DebugLog(ctx, "got UUID %q for volume group snapshot %q", uuid, name)

monitors, err := util.Mons(util.CsiConfigFile, clusterID)
if err != nil {
return nil, fmt.Errorf("failed to find MONs for cluster %q: %w", clusterID, err)
Expand Down

0 comments on commit b258654

Please sign in to comment.