[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:
Blocks
blocks INTPAK-234 Update docker image Open
blocks INTPAK-56 Update all Packer-built images Open
blocks INTPAK-26 Add docs about Packer builds, VM/cont... Open
blocks INTPAK-27 Push Packer-built VMs to Atlas Open
blocks INTPAK-28 Push Packer-built containers to Docke... Open
blocks INTPAK-95 Fix `Bad protocol 2 host key algorith... Open
Relates
relates to INTPAK-36 Add job to test ODL containers Open
relates to INTPAK-37 Add job to test ODL VMs Open
relates to COE-30 Make CNI container image available on... Resolved

 Description   

> $ packer build -h
> -var 'key=value' Variable for templates, can be used multiple times.
> -var-file=path JSON file containing user variables.

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.

Imported from Trello



 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.

https://docs.openstack.org/image-guide/convert-images.html

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:

https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=tree;f=packer;h=4b9ec0a0d2a5c44fa3dcca180b9300b32ade57d1;hb=refs/heads/master

Generated at Wed Feb 07 20:03:21 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.