Skip to content

Migrate from deprecated operator_libs_linux to charmlibs#201

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/upgrade-operator-libs-to-charmlibs
Draft

Migrate from deprecated operator_libs_linux to charmlibs#201
Copilot wants to merge 2 commits intomainfrom
copilot/upgrade-operator-libs-to-charmlibs

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 20, 2026

Applicable spec: N/A

Overview

Migrated from deprecated operator_libs_linux libraries to actively maintained charmlibs packages for apt, systemd, and passwd functionality.

Rationale

The operator_libs_linux libraries are deprecated and no longer receive updates. Charmlibs 1.0 provides bug-for-bug compatible replacements with ongoing maintenance.

Juju Events Changes

None.

Module Changes

src/builder.py: Updated imports from charms.operator_libs_linux.v0.apt and charms.operator_libs_linux.v1.systemd to charmlibs.apt and charmlibs.systemd.

tests/unit/test_builder.py: Updated test imports to use new charmlibs packages.

Library Changes

  • Added dependencies: charmlibs-apt~=1.0, charmlibs-systemd~=1.0
  • Removed deprecated libraries: lib/charms/operator_libs_linux/v0/{apt.py,passwd.py}, lib/charms/operator_libs_linux/v1/systemd.py (~2400 lines)

Checklist

Unchecked items: Documentation and changelog updates deferred - library migration has no user-facing impact. No application version increment needed as this is a dependency update without functional changes.

Original prompt

This section details on the original issue you should resolve

<issue_title>Upgrade legacy operator_libs_linux libraries</issue_title>
<issue_description>### Enhancement Proposal

Currently the systemd, passwd, and apt libraries are deprecated and replaced by charmlibs. We should migrate to use charmlibs libraries.

Impact

Medium (The feature may be helpful in the future)

Impact Rationale

To keep receiving feature and bug fixes updates.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: florentianayuwono <76247368+florentianayuwono@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade legacy operator_libs_linux libraries to charmlibs Migrate from deprecated operator_libs_linux to charmlibs Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade legacy operator_libs_linux libraries

2 participants