You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pebble service serialization and merging drop UID/GID zero #2846
Expected: both identity fields survive. A root identity is a valid value, rather than an omitted setting.
Service._merge() also skips zero, so an existing UID or GID of 1000 cannot be changed to 0 through that merge path. This can leave a service configured with the previous identity instead of the one the charm requested.
Reproduced on current main, Ops 3.10.0.dev0, with Python 3.12. Four local regression cases fail, covering serialization and merging for both fields. No Juju controller or Pebble daemon was used.
Activity
fix: preserve zero user and group IDs in Pebble services (canonical#2847