check/add support for python3 + dnf on standard CI

Description

Hi,

Patch [1] fails jenkins [2] like this:

11:35:21 [ INFO ] DNF Repository updates-testing is listed more than
once in the configuration
11:35:21 [ INFO ] DNF Repository updates-testing-debuginfo is listed
more than once in the configuration
11:35:21 [ INFO ] DNF Repository updates is listed more than once in
the configuration
11:35:21 [ INFO ] DNF Repository updates-debuginfo is listed more
than once in the configuration
11:35:21 [ INFO ] DNF Repository fedora is listed more than once in
the configuration
11:35:21 [ INFO ] DNF Repository fedora-debuginfo is listed more than
once in the configuration
11:35:21 [ INFO ] DNF Downloading 1 files, 0.00KB
11:35:21 [ INFO ] DNF Downloading 1 files, 0.00KB
11:35:21 [ INFO ] DNF Failed to synchronize cache for repo 'fedora', disabling.
11:35:21 [ INFO ] DNF Failed to synchronize cache for repo 'updates',
disabling.
11:35:21 [ INFO ] Stage: Environment packages setup
11:35:21 [ INFO ] DNF Repository updates-testing is listed more than
once in the configuration
11:35:21 [ INFO ] DNF Repository updates-testing-debuginfo is listed
more than once in the configuration
11:35:21 [ INFO ] DNF Repository updates is listed more than once in
the configuration
11:35:21 [ INFO ] DNF Repository updates-debuginfo is listed more
than once in the configuration
11:35:21 [ INFO ] DNF Repository fedora is listed more than once in
the configuration
11:35:21 [ INFO ] DNF Repository fedora-debuginfo is listed more than
once in the configuration
11:35:21 [ INFO ] DNF Downloading 1 files, 0.00KB
11:35:21 [ INFO ] DNF Downloading 1 files, 0.00KB
11:35:21 [ INFO ] DNF Failed to synchronize cache for repo 'fedora', disabling.
11:35:21 [ INFO ] DNF Failed to synchronize cache for repo 'updates',
disabling.
11:35:21 [ ERROR ] DNF Cannot queue package 'iproute': no package matched
11:35:21 [ ERROR ] Failed to execute stage 'Environment packages
setup': no package matched

I suspected, based on the log, that something is broken about dnf
configuration, so pushed [3] and ran the job again [4] with [3]
cherry-picked, and it succeeded. I thought that's enough for a
verification, so asked to merge it, and it was merged. Later on, lago
tests started breaking [5] with:

09:37:44 Error: nothing provides repoman >= 2.0.12 needed by
python-lago-ovirt-0.24.0-1.fc23.noarch

So [3] was reverted [6], Currently pending, but I expect it to be merged soon.

So we need a better solution.

While investigating this, Nadav partially understood the issue - we have, at
certain points in mock_runner, both /etc/yum.conf and /etc/yum/yum.conf.

Not sure why and whether we need both.

We tried also various variations on this patch in [7][8][9][10], none worked.

Probably better to fully support dnf instead of this hack, not sure
what this requires.

Thanks,

[1] https://gerrit.ovirt.org/59831
[2] http://jenkins.ovirt.org/job/otopi_master_check-patch-fc24-x86_64/44/console
[3] https://gerrit.ovirt.org/63249
[4] http://jenkins.ovirt.org/job/otopi_master_check-patch-fc24-x86_64/46/
[5] http://jenkins.ovirt.org/job/lago_master_check-merged-fc23-x86_64/205/console
[6] https://gerrit.ovirt.org/63405
[7] https://gerrit.ovirt.org/63386
[8] http://jenkins.ovirt.org/job/lago_master_check-merged-fc23-x86_64/203
[9] http://jenkins.ovirt.org/job/lago_master_check-merged-fc23-x86_64/204/
[10] http://jenkins.ovirt.org/job/lago_master_check-merged-fc23-x86_64/205/

Didi

Activity

Show:

Barak Korren June 28, 2017 at 6:47 AM

Closing as par Did's last comment.

Yedidyah Bar David June 28, 2017 at 6:33 AM

On Tue, Jun 27, 2017 at 9:50 PM, Barak Korren (oVirt JIRA) <

At the time it didn't work for me, see Description.
At some point we reverted the relevant patches for other reasons.
I now pushed again a variation [1] of the patch that then failed,
and it now passes. So I guess it was fixed since then. Thanks.

You can close this ticket.

If we have problems once we decide to continue with the effort
to support python3 (sadly not soon, it seems), I'll open other
tickets as needed.

[1] https://gerrit.ovirt.org/78760


Didi

Barak Korren June 27, 2017 at 6:50 PM

We're using both DNF and Pytohn3 in the 'check-patch.sh' of the Jenkins repo. So we know they work. Is there other requirement in this ticket besides just checking?

Yedidyah Bar David June 27, 2017 at 3:01 PM

On Tue, Jun 27, 2017 at 5:55 PM, eedri (oVirt JIRA)

Can't see why not - we still want python3 support eventually.
Didn't check recently about actual status, and this was
postponed to oVirt 4.3.


Didi

Eyal Edri June 27, 2017 at 2:55 PM

is this still relevant?

Yedidyah Bar David September 26, 2016 at 2:28 PM

On Sun, Sep 25, 2016 at 6:12 PM, eyal edri [Administrator] (oVirt

If you check original [2] you see that python3-devel was installed.

I did some more work on this subject today, and final result is:

Current intended patch [1] fails on jenkins fedora 24 job, passes centos7.

A hack [2] that zeros dnf.conf makes it succeed on both.

I don't mind reversing their order for the git log (and not merge a
"broken" patch) until current ticket is solved, and then revert [2].

Best,

[1] https://gerrit.ovirt.org/#/c/59831/28
[2] https://gerrit.ovirt.org/#/c/64000/11

Didi

Eyal Edri September 25, 2016 at 3:11 PM

did you try adding python3-devel to the .packages files and see if it solves the issue?

Fixed

Details

Assignee

Reporter

Priority

Created September 6, 2016 at 12:06 PM
Updated July 2, 2017 at 2:08 PM
Resolved June 28, 2017 at 6:47 AM

Flag notifications