-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Greenboot fails due to missing '/etc/ostree/remotes.d/fedora-iot.conf' #2
Comments
|
Need a F40 IoT build that includes the RPM with ostree remote config to assess the current state of the problem. Likely have to sort out why the remote config is landing under |
In Fedora 40, there is no longer a greenboot failure as the remote is included in In Fedora 39, the disk image - Fedora-IoT-39-20240201.0.aarch64.raw.xz - the remote has also been removed from rpm-ostree status
State: idle
Deployments:
● fedora-iot:fedora/stable/aarch64/iot
OstreeRemoteStatus: Remote "fedora-iot" not found
Version: 39.20240201.0 (2024-02-01T18:02:07Z)
Commit: 01b59135918d7b465a8dfaad2429c4331fad2a7f2c60e64050bd569f3f06ab22
To get updates working again: ostree remote add --set=gpg-verify=true --set=gpgkeypath=/etc/pki/rpm-gpg/ --set=contenturl=mirrorlist=https://ostree.fedoraproject.org/iot/mirrorlist fedora-iot 'https://ostree.fedoraproject.org/iot' |
This change seems to only affect new disk images, testing our GA image from [root@localhost ~]# rpm-ostree status
State: idle
Deployments:
● fedora-iot:fedora/stable/aarch64/iot
Version: 39.20240201.0 (2024-02-01T18:02:07Z)
Commit: 01b59135918d7b465a8dfaad2429c4331fad2a7f2c60e64050bd569f3f06ab22
GPGSignature: Valid signature by E8F23996F23218640CB44CBE75CF5AC418B8E74C
fedora-iot:fedora/stable/aarch64/iot
Version: 39.20231103.1 (2023-11-03T18:17:43Z)
Commit: cc8d419f72d84ac24d0a95e235c0cdf72844f73d9d6f42a41fcddf23dfb34f7d
GPGSignature: Valid signature by 6A51BBABBA3D5467B6171221809A8D7CEB10B464
[root@localhost ~]# cat /sysroot/ostree/repo/config
[core]
repo_version=1
mode=bare
[remote "fedora-iot"]
url=https://ostree.fedoraproject.org/iot
gpgkeypath=/etc/pki/rpm-gpg/
gpg-verify=true
contenturl=mirrorlist=https://ostree.fedoraproject.org/iot/mirrorlist
[sysroot]
bootloader=none
readonly=true
Disk images from Fedora 38 included the remote in |
● fedora-iot:fedora/stable/aarch64/iot
OstreeRemoteStatus: Remote "fedora-iot" not found
Version: 39.20231214.0 (2023-12-15T01:47:31Z)
Commit: 536c86a9db2fa7b332a33f7d027ebf81226f52079990117563e2e37ba5f0259e
We will need to add |
Some info that might help track this down (adding to Paul's comment above). osbuild/images v0.18.0 included the change to the packaged remote config. Instead of hard-coding the remote configuration in the disk image creation (which was replicating the disk creation kickstart), it was added in the This change was planned for a while with Peter and Antonio. The plan included packaging a remote configuration with So if a disk image is built with newer versions of composer (versions that include osbuild/images v0.18.0+) but an older iot-commit is used (or one without the |
PR to add a script to detect and fix the remote |
This is fixed in |
Describe the bug
Recent disk images no longer include the '/etc/ostree/remotes.d/fedora-iot.conf' file parsed by greenboot.
As a result when logging into a system:
Script '01_update_platforms_check.sh' FAILURE (exit code '1'). Continuing...
Boot Status is GREEN - Health Check SUCCESS
To Reproduce
Please describe the steps needed to reproduce the bug:
Expected behavior
No script failure.
Additional context
The system can still be updated, the remote repository information is now included in:
cat /sysroot/ostree/repo/config
[core]
repo_version=1
mode=bare
[remote "fedora-iot"]
url=https://ostree.fedoraproject.org/iot
gpgkeypath=/etc/pki/rpm-gpg/
gpg-verify=true
contenturl=mirrorlist=https://ostree.fedoraproject.org/iot/mirrorlist
[sysroot]
bootloader=none
readonly=true
The text was updated successfully, but these errors were encountered: