Bug 2292096

Summary: incus.service missing an environment variable INCUS_SOCKET
Product: [Fedora] Fedora Reporter: Ling Li <liling>
Component: incusAssignee: Neal Gompa <ngompa13>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: bketelsen, go-sig, ngompa13, reto.gantenbein
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: incus-6.8-1.fc41 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-12-27 01:23:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ling Li 2024-06-13 00:51:36 UTC
See https://github.com/lxc/incus/pull/800

We need to add this line to incus.service 

    Environment=INCUS_SOCKET=/run/incus/unix.socket

in order for the pre-start hook to run.

Reproducible: Always

Steps to Reproduce:
1. dnf install incus
2. set up uid mapping 
   echo "root:1000000:1000000000" >> /etc/subuid
   echo "root:1000000:1000000000" >> /etc/subgid
3. systemctl enable --now incus
4. set up storage for incus
5. incus launch images:fedora/40 vm01
Actual Results:  
Error: Failed to run: /usr/libexec/incus/incusd forkstart vm01 /var/lib/incus/containers /run/incus/vm01/lxc.conf: exit status 1
Try `incus info --show-log vm01` for more info

the container didn't start

Expected Results:  
No errors; container starts normally

Comment 1 Fedora Admin user for bugzilla script actions 2024-07-02 00:16:17 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 2 Fedora Admin user for bugzilla script actions 2024-07-03 00:08:41 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 3 Brian Ketelsen 2024-07-08 18:02:45 UTC
Pull request with fix: https://src.fedoraproject.org/rpms/incus/pull-request/2

Comment 4 Fedora Update System 2024-12-18 20:21:42 UTC
FEDORA-2024-0912cd3ad9 (incus-6.8-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-0912cd3ad9

Comment 5 Fedora Update System 2024-12-19 03:58:58 UTC
FEDORA-2024-0912cd3ad9 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-0912cd3ad9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-0912cd3ad9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2024-12-27 01:23:12 UTC
FEDORA-2024-0912cd3ad9 (incus-6.8-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.