Skip to content

fix: clear stale LXD Juju cert during primary node removal - #243

Open
munirsidd wants to merge 1 commit into
canonical:mainfrom
munirsidd:fix/stale-juju-lxd-cert
Open

munirsidd wants to merge 1 commit into
canonical:mainfrom
munirsidd:fix/stale-juju-lxd-cert

Conversation

@munirsidd

Copy link
Copy Markdown

When following the instructions for Removing the primary node, stale Juju client certificates remain in LXD's trust store.

During subsequent redeployment attempts using sunbeam prepare-node-script, Juju generates a new certificate and attempts to register it under the name juju. Because LXD retains the stale certificate entry, the script fails with:

ERROR registering credentials errored registering credentials for provider: adding certificate "juju": This "identity" entry already exists
ERROR credentials for cloud "localhost" not found

This PR updates the teardown documentation to include a step for clearing the stale juju entry from LXD's trust store.

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.

2 participants