• Bug#1064213: incus-agent: Incus Agent never starts due to ConditionPath

    From Mathias Gibbens@21:1/5 to All on Sun Feb 18 20:50:01 2024
    Control: severity -1 normal

    Hi Stefano,

    I suspect you're seeing this on the host system running Incus? If so,
    that's expected behavior.

    Incus' default mode of operation when launching a VM is to
    dynamically inject the `incus-agent` binary into the VM's environment. (`incus-agent` should never actually run on the host itself.) To
    accomplish this, it must copy the binary from the host system in
    addition to automatically creating other config and service files for
    the VM. Debian's packaging breaks out the `incus-agent` binary into its
    own package that is Recommended, but not required if you're only
    running containers.

    This setup covers the vast majority of regular Incus use. But,
    because there is an incus-agent package we also need to support someone creating a VM image that bakes in that package. Thus, there's a service definition in the incus-agent package. The ConditionPathExists check
    should ever only be true within a VM running under Incus.

    I've just verified that both use cases appear to work properly, so
    I've downgraded the bug's severity to normal.

    If you know of a better way of making the systemd service not start
    on the host machine, please let me know. Or if there might be some way
    to make it more readily apparent that it's expected and normal
    behavior.

    Mathias

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEE1Bp60H32xfynSJ8cKe7i1uz0QvkFAmXSXdEACgkQKe7i1uz0 QvlAzg//a2wsLvcvqzzjDcVV3iEjktQPn2+wQnYaxUVX9E6OgKLztgIXGKBPYsM2 8p2ZtEuYj5LIMaWMsj2JQdNv392h0QjdhRRux1JpyrJSNwiMIDsAFXuLAeQ+tF3u dp1en0agaCpIzK2quTDUDKTo2Mpch3NWhZt+ijun9sC0SowbIZugqZCug9DONB7+ LRvW5A+ysklKHHAoHf0I3gOKurBt861B+DuVXtQiCSNeo/Sf4y+b4MWiqQUQcdch aB6q9KSaz5LKj+QSulEL3yNtHB5dLiBq7t6b+ACcGUes292HB1Sr0V3aeep9B9wL AvgP427MjFU77j2Zrf9b7YPphKwab84p9jdybvWOFyA48Rf/XZZ6nTKNGJ+EzWEY U23a49C45jWXGaVEJhw/kUUtOm0GRfd7sDLMPXnWlw5OIeND7J7qy2BSYL9mM0+o Jt+cCQhpJmyUHLi7QuoacQVR7Gd4N3QRzQhb1sbynKG/9rtBsDE9d+4dLtBBCRQr hP3u0wtXeQcZrVwhyUdNcOWxkuR36KAZKqBS/vtrj4SZ5aWxC5xuZL4RPqsauiEK hrRglJfbzpkUMo1tlbcITdsFCfRrJZZWtTzbGafHVqczAOHFcXVO92nQvQE1Ywte Yvm6/4WkLPmqfq6Ob+wj/cOEinVM27OUVvE4C4EL8RM8htgbkYQ=
    =Oir4
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)