Public bug reported:

Curtin process failed during MaaS deployment. The infrastructure worked
well until ~3 weeks ago.


[Steps to Reproduce]
1. Enlist and commission a KVM-based VM in MaaS 2.8.2 (8577-g.a3e674063)
2. Deploy the VM node

[Expected Result]
1. The VM is deployed

[Actual Result]
Curtin failed during the deployment

Here is the error message:


        Generating grub debconf_selections for devices=['/dev/vda'] uefi=False
        finish: cmd-install/stage-curthooks/builtin/cmd-curthooks/install-grub: 
FAIL: installing grub to target devices
        finish: 
cmd-install/stage-curthooks/builtin/cmd-curthooks/configuring-bootloader: FAIL: 
configuring target system bootloader
        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 1770, in curthooks
            builtin_curthooks(cfg, target, state)
          File "/curtin/curtin/commands/curthooks.py", line 1736, in 
builtin_curthooks
            setup_grub(cfg, target, osfamily=osfamily)
          File "/curtin/curtin/commands/curthooks.py", line 689, in setup_grub
            configure_grub_debconf(instdevs, target, uefi_bootable)
          File "/curtin/curtin/commands/curthooks.py", line 509, in 
configure_grub_debconf
            link = block.disk_to_byid_path(dev)
          File "/curtin/curtin/block/__init__.py", line 869, in 
disk_to_byid_path
            mapping = get_dev_disk_byid()
          File "/curtin/curtin/block/__init__.py", line 861, in 
get_dev_disk_byid
            return _get_dev_disk_by_prefix('/dev/disk/by-id')
          File "/curtin/curtin/block/__init__.py", line 846, in 
_get_dev_disk_by_prefix
            for path in os.listdir(prefix)]
        FileNotFoundError: [Errno 2] No such file or directory: 
'/dev/disk/by-id'
        [Errno 2] No such file or directory: '/dev/disk/by-id'


VM kernel: Linux scalebot-dev-controller5 4.15.0-117-generic #118-Ubuntu SMP 
Fri Sep 4 20:02:41 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: curtin (not installed)
ProcVersionSignature: User Name 4.15.0-117.118-generic 4.15.18
Uname: Linux 4.15.0-117-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.9-0ubuntu7.17
Architecture: amd64
Date: Thu Sep 17 04:38:32 2020
SourcePackage: curtin
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: curtin (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic uec-images

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1895922

Title:
  maas could not deploy a kvm-based vm via virsh

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1895922/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to