Skip to content

Changes to get microovn working for PS9#85

Merged
crypticC0der merged 1 commit intocanonical:mainfrom
crypticC0der:fixes
Apr 20, 2026
Merged

Changes to get microovn working for PS9#85
crypticC0der merged 1 commit intocanonical:mainfrom
crypticC0der:fixes

Conversation

@crypticC0der
Copy link
Copy Markdown
Collaborator

we cannot remove doca-openvswitch-switch as it is depended on, so we remove ovs-vsctl.
openvswitch-switch is marked as held by maas so we need to force remove it.

@crypticC0der crypticC0der requested a review from a team as a code owner April 14, 2026 13:01
matperin
matperin previously approved these changes Apr 17, 2026
Copy link
Copy Markdown
Contributor

@matperin matperin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not the cleanest workaround but, as we discussed internally, there are no other non-intrusive solutions to the ovs-vsctl aliasing problem.

Other than the nitpick about adding a comment concerning this the changes seem good for what we want to achieve.

Comment thread src/charm.py
subprocess.run(["modprobe", "openvswitch"])
subprocess.run(["apt", "remove", "-y", *APT_OVS_PACKAGES])
subprocess.run(["rm", "-f", "/usr/bin/ovs-vsctl"])
subprocess.run(["apt", "remove", "-y", "--allow-change-held-packages", *APT_OVS_PACKAGES])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Since we are making quite a "dirty" workaround here and it is clear by our internal discussion why it is necessary, I think a little comment with a note on this decision could help troubleshooting in the future.
While it works in theory, I am a little concerned that this manual management of binaries could cause some troubles in some particular juju deployments, so having a reference for this could help pinpoint possible issues.

we cannot remove doca-openvswitch-switch as it is depended on, so we
remove ovs-vsctl.
openvswitch-switch is marked as held by maas so we need to force remove it.

Signed-off-by: MJ Ponsonby <mj.ponsonby@canonical.com>
@crypticC0der crypticC0der merged commit e91b0ab into canonical:main Apr 20, 2026
54 of 56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants