Skip to content

Commit

Permalink
PB-8690: check backupId only for pxd volumes for the initial get back…
Browse files Browse the repository at this point in the history
…up status

Signed-off-by: Kesavan Thiruvenkadasamy <[email protected]>
  • Loading branch information
px-kesavan authored and siva-portworx committed Nov 12, 2024
1 parent 2ae9d2b commit 02d3dd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/applicationmanager/controllers/applicationbackup.go
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,8 @@ func (a *ApplicationBackupController) backupVolumes(backup *stork_api.Applicatio
if volInfo.Status == stork_api.ApplicationBackupStatusFailed {
continue
}
if volInfo.BackupID == "" {
// Check if the snapshot is completed only for pxd volumes by checking the backupID
if volInfo.DriverName == volume.PortworxDriverName && volInfo.BackupID == "" {
log.ApplicationBackupLog(backup).Infof("Snapshot of volume [%v] from namespace [%v] hasn't completed yet, retry checking status",
volInfo.PersistentVolumeClaim, volInfo.Namespace) // Some portworx volume snapshot is not completed yet
// hence we will retry checking the status in the next reconciler iteration
Expand Down

0 comments on commit 02d3dd0

Please sign in to comment.