[opensuse-factory] Failed to resolve "product_flavor(openSUSE) needed by openSUSE-release" in Dockerfile based container build (Tumbleweed)
since some days containers in OBS using the Dockerfile fail to fail to resolve due to ``` have choice for product_flavor(openSUSE) needed by openSUSE-release: openSUSE- release-appliance-custom openSUSE-release-appliance-docker openSUSE-release- appliance-hyperv openSUSE-release-appliance-kvm openSUSE-release-appliance- openstack openSUSE-release-appliance-vagrant openSUSE-release-appliance-vmware openSUSE-release-appliance-wsl openSUSE-release-ftp ``` If I set `Prefer: openSUSE-release-appliance-docker` in the project config I get ``` error running container: error creating container for [/bin/sh -c obs-docker- support --install]: time="2019-10-27T15:23:32Z" level=error msg="systemd cgroup flag passed, but systemd support for managing cgroups is not available ``` e.g. in https://build.opensuse.org/package/live_build_log/ home:okurz:container/yamllint/containers/x86_64 This is reproducible also when creating a new project based on the wizard following https://build.opensuse.org/image_templates selecting "Templates using openSUSE Tumbleweed", "Container built using docker tool". By comparison, a container built based on Leap 15.1 seems fine: https:// build.opensuse.org/package/show/home:okurz:branches:openSUSE:Templates:Images: 15.1/container_test Any ideas how to fix the container build using Dockerfile? Could this be linked to recent changes in openSUSE:Factory project setup, e.g. the "download-on-demand" repos? I am trying on this mailing list after receiving no response on https://lists.opensuse.org/opensuse-buildservice/2019-10/msg00078.html Have fun, Oliver -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi, Am Montag, 4. November 2019, 11:34:21 CET schrieb Oliver Kurz:
since some days containers in OBS using the Dockerfile fail to fail to resolve due to
``` have choice for product_flavor(openSUSE) needed by openSUSE-release: openSUSE- release-appliance-custom openSUSE-release-appliance-docker openSUSE-release- appliance-hyperv openSUSE-release-appliance-kvm openSUSE-release-appliance- openstack openSUSE-release-appliance-vagrant openSUSE-release-appliance-vmware openSUSE-release-appliance-wsl openSUSE-release-ftp ```
Unfortunately a manifestation of a missing OBS feature: https://github.com/openSUSE/obs-build/issues/487 A complex issue, so unfortunately no progress on that. I added a manual selection into the Dockerfile template for now.
If I set `Prefer: openSUSE-release-appliance-docker` in the project config I get
``` error running container: error creating container for [/bin/sh -c obs-docker- support --install]: time="2019-10-27T15:23:32Z" level=error msg="systemd cgroup flag passed, but systemd support for managing cgroups is not available ```
e.g. in https://build.opensuse.org/package/live_build_log/ home:okurz:container/yamllint/containers/x86_64
This is reproducible also when creating a new project based on the wizard following https://build.opensuse.org/image_templates selecting "Templates using openSUSE Tumbleweed", "Container built using docker tool".
Confirmed. I switched BuildEngine from podman to docker again and it seems to work: https://build.opensuse.org/package/live_build_log/openSUSE:Templates:Images:... Needs some more investigation. Cheers, Fabian
By comparison, a container built based on Leap 15.1 seems fine: https:// build.opensuse.org/package/show/home:okurz:branches:openSUSE:Templates:Images: 15.1/container_test
Any ideas how to fix the container build using Dockerfile?
Could this be linked to recent changes in openSUSE:Factory project setup, e.g. the "download-on-demand" repos?
I am trying on this mailing list after receiving no response on https://lists.opensuse.org/opensuse-buildservice/2019-10/msg00078.html
Have fun, Oliver
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Monday, 4 November 2019 18.00.27 CET Fabian Vogt wrote:
Hi,
Am Montag, 4. November 2019, 11:34:21 CET schrieb Oliver Kurz:
since some days containers in OBS using the Dockerfile fail to fail to resolve due to
``` have choice for product_flavor(openSUSE) needed by openSUSE-release: openSUSE- release-appliance-custom openSUSE-release-appliance-docker openSUSE-release- appliance-hyperv openSUSE-release-appliance-kvm openSUSE-release-appliance- openstack openSUSE-release-appliance-vagrant openSUSE-release-appliance-vmware openSUSE-release-appliance-wsl openSUSE-release-ftp ```
Unfortunately a manifestation of a missing OBS feature: https://github.com/openSUSE/obs-build/issues/487
A complex issue, so unfortunately no progress on that.
I added a manual selection into the Dockerfile template for now.
Thanks. I re-enabled the build in https://build.opensuse.org/project/show/home:okurz:container and can confirm it working again. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi, Am Montag, 4. November 2019, 18:00:27 CET schrieb Fabian Vogt:
If I set `Prefer: openSUSE-release-appliance-docker` in the project config I get
``` error running container: error creating container for [/bin/sh -c obs-docker- support --install]: time="2019-10-27T15:23:32Z" level=error msg="systemd cgroup flag passed, but systemd support for managing cgroups is not available ```
e.g. in https://build.opensuse.org/package/live_build_log/ home:okurz:container/yamllint/containers/x86_64
This is reproducible also when creating a new project based on the wizard following https://build.opensuse.org/image_templates selecting "Templates using openSUSE Tumbleweed", "Container built using docker tool".
Confirmed. I switched BuildEngine from podman to docker again and it seems to work:
https://build.opensuse.org/package/live_build_log/openSUSE:Templates:Images:...
Needs some more investigation.
The build VMs don't have systemd running, but podman doesn't automatically switch back to the independent cgroupfs manager anymore in the newest version. It looks like this got reverted recently: https://github.com/containers/libpod/pull/4228 There seems to be some work to pass the manager explicitly in the build script as well: https://github.com/openSUSE/obs-build/issues/529 Until that is fixed, BuildEngine: docker stays. Cheers, Fabian -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (2)
-
Fabian Vogt
-
Oliver Kurz