Release Notes

v0.16.4-3

Bug Fixes

  • Remove broken link to non-existent Docker template

v0.16.0

Upgrade Notes

  • Upgrade Ansible version to v2.15.9.

v0.15.2

Deprecation Notes

  • Deprecate JSON format var and templates

    With the release of common-paker v0.14.0 (commit 6e2fdc9fb5be1d9843d14b6a) the packer version v1.9.x supports only HCL format templates and var files. These older JSON format files are no longer used with the packer verify and merge jobs.

    All packer templates have been migrated from JSON to HCL2 format with v0.14.X release.

    JSON format templates are deprecated and no longer used with packer version > 1.9.x. Therefore remove the deprecated files from the repository.

v0.14.1

Known Issues

  • RSA/SHA-1 was deprecated in the latest OpenSSH release 8.8 causing builds fail with the following error:

    Data could not be sent to remote host “127.0.0.1”. Make sure this host can be reached over ssh: command-line: line 0: Bad configuration option: pubkeyacceptedalgorithms

Bug Fixes

  • Add workaroud and pass required HostKeyAlgorithms through ssh extra argumements.

v0.14.0

Prelude

As of packer version 1.7.0 HCL2 is the preferred way to write Packer templates. HCL2 preserves existing workflows while leveraging HCL2’s advanced features like variable interpolation and configuration composability.

New Features

  • Modify devstack templates for Ubuntu/Debian distributions.

Known Issues

Upgrade Notes

  • Migrate packer templates from JSON to HCL2 format. JSON format templates are deprecated and no longer works with packer version > 1.9.x.

    Existing JSON templates can be converted to ‘.pkr.hcl’ using:

    packer hcl2_upgrade -with-anotations <folder|filename>
    

    Packer version 1.9.1 will be minimum required version for packer jobs. This version requires installing the cloud specific plugin through packer config and needs to be initalize and download before running packer build.

    <temmplate>.pkr.hcl includes the sources and builds are defined. .auto.pkrvars.hcl includes variables that are loaded automatically. These variables load automatically from the same directory and are common across templates. variables.pkr.hcl includes variable declarations that are common across templates.

    Reference: https://developer.hashicorp.com/packer/guides/hcl/variables https://developer.hashicorp.com/packer/docs/templates/hcl_templates https://github.com/hashicorp/packer-plugin-openstack/blob/main/README.md

Deprecation Notes

  • Support for ‘.json’ templates will be removed from common-packer in subsequent release to give enough time for projects consuming to upgrade. All projects specific templates not available in this repository are required to convert existing ‘.json’ to ‘.pkr.hcl’ format.

v0.13.0

New Features

  • Add Openstack devstack templates and provisioner to common-packer.

  • Add GHA packer validation job to common-packer.

v0.12.1

Known Issues

  • Error running “./common-packer/ansible-playbook.sh –version”: exit status 1

Bug Fixes

  • Skip ansible provisioners version check. Packer provisioners invokes the ansible version check, which can be skipped since the provisioner is invoking a custom script.

v0.12.0

Prelude

Install ansible and ansible-playbook using PyPI.

Known Issues

  • Error:

    Problem: package ansible-5.4.0-3.el8.noarch requires (ansible-core >= 2.12.2 with ansible-core < 2.13), but none of the providers can be installed

Bug Fixes

  • Install ansible through system packages causes dependencies conflicts on CentOS 8 platform therefore update packer templates to use ansible provisioner created through venv.

v0.11.0

Upgrade Notes

  • Upgrade git v2.36 on CentOS 7.

v0.10.2

New Features

  • Add support for CentOS Stream 9

Bug Fixes

  • Import correct GPG keys for sigul and EL8

    Sigul 1.1.1 is signed by the Fedora infrastructure GPG key therefore import the Fedora infra key before installing the updated version on Sigul for CentOS8.

    Import the EL8 GPG keys without which would fail while installing several dependencies.

v0.10.0

New Features

  • Add support for CentOS Streams 8

v0.9.2

Bug Fixes

  • Add community.general as part of the required collections. Required for tasks defined in local-docker specific to Magma to enable and manage virtualization tools.

v0.9.1

Bug Fixes

v0.9.0

New Features

  • Feat: Add support for Docker builder on arm64

    The original change e24c07369afd514abdf3efb0f596f772261412ed missed updating arm64 var files, while the builder templates were updated. This breaks the packer verify jobs.

    Error:

    required variable not set: docker_source_image’

  • Add support for Docker builder on Windows

    The original change e24c07369afd514abdf3efb0f596f772261412ed missed updating Windows var files, while the builder templates were updated. This breaks the packer verify jobs.

    Error:

    required variable not set: docker_source_image’

Bug Fixes

  • All vars files have been updated to properly include the AMI product code filter. This is needed to properly pass global-jjb verification.

v0.8.0

New Features

  • Docker image builds are now supported by the packer templates.

Upgrade Notes

  • Requires first upgrading global-jjb to version v0.57.0 to pull in support for selecting a packer-builder in the packer-merge jobs, otherwise existing project packer-merge job builds may fail without the global-jjb updates if builds are run on a Jenkins node that does not support Docker.

  • Projects using AWS must ensure that the packer-merge jobs are updated to set packer-builder to aws.

    Example:

    - project:
        name: packer-builder-jobs
        jobs:
          - gerrit-packer-merge
    
        project: releng/builder
        project-name: builder
        branch: master
        archive-artifacts: "**/*.log"
    
        build-node: centos7-builder-2c-1g
        build-timeout: 90
        cron: "00 H 1 * *"
    
        platforms:
          - centos-7
          - centos-8
    
        packer-builder: aws
        templates: builder
        update-cloud-image: true
    

v0.7.6

Upgrade Notes

  • Upgrade lf-standard-* flavors to v3

    v3 flavors guarantees jobs spin on newer hardware that are faster and cost-efficient than the v2 flavors.

v0.7.1

Known Issues

  • Remove availability zone from Openstack templates. This was causing errors, and is unnecessary (there is only one AZ for these images).

v0.6.1

Bug Fixes

  • Updated Ubuntu 18.04 image as the previous base image was uploaded in qcow2 format. This caused timeouts in packer builds. New image is in raw format.

    Replaces: “LF - Ubuntu 18.04 LTS (2020-07-28)”

    With: “LF - Ubuntu 18.04 LTS (2019-12-11)”

v0.6.0

New Features

  • CentOS 7 builds will now include the Sigul client by default. This package is now in use by most projects, and is being downloaded whenever it is needed. This has particularly been a problem due to frequent connection issues with the kojipkgs servers that host the sigul package.

Upgrade Notes

v0.5.2

Bug Fixes

v0.5.0

Upgrade Notes

  • Add CentOS 8.x base image.

v0.4.2

Bug Fixes

  • Use netselect to choose a package mirror to install python-minimal in a reliable manner.

    apt{-get} does not refresh the package mirrors (for packer builds run within Jenkins), therefore fails with “E: Unable to locate package python-minimal” while installing python-minimal.

v0.3.1

Bug Fixes

  • The EC2 (aws) template had an extra configuration option that was added but had not been properly tested. This option is removed allowing aws based templates to properly validate and build.

  • Pygments release 2.4.0 which added a python requires that excludes all versions of Python < 3.5. The LFCI default 3 version is 3.4 so causes build failure.

  • Request-2.22.0 does not work with python-3.4.9, so pin requests to v2.21.0 to address the tox failures.

  • Ansible supports lists passed to package install that can avoid using with_items. Using with_items makes multiple calls to the packages manager slowing down the performance.

v0.3.0

New Features

  • More control over Openstack images is now allowed. This includes selection of cloud, availability zone, if volumes should be created and at what size and format.

Upgrade Notes

  • Packer 1.3.2 is now required to support Openstack block storage and disk format requirements

  • The CentOS 7.6 1811 base image is uploaded on the cloud provider. Switch the packer var files to build from the latest CentOS 7.6 1811 base image.

v0.1.0

Upgrade Notes

  • Requires Global JJB v0.26.0 minimum.