kyma-project / cloud-manager

Apache License 2.0
3 stars 14 forks source link

Sometimes GcpNfsVolumeRestore get applied twice #584

Closed abalaie closed 1 month ago

abalaie commented 1 month ago

Description

Sometimes, the restore happens twice which puts the filestore in an unusable state twice the actual time it needs to be. This can be few extra minutes of unnecessary operation and cost.

Expected result

Actual result

Steps to reproduce

Troubleshooting

abalaie commented 1 month ago

This issue happens because restore reconciler is interrupted after running restore and before saving the operationId on gcpnfsvolumerestore object status.

This is proposed way of fixing it:

Replace these steps in gcpNfsVolumeRestore reconciler:

with these steps:

POC already done and it worked.