[Bug 905638] New: lxc-create deletes packages from the host due to change in build package
http://bugzilla.opensuse.org/show_bug.cgi?id=905638 Bug ID: 905638 Summary: lxc-create deletes packages from the host due to change in build package Classification: openSUSE Product: openSUSE Distribution Version: 13.2 Hardware: Other OS: Other Status: NEW Severity: Critical Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: bugzilla_opensuse@ojkastl.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- As stated on the opensuse-factory mailinglist, lxc-create behaves differently on 13.2 than it did before. Now, rather than preparing the container, it starts to delete package from the host! Downgrading to version 20131015 of build fixes this (I built the package for 13.2 in home:ojkastl_buildservice and tested this). The template needs fixing, to adjust to the new behaviour of build. Johannes -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=905638 Johannes Kastl <bugzilla_opensuse@ojkastl.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bnc-team-screening@forge.pr |adrian@suse.com |ovo.novell.com | --- Comment #1 from Johannes Kastl <bugzilla_opensuse@ojkastl.de> --- Assigned to Adrian, as this seems to me to be caused by build. Adrian, how to change the build-call in the template: CLEAN_BUILD=1 BUILD_ARCH="$arch" BUILD_ROOT="$cache/partial-$arch" BUILD_DIST="$cache/partial-$arch-packages/opensuse.conf" PATH="$PATH:/usr/lib/build" /usr/lib/build/init_buildsystem --clean --configdir /usr/lib/build/configs --cachedir $cache/partial-$arch-cache --repository $cache/partial-$arch-packages/var/cache/zypp/packages/repo-oss/suse/$arch --repository $cache/partial-$arch-packages/var/cache/zypp/packages/repo-oss/suse/noarch (I hope there a no additional line breaks.) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=905638 --- Comment #2 from Johannes Kastl <bugzilla_opensuse@ojkastl.de> --- Maybe my first description was a bit confusing, I try to clarify: When you create an opensuse container, the lxc-opensuse template calls zypper to install some packages into a local cache directory. After that, /usr/bin/build is called to create a 'real' installation from that. With build version 20131015, this checks some dependencies, and after that puts out many lines with [cumulating xyz]. Don't ask me what this does exactly. On 13.2 or Tumbleweed, the same command checks the dependencies and after that, instead of preparing a container environment, starts to uninstall packages from the host. It does not uninstall things from this cache directory, it really uninstalls them from the host. Somehow the build behaviour must have changed between build-20131015 and build- 20141024. I guess the command needs to be adapted somehow. But I am no build expert. I hope I could clarify the problem, if not, feel free to ask. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=905638 --- Comment #4 from Johannes Kastl <bugzilla_opensuse@ojkastl.de> --- I dug a little deeper. There is a call for /usr/lib/build/init_buildsystem in the template, the one listed in comment 1. This script generates a rpmlist with /usr/lib/build/expanddeps (line 501). This list is processed further, and then some time later a directory (line 818) .init_cache/todelete is being created and populated with regard to this list. And then all of the packages in this directory are being uninstalled, not in the BUILD-Root but in the host system (line ). The invocation of expanddeps is the same in both old and new version of build (20131015 vs. 20141024). The expanddeps perl script is different, the newer version uses $recipe, which generates some warnings (Use of uninitialized value $recipe in pattern match (m//) at /usr/lib/build/expanddeps line 100.). I would guess that the difference in expanddeps is the problem. But again, I am not an expert for build. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=905638 --- Comment #5 from Johannes Kastl <bugzilla_opensuse@ojkastl.de> --- The patch from https://build.opensuse.org/request/show/262312 has been accepted upstream for the stable branch, so the next release 1.0.7 will have building openSUSE containers on 13.2/Tumbleweed disabled by default. Shame... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=905638 Johannes Kastl <bugzilla_opensuse@ojkastl.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High CC| |jslaby@suse.com, | |tbehrens@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=905638 Adrian Schröter <adrian@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #6 from Adrian Schröter <adrian@suse.com> --- This behaviour should be reverted with the build script version from 20th november (submitted on 24th). -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com