Skip to content

MAXSAT problem with no solution found when generate rpmtree when make rpm-deps in kubevirt #114

@Longchuanzheng

Description

@Longchuanzheng

Hi, I want to change rpm deps in kubevirt with make rpm-deps. I change basesystem to --basesystem bclinux-release in hack/rpm-deps
like

    bazel run \
        --config=${ARCHITECTURE} \
        //:bazeldnf -- rpmtree \
        --public --nobest \
        --name testimage_x86_64 \
        --basesystem bclinux-release \
        ${bazeldnf_repos} \
        $centos_base \
        $centos_extra \
        $testimage_base

I solve bclinux-release not found by adding repositories in rpm/repo.yaml, while MAXSAT problem with no solution found.

INFO[0010] Selecting which: which-0:2.21-16.bclinux.21.10U4
INFO[0010] Selecting bclinux-release: bclinux-release-0:21.10U4-57.1.oe2203sp3.bclinux
INFO[0010] Solving.
INFO[0010] Loading the Partial weighted MAXSAT problem.
INFO[0014] Solving the Partial weighted MAXSAT problem.
INFO[0014] No solution found.
Error: no solution found
Usage:
  bazeldnf rpmtree [flags]

Flags:
...
...

no solution found
+ '[' true = true ']'

In my opinion, it may cause by --basesystem bclinux-release. But I don't have a specific understanding of this error.

I want know what is MAXSAT problem and why it happends and try to solve it.

By the way there is nothing between Loading the Partial weighted MAXSAT problem and Solving the Partial weighted MAXSAT problem. I think problems should show between these two lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions