2362 Commits

Author SHA1 Message Date
Zuul
4f7a9dbf6d Merge "Add missing qcow_bundle source|target replacement" 2021-11-09 17:46:53 +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
Suraj Patil
cc82ee576f Add missing qcow_bundle source|target replacement
Closes: 661
Change-Id: I6906f41167a53e8b21343da7f766f5121a7573a3
2021-10-22 13:06:21 +00:00
Ruslan Aliev
55f04e7394 Use newer docker packages
Currently we install and use docker.io which is outdated. We should
switch to newer docker-ce, docker-ce-cli and containerd.io.

Change-Id: I951ced816466a0aed3db7313d475773c324ad71c
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Closes: #657
2021-10-21 23:18:32 +00:00
Zuul
db16837902 Merge "Convert ephemeral from docker to containerd" 2021-10-21 19:12:41 +00:00
Zuul
786ef6c622 Merge "Fixes namespace issue in capd" 2021-10-21 18:37:10 +00:00
Zuul
b56c101942 Merge "Remove .git from repository URL" 2021-10-20 19:51:14 +00:00
Walter Wahlstedt
2713c90db8 Convert ephemeral from docker to containerd
Change-Id: I07eaa10b39992fe379082c8f03cf27cea48f0597
2021-10-20 12:55:40 -04:00
Shiba, Sidney
4e12ce315f CAPZ v0.5.2 Uplift - Reference Public Site
This patchset provides the manifests for deploying a Target cluster on
Azure cloud platform, exposing the API server to the public Internet.

Relates-to: #600
Change-Id: I34789918b4be721fc518c033a82a4f8bce117494
2021-10-20 10:28:44 -06:00
Siraj Yasin
426bc5e02b Remove .git from repository URL
* Enable airship-airship-in-a-pod-script-runner as non-voting
  Job at check stage

Change-Id: I591fb1fb97cfe00bcfbe2196b4b7533a60dc276e
2021-10-19 14:21:54 +00:00
Zuul
6add400666 Merge "Clean up additional ~90mb of mem on gating hosts" 2021-10-18 21:12:18 +00:00
Zuul
af957ee1e6 Merge "Remove .git suffix on repository name" 2021-10-18 16:53:44 +00:00
Ruslan Aliev
bd287ce369 Add new selector by ObjectReference
This selector will allow us to improve internal logic in places
where we create selectors by ObjectReference objects and reuse
the code.

Change-Id: I4e4808bfdffc4446e9df255e2ed0b7b8f47d135c
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-10-18 03:27:55 +00:00
Zuul
a377007ad0 Merge "Speedup secrets unencryption" 2021-10-15 18:14:24 +00:00
Alexey Odinokov
429df0bab1 Clean up additional ~90mb of mem on gating hosts
We're very close to the point when we run out of mem, so extra 90mb may be important.

Change-Id: I81880df1ece4bdf1bf024852389af6d46800da89
2021-10-14 15:44:47 +00:00
Siraj Yasin
3ca5d825b5 Remove .git suffix on repository name
* Repository name is extracted from URL and used as WORKDIR.
  It leads to error when the repository URL is provided with ".git"
  "https://github.com/airshipit/airshipctl.git"

* Remove the ".git suffix when present in repository URL

Closes: #653
Change-Id: If154873f4126cedd85aa7f5deac13e17726a732c
2021-10-13 21:21:42 +00:00
SirishaGopigiri
ad555d4d24 Integrate capi v0.4.2 and capm3 v0.5.0
The below manifest changes integrates capi v0.4.2 with capm3
v0.5.0 version. It changes the required manifests files
in the airshipctl. It upgrades capi to v1alpha4 and capm3 to
v1alpha5.

Closes: #518 #560
Change-Id: Ia9ea82ad8052e55f0e70f1038497a919ac7b9270
2021-10-13 13:30:52 -05:00
SirishaGopigiri
61a316ce1c CAPI v0.4.2 manifests
The current PS adds manifests files to update CAPI components
to 0.4.2 version.

Relates-To: #518
Change-Id: Id6019ca0867a776902595308bfdbd554b2ffe54e
2021-10-13 13:26:24 -05:00
SirishaGopigiri
c7e5c76642 CAPM3, BMO and Ironic manifests
The below PS has manifests files related to
capm3, bmo and ironic for v0.5.0 versions.

Relates-To: #518 #558 #560
Change-Id: Id9240320bc8dec32d5e5384c39e26ba04f55f9bd
2021-10-13 13:26:24 -05:00
Ruslan Aliev
136aa06117 Improve memory performance of clusterctl KRM
Switching components type from []byte to string significantly
improves memory effiency of config function.

Change-Id: I81ddf469bf5abd214ff3785915d82ab494af6268
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-10-13 13:26:24 -05:00
Zuul
4bce04c86b Merge "Use bundle mock for document tests" 2021-10-13 16:42:26 +00:00
Ruslan Aliev
3f8852137a Speedup secrets unencryption
Regenerate secrets and remove hc_vaults items since they
make significant delay due to http request timeouts.

Change-Id: Iebdc9347695fb070c0ff79f99b20890b3a8a9e0a
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-10-08 15:18:17 -05:00
Drew Walters
fedaad02e3 Fix AIAP manifest branch checkout behavior
Even when specifying a manifest branch in the AIAP overrides, the
entrypoint script overrides/disables the checkout behavior of the
airshipctl document pull script if AIRSHIP_CONFIG_PHASE_REPO_REF is not
set. This change updates the entrypoint script to check if
AIRSHIP_CONFIG_PHASE_REPO_BRANCH is specified before overriding the
checkout behavior.

Signed-off-by: Drew Walters <drewwalters@microsoft.com>
Change-Id: Ibb2798201f8e02333289f193355f3aa2a6c627ad
2021-10-08 14:05:25 +00:00
Zuul
4a51359b75 Merge "AIAP: Fix secrets" 2021-10-08 08:43:12 +00:00
Zuul
d92870d7d4 Merge "Add clusterctl v0.3.x KRM function" 2021-10-08 02:04:33 +00:00
Ian Howell
b27297e4ad AIAP: Fix secrets
The runner container uses a set of secrets to generate the airshipctl
config file, but the volume containing those secrets is never mounted.
This change adds the required mount.

Change-Id: I1d8f84d3870a98957784be4d3a5582b3cc011bf1
2021-10-07 09:04:08 -05:00
Zuul
615263ee6e Merge "Uplift go-redfish version" 2021-10-07 04:04:51 +00:00
Herrera, Josh (jh813b)
c1508815b5 Use bundle mock for document tests
Removed unnecessary test bundle files and instead mocked the usage of all workflows related to bundles in these lines of code.

Relates-To: #464
Relates-To: #465
Change-Id: I8f95e81e95b3215bf3994ae446fa66a9f818ebed
2021-10-05 22:42:13 +00:00