Skip to main content

Hi Team,

 

I’m using Portworx storage for the storageClass then we try to backup using K10s but face this issue

 

 

message: 'Failed to create snapshot content with error snapshot controller
              failed to update tomcat-empal-email-api-logs on API server:
              Operation cannot be fulfilled on persistentvolumeclaims
              "tomcat-empal-email-api-logs": the object has been modified;
              please apply your changes to the latest version and try again'

 

I already add the snapshot class then add the annotation


Is there any resolution to fix this?

 

Thank you

@hafesi 
looks race condition with one another concurrent operation.
error that occurs when you try to create a snapshot of a PersistentVolumeClaim (PVC - tomcat-empal-email-api-logs ) that has been modified since you last fetched it from the API server.

is it happened during the backup or export phase?

i would suggest to try to capture what is changing during takeing snapshot from that PVC

you can capture the YAML file of the PVC before starting the snapshot, then start the backup/export job and try to capture the PVC YAML file again to check if there were any changes!

If you continue to receive the error message, we may need to investigate further to determine what is causing the PVC to be modified.

Ahmed Hagag


Comment