#8330 [Azure] Build job fails on `tests` container preparation
Closed: fixed by abbra. Opened by slev.

Recent Azure's Create container image for test task of Build jobs fails with:

Error: 
 Problem: conflicting requests
  - nothing provides selinux-policy >= 3.14.5-39.fc32 needed by freeipa-selinux-4.9.0.dev202005220757+git266651ce9-0.fc32.noarch
  - nothing provides selinux-policy-base >= 3.14.5-39.fc32 needed by freeipa-selinux-4.9.0.dev202005220757+git266651ce9-0.fc32.noarch
(try to add '--skip-broken' to skip uninstallable packages)

The problem come with selinux-policy-3.14.5-39.fc32 (testing repo).
During the RPM build dnf install selinux-policy from updates-testing and pins the dep of freeipa-selinux package via the RPM macro %{?selinux_requires} to 3.14.5-39.fc32 which is not availablae during the tests container preparation because of the different dnf invocation.

dnf repolist diff fedora:32(tests) vs f32/fedora-toolbox(build)

- fedora-cisco-openh264                 Fedora 32 openh264 (From Cisco) - x86_64
+ updates-testing                        Fedora 32 - x86_64 - Test Updates
+ updates-testing-modular                Fedora Modular 32 - x86_64 - Test Updates

How to fix:
1) drop selinux package build on Azure
2) build selinux package on Azure, but don't install on tests container
3) make dnf install command identical for both cases (build requirements and tests requirements)

4) mix 2 and 3

Metadata Update from @slev:
- Issue assigned to slev

master:

  • 26f96595b010396f055c7d11a645be57fc637863 Azure: Make dnf repos consistent

ipa-4-8:

  • 7f2bfd9f7bfdc9b9e260e45b725b92521565570b Azure: Make dnf repos consistent

Metadata Update from @abbra:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata