You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DVM fails if we try for instance to stage a second time a project that contains a PVC whom size costumes more than 50% of the project quota.
To Reproduce
Steps to reproduce the behavior:
Create project with quota to 100Gb
Create PVC of 60Gb
Stage the project for migration
Stage the project for migration a second time
Expected behavior
Staging should happen a second time without DMV failing.
Screenshots & Snippets
Additional context
We are running MIG operator version 1.5.0. Since I cannot find release notes, I'm not sure if the problem has been addressed in more recent releases.
Log line from oc logs migration-log-reader-657486d85d-mbtd9 -c plain -n openshift-migration| grep '"dvm":"edms-search-dev-staging-23788-8qfgf"'
Thanks for the report. This is an open issue that we need to handle.
For anyone curious about the root cause, here is why this is happening:
DVM controller tries to create the PVC object on the destination cluster
If the PVC object already exists, the api-server will return AlreadyExists error
Although when the quota is in place, the api-server will try to validate this incoming create request first. The quota error will be hit first and instead of returning AlreadyExists the apiserver returns forbidden: exceeded quota
The DVM controller is not wired to handle any error apart from AlreadyExists and it fails as reported here.
Workaround:
Lift the quota temporarily.
Delete the pvc's in the destination. If the quota is enough for all the PVCs, the new PVCs will be created and copied over. Of course this will lead to all the data being copied again, this can be an option if lifting the quota is not an option.
Bugfix proposal:
Instead of depending on apiserver error to assert if the PVC exists, DVM controller needs to make an explicit get call to see if the PVC exists. The part of error handling that is leading to this error is here
Describe the bug
DVM fails if we try for instance to stage a second time a project that contains a PVC whom size costumes more than 50% of the project quota.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Staging should happen a second time without DMV failing.
Screenshots & Snippets
Additional context
We are running MIG operator version 1.5.0. Since I cannot find release notes, I'm not sure if the problem has been addressed in more recent releases.
Log line from
oc logs migration-log-reader-657486d85d-mbtd9 -c plain -n openshift-migration| grep '"dvm":"edms-search-dev-staging-23788-8qfgf"'
The text was updated successfully, but these errors were encountered: