Closed RichardSufliarsky closed 1 year ago
You can create the expected back up locally:
mkdir linstor-backup && cd linstor-backup
kubectl get crds | grep -o ".*.internal.linstor.linbit.com" | xargs kubectl get crds -oyaml > crds.yaml
kubectl get crds | grep -o ".*.internal.linstor.linbit.com" | xargs -i{} sh -c "kubectl get {} -oyaml > {}.yaml"
Afterwards, you can create a simple "empty" secret with the expected name linstor-backup-for-linstor-controller-7b94cbbc97-lsfp5
. Then the migration should continue to run.
@WanzenBug thank you, saved my day again.
Can this be fixed permanently? I hit this every time I upgrade
There seems to be no quick fix available as the backup is already compressed https://github.com/LINBIT/linstor-server/blob/4c1a5dd4e96fea6a27f8bb34e7c0a4c54133a8b7/scripts/entry.sh#L22, so it would require to implement logic that would split the backup into more secrets and that means that check for the existing backup would need to be also more sophisticated.
Can we at least get an option to disable the backup?
Just applied the upgrade
kubectl apply --server-side -k "https://github.com/piraeusdatastore/piraeus-operator/config/default?ref=v2"
andlinstor-controller
pod is in crash loop as therun-migration
init container can't create secret (the size of it is more than 1MB).Is there any way how to quickly fix it?