Bug 32190 - Mageia LXC template script outdated and buggy
Summary: Mageia LXC template script outdated and buggy
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: David GEIGER
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-24 15:33 CEST by Herbert Poetzl
Modified: 2023-08-24 23:13 CEST (History)
1 user (show)

See Also:
Source RPM: lxc-templates-3.0.4-3.mga9.src.rpm
CVE:
Status comment:


Attachments

Description Herbert Poetzl 2023-08-24 15:33:05 CEST
Description of problem:
Creating an LXC Mageia container is currently not possible, because the script which is supposed to do that does not work as intended.

Version-Release number of selected component (if applicable):
3.0.4-3

How reproducible:
Always

Steps to Reproduce:
1. Install lxc and lxc-templates
2. Run lxc-create -t mageia -n TEST
3. Watch it fail ...

Unfortunately replacing the basesystem-uml package with basesystem-minimal and the deprecated --no-suggests does not make it work either as it finally fails with:

lxc-create: TEST: ../src/lxc/confile.c: set_config_unsupported_key: 164 Invalid argument - Unsupported config key "lxc.utsname"
lxc-create: TEST: ../src/lxc/parse.c: lxc_file_for_each_line_mmap: 129 Failed to parse config file "/var/lib/lxc/TEST/config" at line "lxc.utsname = TEST"
lxc-create: TEST: ../src/lxc/tools/lxc_create.c: main: 317 Failed to create container TEST

This seems to be because the legacy keys are not longer supported in LXC 3.0
Comment 1 Lewis Smith 2023-08-24 20:46:37 CEST
Thank you for your report.
> 3. Watch it fail ...
Can you please post the output...

Assigning this to DavidG who is the maintainer of this pkg.

Assignee: bugsquad => geiger.david68210

Comment 2 Herbert Poetzl 2023-08-24 23:13:13 CEST
Sure, here the output with the current lxc-templates package:

# lxc-create -t mageia -n TEST 
Checking cache download in /var/cache/lxc/mageia//9/x86_64/default/rootfs ... 
/var/cache/lxc/mageia//9/x86_64/default/rootfs
Setting mageia mirrors ...
adding medium "Core Release"
adding medium "Core Release Debug" (ignored by default)
adding medium "Core Updates"
adding medium "Core Updates Debug" (ignored by default)
adding medium "Core Updates Testing" (ignored by default)
adding medium "Core Updates Testing Debug" (ignored by default)
adding medium "Core Backports" (ignored by default)
adding medium "Core Backports Debug" (ignored by default)
adding medium "Core Backports Testing" (ignored by default)
adding medium "Core Backports Testing Debug" (ignored by default)
adding medium "Nonfree Release" (ignored by default)
adding medium "Nonfree Release Debug" (ignored by default)
adding medium "Nonfree Updates" (ignored by default)
adding medium "Nonfree Updates Debug" (ignored by default)
adding medium "Nonfree Updates Testing" (ignored by default)
adding medium "Nonfree Updates Testing Debug" (ignored by default)
adding medium "Nonfree Backports" (ignored by default)
adding medium "Nonfree Backports Debug" (ignored by default)
adding medium "Nonfree Backports Testing" (ignored by default)
adding medium "Nonfree Backports Testing Debug" (ignored by default)
adding medium "Tainted Release" (ignored by default)
adding medium "Tainted Release Debug" (ignored by default)
adding medium "Tainted Updates" (ignored by default)
adding medium "Tainted Updates Debug" (ignored by default)
adding medium "Tainted Updates Testing" (ignored by default)
adding medium "Tainted Updates Testing Debug" (ignored by default)
adding medium "Tainted Backports" (ignored by default)
adding medium "Tainted Backports Debug" (ignored by default)
adding medium "Tainted Backports Testing" (ignored by default)
adding medium "Tainted Backports Testing Debug" (ignored by default)
adding medium "Core 32bit Release" (ignored by default)
adding medium "Core 32bit Updates" (ignored by default)
adding medium "Core 32bit Updates Testing" (ignored by default)
adding medium "Core 32bit Backports" (ignored by default)
adding medium "Core 32bit Backports Testing" (ignored by default)
adding medium "Nonfree 32bit Release" (ignored by default)
adding medium "Nonfree 32bit Updates" (ignored by default)
adding medium "Nonfree 32bit Updates Testing" (ignored by default)
adding medium "Nonfree 32bit Backports" (ignored by default)
adding medium "Nonfree 32bit Backports Testing" (ignored by default)
adding medium "Tainted 32bit Release" (ignored by default)
adding medium "Tainted 32bit Updates" (ignored by default)
adding medium "Tainted 32bit Updates Testing" (ignored by default)
adding medium "Tainted 32bit Backports" (ignored by default)
adding medium "Tainted 32bit Backports Testing" (ignored by default)
    $MIRRORLIST: media/core/release/media_info/20230819-212352-synthesis.hdlist.cz
    $MIRRORLIST: media/core/updates/media_info/20230811-204955-synthesis.hdlist.cz                                                                                                                                                             
Downloading/installing Mageia minimal system ...                                                                                                                                                                                               
WARNING: --no-suggests is deprecated. Use --no-recommends instead
No package named basesystem-uml
Failed to download the rootfs, aborting.
Failed to download 'mageia basesystem-minimal'
failed to install Mageia
lxc-create: TEST: ../src/lxc/lxccontainer.c: create_run_template: 1628 Failed to create container from template
lxc-create: TEST: ../src/lxc/tools/lxc_create.c: main: 317 Failed to create container TEST

CC: (none) => herbert


Note You need to log in before you can comment on or make changes to this bug.