[INTPAK-12] Add Jenkins jobs that do Packer builds, accepting vars as key:value params vs using var-files Created: 01/Nov/17 Updated: 29/Jan/19 |
|
| Status: | Open |
| Project: | integration-packaging |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Low |
| Reporter: | Daniel Farrell | Assignee: | Daniel Farrell |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
> $ packer build -h We currently build using a combination of OS and ODL var files, something like: > $ packer build -var-file=vars/opendaylight-4.4.0.json -var-file=vars/fedora-24.json templates/virtualbox.json Need to add a job that uses the other method of passing vars, as key:value pairs. Job should accept the vars as params. Mostly done here: https://git.opendaylight.org/gerrit/#/c/60435/ Has some failures due to changes in underlying deps. Some build types could be merged as-is. Patch should be retested, maybe any failing jobs extracted to a follow-up patch. Of course, should download boxes and verify they actually work. In particular, check that the Fedora VM boot errors documented on this Trello don't still happen. |
| Comments |
| Comment by Daniel Farrell [ 12/Jan/18 ] |
|
This is running into issues related to the new infra on at least two fronts. For the Docker build job, it hangs when running Ansible when curling down ODL's .repo file. docker: TASKĀ [opendaylight : Download ODL yum repo] agrimberg and I talked about this before the break but I don't recall exactly what the future fix would be. For the VirtualBox build job, it fails with VT-x missing. Talking with the CTO of Vexxhost, he confirmed that it's not provided. He said qemu builds should work, and there's a way to confirm the resulting qcow2 image to a VBox image. |
| Comment by Daniel Farrell [ 15/Jan/18 ] |
|
The LibVirt builds in the sandbox fail without a useful error message, just timeout trying to SSH into the box. Trying locally, I see this error: fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!"} |
| Comment by Daniel Farrell [ 15/Jan/18 ] |
|
I've fixed this python binding issues inĀ 66629, but checking out that change and running in the sandbox still fails with SSH connection to the box timing out after an hour of trying. Still not seeing any useful error. |
| Comment by Daniel Farrell [ 06/Dec/18 ] |
|
FYI, the underlying Packer logic is here: |