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

Check if pebble layer coerces values or is round-trip safe #1398

Open
dimaqq opened this issue Sep 27, 2024 · 0 comments
Open

Check if pebble layer coerces values or is round-trip safe #1398

dimaqq opened this issue Sep 27, 2024 · 0 comments
Assignees
Labels
24.10 bug Something isn't working

Comments

@dimaqq
Copy link
Contributor

dimaqq commented Sep 27, 2024

From the survey

I ran into a problem when updating a layer that contains an integer, e.g. integer configuration option. The logs were duplicated because layer was updated / replanned always, since the current plan had integer converted to string, but my plan had an integer.

@dimaqq 's assumption here is that perhaps it's allowed to set pebble layer with val: 42 which is then read back as val: "42". If that's the case, charmer's version of the layer never compares equal to the current, and the charm keeps re-planning on every event.

@benhoyt benhoyt added bug Something isn't working 24.10 labels Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
24.10 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants