Request to allow use of system-files plug for mdevctl-config in openstack-hypervisor

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!

This request has been added to the queue for review by the @reviewers team.

Hi @wolsen

+1 from me to grant read access to /etc/mdevctl.d using system-files with auto-connection. What do other reviewers think?

Hello @wolsen,

This is a clear +1 from me as well for granting the specified system-files read interface auto-connection to the openstack-hypervisor snap. Thank you!

Hi @wolsen

Please upload the new revision of the snap with the new mdevctl-config system-files interface, thanks!