Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
Kea
Kea
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 445
    • Issues 445
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 71
    • Merge Requests 71
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • ISC Open Source Projects
  • KeaKea
  • Issues
  • #1370

Closed
Open
Opened Aug 04, 2020 by Tomek Mrugalski@tomek🛰Owner

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.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Outstanding
Milestone
Outstanding
Assign milestone
Time tracking
None
Due date
None
Reference: isc-projects/kea#1370