Bug 2307842 - osbuild-composer images fail to depsolve with error decoding depsolve result failed: json: unknown field "solver"
Summary: osbuild-composer images fail to depsolve with error decoding depsolve result ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: osbuild-composer
Version: 40
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: OndΕ™ej Budai
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-08-26 08:32 UTC by Mario Cattamo
Modified: 2024-08-27 17:08 UTC (History)
6 users (show)

Fixed In Version: osbuild-composer-118-1.fc40
Clone Of:
Environment:
Last Closed: 2024-08-27 17:08:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mario Cattamo 2024-08-26 08:32:10 UTC
As of Fedora 40 compose Fedora-40-20240414.0, all image types (iot-commit, iot-installer, iot-minimal, iot-raw-image, iot-simplified-installer) are failing in downstream tests when depsolving blueprints.

osbuild noarch  125-1.fc40
osbuild-composer x86_64  115-1.fc40

Following lines show the error log:

+ greenprint 'πŸ“‹ Preparing blueprint'
+ echo -e '\033[1;32mπŸ“‹ Preparing blueprint\033[0m'
[1;32mπŸ“‹ Preparing blueprint[0m
+ sudo composer-cli blueprints push /tmp/tmp.2oMhMMcIqp/blueprint.toml
+ sudo composer-cli blueprints depsolve container
ERROR: BlueprintsError: container: decoding depsolve result failed: json: unknown field "solver"

Complete log available at: https://artifacts.osci.redhat.com/testing-farm/bbb08815-7221-485c-91e7-40377cc8316d/work-edge-x86-installerw9uisax2/tmt/plans/edge-test/edge-x86-installer/execute/data/guest/default-0/tmt/tests/edge-test-1/output.txt


This is also happening during dependency solving of iot-commit:
+ tee /tmp/tmp.aOqaaOL3f4/blueprint.toml
+ [[ false == \t\r\u\e ]]
+ [[ false == \t\r\u\e ]]
+ [[ false == \t\r\u\e ]]
+ [[ true == \t\r\u\e ]]
+ tee -a /tmp/tmp.aOqaaOL3f4/blueprint.toml
+ build_image /tmp/tmp.aOqaaOL3f4/blueprint.toml ostree
+ blueprint_file=/tmp/tmp.aOqaaOL3f4/blueprint.toml
+ blueprint_name=ostree
+ greenprint 'πŸ“‹ Preparing blueprint'
+ echo -e '\033[1;32mπŸ“‹ Preparing blueprint\033[0m'
[1;32mπŸ“‹ Preparing blueprint[0m
+ sudo composer-cli blueprints push /tmp/tmp.aOqaaOL3f4/blueprint.toml
+ sudo composer-cli blueprints depsolve ostree
ERROR: BlueprintsError: ostree: decoding depsolve result failed: json: unknown field "solver"
blueprint: ostree v0.0.1
Shared connection to 10.0.58.242 closed.

The blueprint file is the following:
name = "ostree"
description = "A base ostree image"
version = "0.0.1"
modules = []
groups = []
[[packages]]
name = "python3"
version = "*"
[[customizations.directories]]
path = "/etc/custom_dir/dir1"
user = 1020
group = 1020
mode = "0770"
ensure_parents = true

[[customizations.files]]
path = "/etc/systemd/system/custom.service"
data = "[Unit]\nDescription=Custom service\n[Service]\nType=oneshot\nRemainAfterExit=yes\nExecStart=/usr/bin/false\n[Install]\nWantedBy=multi-user.target\n"

[[customizations.files]]
path = "/etc/custom_file.txt"
data = "image builder is the best\n"

[[customizations.directories]]
path = "/etc/systemd/system/custom.service.d"

[[customizations.files]]
path = "/etc/systemd/system/custom.service.d/override.conf"
data = "[Service]\nExecStart=\nExecStart=/usr/bin/cat /etc/custom_file.txt\n"

[customizations.services]
enabled = ["custom.service"]


Complete log available at: https://artifacts.osci.redhat.com/testing-farm/bbb08815-7221-485c-91e7-40377cc8316d/work-edge-x86-commit9mbxvhrw/tmt/plans/edge-test/edge-x86-commit/execute/data/guest/default-0/tmt/tests/edge-test-1/output.txt



Reproducible: Always

Steps to Reproduce:
1.Deploy Openstack Fedora-40 vm
2. git clone https://github.com/virt-s1/rhel-edge.git && cd rhel-edge/
3. DOWNLOAD_NODE=<download-node> ./ostree.sh
Actual Results:  
Decoding depsolve result failed.

Expected Results:  
Depsolve successful.

Comment 1 Fedora Update System 2024-08-26 09:04:21 UTC
FEDORA-2024-ba75e9ed45 (osbuild-composer-118-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-ba75e9ed45

Comment 2 Fedora Update System 2024-08-27 17:08:25 UTC
FEDORA-2024-ba75e9ed45 (osbuild-composer-118-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.