Public bug reported:

There is a bug in extract_root_fsimage_url that causes stack trace when 
attempting to extract a local filesystem image. 
The stack trace looks like below.
The bug is fairly clear in the following:


def extract_root_fsimage_url(url, target):
    path = _path_from_file_url(url)
    if path != url or os.path.isfile(path):
        return _extract_root_fsimage(path(url), target)


finish: cmd-install/stage-network/builtin/cmd-net-meta: SUCCESS: curtin command 
net-meta
start: cmd-install/stage-extract/builtin/cmd-extract: curtin command extract
Installing sources: [{'type': 'fsimage', 'uri': 
'file:///tmp/xenial-server-cloudimg-amd64.squashfs'}] to target at /target
start: cmd-install/stage-extract/builtin/cmd-extract: acquiring and extracting 
image from file:///tmp/xenial-server-cloudimg-amd64.squashfs
finish: cmd-install/stage-extract/builtin/cmd-extract: FAIL: acquiring and 
extracting image from file:///tmp/xenial-server-cloudimg-amd64.squashfs
finish: cmd-install/stage-extract/builtin/cmd-extract: FAIL: curtin command 
extract
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/curtin/commands/main.py", line 201, in 
main
    ret = args.func(args)
  File "/usr/lib/python3/dist-packages/curtin/commands/extract.py", line 135, 
in extract
    extract_root_fsimage_url(source['uri'], target=target)
  File "/usr/lib/python3/dist-packages/curtin/commands/extract.py", line 62, in 
extract_root_fsimage_url
    return _extract_root_fsimage(path(url), target)
TypeError: 'str' object is not callable
'str' object is not callable
curtin: Installation failed with exception: Unexpected error while running 
command.
Command: ['curtin', 'extract']
Exit code: 3
Reason: -
Stdout: start: cmd-install/stage-extract/builtin/cmd-extract: curtin command 
extract
        Installing sources: [{'type': 'fsimage', 'uri': 
'file:///tmp/xenial-server-cloudimg-amd64.squashfs'}] to target at /target
        start: cmd-install/stage-extract/builtin/cmd-extract: acquiring and 
extracting image from file:///tmp/xenial-server-cloudimg-amd64.squashfs
        finish: cmd-install/stage-extract/builtin/cmd-extract: FAIL: acquiring 
and extracting image from file:///tmp/xenial-server-cloudimg-amd64.squashfs
        finish: cmd-install/stage-extract/builtin/cmd-extract: FAIL: curtin 
command extract
        Traceback (most recent call last):
          File "/usr/lib/python3/dist-packages/curtin/commands/main.py", line 
201, in main
            ret = args.func(args)
          File "/usr/lib/python3/dist-packages/curtin/commands/extract.py", 
line 135, in extract
            extract_root_fsimage_url(source['uri'], target=target)
          File "/usr/lib/python3/dist-packages/curtin/commands/extract.py", 
line 62, in extract_root_fsimage_url
            return _extract_root_fsimage(path(url), target)
        TypeError: 'str' object is not callable
        'str' object is not callable

Stderr: ''

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: curtin 18.1-17-gae48e86f-0ubuntu1~18.04.1
ProcVersionSignature: User Name 4.15.0-22.24-generic 4.15.17
Uname: Linux 4.15.0-22-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.9-0ubuntu7.1
Architecture: amd64
Date: Thu Jun  7 14:19:57 2018
Ec2AMI: ami-0000059f
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
 TERM=screen-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
 SHELL=/bin/bash
SourcePackage: curtin
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: curtin
     Importance: Medium
         Status: Confirmed

** Affects: curtin (Ubuntu)
     Importance: Medium
         Status: Confirmed


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

** Changed in: curtin (Ubuntu)
       Status: New => Confirmed

** Changed in: curtin (Ubuntu)
   Importance: Undecided => Medium

** Also affects: curtin
   Importance: Undecided
       Status: New

** Changed in: curtin
       Status: New => Confirmed

** Changed in: curtin
   Importance: Undecided => Medium

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

Title:
  fails to install with fsimage source file:///foo.squashfs

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to