Missing packaging mapping for SUSE

Bug #1843440 reported by Lee Trager
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin
Triaged
Wishlist
Unassigned

Bug Description

I tried to deploy an openSUSE image[1] and Curtin failed with the message below. Note I had to work around LP:1843284 by changing /etc/os-release to set the ID to opensuse.

Configuring target system for distro: opensuse osfamily: suse
start: cmd-install/stage-curthooks/builtin/cmd-curthooks/installing-missing-packages: installing missing packages
Running command ['mount', '--bind', '/dev', '/tmp/tmpr13r_izh/target/dev'] with allowed return codes [0] (capture=False)
Running command ['mount', '--bind', '/proc', '/tmp/tmpr13r_izh/target/proc'] with allowed return codes [0] (capture=False)
Running command ['mount', '--bind', '/sys', '/tmp/tmpr13r_izh/target/sys'] with allowed return codes [0] (capture=False)
Running command ['unshare', '--help'] with allowed return codes [0] (capture=True)
Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpr13r_izh/target', 'rpm', '-qa', '--queryformat', 'ii %{NAME} %{VERSION}-%{RELEASE}\n'] with allowed return codes [0] (capture=True)
Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
TIMED subp(['udevadm', 'settle']): 0.018
Running command ['umount', '/tmp/tmpr13r_izh/target/sys'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmpr13r_izh/target/proc'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmpr13r_izh/target/dev'] with allowed return codes [0] (capture=False)
finish: cmd-install/stage-curthooks/builtin/cmd-curthooks/installing-missing-packages: FAIL: installing missing packages
finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: FAIL: curtin command curthooks
Traceback (most recent call last):
  File "/curtin/curtin/commands/main.py", line 202, in main
    ret = args.func(args)
  File "/curtin/curtin/commands/curthooks.py", line 1471, in curthooks
    builtin_curthooks(cfg, target, state)
  File "/curtin/curtin/commands/curthooks.py", line 1306, in builtin_curthooks
    install_missing_packages(cfg, target, osfamily=osfamily)
  File "/curtin/curtin/commands/curthooks.py", line 872, in install_missing_packages
    detect_required_packages(cfg, osfamily=osfamily)
  File "/curtin/curtin/commands/curthooks.py", line 835, in detect_required_packages
    'storage': bdeps.detect_required_packages_mapping(osfamily=osfamily),
  File "/curtin/curtin/block/deps.py", line 97, in detect_required_packages_mapping
    raise ValueError('No block package mapping for distro: %s' % osfamily)
ValueError: No block package mapping for distro: suse
No block package mapping for distro: suse
curtin: Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'curthooks']
Exit code: 3
Reason: -
Stdout: start: cmd-install/stage-curthooks/builtin/cmd-curthooks: curtin command curthooks
        Running curtin builtin curthooks
        Configuring target system for distro: opensuse osfamily: suse
        start: cmd-install/stage-curthooks/builtin/cmd-curthooks/installing-missing-packages: installing missing packages
        Running command ['mount', '--bind', '/dev', '/tmp/tmpr13r_izh/target/dev'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/proc', '/tmp/tmpr13r_izh/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['mount', '--bind', '/sys', '/tmp/tmpr13r_izh/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['unshare', '--help'] with allowed return codes [0] (capture=True)
        Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpr13r_izh/target', 'rpm', '-qa', '--queryformat', 'ii %{NAME} %{VERSION}-%{RELEASE}\n'] with allowed return codes [0] (capture=True)
        Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
        TIMED subp(['udevadm', 'settle']): 0.018
        Running command ['umount', '/tmp/tmpr13r_izh/target/sys'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpr13r_izh/target/proc'] with allowed return codes [0] (capture=False)
        Running command ['umount', '/tmp/tmpr13r_izh/target/dev'] with allowed return codes [0] (capture=False)
        finish: cmd-install/stage-curthooks/builtin/cmd-curthooks/installing-missing-packages: FAIL: installing missing packages
        finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: FAIL: curtin command curthooks
        Traceback (most recent call last):
          File "/curtin/curtin/commands/main.py", line 202, in main
            ret = args.func(args)
          File "/curtin/curtin/commands/curthooks.py", line 1471, in curthooks
            builtin_curthooks(cfg, target, state)
          File "/curtin/curtin/commands/curthooks.py", line 1306, in builtin_curthooks
            install_missing_packages(cfg, target, osfamily=osfamily)
          File "/curtin/curtin/commands/curthooks.py", line 872, in install_missing_packages
            detect_required_packages(cfg, osfamily=osfamily)
          File "/curtin/curtin/commands/curthooks.py", line 835, in detect_required_packages
            'storage': bdeps.detect_required_packages_mapping(osfamily=osfamily),
          File "/curtin/curtin/block/deps.py", line 97, in detect_required_packages_mapping
            raise ValueError('No block package mapping for distro: %s' % osfamily)
        ValueError: No block package mapping for distro: suse
        No block package mapping for distro: suse

[1] https://download.opensuse.org/repositories/Cloud:/Images:/Leap_15.1/images/

Revision history for this message
Lee Trager (ltrager) wrote :
Ryan Harper (raharper)
Changed in curtin:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Ryan Harper (raharper) wrote :

Would you happen to know if SuSE requires additional packages for vlans, bonds or bridges?

Revision history for this message
Lee Trager (ltrager) wrote :

No, because Curtin fails GRUB is never setup so I can't boot into the system.

Revision history for this message
Ryan Harper (raharper) wrote :

What about booting the existing images (the qcow2 or openstack one) and checking it out? Just hoping for some inputs; curtin will need to know what, if any packages are needed for the mapping.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.