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

incusd/cluster: Ensure the cluster member config is always sorted #380

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

stgraber
Copy link
Member

@stgraber stgraber commented Jan 9, 2024

The database functions return maps which are inherently unsorted, this then would turn the MemberConfig slice under a similarly unsorted slice..

That's a problem because our own CLI and some 3rd party tools will ask the user to answer each of the MemberConfig questions during join.

The user may assume that when joining multiple systems, the questions will be in the same order on all systems, when they're not, they may incorrectly answer some of the questions.

The database functions return maps which are inherently unsorted, this
then would turn the MemberConfig slice under a similarly unsorted slice..

That's a problem because our own CLI and some 3rd party tools will ask
the user to answer each of the MemberConfig questions during join.

The user may assume that when joining multiple systems, the questions
will be in the same order on all systems, when they're not, they may
incorrectly answer some of the questions.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
@stgraber stgraber changed the title cmd/incusd: Ensure the cluster member config is always sorted incusd/cluster: Ensure the cluster member config is always sorted Jan 9, 2024
@freeekanayaka freeekanayaka merged commit ea2d396 into lxc:main Jan 10, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants