Commit Graph

2389 Commits (61c18d9359f9e60bd2b35e181f776e984bc54c00)

Author SHA1 Message Date
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
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
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 e8606af544.

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
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
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
Snehal a20eb0b4ba Integrate CAPD
* Below manifests integrates capd to v1alpha4

* Cluster templates updated to v1alpha4

Closes: #647

Change-Id: I53f25cb2dd1eeed901d8582ddb873f0894bc45b9
2021-11-08 12:02:52 +00:00
Ruslan Aliev ddf7b36259 Fix manifests generation
Also:
 * controller-gen bumped to 0.6.2
 * resolved cycle dependencies error in API
 * added clean-up step

Change-Id: I08340bc4f44505272d5b2dfaab7ae075aa994cca
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Closes: #664
2021-11-05 17:01:29 +00:00
Zuul e8992a6bed Merge "Fix for Zuul gate package issue" 2021-11-04 21:19:34 +00:00
Zuul e1355ce0e4 Merge "Add eject virtual media phase" 2021-11-04 18:48:23 +00:00
Siraj Yasin 1731be848f Fix for Zuul gate package issue
It is an intermediate solution till this PS [0] is merged

  [0] https://review.opendev.org/c/airship/airshipctl/+/816089

Change-Id: Ief02b1f243e506d7013ceeb7daedbb36b2cb477d
2021-11-04 16:51:13 +00:00
Zuul 4c82510977 Merge "Enhance baremetal subcommand to list hosts" 2021-11-03 19:32:00 +00:00
Zuul bbe1375d17 Merge "CAPZ v0.5.2 Uplift - Reference Public Site" 2021-11-03 17:16:11 +00:00
shon phand d38b9b5f0b Enhance baremetal subcommand to list hosts
* added NodeName field in the remote Client interface
* added new subcommand 'list-hosts' to list hosts from
  host-inventory from site manifests

Closes: #359
Signed-off-by: Shon Phand <shonphand@gmail.com>
Change-Id: I560a8117b1d55cad2a634df0d05a4aaedae2a873
2021-11-02 18:55:15 +00:00
Suraj Patil 5d61a071ed Fixes ansible role_path in 00_setup.sh
Closes: 663

Change-Id: Ia1c2b0186355058896c996325776b6554d49ca9d
2021-11-02 09:57:47 +00:00
Andrii Ostapenko ebc4d99215
Use upstream ensure-docker role instead of docker-install
Change-Id: I2d83a02d1520efd90d68df940ac0f045785101b5
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2021-11-01 18:38:12 -06:00
Zuul b20403332b Merge "Upgrade Kubernetes from 1.19.14 to 1.21.2" 2021-11-01 18:24:06 +00:00
diwakar thyagaraj a384b4e46d Upgrade Kubernetes from 1.19.14 to 1.21.2
This upgrades Kubernetes version in airshipctl to v1.21.2

Depends on https://review.opendev.org/c/airship/image-builder/+/812013/

https: //github.com/airshipit/airshipctl/issues/589
Change-Id: I30ef2543d91f574e73a555bf67ab7ec2764a4411
Signed-off-by: diwakar thyagaraj <dt241s@att.com>
2021-11-01 08:17:32 +00:00
Zuul 5050c327c0 Merge "Fix check ingress phase" 2021-10-31 08:27:09 +00:00
Zuul 87f9819c20 Merge "CAPZ v0.5.2 Uplift" 2021-10-30 00:00:37 +00:00
Zuul d3c292ef9f Merge "Remove Makefiles in krm functions" 2021-10-29 18:17:08 +00:00
Zuul 5cf95f2135 Merge "[AIAP] - Use SOPS_IMPORT_PGP for user specific key" 2021-10-28 19:45:51 +00:00
Zuul df7f0d25cb Merge "Introduce KRM based k8s applier" 2021-10-28 19:00:59 +00:00
Zuul bfebbe2531 Merge "Use newer docker packages" 2021-10-28 18:02:34 +00:00
Zuul 9f4d0efe9a Merge "Add new selector by ObjectReference" 2021-10-28 13:36:41 +00:00
Zuul 2804085891 Merge "Shrink clusterctl:v0.3 image" 2021-10-28 13:36:39 +00:00
Ruslan Aliev 3e44c42989 Introduce KRM based k8s applier
The KRM based k8s applier solves multiple design problems
which were introduced in previous airshipctl generation,
making apply code and process more clear, reliable and
readable. In particular:
 * k8s applier now is a KRM function and it allows the
   end user to choose or implement desired backend for
   k8s apply operations;
 * the related amount of code was reduced by three times,
   multiple unused and unnecessary structs/interfaces/design
   patterns were removed or rewrited in more clean and efficient
   way;
 * removed cli-utils dependency from airshipctl;
 * fixed several bugs and code issues, such as incorrect printing
   of tables, duplicated unit tests, improper generation and applying
   inventory config map, etc;
 * cli-utils version used in KRM function was bumped to 0.26.0;
 * phases with duplicated k8s resources were removed or fixed;
 * unit test coverage increased to 83.1%;
 * KRM function logs were integrated with klog library which allows
   to observe logs directly from cli-utils and other dependent libs.

Change-Id: Ief509f1d6abefd53caf7fcffc4e36b0319815373
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Closes: #646
2021-10-27 08:14:22 +00:00
Siraj Yasin afe5640383 [AIAP] - Use SOPS_IMPORT_PGP for user specific key
* Enable user to set SOPS_IMPORT_PGP in env and consume that.

Relates-To: #654
Change-Id: Idb610980e11d228a48db8e412b0436556ac00ca5
2021-10-26 20:01:46 +00:00
James Gu 9abf8ef6ab Add eject virtual media phase
If the virtual media is not explicitly ejected, the ephemeral node can
reinstall as ephemeral node after converted as a worker or controller
during reboot.

Change-Id: I9f383a1d8ead6fea6f37ace9eade64e70fcc72e4
2021-10-25 15:18:34 +00:00
Snehal 47041eda24 CAPD v0.4.2 manifests
* The current PS adds manifests files to update CAPD components
to 0.4.2 version

Change-Id: Ie57201a901277eed122052f0a1c75ed21fa77e54
2021-10-25 07:28:39 +00:00
Ruslan Aliev 48ecfff971 Shrink clusterctl:v0.3 image
Change-Id: I3b7a28963b2cc31ee4f48a8280a9f791aabd8265
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-10-23 00:41:33 +00:00