[Bug 889826] New: lxc-create cannot create an opensuse container
https://bugzilla.novell.com/show_bug.cgi?id=889826 https://bugzilla.novell.com/show_bug.cgi?id=889826#c0 Summary: lxc-create cannot create an opensuse container Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: pintman_gmx_de@bakera.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 When creating an lxc container with lxc-create the installation template fails with an error. Afterwards the container can be started and accessed but has no network connectivity. Reproducible: Always Steps to Reproduce: 1. # lxc-create -n suse -t opensuse lxc-create: No config file specified, using the default config /etc/lxc/default.conf Checking cache download in /var/cache/lxc/opensuse/rootfs-x86_64 ... Downloading opensuse minimal ... Loading repository data... Reading installed packages... Resolving package dependencies... The following 263 NEW packages are going to be installed: aaa_base aaa_base-extras augeas-lenses bash bash-doc binutils branding-openSUSE bridge-utils bsdtar build build-mkbaselibs build-mkdrpms bundle-lang-common-en bzip2 ca-certificates ca-certificates-mozilla cantarell-fonts coreutils cpio cracklib cracklib-dict-full crda cron cronie cyrus-sasl dbus-1 dbus-1-x11 dconf deltarpm device-mapper dhcpcd diffutils dirmngr dmraid e2fsprogs efibootmgr elfutils exim fbset file filesystem fillup findutils gawk gettext-runtime gio-branding-openSUSE glib-networking glib2-tools glibc glibc-extra gpg2 grep grub2 grub2-branding-openSUSE grub2-efi grub2-i386-pc grub2-x86_64-efi gsettings-backend-dconf gsettings-desktop-schemas gzip hwinfo info insserv-compat iproute2 iputils kbd kernel-debug klogd kpartx krb5 libICE6 libSM6 libX11-6 libX11-data libXau6 libXt6 libacl1 libadns1 libapparmor1 libarchive12 libasm1 libassuan0 libattr1 libaudit1 libaugeas0 libblkid1 libbz2-1 libcap-ng0 libcap-progs libcap2 libcom_err2 libcrack2 libcryptsetup4 libcurl4 libdb-4_8 libdbus-1-3 libdconf1 libdw1 libedit0 libelf0 libelf1 libestr0 libexpat1 libext2fs2 libffi4 libfreetype6 libfuse2 libgcc_s1 libgcrypt11 libgdbm4 libgio-2_0-0 libglib-2_0-0 libgmodule-2_0-0 libgmp10 libgnutls28 libgobject-2_0-0 libgpg-error0 libgssglue1 libhogweed2 libicu49 libidn11 libjavascriptcoregtk-3_0-0 libjson0 libkeyutils1 libkmod2 libksba8 libldap-2_4-2 liblua5_1 liblzma5 libmagic-data libmagic1 libmicrohttpd10 libmodman1 libmount1 libmozjs185-1_0 libncurses5 libncurses6 libnettle4 libnl-1_1 libopenssl1_0_0 libp11-kit0 libpci3 libpcre1 libpolkit0 libpopt0 libprocps1 libproxy1 libproxy1-config-gnome3 libproxy1-pacrunner-webkit libpth20 libpython2_7-1_0 libqrencode3 libreadline6 libselinux1 libsemanage1 libsepol1 libsolv-tools libsqlite3-0 libssh2-1 libstdc++6 libtasn1 libtasn1-6 libtirpc1 libudev-mini1 libusb-0_1-4 libusb-1_0-0 libustr-1_0-1 libuuid1 libwrap0 libx86emu1 libxcb1 libxml2-2 libz1 libzio1 libzypp logrotate lsof lvm2 lxc mkinitrd module-init-tools mozilla-nspr ncurses-utils net-tools netcfg openSUSE-build-key openSUSE-release openSUSE-release-ftp openslp openssh openssh-askpass openssl os-prober pam pam-config patterns-openSUSE-base perl perl-Bootloader perl-Data-Dump perl-Encode-Locale perl-File-Listing perl-HTML-Parser perl-HTML-Tagset perl-HTTP-Cookies perl-HTTP-Daemon perl-HTTP-Date perl-HTTP-Message perl-HTTP-Negotiate perl-IO-Socket-INET6 perl-IO-Socket-SSL perl-LWP-MediaTypes perl-Net-HTTP perl-Net-LibIDN perl-Net-SSLeay perl-Socket6 perl-TimeDate perl-URI perl-WWW-RobotRules perl-XML-Parser perl-base perl-gettext perl-libwww-perl permissions pinentry pkg-config polkit polkit-default-privs procps python python-base qemu-linux-user readline-doc rpcbind rpm rsync rsyslog sed sg3_utils shadow shared-mime-info shim suse-module-tools sysconfig sysfsutils syslog-service systemd systemd-presets-branding-openSUSE systemd-sysvinit sysvinit-tools tar terminfo-base timezone tunctl udev-mini update-alternatives util-linux vlan wallpaper-branding-openSUSE wireless-regdb xz zypper zypper-aptitude zypper-log 2. After download and installation the following error occurs Download complete. Copy /var/cache/lxc/opensuse/rootfs-x86_64 to /var/lib/lxc/suse/rootfs ... Copying rootfs to /var/lib/lxc/suse/rootfs ... Please change root-password ! BAD PASSWORD: it is too short BAD PASSWORD: is too simple /usr/share/lxc/templates/lxc-opensuse: line 253: [: too many arguments 'opensuse' template installed 'suse' created lxc Version 0.9.0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=889826 https://bugzilla.novell.com/show_bug.cgi?id=889826#c1 --- Comment #1 from Marco Bakera <pintman_gmx_de@bakera.de> 2014-08-04 15:35:57 UTC --- Changing line 253 in the opensuse template seems to resolve the problem. 253c253 < if [ ! grep -q "^lxc.network.*.gateway" $path/config ]; then ---
if [ ! $(grep -q "^lxc.network.*.gateway" $path/config) ]; then
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=889826 https://bugzilla.novell.com/show_bug.cgi?id=889826#c Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bwiedemann@suse.com, | |jslaby@suse.com AssignedTo|bnc-team-screening@forge.pr |tbehrens@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com