2416 Commits

Author SHA1 Message Date
Andrii Ostapenko
b8e83faa85 Install python3-jmespath allowing to use json_query in ansible playbooks
Also rearranges apt packages in alphabethical order.

Change-Id: Ia6815cca6c4a36cc5c0edcabfcf2c3dfc0b00a03
2022-06-17 15:55:58 +00:00
Pallav Gupta
13c4e82f7e AIAP multinode deployment
It deploys 3 controlplane and 2 worker nodes using AIAP gate.

+ kubectl --context target-cluster get node
NAME     STATUS   ROLES                  AGE   VERSION
node01   Ready    control-plane,master   48m   v1.21.2
node03   Ready    worker                 43s   v1.21.2
node04   Ready    control-plane,master   16m   v1.21.2
node05   Ready    control-plane,master   26m   v1.21.2
node06   Ready    worker                 54s   v1.21.2

Tested with 32 GB node.
https://zuul.opendev.org/t/openstack/build/da1c2c440d3d4026ab454de73ee518e2/logs

Closes: #652
Closes: #228

Change-Id: Ie2267e15ed75b57e2e27f45b9be19ddcf7b0a0a8
2022-03-03 14:10:57 +00:00
Sirajudeen
4dfe4afa34 Switching to 32GB worker node
* now that we are not using treasuremap, using the 32GB
  nodes for airshipctl gate runner jobs.

Change-Id: Idf79e28b8fd31a4fbb91e18c0eb21e6c046fa52c
2022-03-01 14:47:32 +00:00
bijayasharma
bdeafa77b6 Removed capitalization in error message
*  This commit removed capitalization in error message
   Error string should not be capitalized:
   https://github.com/golang/go/wiki/CodeReviewComments#error-strings
* Also, fixed some typos

Signed-off-by: bijayasharma <vetbijaya@gmail.com>
Change-Id: I01e9a0753ff0f2c18607ea3c5b9a3c3e9698f045
2022-02-17 16:35:50 +00:00
Suraj Patil
9589692d26 Fixes Dockerfile for building kubeval-validator image
Closes: 669
Change-Id: I9416b5e85f6da7c2c4da00b2baf82497be700d57
2022-02-02 07:07:33 +00:00
siraj.yasin
0fd3f957d5 Switching to 32GB worker node for mulitnode aiap
* Moving to 32GB node to run mulitnode setup of aiap

Change-Id: I1687651aa8054256d6797daf059d1b2896736e1f
2022-01-26 01:07:36 +00:00
Steven Fitzpatrick
8dddae9daa AIAP Libvirt: Add kubectl install
Change-Id: I4b325958906ba723ec22ebdedb9b5607b74a2683
2022-01-07 15:14:44 +00:00
Steven Fitzpatrick
a644188d8d AIAP libvirt: Add GuestFS Tools package
This package allows one to cat and interact with files
in a guest VM

Change-Id: Ib806a6c271452b61880745eafe05d149834af5dc
2022-01-06 21:06:07 +00:00
Zuul
acf5077a0c Merge "Use bundle mock for inventory tests" 2022-01-05 18:59:51 +00:00
Zuul
220445cf80 Merge "Speed-up building applier and clusterctl images" 2021-12-21 12:12:17 +00:00
Zuul
6eea629b78 Merge "Update kind to 1.21.1 k8s version" 2021-12-21 12:12:15 +00:00
Zuul
7948a127d7 Merge "Add check manifests zuul job" 2021-12-21 12:12:12 +00:00
Zuul
55343b8c4d Merge "Add --resume-flag to plan run subcommand" 2021-12-21 12:12:10 +00:00
Zuul
d718d08c20 Merge "Remove events module" 2021-12-21 12:05:41 +00:00
Zuul
32ddcc1d26 Merge "Support for IPV6 infra in AIAP Zuul Gate" 2021-12-21 08:17:58 +00:00
Zuul
5e83b8997b Merge "Support Dualstack IPv6 in AIAP" 2021-12-21 01:27:15 +00:00
Zuul
4b71201ea6 Merge "AiaP - Develop a method to support caching on a remote node" 2021-12-16 19:09:01 +00:00
Zuul
0a09456562 Merge "Add physicalDisks and controller fields to RAID" 2021-12-16 02:18:29 +00:00
Ruslan Aliev
4e39a436da Speed-up building applier and clusterctl images
Use caching to download go modules.

Change-Id: I9fa7d19f9daaa73675dfb8c59ffed0ad08638631
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-12-16 01:50:24 +00:00
Herrera, Josh (jh813b)
d3c07d0b55 Use bundle mock for inventory tests
Removed testdata directory for the baremetal tests and use a mock bundle for tests as needed. Any necessary data were added as constants to the test file so that the tests would behave identically.

Relates-To: #464
Relates-To: #465
Change-Id: I38aa8619ba79b958a81323c4ee6cc638e07dcc7b
2021-12-13 23:09:00 +00:00
Walter Wahlstedt
61c18d9359 AiaP - Develop a method to support caching on a remote node
- Adds PV for local caching. This allows us to also use PV
        in other clusters like AKS.
    - Moves artifacts and caching files into /opt/aiap-files/artifacts
        and /opt/aiap-files/caching so we only have one PV

Relates-To: #645

Change-Id: I84172778df66bee8a833b13d5b740a6cf45220c2
2021-12-06 13:47:40 -05:00
Manoj Alva(ma257n)
e1562899d9 Support for IPV6 infra in AIAP Zuul Gate
- Replaced minikube with kind cluster to
  setup a dualstack IPv6 cluster

Closes: #662
Change-Id: Ibc40e574e37c8cf9ab5348e6413a1b1520f5d1c1
2021-12-06 15:07:20 +00:00
Zuul
bc704b736d Merge "Upgrade default kind version in get_kind.sh" 2021-12-04 00:37:08 +00:00
Michael Beaver
56972b4317 AIAP - Extract logs from runner container
This adds a new script to the runner container that is run in the
entrypoint which runs the log gathering ansible playbook from
inside the runner container. The gate then extracts these logs
with a new role.

This also updates the image_build script to fix how it changes
the container imagePullPolicy

Closes: #658
Relates-To: #659
Change-Id: I24d11c66e7b71852256e164343f7bb2f331d1fef
2021-12-03 15:23:12 +00:00
Herrera, Josh (jh813b)
5e67f16c20 Upgrade default kind version in get_kind.sh
As mentioned in https://github.com/kubernetes-sigs/kind/issues/2240 there was a change
in the linux kernel after 5.12.2 that makes nf_conntrack_max read-only in non-init network
namespaces, which prevents kind's kube-proxy container from working correctly on kind versions
older than v0.11.1. This PS updates the script to download v0.11.1 to avoid this issue.
If older versions are needed, the kind url can be set as an environment variable as shown in
airshipctl/tools/deployment.provider_common/01_install_kind.sh.

Relates-To: #583
Change-Id: Icd9e649fa112e9f6307034ec69dde5d4a7ad613d
2021-12-02 18:21:56 +00:00
Siraj Yasin
4ed3a80412 Skip secret generation for production env
Retales-To: #654
Change-Id: I984cfbc0e67ec32ae70ae3646bd59f5911494afb
2021-12-01 17:21:59 +00:00
Mahnoor Asghar
73b3d4e83f Add physicalDisks and controller fields to RAID
This adds physicalDisks and controller fields to the the hardware profile guide,
and to the example hardwareprofile.

Relates-To: #499
Closes: #499
Change-Id: I6c3107b846d1a9c94abffe378a9a07a2f089ef99
2021-11-30 07:35:43 +00:00
Zuul
6d797812d3 Merge "Revert "Build iso image in a single phase"" 2021-11-19 23:52:18 +00:00
Zuul
0dc707359a Merge "Allow to customize inventory policy for applier" 2021-11-19 23:24:09 +00:00
Andrii Ostapenko
6ac83b3796 Revert "Build iso image in a single phase"
Commit breaks iso/qcow consistency and needs to be reintroduced
together with cloud-init moved to image-builder

This reverts commit e8606af54473cb1439e482c71299f63c84556c7d.

Change-Id: Ib45d6a5ba960eba937c2f54fbf703b2cd85ee190
2021-11-19 20:36:13 +00:00
Zuul
89c6ff4e98 Merge "Add runfn implementation with timeout support" 2021-11-19 01:37:11 +00:00
Zuul
6208bf3bd6 Merge "Build iso image in a single phase" 2021-11-19 00:41:13 +00:00
Ruslan Aliev
0401bd644c Allow to customize inventory policy for applier
Change-Id: I6943cddee52bcb605ce63adc21ce56f6afaadc5b
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-11-18 20:39:10 +00:00
Ruslan Aliev
e8606af544 Build iso image in a single phase
Allows to get rid of generic containers.

Change-Id: I7f4485ded4dd39ec44a0746904b626b4a07d0f80
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #544
Relates-To: #545
2021-11-17 21:51:18 +00:00
Ruslan Aliev
d0e2f6dbbf Add runfn implementation with timeout support
Allows to limit execution time of KRM function.

Change-Id: I7fd8d97492512c6c5033375429906a1268f3818e
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Closes: #544
Closes: #545
Closes: #597
2021-11-17 21:44:07 +00:00
Josh Herrera
c2d08a4b83 Use keepalived to pass Ironic IP to target cluster
This PS utilizes the "keepalived" container (https://github.com/metal3-io/baremetal-operator/blob/master/docs/ironic-endpoint-keepalived-configuration.md)
to ensure that the Ironic IP can be passed to the target cluster for management
of the images.

Closes: #641
Change-Id: I2ff6bd1541e8f88725623b7c7991b5bd3e13f7c4
2021-11-16 13:52:27 -08:00
Zuul
1aab57af13 Merge "Upgrade kpt to v1.0-beta" 2021-11-15 22:14:27 +00:00
Ruslan Aliev
ef55861139 Remove events module
This module actually ins't used anymore.

Change-Id: I2aa4edb17843e6b88f657e09f1a338302b92b7ff
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-11-14 01:52:29 +00:00
Zuul
c80e03457b Merge "Explanation on airship config file" 2021-11-12 21:25:37 +00:00
Zuul
e93145a59f Merge "Fix manifests generation" 2021-11-12 16:33:12 +00:00
Zuul
c196873667 Merge "Fix the ARTIFACTS_DIR path issue" 2021-11-12 00:29:41 +00:00
Zuul
a6f39b5fad Merge "Integrate CAPD" 2021-11-11 23:46:53 +00:00
Siraj Yasin
8758527b4e Fix the ARTIFACTS_DIR path issue
Change-Id: I6c7c417d8f9ea9a619e2a6412d3143999562ca10
2021-11-11 20:29:42 +00:00
Zuul
cb7db9581b Merge "AIAP Gate - Update script to use status-checker" 2021-11-11 19:51:57 +00:00
Matthew Fuller
3f4581a978 Upgrade kpt to v1.0-beta
Upgrades flux Kptfiles to be compatible with the new format
required by kpt v1.0-beta. Also updates the README file to
reflect new CLI command syntax and package update procedure.

Closes: #598

Change-Id: I6da83aa662b4039a402614135662f4ce03dbe97a
2021-11-11 09:27:40 +00:00
Ruslan Aliev
89bd08e102 Add --resume-flag to plan run subcommand
Allows to skip phases in plan execution.

Change-Id: Iee0e0da5ae9836f27ec1810ac0d333247a6ddb8f
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Closes: #667
2021-11-10 08:24:18 +00:00
Danny Massa
3acead37a9 Adding dead-link-linter gate
https://github.com/DannyMassa/dead-link-linter

Change-Id: I9ba999e7587fbc0e1d8a9f9383b5150fecd4ac45
2021-11-09 21:03:53 +00:00
Michael Beaver
44f2b8237b AIAP Gate - Update script to use status-checker
This change updates the 20_apply_aiap.sh script to utilize the
status-checker container to determine if airship-in-a-pod has
successfully completed. It also includes a check to fail when
the status-checker has detected a failure.

Relates-To: #659
Change-Id: I3673de7157f498778154c798878ab20245396c62
2021-11-09 20:24:58 +00:00
Zuul
4f7a9dbf6d Merge "Add missing qcow_bundle source|target replacement" 2021-11-09 17:46:53 +00:00
Ruslan Aliev
1d0561045e Add check manifests zuul job
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Closes: #665
Change-Id: I53283e0c3b2e5807abdb84433c5563d2e391dcfe
2021-11-08 22:20:51 +00:00