Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Sam Account Token issues when sam account and pod are collectively deleted and restored #909

Closed
james-powis opened this issue Oct 4, 2018 · 1 comment

Comments

@james-powis
Copy link

james-powis commented Oct 4, 2018

Service Account Tokens are ephemeral, and stateless, created when a service account is created. Mounting of the service-account-token into volumes as part of the init stage of restic restores results in the init pod failing to start, thus failing the restic portion of the restore (though the pod is restored none the less to an empty functional status.

   default:  error restoring /tmp/293264120/resources/pods/namespaces/default/test-jenkins-99fbbdb95-8rms7.json: Pod "test-jenkins-99fbbdb95-8rms7" is invalid: spec.initContainers[1].volumeMounts[4].name: Not found: "test-jenkins-token-mbgcr"

I will get a PR to address this issue.

#840 had similar symptoms

@james-powis james-powis changed the title Restic volume restore will fail if pods associated service account is also destroyed More Sam Account Token issues when sam account and pod are collectively deleted and restored Oct 5, 2018
@nrb
Copy link
Contributor

nrb commented Oct 9, 2018

PR's merged but apparently GitHub didn't pick it up. Closing the issue.

@nrb nrb closed this as completed Oct 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants