We use GitOps with FluxCD...
I added new Profiles and Policies as *.yaml into k10. They all got accepted/validated, but as soon as the policy runs they all fail with the error message “exporting metadata failed”.
I found this post which is related i think. Exporting metadata fails - Invalid token reference error | Veeam Community Resource Hub
Since we use FluxCd and it doesnt offer the “ignoreDifferences:” feature is there another solution to this problem?
error:
cause: '{"cause":{"cause":{"file":"kasten.io/k10/kio/exec/phases/phase/migrate.go:796","function":"kasten.io/k10/kio/exec/phases/phase.getMigrationString","linenumber":796,"message":"Invalid
token
reference"},"file":"kasten.io/k10/kio/exec/phases/phase/migrate.go:772","function":"kasten.io/k10/kio/exec/phases/phase.getMigrationData","linenumber":772,"message":"Failed
to get migration
string"},"file":"kasten.io/k10/kio/exec/phases/phase/migrate.go:100","function":"kasten.io/k10/kio/exec/phases/phase.(*migrateSendPhase).Run","linenumber":100,"message":"Failed
to get migration data"}'
message: Job failed to be executed
exceptions:
- cause: '{"cause":{"cause":{"cause":{"file":"kasten.io/k10/kio/exec/phases/phase/migrate.go:796","function":"kasten.io/k10/kio/exec/phases/phase.getMigrationString","linenumber":796,"message":"Invalid
token
reference"},"file":"kasten.io/k10/kio/exec/phases/phase/migrate.go:772","function":"kasten.io/k10/kio/exec/phases/phase.getMigrationData","linenumber":772,"message":"Failed
to get migration
string"},"file":"kasten.io/k10/kio/exec/phases/phase/migrate_cleanup.go:61","function":"kasten.io/k10/kio/exec/phases/phase.(*migrateCleanupPhase).run","linenumber":61,"message":"Failed
to get migration data"},"fields":a],"message":"Failed to cleanup
collections"}'
message: Failure in collections cleanup phase. Collections may be orphaned.
- cause: '{"cause":{"cause":{"cause":{"file":"kasten.io/k10/kio/exec/phases/phase/migrate.go:796","function":"kasten.io/k10/kio/exec/phases/phase.getMigrationString","linenumber":796,"message":"Invalid
token
reference"},"file":"kasten.io/k10/kio/exec/phases/phase/migrate.go:772","function":"kasten.io/k10/kio/exec/phases/phase.getMigrationData","linenumber":772,"message":"Failed
to get migration
string"},"file":"kasten.io/k10/kio/exec/phases/phase/migrate_cleanup.go:61","function":"kasten.io/k10/kio/exec/phases/phase.(*migrateCleanupPhase).run","linenumber":61,"message":"Failed
to get migration data"},"fields":a],"message":"Failed to cleanup
collections"}'
message: Failure in collections cleanup phase. Collections may be orphaned.
- cause: '{"cause":{"cause":{"cause":{"file":"kasten.io/k10/kio/exec/phases/phase/migrate.go:796","function":"kasten.io/k10/kio/exec/phases/phase.getMigrationString","linenumber":796,"message":"Invalid
token
reference"},"file":"kasten.io/k10/kio/exec/phases/phase/migrate.go:772","function":"kasten.io/k10/kio/exec/phases/phase.getMigrationData","linenumber":772,"message":"Failed
to get migration
string"},"file":"kasten.io/k10/kio/exec/phases/phase/migrate_cleanup.go:61","function":"kasten.io/k10/kio/exec/phases/phase.(*migrateCleanupPhase).run","linenumber":61,"message":"Failed
to get migration data"},"fields":a],"message":"Failed to cleanup
collections"}'
message: Failure in collections cleanup phase. Collections may be orphaned.