fails to install with fsimage source file:///foo.squashfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
Medium
|
Unassigned | ||
curtin (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
There is a bug in extract_
The stack trace looks like below.
The bug is fairly clear in the following:
def extract_
path = _path_from_
if path != url or os.path.
return _extract_
finish: cmd-install/
start: cmd-install/
Installing sources: [{'type': 'fsimage', 'uri': 'file:/
start: cmd-install/
finish: cmd-install/
finish: cmd-install/
Traceback (most recent call last):
File "/usr/lib/
ret = args.func(args)
File "/usr/lib/
extract_
File "/usr/lib/
return _extract_
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/
Installing sources: [{'type': 'fsimage', 'uri': 'file:/
start: cmd-install/
finish: cmd-install/
finish: cmd-install/
Traceback (most recent call last):
File "/usr/lib/
ret = args.func(args)
File "/usr/lib/
File "/usr/lib/
return _extract_
TypeError: 'str' object is not callable
'str' object is not callable
Stderr: ''
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: curtin 18.1-17-
ProcVersionSign
Uname: Linux 4.15.0-22-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.1
Architecture: amd64
Date: Thu Jun 7 14:19:57 2018
Ec2AMI: ami-0000059f
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: m1.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
PackageArchitec
ProcEnviron:
TERM=screen-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: curtin
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Ryan Harper (community): Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 560 lines (+234/-38)15 files modifiedcurtin/commands/curthooks.py (+2/-2)
curtin/commands/extract.py (+1/-1)
curtin/commands/install.py (+16/-5)
curtin/url_helper.py (+1/-1)
curtin/util.py (+9/-4)
debian/changelog (+16/-0)
tests/unittests/test_commands_collect_logs.py (+26/-14)
tests/unittests/test_commands_extract.py (+72/-0)
tests/unittests/test_commands_install.py (+40/-0)
tests/unittests/test_util.py (+1/-1)
tests/vmtests/__init__.py (+1/-1)
tests/vmtests/image_sync.py (+1/-1)
tools/curtainer (+21/-6)
tools/vmtest-sync-images (+0/-1)
tox.ini (+27/-1)
- Server Team CI bot: Approve (continuous-integration)
- Ryan Harper (community): Approve
-
Diff: 104 lines (+75/-1)3 files modifiedcurtin/commands/extract.py (+1/-1)
curtin/util.py (+2/-0)
tests/unittests/test_commands_extract.py (+72/-0)
An upstream commit landed for this bug.
To view that commit see the following URL: /git.launchpad. net/curtin/ commit/ ?id=1bc868b4
https:/