Various usability issues with adt-buildvm-ubuntu-cloud
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopkgtest (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
$ adt-buildvm-
WARNING: python-distro-info not installed, falling back to determining default release from currently installed release
Downloading http://
285.0/286.5 MB (100%)
Download successful.
Resizing image, adding 4G...
Image resized.
Building seed image...
Traceback (most recent call last):
File "/usr/bin/
args.metadata, args.userdata, args.post_command)
File "/usr/bin/
cwd=workdir)
File "/usr/lib/
restore_
File "/usr/lib/
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: 'genisoimage'
Similar to bug 1460066, it would be nice if I discovered this before downloading the image, or the downloaded image were cached so I didn't have to download it again.
Second, on retry I get:
Could not access KVM kernel module: Permission denied
failed to initialize KVM: Permission denied
qemu failed with status 1
...because I didn't belong to the kvm group.
My workflow often involves running autopkgtest on a fresh VM, so I hit these kinds of things often. Maybe a image download cache is the only real solution that will work, rather than trying to manage each thing individually?
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: autopkgtest 3.14.3
ProcVersionSign
Uname: Linux 3.19.0-20-generic x86_64
ApportVersion: 2.17.3-0ubuntu4
Architecture: amd64
Date: Thu Jun 18 12:26:51 2015
Ec2AMI: ami-00000413
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: m1.large
Ec2Kernel: aki-00000002
Ec2Ramdisk: ari-00000002
PackageArchitec
SourcePackage: autopkgtest
UpgradeStatus: No upgrade log present (probably fresh install)
Maintaining a cache is a lot of effort which by itself can go wrong. You regularly need to prune the cache, and images there would only last for a day anyway. E. g. ~/.cache/ ubuntuimages is a great example how not to do it, it keeps growing and cluttering your disk.
I'll add checks for /dev/kvm and genisoimage, thanks!