Repository navigation
chore: migrate systemd library to charmlibs - #765
Open
Thanhphan1147 wants to merge 9 commits into
Open
Thanhphan1147 wants to merge 9 commits into
Thanhphan1147 wants to merge 9 commits into
Conversation
Thanhphan1147
added a commit
that referenced
this pull request
Dec 3, 2026
Thanhphan1147
marked this pull request as ready for review
December 4, 2026 12:35
Thanhphan1147
force-pushed
the
houston/ISD-7721
branch
from
December 4, 2026 12:42
d5ade0d to
72ccfd2
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
Migrates the systemd library from the deprecated Charmhub-hosted
charms.operator_libs_linux.v1.systemdto thecharmlibs-systemdpackage, matching the earlier apt/tls charmlibs migration.from charms.operator_libs_linux.v1 import systemdwithfrom charmlibs import systemdinhaproxy-operator/src/haproxy.py.charmlibs-systemd~=1.0tohaproxy-operator/pyproject.tomland updatesuv.lock.haproxy-operator/tests/unit/conftest.py.haproxy-operator/lib/charms/operator_libs_linux/v1/systemd.pyand theoperator_libs_linux.systemdentry fromcharmcraft.yaml.Why we need it
The Charmhub-hosted systemd library is deprecated in favour of
charmlibs.systemd. ISD-7721 tracks completing this migration across the haproxy charm.Test plan
tox -e lintinhaproxy-operator/(codespell, ruff format/check, mypy) - passed.tox -e unitinhaproxy-operator/- 368 passed.tox -e staticinhaproxy-operator/(bandit) - no issues.charmcraft pack --destructive-modewas attempted on the shared test VM but the VM runs Ubuntu 26.04 while the charm targets Ubuntu 24.04, so the build cannot run there.Review focus
charmlibs-systemd~=1.0is the intended dependency constraint.haproxy.pyis unchanged between the vendored library andcharmlibs.systemd.Potential breaking changes
None; no user-facing behaviour changed.
New dependencies
charmlibs-systemd~=1.0(replaces the vendored Charmhub systemd library).Checklist
docs/changelog.mdwith user-relevant changesdocs/release-notes/artifacts(internal change)