1210 Commits

Author SHA1 Message Date
Zuul
f681da04f2 Merge "Add RAID to example hardwareprofile" 2020-10-14 14:53:01 +00:00
Ruslan Aliev
a6363f1c1e Run image build command like a phase
We perform almost the same activities prior calling createBootstrapIso
function like we do that in phase executor, also image build command
now is techically outdated since it doesn't work because it fails with
"phase document was not found" error. This patch removes unnecessary
functions like GenerateBootstrapIso and runs image build command in
a phase way. Test coverage increases slightly (by 0.2%) by removing
partially duplicating code which was not tested properly. Minor bug
fixes included.

Change-Id: I545004cea721164838b296ae647a7651cde248ff
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2020-10-13 17:48:55 -05:00
Zuul
f92e8bd042 Merge "Replace PrimaryRepositoryName with PhaseRepositoryName" 2020-10-13 20:50:53 +00:00
Zuul
0f799cc0df Merge "Integrate gcp provider (capg) with airshipctl" 2020-10-13 20:03:16 +00:00
Zuul
2b7ace99ff Merge "Migrate Replacement Transformer plugin" 2020-10-13 18:39:48 +00:00
Zuul
41bf225d3b Merge "Remove clusterctl install from gate script" 2020-10-13 17:38:40 +00:00
Rishabh Kumar Jain
219b29f1a6 Integrate gcp provider (capg) with airshipctl
* add documentation for gcp provider (capg)
  * add manifests for gcp provider (capg)
  * add cluster templates for control plane and workers
  * add site definition to use gcp provider (capg) with
    control plane and workers

Zuul Gate Scripts: https://review.opendev.org/#/c/749165/
Change-Id: I3ea07fcafe49fc2698d9d961222550c45b40cd66
2020-10-13 17:34:33 +00:00
Zuul
cb8be36fdb Merge "Implement JSON path filter for kyaml.RNode" 2020-10-13 17:22:26 +00:00
Dmitry Ukov
ca1a3a2d0b Migrate Replacement Transformer plugin
Plugin extended to support new kustomize plugin framework which
consider each plugin as a container

Change-Id: If55b7093f711401165b7d4fd3f5b1059fde464ff
Relates-To: #340
2020-10-13 20:43:55 +04:00
Sirajudeen
8307148482 Remove clusterctl install from gate script
* clusterctl commands are driven through phase run.
  So removing install clusterctl CLI utility from gate
  script

Change-Id: I1c57aa07a9e19495c94c3080d0ce40dfc0e5dd47
2020-10-13 15:11:59 +00:00
Kostiantyn Kalynovskyi
7095d09de2 Fix kubeconfig flag to be passed to executor
Change-Id: I6e9951785158cecfb952255426d8b5bb40be37ea
Closes: #366
Relates-To: #366
2020-10-13 01:07:49 +00:00
Zuul
03a1e28964 Merge "Fix workload ingress controller" 2020-10-12 21:56:15 +00:00
Zuul
1e6675a941 Merge "Fix shell syntax causing gates to silently fail" 2020-10-12 21:56:04 +00:00
Kostiantyn Kalynovskyi
3964487ced Fix workload ingress controller
Change-Id: Ibcb0678400530157f911751a2cf7c0f35b21fb55
2020-10-12 13:05:29 -05:00
Vladimir Kozhukalov
0dc4ab7491 Replace PrimaryRepositoryName with PhaseRepositoryName
Change-Id: I2276a3b3ea50b8e81dd240815cd00a0a2a2af96e
Relates-To: #356
2020-10-12 15:28:27 +03:00
Zuul
3866d358b8 Merge "Integrate openstack provider(capo) with airshipctl" 2020-10-09 21:47:44 +00:00
Zuul
ce3d3b3242 Merge "Make document validatation job non voting" 2020-10-09 14:48:24 +00:00
Zuul
9ab8452a8e Merge "Add documentation for example hardwareprofile" 2020-10-09 14:11:15 +00:00
Zuul
a22c8623c1 Merge "hostgenerator-m3: make profile optional" 2020-10-09 14:05:36 +00:00
Roman Gorshunov
585a75acf3 Fix shell syntax causing gates to silently fail
Fix shell syntax causing gates to silently fail with error
  ./tools/deployment/35_deploy_workload.sh:
  line 33: 404: command not found

Change-Id: Id49dde7e7c50f6596359e5ec7b6643401797ac9a
2020-10-08 14:18:09 +00:00
Zuul
76e4d3f48c Merge "Remove kubeconfig from config struct" 2020-10-07 21:57:49 +00:00
Zuul
8d68515118 Merge "Use proxy settings from env vars" 2020-10-07 19:46:48 +00:00
Ruslan Aliev
fc33287204 Remove kubeconfig from config struct
Change-Id: I5ab8722dd151d9e652e0b20e1d82988cd98505af
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2020-10-07 14:35:07 -05:00
Zuul
64ef1f9ef1 Merge "Adding encrypt and decrypt subcommands to secret command" 2020-10-07 19:21:18 +00:00
Zuul
10620da2cc Merge "Changes gating scripts to use the airshipctl move command." 2020-10-07 18:30:41 +00:00
Zuul
857b51612c Merge "Add ability to perform baremetal operation against all nodes" 2020-10-07 14:35:02 +00:00
Dmitry Ukov
025c2172d6 Implement JSON path filter for kyaml.RNode
Change introduces kyaml.RNode Pipe Filter which uses k8s go-client JSON
path parser. This enables to use JSON queries defined by
https://goessner.net/articles/JsonPath/

Change-Id: I6c2276f27652190ed9d183cea0e45eb118346c6b
Relates-To: #340
2020-10-07 15:27:19 +04:00
Ratnopam Chakrabarti
34fd3e0bfc Integrate openstack provider(capo) with airshipctl
* add documentation for openstack provider (capo)
  * add manifests for openstack provider (capo)
  * add cluster templates for control plane and workers
  * add site definition to use openstack provider (capo) with
    control plane and workers

Change-Id: I7158aa87f2ef044d0acca448e3b1c19f58416e22
2020-10-06 16:01:48 -04:00
Stanislav Egorov
bccfe4b1ff Use proxy settings from env vars
For the labs behind the corporate proxy we need to define proxy settings as env vars.
Inside Ironic pod there is init-bootstrap container which is using curl with external
URLs. This change introduces the env vars for proxy in the ConfigMap mounted to all
Ironic containers in the pod. Also Ephemeral Secret now has an option to use proxy.

Relates-To: #355

Change-Id: I4f1c61c8381d57e4ad8adc063434468fdfa0e959
2020-10-06 17:22:26 +00:00
Zuul
4b8209f100 Merge "Add CI metadata path override" 2020-10-06 16:27:39 +00:00
Zuul
9b79bbf898 Merge "Extend plugin interface with execute method" 2020-10-06 15:40:44 +00:00
uday.ruddarraju
8fccf09753 Adding encrypt and decrypt subcommands to secret command
Design document: https://docs.google.com/document/d/1EjiCuXoiy8DEEXe15KxVJ4iWrwogCyG113_0LdzcWzQ/edit?usp=drive_web&ouid=102644738301620637153

This is the third of multiple patchsets to support
encryption and decryption in airshipctl

Complete feature: https://review.opendev.org/#/c/742695/

Change-Id: Ibe1060a83d11233cccaa3d3989765968a4dbed76
2020-10-06 08:37:56 -07:00
Arvinderpal Wander
e3065784ee Changes gating scripts to use the airshipctl move command.
Change-Id: I383343f4cde3aa3d431844f5792ee75d305d5210
2020-10-06 06:57:54 -07:00
Zuul
96e88e2523 Merge "Uplift cluster-api go package to 0.3.10" 2020-10-06 00:41:28 +00:00
Zuul
c6a9082b2c Merge "Making gate runner job dependent of small jobs." 2020-10-05 22:37:29 +00:00
Sidney Shiba
d0683139fe Integration of Azure provider to Airship 2.0
This commit integrates the Azure provider to the Airship 2.0 project.

It adds the following folders:
- manifest/function/capz: This folder contains all manifests required
for the integration of Azure provider.
- manifest/function/k8scontrol-capz: This folder contains the base
manifest for the Azure Workload cluster.
- manifest/site/az-test-site: This folder contains the manifests used
for initializing the CAPI and CAPZ components on the management cluster
invoking "airshipctl cluster init" and manifests used for deploying a
Workload cluster on the Azure Cloud by invoking the command
"airshipctl phase apply azure".
- tools/deployment/azure: provides the script shell that are used in the
zuul gates and local test.

Updated files:
- zuul.d/project.yaml and zuul.d/jobs.yaml have been updated to include
gates for validating the Azure provider integration.

Change-Id: Icbdc7f6f42c159f48dd11e35626da3bc016f5487
2020-10-05 19:27:31 +00:00
Kostiantyn Kalynovskyi
8b86f156b0 Uplift cluster-api go package to 0.3.10
This commit uplifts cluster-api go package to 0.3.10
In new version we are now allowed to skip var subsitution completely
that is why TestAdditionalVariableSubstitutionRepoClient is changed
to relfect that.

Also some of the cluster-api constructor functions has been changed,
and we are changing our factory injection methods as well.

Change-Id: I24aa849271eb7109eb4f7d53a352ea3bb20a21a5
2020-10-05 12:21:17 -05:00
Zuul
8c180daf4e Merge "Removes BMH specific logic in the airshipctl move command. Also removes pkg dependencies that were introduced by the BMH logic." 2020-10-05 16:43:01 +00:00
Zuul
e884972839 Merge "Increase gate test timeout to 2 hours" 2020-10-05 15:01:52 +00:00
Dmitry Ukov
0d475ec6c5 Extend plugin interface with execute method
Change introduces evolution of airshipctl document plugins which
are compatible to the new approach for kustomize plugins.

Change-Id: I422110ba523b97c8a80a0b82cb43b70a4ee8e558
Relates-To: #322
2020-10-05 13:24:03 +04:00
Ruslan Aliev
07c44eedb7 Add ability to perform baremetal operation against all nodes
If no name or label filter specified baremetal operation will
be performed against all nodes with baremetalhost kind. Also,
baremeral cmd code was refactored and combined, which allowed
to remove duplicated code and slighlty improve test coverage
by reducing the number of untestable lines.

Change-Id: Ieadafdb9f55b995d4b47aeff1dc7233325f3191c
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #361
Closes: #361
2020-10-05 00:29:40 -05:00
Arvinderpal Wander
e909aff0ad Removes BMH specific logic in the airshipctl move command.
Also removes pkg dependencies that were introduced by the BMH logic.

Change-Id: Ib1235b5a8043f2f53d90a818fff25df4fdb9ec20
2020-10-03 07:52:21 -07:00
Zuul
a61554984b Merge "Fix unit test for showProgress function" 2020-10-03 00:34:51 +00:00
Sirajudeen
c643f7c3f4 Making gate runner job dependent of small jobs.
* The idea here is to execute all the applicable small jobs first.
* If all the applicable small jobs succeeds, then proceed with the
  long running gate runner job.

Change-Id: I807ad3bf725db35945e83feff0601b011c771d5a
2020-10-02 21:00:57 +00:00
Zuul
6d4a75dc71 Merge "Reduce Zuul CI pool workload" 2020-10-02 13:33:57 +00:00
Ruslan Aliev
cc46ae2ef4 Fix unit test for showProgress function
Sometimes unit test for showProgress function fails if progress bar
was not finished before refreshing event occurs, so progress bar
prints to io.Writer its intermediate state (which is normal since
in regular terminal the output everytime overwrites by carriage
return), so expected and actual output become different. This PS
changes the concept of testing this function and adds the error
tracking of showProgress execution. Some other minor changes included.

Change-Id: I78b4fa9674d4412fa83c1e9320b686923cbe8084
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2020-10-02 01:52:59 -05:00
Noor Muhammad Malik
58c8284f74 Add RAID to example hardwareprofile
This adds supported RAID levels and their associated parameters
in the example hardwareprofile. This is an extension to the
hardwareprofile that was created by a previous patch.
https://review.opendev.org/#/c/740132/

Since there is no default RAID profile, the template does
not have a RAID field in it, only the VariableCatalogue is
updated.

Change-Id: I50c82ce5f8f66aad132571e631f231623704862a
Closes: #337
2020-10-01 05:17:15 +00:00
Zuul
a5b003a347 Merge "Add hardwareprofile-example to controlplane phase" 2020-09-30 19:15:53 +00:00
Roman Gorshunov
1ad48c0983 Reduce Zuul CI pool workload
Added patterns of files which should and should not trigger jobs on Zuul CI,
to reduce workload imposed onto the CI infrastructure.

Change-Id: I7081c7a2a4902a29e571dce1133465f2821d71a3
2020-09-30 19:38:55 +02:00
Zuul
e7866285f5 Merge "Enhance cleanup script" 2020-09-30 14:40:39 +00:00