Velero: In-progress backups have no start timestamp

Created on 15 Nov 2018  路  7Comments  路  Source: vmware-tanzu/velero

Steps to reproduce:

  • create a backup -- ark backup create foo
  • list all backups -- ark backup get
  • see that backup foo is in progress, and has no start timestamp

The value displayed here is .status.startTimestamp, which is set on L386: https://github.com/heptio/ark/blob/master/pkg/controller/backup_controller.go#L386

The runBackup function is called on L202: https://github.com/heptio/ark/blob/master/pkg/controller/backup_controller.go#L202

Which is AFTER the backup has been patched to InProgress (on L182): https://github.com/heptio/ark/blob/master/pkg/controller/backup_controller.go#L182

I think we should probably set .status.startTimestamp at the same time as we set the phase to InProgress, so that when we patch, both of those values get persisted.

Bug Good first issue Help wanted P2 - Long-term important

All 7 comments

馃憤

@ncdc - we are seeing this behaviour in some of our clusters, can you assign me ?

Thanks

@yastij assigned, thanks!

@yastij you still planning on doing this?

Yes, shipping it while flying to kubeCon, sorry for the delay

@yastij were you actively working on this, or should we return it to the unassigned pool? Either's fine!

@skriss - sorry I got a bit overwhelmed with GH notifications. I鈥檒l send a PR Tuesday.

Was this page helpful?
0 / 5 - 0 ratings