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

Use the agent ID instead of unit ID in cluster config dict #70

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

manadart
Copy link
Member

@manadart manadart commented Mar 19, 2024

The dbaccessor worker in the Juju agent needs to recognise its own bind address in the configuration set for the cluster by the controller unit.

At this point in Juju's workflow, it does not have the knowledge to reconcile what its local controller unit ID is.

To address this, the application data-bag cluster configuration, and therefore the contents written to disk are keyed on the agent ID rather than the unit ID.

bind address. This may not correspond to the unit's ID.
addresses in the application data bag.

This is what is ultimately written to file and used by the agent, which
does knows its own ID, but not necessarily the unit's.
@manadart manadart merged commit 03d31b4 into main Mar 19, 2024
7 of 9 checks passed
@manadart manadart deleted the set-agent-id branch March 19, 2024 14:28
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