1197 Commits

Author SHA1 Message Date
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
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
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
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
Zuul
2a47c00f00 Merge "Add progress bar and improve cmd output for image build command" 2020-09-30 14:34:03 +00:00
Zuul
29a6906efc Merge "Add test to phase bundleFactory" 2020-09-30 14:26:37 +00:00
Zuul
e4a2c68d3e Merge "Use BundleFactory instead of bundle in executors" 2020-09-30 14:24:52 +00:00
Matt McEuen
0ef0f559f4 Add hardwareprofile-example to controlplane phase
The controlplane phase renders node02, which for demo purposes
uses an "example" hardwareProfile.  However, it doesn't kustomize in
the hardwareprofile-example, resulting in a null "firmware" attribute
in the BMH.

This change includes the hardwareprofile-example, and executes
its replacement configuration to add itself into the hostgenerator.

Change-Id: I4f7b8398384dff52011e8a034ccd798e5afaca1d
2020-09-29 19:11:36 -05:00
Zuul
d4ea864eeb Merge "Fix ListPhases to return not empty phase docs" 2020-09-29 17:47:31 +00:00
Ruslan Aliev
9751968fa8 Enhance cleanup script
There is need to remove airshipctl artifacts in /tmp/airship,
docker containers/images and left processes which use port 8000 or 8099.

Change-Id: I682cf5a6f41875d5be77aa552e4743c9b8cf17df
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2020-09-29 15:38:33 +00:00
Drew Walters
43d4ebe164 Add CI metadata path override
This change adds an environment variable override to change the metadata
path in the Airship config file when using the CI-driven deployment
scripts. This will enable the Treasuremap repository to store
metadata.yaml at the site level while using the same deployment scripts
from airshipctl.

Change-Id: I0862a87417ad7a4d8666df7b34e25327bb40e251
Signed-off-by: Drew Walters <andrew.walters@att.com>
2020-09-29 14:43:05 +00:00
Roman Gorshunov
92ffcb6e66 Reduce Zuul CI pool workload
Added patterns of files which should not trigger the most resource-consuming
job (on 16GB VM) on Zuul CI.

Change-Id: I143a15f531f5179cebf2741eacd67818976fda94
2020-09-29 15:09:40 +02:00
Kostiantyn Kalynovskyi
300486482c Add test to phase bundleFactory
The test makes sure that correct error is returned when bundle
factory fails, and increases test coverage of executor() function

Change-Id: Ibfc5d8ea1941a5d4d304a8afaedc5c89efe7c398
2020-09-29 00:40:15 +00:00
Kostiantyn Kalynovskyi
e6e56ffa2e Use BundleFactory instead of bundle in executors
This will allow to avoid using nil bundle and performing
additional checks inside the executors

Change-Id: Ia061cccf7e0a7948bbc5c8fce24e0e6f8b3256e1
2020-09-28 19:39:05 -05:00
Zuul
30914340da Merge "Refactor cluster status command" 2020-09-28 23:01:59 +00:00
Zuul
918291f932 Merge "git diff check updated to watch for md changes" 2020-09-28 22:48:57 +00:00
Zuul
7502da5c34 Merge "Add document pull step to gate script runner" 2020-09-28 22:45:02 +00:00