Hello reviewers,
We’ve added a new system-files plug to the snap-openstack-hypervisor snap (published by Canonical) as part of adding s390x support. The revision is flagged for manual review because of it.
Note: cross-posting from Request: system-files declaration + auto-connect for snap-openstack-hypervisor (mdevctl-config plug)
name: openstack-hypervisor
description: Provides the compute software for OpenStack clouds, including libvirt and nova-compute
snapcraft: https://github.com/canonical/snap-openstack-hypervisor/pull/202
vcs: https://github.com/canonical/snap-openstack-hypervisor
upstream-relation: Canonical implementation for hypervisor services
plugs:
mdevctl-config:
interface: system-files
attributes:
read:
- /etc/mdevctl.d
request-type: installation, auto-connection
reasoning: |
snap-openstack-hypervisor packages the libvirt/nova-compute virtualization stack for OpenStack Sunbeam.
On s390x and other platforms, libvirt’s mediated-device (mdev) discovery reads the persistent mdevctl
configuration directory at /etc/mdevctl.d to enumerate defined mediated devices. Without read access to
this path, libvirtd cannot discover host-defined mdevs. The access is strictly read-only and scoped to
the single /etc/mdevctl.d directory that mdevctl owns.
No existing interface covers this. libvirtd already plugs hardware-observe, mount-observe, system-observe,
block-devices, kvm, and the custom microstack-support interface; none of these grant /etc/mdevctl.d. I
confirmed the microstack-support definition in snapd contains no rules for /etc/mdevctl.d (or /etc generally).
Thanks in advance!