Hide Forgot
Description of problem: I'm getting the following error while trying to create a CentOS 7 container in a Fedora 25 Workstation: # lxc-create -n centos72-mitaka -t centos Host CPE ID from /etc/os-release: cpe:/o:fedoraproject:fedora:25 This is not a CentOS or Redhat host and release is missing, defaulting to 6 use -R|--release to specify release Checking cache download in /var/cache/lxc/centos/x86_64/6/rootfs ... Downloading CentOS minimal ... Redirecting to '/usr/bin/dnf -h' (see 'man yum2dnf') Redirecting to '/usr/bin/dnf --installroot /var/cache/lxc/centos/x86_64/6/partial -y --nogpgcheck install yum initscripts passwd rsyslog vim-minimal openssh-server openssh-clients dhclient chkconfig rootfiles policycoreutils' (see 'man yum2dnf') Error: Failed to synchronize cache for repo 'fedora' Failed to download the rootfs, aborting. Failed to download 'CentOS base' failed to install CentOS lxc-create: lxccontainer.c: create_run_template: 1290 container creation template for centos72-mitaka failed lxc-create: tools/lxc_create.c: main: 318 Error creating container centos72-mitaka If I try to use the template directly: # bash -x ./lxc-centos -R 7 -a x86_64 -n centos72-mitaka --repo http://merlin.fit.vutbr.cz/mirrors/centos/7.2.1511/os/x86_64/ + default_path=/var/lib/lxc + : 'Root-${name}-XXXXXX' + : no + : yes + : no + : yes + lxc_network_type=veth + lxc_network_link=lxcbr0 + for arg in '"$@"' + '[' -R = -- ']' + '[' -R = --mapped-uid -o -R = --mapped-gid ']' + for arg in '"$@"' + '[' 7 = -- ']' + '[' 7 = --mapped-uid -o 7 = --mapped-gid ']' + for arg in '"$@"' + '[' -a = -- ']' + '[' -a = --mapped-uid -o -a = --mapped-gid ']' + for arg in '"$@"' + '[' x86_64 = -- ']' + '[' x86_64 = --mapped-uid -o x86_64 = --mapped-gid ']' + for arg in '"$@"' + '[' -n = -- ']' + '[' -n = --mapped-uid -o -n = --mapped-gid ']' + for arg in '"$@"' + '[' centos72-mitaka = -- ']' + '[' centos72-mitaka = --mapped-uid -o centos72-mitaka = --mapped-gid ']' + for arg in '"$@"' + '[' --repo = -- ']' + '[' --repo = --mapped-uid -o --repo = --mapped-gid ']' + for arg in '"$@"' + '[' http://merlin.fit.vutbr.cz/mirrors/centos/7.2.1511/os/x86_64/ = -- ']' + '[' http://merlin.fit.vutbr.cz/mirrors/centos/7.2.1511/os/x86_64/ = --mapped-uid -o http://merlin.fit.vutbr.cz/mirrors/centos/7.2.1511/os/x86_64/ = --mapped-gid ']' + export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/sbin:/usr/bin:/sbin:/bin + PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/sbin:/usr/bin:/sbin:/bin + '[' -e /etc/os-release ']' + . /etc/os-release ++ NAME=Fedora ++ VERSION='25 (Workstation Edition)' ++ ID=fedora ++ VERSION_ID=25 ++ PRETTY_NAME='Fedora 25 (Workstation Edition)' ++ ANSI_COLOR='0;34' ++ CPE_NAME=cpe:/o:fedoraproject:fedora:25 ++ HOME_URL=https://fedoraproject.org/ ++ BUG_REPORT_URL=https://bugzilla.redhat.com/ ++ REDHAT_BUGZILLA_PRODUCT=Fedora ++ REDHAT_BUGZILLA_PRODUCT_VERSION=25 ++ REDHAT_SUPPORT_PRODUCT=Fedora ++ REDHAT_SUPPORT_PRODUCT_VERSION=25 ++ PRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy ++ VARIANT='Workstation Edition' ++ VARIANT_ID=workstation + echo 'Host CPE ID from /etc/os-release: cpe:/o:fedoraproject:fedora:25' Host CPE ID from /etc/os-release: cpe:/o:fedoraproject:fedora:25 + '[' cpe:/o:fedoraproject:fedora:25 = '' -a -e /etc/system-release-cpe ']' + '[' cpe:/o:fedoraproject:fedora:25 '!=' '' -a fedora = centos -a 25 '!=' '' ']' + '[' cpe:/o:fedoraproject:fedora:25 '!=' '' -a fedora = redhat -o fedora = rhel -a 25 '!=' '' ']' + '[' -e /etc/centos-release ']' ++ getopt -o a:hp:n:cR: -l help,path:,rootfs:,name:,clean,release:,repo:,arch:,fqdn: -- -R 7 -a x86_64 -n centos72-mitaka --repo http://merlin.fit.vutbr.cz/mirrors/centos/7.2.1511/os/x86_64/ + options=' -R '\''7'\'' -a '\''x86_64'\'' -n '\''centos72-mitaka'\'' --repo '\''http://merlin.fit.vutbr.cz/mirrors/centos/7.2.1511/os/x86_64/'\'' --' + '[' 0 -ne 0 ']' ++ uname -m + arch=x86_64 + eval set -- ' -R '\''7'\'' -a '\''x86_64'\'' -n '\''centos72-mitaka'\'' --repo '\''http://merlin.fit.vutbr.cz/mirrors/centos/7.2.1511/os/x86_64/'\'' --' ++ set -- -R 7 -a x86_64 -n centos72-mitaka --repo http://merlin.fit.vutbr.cz/mirrors/centos/7.2.1511/os/x86_64/ -- + true + case "$1" in + release=7 + shift 2 + true + case "$1" in + newarch=x86_64 + shift 2 + true + case "$1" in + name=centos72-mitaka + shift 2 + true + case "$1" in + repo=http://merlin.fit.vutbr.cz/mirrors/centos/7.2.1511/os/x86_64/ + shift 2 + true + case "$1" in + shift 1 + break + '[' '!' -z '' -a -z '' ']' + basearch=x86_64 + case "$arch" in + '[' x86_64 '!=' '' -a x86_64 '!=' x86_64 ']' + cache_base=/var/cache/lxc/centos/x86_64 + '[' 'Root-${name}-XXXXXX' = '' ']' ++ expr 'Root-${name}-XXXXXX' : '.*$.' + '[' 7 '!=' 0 ']' ++ eval echo 'Root-${name}-XXXXXX' +++ echo Root-centos72-mitaka-XXXXXX + root_password=Root-centos72-mitaka-XXXXXX ++ expr Root-centos72-mitaka-XXXXXX : '.*XXXX' + '[' 27 '!=' 0 ']' ++ mktemp -u Root-centos72-mitaka-XXXXXX + root_password=Root-centos72-mitaka-3VM9hT + '[' -z '' ']' + utsname=centos72-mitaka ++ expr centos72-mitaka : '.*\..*\.' + '[' 0 = 0 ']' ++ dnsdomainname + [[ '' != '' ]] + type yum + '[' 0 -ne 0 ']' + '[' -z '' ']' + path=/var/lib/lxc/centos72-mitaka + '[' -z 7 ']' ++ id -u + '[' 0 '!=' 0 ']' + '[' -z '' ']' + rootfs_path=/var/lib/lxc/centos72-mitaka/rootfs + grep -q '^lxc.rootfs' /var/lib/lxc/centos72-mitaka/config + config_path=/var/lib/lxc/centos72-mitaka + cache=/var/cache/lxc/centos/x86_64/7 + trap revert SIGHUP SIGINT SIGTERM + copy_configuration + mkdir -p /var/lib/lxc/centos72-mitaka + grep -q '^lxc.rootfs' /var/lib/lxc/centos72-mitaka/config + echo ' lxc.rootfs = /var/lib/lxc/centos72-mitaka/rootfs ' + mv /var/lib/lxc/centos72-mitaka/config /var/lib/lxc/centos72-mitaka/config.def + read LINE + expr '' : '.*\$' ++ expr '' : '\s*\([^ ]*\)\s*=' + KEY= + [[ '' != \l\x\c\.\n\e\t\w\o\r\k\.\h\w\a\d\d\r ]] + echo + [[ '' == \l\x\c\.\n\e\t\w\o\r\k\.\l\i\n\k ]] + read LINE + expr 'lxc.rootfs = /var/lib/lxc/centos72-mitaka/rootfs' : '.*\$' ++ expr 'lxc.rootfs = /var/lib/lxc/centos72-mitaka/rootfs' : '\s*\([^ ]*\)\s*=' + KEY=lxc.rootfs + [[ lxc.rootfs != \l\x\c\.\n\e\t\w\o\r\k\.\h\w\a\d\d\r ]] + echo lxc.rootfs = /var/lib/lxc/centos72-mitaka/rootfs + [[ lxc.rootfs == \l\x\c\.\n\e\t\w\o\r\k\.\l\i\n\k ]] + read LINE + expr '' : '.*\$' ++ expr '' : '\s*\([^ ]*\)\s*=' + KEY= + [[ '' != \l\x\c\.\n\e\t\w\o\r\k\.\h\w\a\d\d\r ]] + echo + [[ '' == \l\x\c\.\n\e\t\w\o\r\k\.\l\i\n\k ]] + read LINE + rm -f /var/lib/lxc/centos72-mitaka/config.def + '[' -e /usr/share/lxc/config/centos.common.conf ']' + echo ' # Include common configuration lxc.include = /usr/share/lxc/config/centos.common.conf ' + cat + '[' 0 -ne 0 ']' + return 0 + '[' 0 -ne 0 ']' + install_centos + mkdir -p /var/lock/subsys/ + flock -x 9 + '[' 0 -ne 0 ']' + echo 'Checking cache download in /var/cache/lxc/centos/x86_64/7/rootfs ... ' Checking cache download in /var/cache/lxc/centos/x86_64/7/rootfs ... + '[' '!' -e /var/cache/lxc/centos/x86_64/7/rootfs ']' + download_centos + INSTALL_ROOT=/var/cache/lxc/centos/x86_64/7/partial + mkdir -p /var/cache/lxc/centos/x86_64/7/partial + '[' 0 -ne 0 ']' + echo 'Downloading CentOS minimal ...' Downloading CentOS minimal ... + YUM0='yum --installroot /var/cache/lxc/centos/x86_64/7/partial -y --nogpgcheck' + yum -h + grep -q releasever=RELEASEVER Redirecting to '/usr/bin/dnf -h' (see 'man yum2dnf') + YUM='yum --installroot /var/cache/lxc/centos/x86_64/7/partial -y --nogpgcheck' + PKG_LIST='yum initscripts passwd rsyslog vim-minimal openssh-server openssh-clients dhclient chkconfig rootfiles policycoreutils' + REPO_FILE=/var/cache/lxc/centos/x86_64/7/partial/etc/yum.repos.d/lxc-centos-temp.repo ++ dirname /var/cache/lxc/centos/x86_64/7/partial/etc/yum.repos.d/lxc-centos-temp.repo + mkdir -p /var/cache/lxc/centos/x86_64/7/partial/etc/yum.repos.d + '[' -n http://merlin.fit.vutbr.cz/mirrors/centos/7.2.1511/os/x86_64/ ']' + cat + mkdir -p /var/cache/lxc/centos/x86_64/7/partial/dev + force_mknod 666 /var/cache/lxc/centos/x86_64/7/partial/dev/null c 1 3 + rm -f /var/cache/lxc/centos/x86_64/7/partial/dev/null + mknod -m 666 /var/cache/lxc/centos/x86_64/7/partial/dev/null c 1 3 + force_mknod 666 /var/cache/lxc/centos/x86_64/7/partial/dev/urandom c 1 9 + rm -f /var/cache/lxc/centos/x86_64/7/partial/dev/urandom + mknod -m 666 /var/cache/lxc/centos/x86_64/7/partial/dev/urandom c 1 9 + yum --installroot /var/cache/lxc/centos/x86_64/7/partial -y --nogpgcheck install yum initscripts passwd rsyslog vim-minimal openssh-server openssh-clients dhclient chkconfig rootfiles policycoreutils Redirecting to '/usr/bin/dnf --installroot /var/cache/lxc/centos/x86_64/7/partial -y --nogpgcheck install yum initscripts passwd rsyslog vim-minimal openssh-server openssh-clients dhclient chkconfig rootfiles policycoreutils' (see 'man yum2dnf') Error: Failed to synchronize cache for repo 'fedora' + '[' 1 -ne 0 ']' + echo 'Failed to download the rootfs, aborting.' Failed to download the rootfs, aborting. + return 1 + '[' 1 -ne 0 ']' + echo 'Failed to download '\''CentOS base'\''' Failed to download 'CentOS base' + return 1 + return 1 + '[' 1 -ne 0 ']' + echo 'failed to install CentOS' failed to install CentOS + exit 1 Version-Release number of selected component (if applicable): lxc-libs-2.0.5-1.fc25.x86_64 lxc-templates-2.0.5-1.fc25.x86_64 lxc-2.0.5-1.fc25.x86_64 libvirt-daemon-lxc-2.2.0-2.fc25.x86_64 How reproducible: always Steps to Reproduce: 1. # lxc-create -n centos72-mitaka -t centos 2. # bash -x ./lxc-centos -R 7 -a x86_64 -n centos72-mitaka --repo http://merlin.fit.vutbr.cz/mirrors/centos/7.2.1511/os/x86_64/ 3. Actual results: The errors above Expected results: container created Additional info:
This message is a reminder that Fedora 25 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '25'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 25 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.