Skip to content

fix(etcd): mount Swift credentials as files for etcdbrctl#1074

Merged
s10 merged 8 commits into
masterfrom
fix/etcd-backup-credentials
Jun 11, 2026
Merged

fix(etcd): mount Swift credentials as files for etcdbrctl#1074
s10 merged 8 commits into
masterfrom
fix/etcd-backup-credentials

Conversation

@s10

@s10 s10 commented May 27, 2026

Copy link
Copy Markdown
Contributor

etcdbrctl v0.28+ unconditionally checks Swift credential file mtime before every snapshot; without OPENSTACK_APPLICATION_CREDENTIALS set, it refuses to upload. Mount the etcd Secret as files at /var/etcd/swift-creds with upstream-expected names (tenantName, authURL, ...).

etcdbrctl v0.28+ unconditionally checks Swift credential file mtime
before every snapshot; without OPENSTACK_APPLICATION_CREDENTIALS set,
it refuses to upload. Mount the etcd Secret as files at /var/etcd/swift-creds
with upstream-expected names (tenantName, authURL, ...).
@s10 s10 requested review from a team, databus23 and jknipper as code owners May 27, 2026 08:57
s10 added 3 commits May 27, 2026 12:39
v1.62.2 was built with Go 1.23 and rejects Go 1.25 targets.
Was the chart fullname since f27b672. v0.25.1 only read
POD_NAMESPACE for lease heartbeats (disabled here), so the wrong
value was harmless. v0.41.2 reads it to look up the etcd workload
and fails when it's not a real namespace.
ed5a5a1 added a `required` for projectName in the etcd Swift secret;
test-charts rendering had no fixture and broke.
@s10 s10 marked this pull request as draft May 27, 2026 12:34
@s10 s10 marked this pull request as ready for review May 27, 2026 13:13
@MaximShepelev

Copy link
Copy Markdown

Chart bump not needed here?

Comment thread pkg/apis/kubernikus/v1/secret.go
Comment thread pkg/controller/ground.go
The etcd chart marks openstack-project-name as required, so existing
klusters whose Secret lacks it would fail Helm render on operator
rollout. Migration 22 fetches it from Keystone; NoCloud klusters and
Secrets that already have it are skipped.
@s10 s10 requested a review from databus23 May 28, 2026 09:31
@s10

s10 commented May 29, 2026

Copy link
Copy Markdown
Contributor Author

@jknipper @databus23 , could you please look at this PR?

@goerangudat goerangudat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@s10 s10 merged commit f94831d into master Jun 11, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

4 participants