Bug 2193091

Summary: Can't start rpm-ostreed.service on raw image due to error - Multiple specifications found for remote "fedora-iot"
Product: [Fedora] Fedora Reporter: Xiaofeng Wang <xiaofwan>
Component: fedora-iot-configAssignee: Paul Whalen <pwhalen>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 39CC: akoutsou, go-sig, hhei, obudai, osbuilders, pwhalen, ssteinbe, tgunders
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Xiaofeng Wang 2023-05-04 10:04:47 UTC
Build a raw image with osbuild-composer and boot it. Run rpm-ostree status command failed with error service "rpm-ostreed.service" start failed - error: Couldn't start daemon: Error setting up sysroot: opening repo: Multiple specifications found for remote "fedora-iot"

Version:
ostree-2023.2-2.fc39.x86_64
rpm-ostree-2023.3-1.fc39.x86_64

Log:
× rpm-ostreed.service - rpm-ostree System Management Daemon
         Loaded: loaded (/usr/lib/systemd/system/rpm-ostreed.service; static)
        Drop-In: /usr/lib/systemd/system/service.d
                 └─10-timeout-abort.conf
         Active: failed (Result: exit-code) since Thu 2023-05-04 09:45:21 UTC; 18ms ago
           Docs: man:rpm-ostree(1)
        Process: 1766 ExecStart=rpm-ostree start-daemon (code=exited, status=1/FAILURE)
       Main PID: 1766 (code=exited, status=1/FAILURE)
         Status: "error: Couldn't start daemon: Error setting up sysroot: opening repo: Multiple specifications found for remote "fedora-iot""
            CPU: 38ms

    May 04 09:45:21 localhost.localdomain systemd[1]: Starting rpm-ostreed.service - rpm-ostree System Management Daemon...
    May 04 09:45:21 localhost.localdomain rpm-ostree[1766]: Reading config file '/etc/rpm-ostreed.conf'
    May 04 09:45:21 localhost.localdomain rpm-ostree[1766]: error: Couldn't start daemon: Error setting up sysroot: opening repo: Multiple specifications found for remote "fedora-iot"
    May 04 09:45:21 localhost.localdomain systemd[1]: rpm-ostreed.service: Main process exited, code=exited, status=1/FAILURE
    May 04 09:45:21 localhost.localdomain systemd[1]: rpm-ostreed.service: Failed with result 'exit-code'.
    May 04 09:45:21 localhost.localdomain systemd[1]: Failed to start rpm-ostreed.service - rpm-ostree System Management Daemon.

Reproducible: Always

Steps to Reproduce:
1. Deploy a fedora rawhide VM from psi openstack
2. git clone https://github.com/virt-s1/rhel-edge.git
3. cd rhel-edge
4. DOCKERHUB_USERNAME=<dockerhub user> DOCKERHUB_PASSWORD=<dockerhub pass> ./ostree-raw-image.sh
Actual Results:  
Can't start rpm-ostreed.service.

Expected Results:  
rpm-ostreed.service should get started.

Comment 1 Paul Whalen 2023-05-04 13:25:47 UTC
This is related to a change we're working on in Fedora, reassigning to me.

Comment 2 Fedora Release Engineering 2023-08-16 08:07:36 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.