hammer: lxc-utils missing in ensure-hammer-deps
I tried to build packages using hammer on my ubuntu 20.04. I did use ensure-hammer-deps before that. However, I got the following error:
$ ./hammer.py build -p lxc -s ubuntu -r 20.04 -w native-pkg --pkg-version 1.6.3 --pkg-isc-version iscMyOWN --repository-url https://packages.isc.org
[HAMMER] 2020-08-04 12:38:09,109 Enabled features: radius perfdhcp mysql install pgsql docs native-pkg shell
[HAMMER] 2020-08-04 12:38:09,109 Build plan:
[HAMMER] 2020-08-04 12:38:09,109 - lxc, ubuntu, 20.04
[HAMMER] 2020-08-04 12:38:09,109
[HAMMER] 2020-08-04 12:38:09,109 >>> Building lxc, ubuntu, 20.04
[HAMMER] 2020-08-04 12:38:09,109
[HAMMER] 2020-08-04 12:38:10,564 Prepared vagrant system hmr-ubuntu-20-04-kea-srv-2711868084 in /home/thomson/devel/kea-packaging/hammer/ubuntu-20.04/lxc
[HAMMER] 2020-08-04 12:38:10,564 >>>>> Executing vagrant status in /home/thomson/devel/kea-packaging/hammer/ubuntu-20.04/lxc
[HAMMER] 2020-08-04 12:38:11,302 The `lxc` package does not seem to be installed or `lxc-create` is not accessible on the PATH.
[HAMMER] 2020-08-04 12:38:11,302 >>>>> Executing vagrant destroy --force in /home/thomson/devel/kea-packaging/hammer/ubuntu-20.04/lxc
The `lxc` package does not seem to be installed or `lxc-create` is not accessible on the PATH.
Traceback (most recent call last):
File "./hammer.py", line 2419, in <module>
main()
File "./hammer.py", line 2402, in main
build_cmd(args)
File "./hammer.py", line 2354, in build_cmd
result = build_in_vagrant(provider, system, revision, features, args.leave_system, args.from_tarball,
File "./hammer.py", line 1910, in build_in_vagrant
ve.destroy()
File "./hammer.py", line 800, in destroy
execute(cmd, cwd=self.vagrant_dir, timeout=3 * 60, dry_run=self.dry_run) # timeout: 3 minutes
File "./hammer.py", line 317, in execute
raise ExecutionError("The command return non-zero exitcode %s, cmd: '%s'" % (exitcode, cmd))
__main__.ExecutionError: The command return non-zero exitcode 1, cmd: 'vagrant destroy --force'
thomson@tycho:~/devel/kea-packaging$
adding sudo apt install lxc-utils
did the trick, but this is something hammer should do with ensure-hammer-deps.