Kevin Sandi [Mon, 7 Apr 2025 22:18:16 +0000 (16:18 -0600)]
Fix: Remove deprecated mirror repos
Signed-off-by: Kevin Sandi <ksandi@contractor.linuxfoundation.org>
Change-Id: I2d2b13958545a32216c3d2d82b108a06504890d3
Andrew Grimberg [Wed, 23 Oct 2024 22:27:04 +0000 (22:27 +0000)]
Merge "CI: Add Ubuntu 20.04 LTS var files"
Anil Belur [Tue, 22 Oct 2024 06:39:46 +0000 (16:39 +1000)]
CI: Add Ubuntu 20.04 LTS var files
Ubuntu 24.04 LTS Noble cloud images has been
uploaded on vexxhost and shared across projects.
Change-Id: I6f18ae23e1772eb7da9522fdc81eb0c0caef5d69
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Sat, 19 Oct 2024 07:17:13 +0000 (17:17 +1000)]
Fix: Update Ubuntu 22.04 dependencies for baseline
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: Ia055662cad9572a4032ac4880bbe85e8b3706ea9
Andrew Grimberg [Wed, 14 Aug 2024 22:46:42 +0000 (22:46 +0000)]
Merge "CI: Add github2gerrit workflow"
Anil Belur [Thu, 8 Aug 2024 02:16:00 +0000 (12:16 +1000)]
CI: Add github2gerrit workflow
Configure the github2gerrit workflow to allow PRs to
open Gerrit changes against the LFIT Gerrit system.
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: If8e290b797acf6b19e0a83137d47d029cd6f80bd
Andrew Grimberg [Mon, 3 Jun 2024 13:46:41 +0000 (06:46 -0700)]
CI: Change out conclusion getter
Issue: RELENG-5356
Change-Id: I73b48a2e05cfd6862d3624f8ee760bde0ed8a6ff
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Anil Belur [Tue, 28 May 2024 22:40:42 +0000 (08:40 +1000)]
Fix: Create missing symlink
Error:
playbook_file: provision/devstack-centos.yaml is invalid: stat
provision/devstack-centos.yaml: no such file or directory
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: Ibe2156ddc28ee127df36ac42a4389a0e2f5c5432
Anil Belur [Wed, 17 Apr 2024 23:35:01 +0000 (09:35 +1000)]
Chore: Update gerrit-review-action to latest v0.8
Change-Id: Icb84b97bb07f7633a550e631899134a105cc9480
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Andrew Grimberg [Wed, 10 Apr 2024 21:37:26 +0000 (21:37 +0000)]
Merge "Chore: Add Ubuntu 22.04 image to common packer"
Anil Belur [Tue, 2 Apr 2024 00:35:53 +0000 (10:35 +1000)]
Chore: Update gerrit-review-action to v0.7
- Pull in change to skip vote on local runs with act.
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I7ed874fc4d9f340187de2ff7a6cc1001afa67790
Anil Belur [Wed, 27 Mar 2024 04:09:38 +0000 (14:09 +1000)]
Chore: Add Ubuntu 22.04 image to common packer
Change-Id: I706d40f9ed865b8cf0c496be15fe32d42fd94bd3
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Matthew Watkins [Wed, 13 Mar 2024 17:09:03 +0000 (17:09 +0000)]
Fix: Add unshallow git to post-checkout operations
Issue: RELENG-5212
Change-Id: Ib44b91c636a26069162be963e533c645dfbd8c48
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Matthew Watkins [Wed, 13 Mar 2024 14:49:55 +0000 (14:49 +0000)]
Fix: Add RTD docs build configuration file
Also, exclude node_modules directory from linting tools
Issue: RELENG-5212
Change-Id: I73d2880bac202da76e411f636bdde3cbef1c974b
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Matthew Watkins [Wed, 13 Mar 2024 14:04:11 +0000 (14:04 +0000)]
Fix: Remove broken docs link to non-existent Docker template
Issue: RELENG-5212
Change-Id: I949618695c334a769d041d813459eb96a1545731
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Anil Belur [Wed, 6 Mar 2024 11:44:48 +0000 (21:44 +1000)]
Fix: Remove unsupported params with ansible 9.x
Error:
Unsupported parameters for (ansible.legacy.command) module: warn.
Supported parameters include: _raw_params, _uses_shell, argv, chdir,
creates, executable, expand_argument_vars, removes, stdin,
stdin_add_newline, strip_empty_ends.
Issue: RELENG-5175
Change-Id: I8cc076ac42824e4b92396021d088fffca25ae361
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Thu, 29 Feb 2024 02:53:48 +0000 (12:53 +1000)]
Fix: Remove unsupported param with ansible 9x
Error:
Unsupported parameters for (ansible.legacy.command) module: warn.
Supported parameters include: _raw_params, _uses_shell, argv, chdir,
creates, executable, expand_argument_vars, removes, stdin,
stdin_add_newline, strip_empty_ends.
Issue: RELENG-5175
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I20029e1bcf03b68a4a4681a23e332a8bcb5a0d97
Anil Belur [Thu, 29 Feb 2024 04:43:53 +0000 (14:43 +1000)]
Fix: Add packer version and OS_CLOUD env var
This settings are required for the packer validator workflow.
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: Idb064f00d3c7b066c0c37ace85a6860a3cda6b4a
Matthew Watkins [Thu, 22 Feb 2024 14:05:42 +0000 (14:05 +0000)]
Merge "Fix: Update GHA workflow for common-packer"
Anil Belur [Thu, 22 Feb 2024 07:33:11 +0000 (17:33 +1000)]
Fix: Update GHA workflow for common-packer
Issue: RELENG-5175
Change-Id: I4077f6ae5df9cf4b9559ada5f331323a110613f0
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Thu, 22 Feb 2024 03:47:35 +0000 (13:47 +1000)]
Fix: Re-factor repo to work with ansible 9.2.x
- The ansible roles have been updated to run on latest version on
Ansible and python 3.10.x are pulled in by common-packer returns
several errors with newer version of Ansible.
- The new version of ansible 9.2.x requires the code to be refactored
and moderenized accordingly.
- Update tox to run ansible lint.
- Fixes the following Violation Summary:
count tag profile rule associated tags
1 command-instead-of-module basic command-shell, idiom
2 key-order[task] basic formatting
4 literal-compare basic idiom
6 jinja[spacing] basic formatting (warning)
5 no-free-form basic syntax, risk
4 partial-become[play] basic unpredictability
4 schema[playbook] basic core
4 name[missing] basic idiom
11 name[play] basic idiom
3 yaml[octal-values] basic formatting, yaml
18 yaml[truthy] basic formatting, yaml
5 name[casing] moderate idiom
2 risky-file-permissions safety unpredictability
3 no-changed-when shared command-shell, idempotency
38 fqcn[action-core] production formatting
11 fqcn[action] production formatting
Issue: RELENG-5175
Change-Id: I2c6af03d197236328e2389f4694edab3fe40bfc4
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Fri, 16 Feb 2024 23:33:34 +0000 (09:33 +1000)]
Chore: Update lfit/checkout-gerrit-change-action
Update to latest v0.8
Update pre-commit deps to the latest
Change-Id: I7a07de690a17218157d1f65898e4cf296b0428a4
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Fri, 16 Feb 2024 10:42:31 +0000 (20:42 +1000)]
Fix: Update ansible and python > 3.10
ERROR: 9.0.1 Requires-Python >=3.10; 9.1.0
Requires-Python >=3.10; 9.2.0 Requires-Python >=3.10
Update ansible to 9.2.0
Change-Id: I46d78f3e77a5cad0d7ce1cc1074fc8e7ac53c3d0
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Mon, 12 Feb 2024 07:41:48 +0000 (17:41 +1000)]
Chore: Update to gerrit-review-action@v0.5
The gerrit-review-action@v0.3 shows the deprecation warnings that is
fixed in v0.5.
Warning: Node.js 16 actions are deprecated. Please update the
following actions to use Node.js 20: shimataro/ssh-key-action@v2.5.1.
For more information see:
Ref: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Change-Id: I1f193dd1f8e9bae2b35ca5c3864aa2e8283ba99c
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Mon, 12 Feb 2024 07:24:09 +0000 (17:24 +1000)]
Feat!: Upgrade to Ansible v2.15.9
Change-Id: I7f33da87c13724da6111992017d78bd0edd22aad
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Wed, 17 Jan 2024 07:59:44 +0000 (17:59 +1000)]
Fix: Add missing double quote
The
7f5b5f010949c introduced a typo which break the GHA verify.
Issue: RELENG-5094
Change-Id: I767da30bb98b3c4f75d3a94fca76259b0e1a6cc0
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Sat, 13 Jan 2024 03:39:10 +0000 (13:39 +1000)]
Chore: Update CentOS Stream 9 to latest
Issue: RELENG-5094
Change-Id: If5d851e1a49f7052e6a4a9e8307109cdf87b4ac7
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Andrew Grimberg [Mon, 8 Jan 2024 21:44:19 +0000 (13:44 -0800)]
CI: Remove release email
The lf-releng@lists.linuxfoundation.org mailing list is going away.
GitHub releases are already being generated (though the release notes
generation doesn't seem to be working 100% correctly) but this needs to
happen or we start getting failures soon.
Issue: RELENG-4931
Change-Id: I0a2e61cf67b1fd6fef38718d83a1531bc65825ef
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Anil Belur [Sat, 2 Dec 2023 13:12:25 +0000 (23:12 +1000)]
Chore!: Deprecate JSON format var and templates
With the release of common-paker v0.14.0 (
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.
Change-Id: I95c9a7fa434d57555ecdc8b02af5ef10b70f0ed7
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Sat, 2 Dec 2023 13:08:55 +0000 (23:08 +1000)]
Fix: Rename HCL packer files example
Change-Id: Ibf65b3c2264c393934c6c8f1459e48c0970b02f6
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Andrew Grimberg [Mon, 6 Nov 2023 23:16:50 +0000 (15:16 -0800)]
Fix: Run command should be a standard text fold
Using >- breaks as it tells the yaml parser to stick all lines together
as a single command which is incorrect.
Issue: RELENG-4974
Change-Id: I5d362c44efc948242edb40619a731f0096625ec4
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Andrew Grimberg [Mon, 6 Nov 2023 22:55:16 +0000 (14:55 -0800)]
Fix: Move the git fetch depth
It is not possible to specify a depth larger than 1 with the tag
checkout that is performed. Move the depth increase to where it's
actually needed.
Issue: RELENG-4974
Change-Id: If5e01eebbd9100023a2e442c7682219bee51d4d2
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Andrew Grimberg [Mon, 6 Nov 2023 22:39:06 +0000 (14:39 -0800)]
CI: Generate GitHub releases
* Increase the checkout depth from 1 to 30 to handle reno needing to be
able to find all relevant tags (current and current -1) and also pull
the tags
* Setup Python to run reno
* Generate a reno report for the given tag and then modify the report to
strip out all the extra garbage that is added by the report process to
get it into a valid markdown file and not RST file
* Use `gh` cli tool to generate the release notes using the
auto-changelog generation plus the reno release notes
Issue: RELENG-4974
Change-Id: Iff10b3b6bbf1e88708a89a12338cb042bafe42fe
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Andrew Grimberg [Mon, 4 Sep 2023 14:50:41 +0000 (14:50 +0000)]
Merge "Chore: Openstack/devstack template updates"
Andrew Grimberg [Sat, 2 Sep 2023 14:20:44 +0000 (07:20 -0700)]
CI: Remove actionline step
Actionlint is throwing shellcheck errors on bash that cannot be worked
around at this time.
Issue: RELENG-4764
Change-Id: If5fe2c320616b19f7cc13557de4386b3ffd3264c
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Anil Belur [Sat, 2 Sep 2023 00:15:33 +0000 (10:15 +1000)]
CI: Update GH actions workflow for common-packer
Issue: RELENG-4764
Change-Id: I611c0e15519aa25f6510b19d9f63285bf247e0b5
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Matthew Watkins [Thu, 31 Aug 2023 14:45:11 +0000 (15:45 +0100)]
Fix: Correct typo in GHA packer validation workflow
Issue: RELENG-4765
Change-Id: Ie21c687d92a16a6f24f390d99dfdab6d3ec2ac45
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Anil Belur [Tue, 4 Jul 2023 07:38:19 +0000 (17:38 +1000)]
Fix: Remove unwanted extra args
RSA/SHA-1 was deprecated since the OpenSSH release 8.8.
This causes builds with latest version of packer to fail with the
below error:
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.
Add workaroud and pass required HostKeyAlgorithms through ssh extra
argumements. Testing with cloud builds and since we are using multiple
flavors the only options required are "IdentitiesOnly=yes"
and "HostKeyAlgorithms=+ssh-rsa".
Issue: RELENG-4764
Ref: https://github.com/hashicorp/packer-plugin-ansible/issues/69
Change-Id: I80ff152d5153d739d6586c217fbc392e8be80f2a
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Thu, 29 Jun 2023 06:40:50 +0000 (06:40 +0000)]
Merge "Feat!: Convert packer templates to HCL2 format"
Matthew Watkins [Wed, 28 Jun 2023 12:51:26 +0000 (13:51 +0100)]
Chore: Openstack/devstack template updates
Add further Ubuntu packages and fix missing conditional statements
Issue: RELENG-4765
Change-Id: Ic1a42f501a688eeb8202cd8baa1e1da21512aed3
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Anil Belur [Fri, 16 Jun 2023 04:00:04 +0000 (14:00 +1000)]
Feat!: Convert packer templates to HCL2 format
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.
Migrate packer templates from JSON to HCL2 format. JSON format
templates are deprecated and no longer works with packer
version > 1.9.x.
Packer version 1.9.1 will be minimum required version for packer jobs.
This version requires installing the cloud specific plugins through
packer config and needs to be initalized and downloaded with
`packer init` before running `packer build`.
Add support for host key algorithms to work with local ssh proxy
without which packer builds results in "failed to handshake" error.
Workaround is to pass additional params with "extra_arguments".
Support for '.json' templates will be removed from common-packer in
subsequent releases. All projects specific templates not available in this
repository are required to convert existing '.json' to '.pkr.hcl' format.
This change requires updating CI jobs with the additional steps.
Ref:
https://developer.hashicorp.com/packer/docs/templates/hcl_templates
https://github.com/hashicorp/packer-plugin-openstack/blob/main/README.md
https://github.com/hashicorp/packer-plugin-ansible/issues/140
Issue: RELENG-4764
Change-Id: Ie63d9551bd1bab224dc9335d45a21d5ee3e09550
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Matthew Watkins [Tue, 20 Jun 2023 11:00:52 +0000 (12:00 +0100)]
Feat: Modify Devstack templates to include Debian/Ubuntu
Issue: RELENG-4765
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Change-Id: I3dbd5152b32a79673d92d00fa022793cf3caecfb
Anil Belur [Thu, 15 Jun 2023 22:41:37 +0000 (08:41 +1000)]
Fix: Remove delta rpm deps for CentOS Appstream 8
delta rpm is no longer available.
Issue: RELENG-4760
Change-Id: I172445e022fea08f20ef35f1802393ca8d01b722
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Thu, 15 Jun 2023 22:39:44 +0000 (08:39 +1000)]
CI: Remove packer-validation temporarily
The job needs to be re-designed for github
disable the job for voting until then.
Issue: RELENG-4761
Change-Id: Id9ba4e706f7802fb4cfd3770d977359e3052d0d4
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Tue, 13 Jun 2023 00:35:55 +0000 (10:35 +1000)]
Feat: Add Openstack devstack template
Move the Openstack devstack templates to build VM's with devstack
installed and ready for testing. ORAN community has requested devstack
images to be available on the CI env.
The templates and provision files have been tested to build the latest
version of the devstack yoga on the CI.
ZZCI - CentOS Stream 8 - devstack-yoga - x86_64 -
20230612-132235.763
Issue: RELENG-4760
Change-Id: I60d37d769158f34b22b84111fd5229c616232c27
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Wed, 14 Jun 2023 02:44:20 +0000 (12:44 +1000)]
Fix: prefix github.workspace
Issue: RELENG-4761
Change-Id: Iefb62656aa0d6ba4e5e4b69ae6b7c739e8184155
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Wed, 14 Jun 2023 01:09:03 +0000 (11:09 +1000)]
Fix: pre-fix $HOME before var and templates
Issue: RELENG-4761
Change-Id: Iae022ef868236ccaf3d84bb76f87cecf941395cd
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Tue, 13 Jun 2023 23:12:27 +0000 (09:12 +1000)]
Fix: Update packer validate script
Issue: RELENG-4761
Change-Id: Idefc0a43c2f47aa6834fe7809911add73289c3de
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Tue, 13 Jun 2023 01:25:17 +0000 (11:25 +1000)]
CI: Add GHA packer validation job
Issue: RELENG-4761
Change-Id: I48283360f553d4c4f1fd902e8868f6d7a86a4bd7
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Andrew Grimberg [Mon, 24 Apr 2023 18:12:26 +0000 (11:12 -0700)]
Fix: Correct version label for GHA call
Issue: RELENG-4563
Change-Id: Ib677bb53ac47e27501c668d9bd744d61bee9613e
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Andrew Grimberg [Tue, 18 Apr 2023 16:25:21 +0000 (09:25 -0700)]
Fix: Correct bad actions call
Issue: RELENG-4563
Change-Id: Ia368fed2b62d51bef3895b6f6cf9bd49042d6456
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Andrew Grimberg [Fri, 14 Apr 2023 16:27:41 +0000 (09:27 -0700)]
Fix: Correct bad var def in release workflow
Issue: RELENG-4563
Change-Id: Ifcd528f511410ed1b3363890e58e37903de3b32f
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Jessica Wagantall [Thu, 13 Apr 2023 17:25:28 +0000 (17:25 +0000)]
Merge "Chore: Update pre-commit hooks"
Jessica Wagantall [Thu, 13 Apr 2023 17:25:15 +0000 (17:25 +0000)]
Merge "CI: Add GHA release workflow"
Jessica Wagantall [Thu, 13 Apr 2023 17:25:11 +0000 (17:25 +0000)]
Merge "Refactor: Cleanup some pre-commit issues"
Andrew Grimberg [Thu, 13 Apr 2023 16:55:34 +0000 (09:55 -0700)]
CI: Add GHA release workflow
Issue: RELENG-45633
Change-Id: Id0ce3d3888047a11c3f674cf2c9ba8b06a64c690
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Andrew Grimberg [Thu, 13 Apr 2023 16:35:51 +0000 (09:35 -0700)]
Chore: Update pre-commit hooks
* github.com/pre-commit/pre-commit-hooks: v4.0.1 -> v4.4.0
* github.com/pre-commit/mirrors-prettier: v2.3.2 -> v3.0.0-alpha.6
* github.com/jorisroovers/gitlint: v0.15.1 -> v0.19.1
* github.com/jumanjihouse/pre-commit-hooks: 2.1.5 -> 3.0.0
Issue: RELENG-4563
Change-Id: Ie147b72b9e939ec57f4da56a9c2f220e2759fff2
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Andrew Grimberg [Thu, 13 Apr 2023 14:08:19 +0000 (07:08 -0700)]
Refactor: Cleanup some pre-commit issues
* Cleanup some pre-commit issues
* Re-enable pre-commit as part of the default tox run
* Fix shellcheck error
Issue: RELENG-4563
Change-Id: I40b94b8dd2512118ebe0afcac556a42161cedbc8
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Andrew Grimberg [Thu, 13 Apr 2023 15:10:45 +0000 (08:10 -0700)]
CI: Docs tests require full repo history
Issue: RELENG-4563
Change-Id: Id3bcb21f1369c490e0dd35eccb35a488c27b2586
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Andrew Grimberg [Thu, 13 Apr 2023 14:09:38 +0000 (07:09 -0700)]
CI: Add GitHub Actions verify
Issue: RELENG-4563
Change-Id: Ie1d605c40e0aa3e7a9db7fe3bcfde059b50070ba
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Andrew Grimberg [Thu, 13 Apr 2023 14:43:40 +0000 (07:43 -0700)]
Docs: Fix broken docs link
Correct a docs link that should be using an ignored example domain
Issue: RELENG-4563
Change-Id: Id8dbf72c6cc55a46d30248738b57813fad08663f
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Anil Belur [Thu, 13 Oct 2022 02:05:51 +0000 (12:05 +1000)]
Fix: Skip ansible provisioners version check
Packer provisioners invokes ansible version check which can be
skipped since the provisioner is invoking a custom script.
Issue-ID: RELENG-4473
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I661984bfc34857ff5ec42c63a695074f27e1492b
Anil Belur [Thu, 6 Oct 2022 13:04:11 +0000 (23:04 +1000)]
Feat!: Install ansible tools from PyPI
Install ansible through system packages causes dependencies
conflicts on CentOS 8 platform therefore update packer
templates to use ansible provisioner created
through venv.
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
Issue-ID: RELENG-4473
Change-Id: I1d562386b4408c9674271e813dcd2aea6632e709
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Andrew Grimberg [Mon, 19 Sep 2022 19:40:44 +0000 (12:40 -0700)]
Fix: Update Ubuntu installs on aarch64
Do not change package mirror for aarch64 systems as this breaks since
most mirrors do not carry the packages
Change-Id: I800e83295bba8b55e9376fc735cd9f7b21fddf32
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Andrew Grimberg [Wed, 17 Aug 2022 17:39:23 +0000 (10:39 -0700)]
CI: Require RELENG changes in commit messages
To make sure that JSD issues are not being referenced since that is not
public data, we will now start enforcing a requirement that commits have
a RELENG issue associated with them.
Issue: RELENG-4375
Change-Id: I37150383e0e986438fea01d549aa803f2f038100
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Anil Belur [Wed, 10 Aug 2022 23:47:36 +0000 (09:47 +1000)]
Feat: Upgrade git to v2.36 for CentOS7
- v2.24 packages are no longer available on the CentOS mirrors.
Disable warning to use yum module.
- Fix install python script to check python/python3 to test, since
the default python3 is not available on CentOS7 platforms.
- Print the default version of python installed.
Issue-ID: IT-24376
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: Id48ad72aba776ed4092a292c4db1ad6459d9ab64
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Fri, 24 Jun 2022 12:02:24 +0000 (22:02 +1000)]
Fix: Import the correct gpg keys for sigul and EL8
Sigul 1.1.1 is signed by the Fedora infrastructure 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.
Issue-ID: IT-24054
Change-Id: I440b263ebb5f424496f21aa15e58bf7b34279f6e
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Fri, 24 Jun 2022 12:27:18 +0000 (22:27 +1000)]
Fix: Update doc refs to acumos
Acumos resources on the infra are decommissioned,
update the examples pointing to another project.
Change-Id: Ie3ea1892ed99d9ed7917c700fac35bf566a92c47
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Wed, 18 May 2022 06:53:32 +0000 (16:53 +1000)]
Feat: Add support for CentOS Stream 9
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: If80413b418a1783efbc5f5c81d315abd5c64cb07
Jessica Wagantall [Tue, 19 Apr 2022 21:08:28 +0000 (14:08 -0700)]
Chore: Update Ubuntu/Centos base images
Update RAW base images for Ubuntu 18.04, 20.04
and Centos 7
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: I2de5f6fb3aa354b85821e317fb2ceca0ac3b5eb0
Jessica Wagantall [Wed, 20 Apr 2022 19:22:41 +0000 (12:22 -0700)]
CI: Disable pre-commit in CI
Packer has been having issues creating new images for a bit and
pre-commit is no longer working in CI because of something upstream
because of this.
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: I55cbfdb656294c980b1c499746404fc523202f1c
Anil Belur [Mon, 11 Apr 2022 03:00:47 +0000 (13:00 +1000)]
Fix: Install Sigul 1.1.1 for EL8 (CentOS Stream 8)
Sigul requires python3-nss that is only available through
dnf module repo (pki-{core,deps}). These additional repo
need to be enabled for the Sigul to pull in the required
dependencies.
Note: `dnf module install|enable` is available through
Ansible playbooks, so use the command module instead.
Issue-ID: LF-JIRA IT-23826
Change-Id: Iff194240fc417ae92a2ea6caf0511c85cc973b41
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Tue, 5 Apr 2022 02:33:34 +0000 (12:33 +1000)]
Chore: Update to python38
The provisioning script fails with errors while
trying to install python36 on CentOS8 image build.
python 3.6 is EOL, bump the install script to use python 3.8.
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I0431ee938c9da1c254e9ccc80c0e7d760bbde0ff
Anil Belur [Fri, 1 Apr 2022 06:18:08 +0000 (16:18 +1000)]
Fix: Use lowercase for CentOS Stream var file
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I32edf055ce807fbcfc2b176fdfbd943256efa782
Anil Belur [Thu, 3 Mar 2022 23:18:53 +0000 (09:18 +1000)]
Feat: Add support for CentOS Streams 8
Issue-ID: RELENG-4141
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I172aa7399e5f235082f058c7ab4690d83c5ad381
Jessica Wagantall [Thu, 14 Oct 2021 19:35:11 +0000 (12:35 -0700)]
Chore: Update base images for Ubuntu
Update base images for Ubuntu 18.04 and 20.04
ARM and x86
Issue: RELENG-4010
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: I243b0547173afb79f38755c74dc4891a71b551ea
Jessica Wagantall [Tue, 12 Oct 2021 20:27:07 +0000 (13:27 -0700)]
Chore: Update Ubuntu 18.04
Update base image for Ubuntu 18.04
Issue: RELENG-3989
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: I1821b6678745c89842936ced72e8cda06abf939b
Andrew Grimberg [Wed, 1 Sep 2021 18:20:39 +0000 (11:20 -0700)]
Chore: Upgrade pre-commit hooks
* github.com/pre-commit/pre-commit-hooks: v3.4.0 -> v4.0.1
* github.com/pre-commit/mirrors-prettier: v2.2.1 -> v2.3.2
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Change-Id: I5499abc30a514568d7a4fe30f679d10c4fff5a22
Jessica Wagantall [Thu, 19 Aug 2021 22:22:57 +0000 (15:22 -0700)]
Fix: Add missing Release Notes for latest packer
Add Release Notes for packer requirements changed
recently.
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: I459c7da09c3a5262e4093d98c763a21dd73df0b3
quentinDERORY [Thu, 19 Aug 2021 21:51:16 +0000 (14:51 -0700)]
Fix: format of requirements.yaml
Signed-off-by: quentinDERORY <quentin.derory@ecole.ensicaen.fr>
Change-Id: Ibaef85987792566938a0ea7ef397148701c371ca
quentinDERORY [Wed, 18 Aug 2021 21:11:53 +0000 (14:11 -0700)]
Chore: Add new galaxy requirement for magma project
Signed-off-by: quentinDERORY <quentin.derory@ecole.ensicaen.fr>
Change-Id: I6a884a6d3c831222a095d1f75f958f1eed18c815
Jessica Wagantall [Wed, 4 Aug 2021 22:18:08 +0000 (15:18 -0700)]
Fix: Use Vexx provided base images
Use base images provided by Vexx instead of
LF's ones.
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: If2ecdf622235ae82211bd0051314713775676c23
Anil Belur [Thu, 17 Jun 2021 01:23:55 +0000 (11:23 +1000)]
Fix: Enable powertools repo for CentOS 8.* vers
The CR I43b943ddfc38faca does not work as expected since
ansible_facts does not match/return the minor versions of
the Repoid correctly.
For CentOS 8.2.2004 and earlier versions uses repoid as
'PowerTools' while CentOS 8.3.2011 and later versions uses repoid as
'powertools'. To handle this, check the repo file name under
/etc/yum.repos.d/ and enable the correct repository.
Ref: https://wiki.centos.org/Manuals/ReleaseNotes/CentOS8.2011\
Issue: RELENG-3710
Change-Id: Ib6a8d78664bbb5f20d2889fae3ae3b4238007141
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Andrew Grimberg [Thu, 10 Jun 2021 20:05:27 +0000 (13:05 -0700)]
Fix: AMI product codes need to be defined
While trying to upgrade the internal Jenkins to latest global-jjb and
common-packer it's been found that all of our configurations for AWS
systems are missing vital filters.
The Ubuntu product codes were found by doing the following:
aws ec2 describe-images --region us-west-2 \
--owners aws-marketplace --filters \
"Name=architecture,Values=arm64" \
"Name=name,Values=*ubuntu*20.04*" \
"Name=manifest-location,Values=aws-marketplace/ubuntu/*"
This is per documentation found at
https://ubuntu.com/server/docs/cloud-images/amazon-ec2
Issue: RELENG-3757
Change-Id: I9391f6bec59318e00bc1b097c7a27181defeccff
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Andrew Grimberg [Thu, 10 Jun 2021 20:55:09 +0000 (13:55 -0700)]
CI: Configure gitlint for Conventional Commits
Turn on Conventional Commit message subject validation. This will affect
CI specifically, but developers can avoid having CI fail by assuring
that they have installed pre-commit and that they have also run
pre-commit install --hook-type commit-msg
The above is needed because pre-commit does not install commit-msg hooks
by default
Change-Id: I99779c6188ab2a4e57022a4ac552cbc3749accc2
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Andrew Grimberg [Thu, 10 Jun 2021 20:53:56 +0000 (13:53 -0700)]
CI: Update pre-commit and make it work properly in CI
Change-Id: Idf2dbf580ca14af8a3c868a385658b4d51c4de9e
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Anil Belur [Mon, 7 Jun 2021 22:23:47 +0000 (08:23 +1000)]
Feat: 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'
Change-Id: Iac258a0ff132e12e00a49d9d02ce0f1806bef016
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Fri, 4 Jun 2021 02:50:17 +0000 (12:50 +1000)]
Feat: Add support for Docker builder on arm64
The original change
e24c07369afd514abdf3efb0f596f772261412ed
missed updating arm64 var files and Ubuntu 20:04 var file,
while the builder template were updated. This breaks the
packer verify jobs.
Error:
* required variable not set: docker_source_image'
Issue: RELENG-3717
Change-Id: I1f3acf1479bf7a4ab271f747da5261ee2619e566
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Sat, 29 May 2021 03:47:14 +0000 (13:47 +1000)]
Fix: Change powertools repoid to lowercase
The repoids are renamed with CentOS 8.3 update breaks the packer
builds. Now the correct repoid to use is 'powertools' instead
of 'PowerTools'
Error: No matching repo to modify: PowerTools.
Ref:
https: //wiki.centos.org/Manuals/ReleaseNotes/CentOS8.2011#Yum_repo_file_and_repoid_changes
Issue: RELENG-3710
Change-Id: I43b943ddfc38facaa8c02f2d6ee98254e7ee3241
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Eric Ball [Tue, 20 Apr 2021 18:38:27 +0000 (11:38 -0700)]
Add docker-aws template
We now have at least one project on AWS that needs a docker template.
Issue: IT-21917
Change-Id: Ia08a1a32eb2ffaab46b1f01468018de688423852
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Andrew Grimberg [Mon, 12 Apr 2021 16:06:58 +0000 (16:06 +0000)]
Merge "Use official CentOS & Ubuntu images via prodId"
Thanh Ha [Sat, 2 May 2020 02:20:16 +0000 (22:20 -0400)]
Use official CentOS & Ubuntu images via prodId
The previous filter method could result in getting an unexpected image
even one that's entirely different than what is intended. This patch
uses a product-code search of the marketplace for the official upstream
supported images rather than the custom ones provided by Amazon.
This patch is based on Zack William's suggestion on the lf-releng
mailinglist.
Reference:
https://lists.linuxfoundation.org/pipermail/lf-releng/2020-February/000135.html
Change-Id: Ia6208bd7a61036eb210d07533e3ceedbbc787678
Co-authored-by: Zack Williams <zdw@opennetworking.org>
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Thanh Ha [Fri, 14 Aug 2020 14:23:29 +0000 (10:23 -0400)]
Add support for a Docker builder
Adding a Docker builder will allow us to more easily test build images
locally in a container before pushing a patch to production to build
the VMs themselves. While not guarenteed to be exactly the same it's
a close enough approximation that many issues can be caught before
patches are pushed.
Additionally this allows projects to also use the same packer templates
to build container based builder nodes if there's any projects using
Docker for their Jenkins jobs.
Issue: RELENG-1052
Change-Id: If89801cea16046900e7e880265ad859a96595fa1
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Andrew Grimberg [Fri, 26 Mar 2021 14:59:43 +0000 (14:59 +0000)]
Merge "Update CentOS8 image"
Bengt Thuree [Thu, 18 Mar 2021 11:24:37 +0000 (22:24 +1100)]
Fixing netselect in install-python
Actually use the result from netselect
Issue-ID: CIMAN-30
Signed-off-by: Bengt Thuree <bthuree@linuxfoundation.org>
Change-Id: I31b5858dc4b348f383f3b801b17c1aa8547296bd
Anil Belur [Wed, 17 Mar 2021 03:03:19 +0000 (13:03 +1000)]
Update CentOS8 image
Change-Id: If34cb35b7b54b7015e7c20a53c9ace9c10db5500
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Tue, 23 Feb 2021 08:00:51 +0000 (08:00 +0000)]
Merge "Migrate jobs from lf-standard-1 flavor to v3"
Anil Belur [Thu, 18 Feb 2021 01:59:18 +0000 (11:59 +1000)]
Update shellcheck pre-commit hook to 2.1.5
With 2.1.5 release the workaround added in
d7d264e733e5 is no longer required.
Change-Id: I7e890d03844a2fb47159ad471f166310290fbf9f
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Tue, 16 Feb 2021 13:27:38 +0000 (23:27 +1000)]
Migrate jobs from lf-standard-1 flavor to v3
v3 flavors guarantees jobs spin on newer hardware that
are faster and cost-efficient than the v2 flavors.
Issue: RELENG-3329
Change-Id: I97f8d540f02fdccb3115bc624b167eb12464833b
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Anil Belur [Wed, 17 Feb 2021 00:21:12 +0000 (10:21 +1000)]
Add workaround to for shellcheck failure
The shellcheck hook breaks with the latest version of pre-commit (2.1.1)
[ERROR] The hook `shellcheck` specifies `additional_dependencies`
but is using language `script` which does not install an environment.
Ref:
https://github.com/jumanjihouse/pre-commit-hooks/pull/81
Change-Id: I19d8b26a7589d0bde7f1d3c6f768b738289ab937
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>