Comment 0 for bug 2063155

Revision history for this message
Matt Verran (mv-2112) wrote : Unable to launch vm from sunbeam launch on any 2023/2024 release

As per title, once installed actually run a vm using sunbeam launch. (below is 2023.2 479)

$ sunbeam launch -n test ubuntu
Launching an OpenStack instance ...
Found sunbeam key in OpenStack!
⠏ Creating the OpenStack instance ... Instance creation request failed: Server:bf9a43c6-0d07-4e17-941b-f8975ab6cd98 transitioned to failure state ERROR
Error: Unable to request new instance. Please run `sunbeam configure` first.

I can assure you sunbeam configure has been run and the sunbeam launched tried again.

This occurs on at least 2023.2/edge and 2023.2/stable with my system. As such it points to a common component which I believe is Apparmor and openstack-hypervisor misconfiguration. I have briefly seen this before where switching channel helped, not in this case unfortunately (disabling via https://ubuntu.com/server/docs/apparmor didn't seem to help - possibly something else i'm missing?).

Example apparmor...

Apr 22 21:51:47 mz640 kernel: [19568.924893] audit: type=1107 audit(1713819107.842:5900): pid=2042 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="ListActivatableNames" mask="send" name="org.freedesktop.DBus" pid=1762615 label="snap.openstack-hypervisor.libvirtd" peer_label="unconfined"
Apr 22 21:51:47 mz640 kernel: [19568.924893] exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
Apr 22 21:51:47 mz640 kernel: [19568.927268] audit: type=1400 audit(1713819107.846:5901): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.openstack-hypervisor.virtlogd" pid=1761078 comm="virtlogd" requested_mask="read" denied_mask="read" peer="snap.openstack-hypervisor.libvirtd"
Apr 22 21:51:47 mz640 kernel: [19568.927433] audit: type=1400 audit(1713819107.846:5902): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.openstack-hypervisor.virtlogd" pid=1761078 comm="virtlogd" requested_mask="read" denied_mask="read" peer="snap.openstack-hypervisor.libvirtd"
Apr 22 21:51:47 mz640 kernel: [19568.932853] audit: type=1400 audit(1713819107.850:5903): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.openstack-hypervisor.virtlogd" pid=1761078 comm="virtlogd" requested_mask="read" denied_mask="read" peer="snap.openstack-hypervisor.libvirtd"
Apr 22 21:51:47 mz640 kernel: [19568.932982] audit: type=1400 audit(1713819107.850:5904): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.openstack-hypervisor.virtlogd" pid=1761078 comm="virtlogd" requested_mask="read" denied_mask="read" peer="snap.openstack-hypervisor.libvirtd"
Apr 22 21:51:47 mz640 kernel: [19568.934786] tapa7c2f8e4-17: entered promiscuous mode
Apr 22 21:51:47 mz640 kernel: [19568.967068] audit: type=1107 audit(1713819107.886:5905): pid=2042 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/DBus" interface="org.freedesktop.DBus" member="ListActivatableNames" mask="send" name="org.freedesktop.DBus" pid=1762615 label="snap.openstack-hypervisor.libvirtd" peer_label="unconfined"
Apr 22 21:51:47 mz640 kernel: [19568.967068] exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
Apr 22 21:51:47 mz640 kernel: [19568.967982] audit: type=1400 audit(1713819107.886:5906): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.openstack-hypervisor.virtlogd" pid=1761078 comm="virtlogd" requested_mask="read" denied_mask="read" peer="snap.openstack-hypervisor.libvirtd"
Apr 22 21:51:47 mz640 kernel: [19568.968179] audit: type=1400 audit(1713819107.886:5907): apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.openstack-hypervisor.virtlogd" pid=1761078 comm="virtlogd" requested_mask="read" denied_mask="read" peer="snap.openstack-hypervisor.libvirtd"
Apr 22 21:51:47 mz640 kernel: [19568.996062] tapa7c2f8e4-17 (unregistering): left promiscuous mode