Skip to content
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

switch to images/pkg/dnfjson and remove internal copy #3828

Merged
merged 4 commits into from
Feb 20, 2024

Conversation

diaasami
Copy link
Contributor

@diaasami diaasami commented Nov 30, 2023

https://issues.redhat.com/browse/COMPOSER-2068

This pull request includes:

  • adequate testing for the new functionality or fixed issue
  • adequate documentation informing people about the change such as

@diaasami diaasami force-pushed the use_dnfjson_pkg branch 2 times, most recently from 207c040 to 59165de Compare November 30, 2023 14:23
@bcl
Copy link
Contributor

bcl commented Nov 30, 2023

Looks ok to me other than what the linter caught, and it looks like a test that runs on ./internal/dnfjson/ needs to be removed (I checked images and the same test already exists there).

@diaasami diaasami force-pushed the use_dnfjson_pkg branch 4 times, most recently from 1ea084f to a58c770 Compare December 4, 2023 11:41
Copy link
Collaborator

@schutzbot schutzbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ This PR introduces changes in at least one manifest (when comparing PR HEAD a58c770 with the main merge-base 2a6bad7). Please review the changes. The changes can be found in the artifacts of the Manifest-diff job [0] as manifests.diff.

[0] https://gitlab.com/redhat/services/products/image-builder/ci/osbuild-composer/-/jobs/5673560220/artifacts/browse

Copy link
Collaborator

@schutzbot schutzbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ This PR introduces changes in at least one manifest (when comparing PR HEAD a58c770 with the main merge-base 2a6bad7). Please review the changes. The changes can be found in the artifacts of the Manifest-diff job [0] as manifests.diff.

[0] https://gitlab.com/redhat/services/products/image-builder/ci/osbuild-composer/-/jobs/5673561227/artifacts/browse

Copy link
Collaborator

@schutzbot schutzbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ This PR introduces changes in at least one manifest (when comparing PR HEAD 96eecda with the main merge-base 7deaa29). Please review the changes. The changes can be found in the artifacts of the Manifest-diff job [0] as manifests.diff.

[0] https://gitlab.com/redhat/services/products/image-builder/ci/osbuild-composer/-/jobs/5674477387/artifacts/browse

Copy link
Collaborator

@schutzbot schutzbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ This PR introduces changes in at least one manifest (when comparing PR HEAD 96eecda with the main merge-base 7deaa29). Please review the changes. The changes can be found in the artifacts of the Manifest-diff job [0] as manifests.diff.

[0] https://gitlab.com/redhat/services/products/image-builder/ci/osbuild-composer/-/jobs/5674478529/artifacts/browse

osbuild-composer.spec Outdated Show resolved Hide resolved
osbuild-composer.spec Outdated Show resolved Hide resolved
@achilleas-k
Copy link
Member

achilleas-k commented Jan 10, 2024

Module hotfixes tests are failing. I think it might be another pointer aliasing issue in osbuild/images here: https://github.com/osbuild/images/blob/d04b0ff615ea2615cea9207b0e5741d4efd5389a/pkg/dnfjson/dnfjson.go#L276-L289

Copy link
Member

@achilleas-k achilleas-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failing tests.

@diaasami
Copy link
Contributor Author

diaasami commented Feb 14, 2024

After rebasing, some tests are failing with:

nothing provides osbuild-depsolve-dnf >= 107

the ones I have checked were using rhel8

@diaasami diaasami force-pushed the use_dnfjson_pkg branch 6 times, most recently from 2443ff9 to 3eff6b8 Compare February 16, 2024 11:41
achilleas-k
achilleas-k previously approved these changes Feb 16, 2024
To avoid incompatibility between older image-info and latest osbuild
@thozza
Copy link
Member

thozza commented Feb 19, 2024

Hey @henrywang. I can see failure in Tests / edge-commit-cs9, which does not seem likely to be the result of changes in this PR:

TASK [check ostree-remount mount log] ******************************************
changed: [192.168.100.50] => {"changed": true, "cmd": ["journalctl", "-u", "ostree-remount"], "delta": "0:00:00.006427", "end": "2024-02-17 22:09:48.184964", "msg": "", "rc": 0, "start": "2024-02-17 22:09:48.178537", "stderr": "", "stderr_lines": [], "stdout": "Feb 17 22:00:15 localhost systemd[1]: Starting OSTree Remount OS/ Bind Mounts...\nFeb 17 22:00:15 localhost systemd[1]: Finished OSTree Remount OS/ Bind Mounts.\n-- Boot 0216e5dcba04487fb70e15291439d0b9 --\nFeb 17 22:00:42 localhost systemd[1]: Starting OSTree Remount OS/ Bind Mounts...\nFeb 17 22:00:42 localhost systemd[1]: Finished OSTree Remount OS/ Bind Mounts.\n-- Boot 34f5b1da20544a8cbee5e9e790a05581 --\nFeb 17 22:09:30 localhost systemd[1]: Starting OSTree Remount OS/ Bind Mounts...\nFeb 17 22:09:30 localhost systemd[1]: Finished OSTree Remount OS/ Bind Mounts.", "stdout_lines": ["Feb 17 22:00:15 localhost systemd[1]: Starting OSTree Remount OS/ Bind Mounts...", "Feb 17 22:00:15 localhost systemd[1]: Finished OSTree Remount OS/ Bind Mounts.", "-- Boot 0216e5dcba04487fb70e15291439d0b9 --", "Feb 17 22:00:42 localhost systemd[1]: Starting OSTree Remount OS/ Bind Mounts...", "Feb 17 22:00:42 localhost systemd[1]: Finished OSTree Remount OS/ Bind Mounts.", "-- Boot 34f5b1da20544a8cbee5e9e790a05581 --", "Feb 17 22:09:30 localhost systemd[1]: Starting OSTree Remount OS/ Bind Mounts...", "Feb 17 22:09:30 localhost systemd[1]: Finished OSTree Remount OS/ Bind Mounts."]}

TASK [assert] ******************************************************************
fatal: [192.168.100.50]: FAILED! => {
    "assertion": "'/sysroot' in result_remount_jounalctl.stdout",
    "changed": false,
    "evaluated_to": false,
    "msg": "/sysroot or /var are not remounted by ostree-remount"
}

Is this a known issue?

@henrywang
Copy link
Member

Hey @henrywang. I can see failure in Tests / edge-commit-cs9, which does not seem likely to be the result of changes in this PR:

TASK [check ostree-remount mount log] ******************************************
changed: [192.168.100.50] => {"changed": true, "cmd": ["journalctl", "-u", "ostree-remount"], "delta": "0:00:00.006427", "end": "2024-02-17 22:09:48.184964", "msg": "", "rc": 0, "start": "2024-02-17 22:09:48.178537", "stderr": "", "stderr_lines": [], "stdout": "Feb 17 22:00:15 localhost systemd[1]: Starting OSTree Remount OS/ Bind Mounts...\nFeb 17 22:00:15 localhost systemd[1]: Finished OSTree Remount OS/ Bind Mounts.\n-- Boot 0216e5dcba04487fb70e15291439d0b9 --\nFeb 17 22:00:42 localhost systemd[1]: Starting OSTree Remount OS/ Bind Mounts...\nFeb 17 22:00:42 localhost systemd[1]: Finished OSTree Remount OS/ Bind Mounts.\n-- Boot 34f5b1da20544a8cbee5e9e790a05581 --\nFeb 17 22:09:30 localhost systemd[1]: Starting OSTree Remount OS/ Bind Mounts...\nFeb 17 22:09:30 localhost systemd[1]: Finished OSTree Remount OS/ Bind Mounts.", "stdout_lines": ["Feb 17 22:00:15 localhost systemd[1]: Starting OSTree Remount OS/ Bind Mounts...", "Feb 17 22:00:15 localhost systemd[1]: Finished OSTree Remount OS/ Bind Mounts.", "-- Boot 0216e5dcba04487fb70e15291439d0b9 --", "Feb 17 22:00:42 localhost systemd[1]: Starting OSTree Remount OS/ Bind Mounts...", "Feb 17 22:00:42 localhost systemd[1]: Finished OSTree Remount OS/ Bind Mounts.", "-- Boot 34f5b1da20544a8cbee5e9e790a05581 --", "Feb 17 22:09:30 localhost systemd[1]: Starting OSTree Remount OS/ Bind Mounts...", "Feb 17 22:09:30 localhost systemd[1]: Finished OSTree Remount OS/ Bind Mounts."]}

TASK [assert] ******************************************************************
fatal: [192.168.100.50]: FAILED! => {
    "assertion": "'/sysroot' in result_remount_jounalctl.stdout",
    "changed": false,
    "evaluated_to": false,
    "msg": "/sysroot or /var are not remounted by ostree-remount"
}

Is this a known issue?

Yes, it's a know issue. This failure is not related with this PR. I'm working on it now.

The RHEL nightly composes still contain old osbuild-composer version,
which does not have an explicit dependency on osbuild-depsolve-dnf
package.

As a result, running the latest upstream base_tests.sh on RHEL nightly
composes fails due to osbuild-depsolve-dnf not being installed.

Workaround this in the test case by explicitly installing the
osbuild-depsolve-dnf package in case the osbuild-composer version is
lower than the one which has an explicit dependency on
osbuild-depsolve-dnf.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
Copy link
Member

@thozza thozza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thozza
Copy link
Member

thozza commented Feb 20, 2024

The failure in the edge test case is a known issue, as confirmed by #3828 (comment).

The failure in the nightly pipeline is a known issue, tracked in https://issues.redhat.com/browse/RHEL-24346

@thozza thozza merged commit 218a784 into osbuild:main Feb 20, 2024
74 of 76 checks passed
@diaasami diaasami deleted the use_dnfjson_pkg branch February 20, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants