[lxc-devel] ATTENTION openSUSE Tumbleweed users: do not create containers

Johannes Kastl mail at ojkastl.de
Fri Nov 14 15:09:36 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everyone,

sorry if this turns out to be my fault, but on both of my openSUSE
Tumbleweed machines lxc starts deleting rpms from the *host* system
during container creation.

Sic.

I found out (after reinstalling one system and reinstalling some rpms
on another one) that this starts in the following step (around line 168):

> 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_buil\ dsystem 
> --clean --configdir /usr/lib/build/configs --cachedir 
> $cache/partial-$arch-cache --repository 
> $cache/partial-$arch-packages/var/cache/zypp/packages/repo-oss/suse/$arch
>
> 
- --r\ epository
> $cache/partial-$arch-packages/var/cache/zypp/packages/repo-oss/suse/noarch
>
> 
- --repository
> $cache/partial-$arch-packages/var/cache/zypp/packages/update/$arch 
> --repository $c\ 
> ache/partial-$arch-packages/var/cache/zypp/packages/update/noarch 
> || return 1

I modified the template, and exited the creation before this step.
Running this command from a shell (with correctly set variables
$cache, $arch) shows this:

> initializing
> /var/cache/lxc/opensuse/partial-x86_64/.srcfiles.cache ...
> /usr/lib/build/createrpmdeps 
> /var/cache/lxc/opensuse/partial-x86_64-packages/var/cache/zypp/packages/repo-oss/suse/x86_64
>
>
> 
/usr/lib/build/createrpmdeps
/var/cache/lxc/opensuse/partial-x86_64-packages/var/cache/zypp/packages/repo-oss/suse/noarch
> /usr/lib/build/createrpmdeps 
> /var/cache/lxc/opensuse/partial-x86_64-packages/var/cache/zypp/packages/update/x86_64
>
>
> 
/usr/lib/build/createrpmdeps
/var/cache/lxc/opensuse/partial-x86_64-packages/var/cache/zypp/packages/update/noarch
> expanding package dependencies... Use of uninitialized value 
> $recipe in pattern match (m//) at /usr/lib/build/expanddeps line 
> 100. Use of uninitialized value $recipe in pattern match (m//) at 
> /usr/lib/build/expanddeps line 103. [1/29] preinstalling 
> filesystem... [2/29] preinstalling glibc... [3/29] preinstalling 
> fillup... [4/29] preinstalling libattr1... [5/29] preinstalling 
> libbz2-1... [6/29] preinstalling libcap2... [7/29] preinstalling 
> libelf1... [8/29] preinstalling libgcc_s1... [9/29] preinstalling 
> liblua5_1... [10/29] preinstalling liblzma5... [11/29] 
> preinstalling libpcre1... [12/29] preinstalling libpopt0...
> [13/29] preinstalling libz1... [14/29] preinstalling perl-base...
> [15/29] preinstalling insserv-compat... [16/29] preinstalling
> libacl1... [17/29] preinstalling libncurses5... [18/29]
> preinstalling libselinux1... [19/29] preinstalling libreadline6...
> [20/29] preinstalling bash... [21/29] preinstalling diffutils...
> [22/29] preinstalling sed... [23/29] preinstalling tar... [24/29] 
> preinstalling grep... [25/29] preinstalling coreutils... [26/29] 
> preinstalling permissions... [27/29] preinstalling aaa_base... 
> [28/29] preinstalling rpm... [29/29] preinstalling pam...
> 
> running aaa_base preinstall script sh: 
> /.init_b_cache/scripts/aaa_base.pre: No such file or directory 
> running aaa_base postinstall script sh: 
> /.init_b_cache/scripts/aaa_base.post: No such file or directory 
> initializing rpm db... reordering...cycle: libcrack2 -> cracklib 
> breaking dependency libcrack2 -> cracklib cycle: systemd -> dbus-1
>  breaking dependency systemd -> dbus-1 cycle: systemd -> 
> libcryptsetup4 -> device-mapper -> libudev-mini1 -> udev-mini -> 
> mkinitrd -> dhcpcd -> sysconfig -> sysconfig-network -> procps 
> breaking dependency systemd -> libcryptsetup4 cycle: systemd -> 
> libudev-mini1 -> udev-mini -> mkinitrd -> dhcpcd -> sysconfig -> 
> sysconfig-network -> procps breaking dependency systemd -> 
> libudev-mini1 cycle: systemd -> udev-mini -> mkinitrd -> dhcpcd -> 
> sysconfig -> sysconfig-network -> procps breaking dependency 
> systemd -> udev-mini cycle: sysconfig -> sysconfig-network
> breaking dependency sysconfig-network -> sysconfig cycle:
> udevmountd -> sysconfig breaking dependency sysconfig -> udevmountd
> cycle: gio-branding-basedonopensuse -> glib2-tools -> libgio-2_0-0
>  breaking dependency libgio-2_0-0 -> gio-branding-basedonopensuse 
> cycle: udev-mini -> mkinitrd breaking dependency mkinitrd -> 
> udev-mini cycle: libudev-mini1 -> udev-mini breaking dependency 
> udev-mini -> libudev-mini1 cycle: libpolkit0 -> polkit breaking 
> dependency polkit -> libpolkit0 done

After this lines it starts to delete. On one machine it starts
alphabetically (Delete a2ps...), on the other it starts with Mesa.

I'll dig deeper into this and report back. Would be good if someone
could confirm this (saving the list of installed rpms via rpm
- -qa|sort-n > somefile.txt is obviously a good idea). Although I would
rather no one can confirm and this is some error on my machines... ;-)

Regards,
Johannes
- -- 
Messers Moony, Wormtail, Padfoot, and Prongs, offer their compliments
to Professor Snape and request that he keep his abnormally large nose
out of other people's business. (Harry Potter 3)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/

iEYEARECAAYFAlRmGzAACgkQzi3gQ/xETbIYTQCfV0jqHg7aZcGesle8ZhyXNgHZ
1vUAni3+KtREDi6LWA5vQlWwGNmRswzG
=vqjt
-----END PGP SIGNATURE-----



More information about the lxc-devel mailing list