1210 Commits

Author SHA1 Message Date
Zuul
5643084218 Merge "Switch to using phase documents" 2020-09-16 21:03:24 +00:00
Kostiantyn Kalynovskyi
f4baf5a971 Switch to using phase documents
This commit allows to stop using phases with hardcoded paths to
kustomize entrypoints. Instead we use phase documents defined
in bundles. Phase document has a reference to executor such as
kubernetes apply and clusterctl init. More executors are being
developed

Relates-To: #342

Change-Id: I8babd9d0379763773c443e263373e9816f9dbd39
2020-09-16 11:17:41 -05:00
uday.ruddarraju
694067492c Adding commands to get and set encryption configs
Design document: https://docs.google.com/document/d/1EjiCuXoiy8DEEXe15KxVJ4iWrwogCyG113_0LdzcWzQ/edit?usp=drive_web&ouid=102644738301620637153

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

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

Depends-On: https://review.opendev.org/#/c/749892/
Change-Id: I1a0553622049366977af8c2efbec12012a6fa641
2020-09-16 15:58:16 +00:00
Zuul
d799095d4e Merge "Update the Helm Operator to v1.2.0" 2020-09-16 14:57:03 +00:00
Zuul
c9be1643b5 Merge "Prepare gate to remove airshipctl import" 2020-09-15 22:48:07 +00:00
Zuul
fd4bd1beb9 Merge "Enhance cleanup script" 2020-09-15 21:36:49 +00:00
uday.ruddarraju
f328c43295 Adding encryption config to airshipctl config
Design document: https://docs.google.com/document/d/1EjiCuXoiy8DEEXe15KxVJ4iWrwogCyG113_0LdzcWzQ/edit?usp=drive_web&ouid=102644738301620637153

This patchset comprises of:
- airship config now supports encryption configs to store encryption and decryption keys
from local file system or the kubernetes api server that will be used to encrypt
and decrypt secrets in a future patchset

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

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

Change-Id: I195e8e254b7cc6b3e04e45d67e0a0e3797183816
2020-09-15 14:11:04 -07:00
Zuul
3601c2b59c Merge "Cleanup phase package" 2020-09-15 20:23:36 +00:00
Sirajudeen
196150649a Prepare gate to remove airshipctl import
* Inject target-cluster-ca as sceret
* Create kubeconfig using gate scripts with both ephemeral and
  target clusters.
* With both contexts predefined in kubeconfig,
  just switch/use context in gate scripts as required.
* Removed the use of airshipctl import from gate script

Change-Id: I5a9a56db71f0a80d9b35144eacbdd980c13c9ffb
Relates-To: #329
Closes: #329
2020-09-15 15:22:27 -05:00
Zuul
21e6bf7985 Merge "Use cluster name as context in executors" 2020-09-15 19:35:44 +00:00
Zuul
2266d0e0b3 Merge "Add DEBIAN_FRONTEND=noninteractive to setup script" 2020-09-15 18:45:37 +00:00
Kostiantyn Kalynovskyi
285130106a Use cluster name as context in executors
Change-Id: I4fcf524dd2ff466290b80df7d966f90aa0409471
Relates-To: #342
2020-09-15 12:29:16 -05:00
Kostiantyn Kalynovskyi
b63c9e3888 Cleanup phase package
Change-Id: Ib849da5faa2f69f058bd9df814b55e117ecefb8a
Relates-To: #342
2020-09-15 17:27:40 +00:00
Zuul
40fd9eeadd Merge "Implement clusterctl move executor" 2020-09-15 17:27:23 +00:00
Noor Muhammad Malik
87a428a3e8 Add documentation for example hardwareprofile
This adds a verbose guide for example hardwareprofile
highlighting the RAID and firmware configurations that are
currently the features present in it.

Change-Id: I65c23cca60ac57fe152556c7a45eb33c17260b6d
Closes: #338
2020-09-15 20:20:47 +05:00
Sreejith Punnapuzha
87d9738bb7 Enhance cleanup script
* add steps to clean iso and network for gates

Change-Id: I7ffc62cac9690e524c559af554ff6d1a70683368
Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
2020-09-15 15:14:42 +00:00
Zuul
c176e78979 Merge "Allow substring replacement of numerics" 2020-09-15 14:01:12 +00:00
Kostiantyn Kalynovskyi
6114d5895f Implement clusterctl move executor
Change-Id: Ibb3aea6ead51409b9cbd69cc02e685d3fce186a4
Relates-To: #342
2020-09-15 08:57:25 -05:00
Zuul
53c96ea413 Merge "Make clean script executable" 2020-09-15 12:29:37 +00:00
Vladimir Kozhukalov
b76ddc98ac Fix TestPersistConfig
testutil.InitConfig writes sample configs to files,
 and if we just check that these files exist after
 calling PersistConfig function, then don't test anything.

 We have to change config file paths before calling PersistConfig
 and then we can check if these files exist.

Change-Id: Ibaee17a57a86251f7016bb57b2d8bd9976cefac0
2020-09-15 14:13:47 +03:00
Zuul
06029bc1bc Merge "Allow do gather pod logs for different clusters" 2020-09-14 22:34:36 +00:00
Zuul
edd35f2aaa Merge "Uplift provider components in test site" 2020-09-14 22:34:35 +00:00
Zuul
7b03d837ba Merge "upgrade cabpk to v0.3.7" 2020-09-14 22:34:30 +00:00
Zuul
eb4a1e3832 Merge "Upgrade capi to v0.3.7 and capm3 to v0.3.2" 2020-09-14 22:22:14 +00:00
Stanislav Egorov
78ec01a1f2 Make clean script executable
Change-Id: Iafbdc12b29139ec73509bdd658ad57f8e77e260b
2020-09-14 14:56:27 -07:00
Matt McEuen
9997e7427e Allow substring replacement of numerics
This change adds the ability to use substring substitution to inject
numeric source values into string targets.  This is required for our
networking catalogue, since a numeric k8s API port needs to be inserted into
numeric and (sub)string targets in different phases.

Co-Authored-By: Ian Howell <ian.howell0@gmail.com>
Change-Id: I24beb46a2bda4e118406129a0a922b0c56142c76
2020-09-14 16:03:51 -05:00
Sreejith Punnapuzha
f48456a69f Uplift provider components in test site
* uplift capi, cabpk, cacpk and capm3 in test site defination
  * uplift images in version catalogue
  * add api timeout in controlplane
  * add timeout for phases

Change-Id: I9de15c4e1979c12eeedb55fbe721b5e7adfe496b
Signed-off-by: Sreejith Punnapuzha <sreejith.punnapuzha@outlook.com>
2020-09-14 20:00:11 +00:00
Sreejith Punnapuzha
cf1f55f3ca upgrade cabpk to v0.3.7
* upgrade cabpk to v0.3.7

Change-Id: Ib6343048eccc95e4b941cf83103cc763b866c687
Signed-off-by: Sreejith Punnapuzha <sreejith.punnapuzha@outlook.com>
2020-09-14 19:58:12 +00:00
Zuul
5627d47074 Merge "Switch phase commands to use refactored command objects" 2020-09-14 19:57:24 +00:00
Zuul
dca6eb81ae Merge "Add phase command objects" 2020-09-14 19:57:23 +00:00
Sirajudeen
4e63c1dda2 Upgrade capi to v0.3.7 and capm3 to v0.3.2
* Added v0.3.7 version of capi
* Added v0.3.7 version of cacpk
* Added v0.3.2 version of camp4

Change-Id: I7b574ef8277192be8e5162384287e9e9ec211a1e
2020-09-14 19:56:47 +00:00
Zuul
f3af1b8066 Merge "Add catalogue-driven CAPI container versions" 2020-09-14 19:37:09 +00:00
Zuul
567e5060db Merge "Use Helper in clusterctl and kube apply executors" 2020-09-14 18:49:22 +00:00
Matt McEuen
70ec47096c Add catalogue-driven CAPI container versions
This allows for container locations and versions for the CAPI functions
to be (optionally) driven by the `versions-airshipctl` versions
catalogue.  In addition, this moves the clusterctl config from the site
level to become its own function, which can be further refined
(e.g. for public cloud providers) via inheriting functions, composites,
types, etc.

Change-Id: Ic2b02e256419ee8536f5237327cce2754fd0abff
Closes: https://github.com/airshipit/airshipctl/issues/316
2020-09-14 18:01:06 +00:00
Zuul
4f6b5252c2 Merge "Add node availability check for deploy initinfra script" 2020-09-14 18:00:45 +00:00
Kostiantyn Kalynovskyi
5c6709478b Switch phase commands to use refactored command objects
Change-Id: I1f9f1620d6e0d3ac836e0189f403b7f794818d53
Relates-To: #342
2020-09-12 15:21:30 +00:00
Kostiantyn Kalynovskyi
c46cdebe48 Add phase command objects
Commit adds phase command object that allow easy calls from cmd
package.

Change-Id: I23a9ab3755dbe366ad9b7ce163f75f64f48148cd
2020-09-12 15:21:12 +00:00
Kostiantyn Kalynovskyi
410f9c4fd7 Use Helper in clusterctl and kube apply executors
Relates-To: #342

Change-Id: I6f3f9b5aac3877f5738f0ec077c65bcf5acfc54d
2020-09-12 15:21:04 +00:00
Zuul
7b62193747 Merge "Implement phase and phase.Client interface" 2020-09-12 01:46:38 +00:00
Zuul
659d9fff1b Merge "Enhance log collection zuul jobs" 2020-09-11 22:08:01 +00:00
Kostiantyn Kalynovskyi
d79c71e94d Implement phase and phase.Client interface
Relates-To: #342

Change-Id: I8882204c0e9eae05fca30c093fcd3bad58e308e1
2020-09-11 16:24:04 -05:00
Rishabh Kumar Jain
a2819983ab Fix docker provider (capd) documentation
* fix the order of set context/set manifest commands
    to configure ~/airship/.config
  * fix broken tables in the markdown
  * add section to tear down the cluster

Change-Id: I24828160bb0da9ec385d3b9493699eda165f8e3a
2020-09-11 20:27:45 +00:00
Sreejith Punnapuzha
a6528dc564 Enhance log collection zuul jobs
* Change name for gate script runner job
  * Make log collection job parameterize

Change-Id: I9f7c711556996af2da350d0160e572e1a26efd0f
Signed-off-by: Sreejith Punnapuzha <sreejith.punnapuzha@outlook.com>
2020-09-11 14:46:50 -05:00
Zuul
3401586acc Merge "Worker node deployment" 2020-09-11 17:18:36 +00:00
Zuul
2f355d884b Merge "Added cleanup script" 2020-09-11 17:18:34 +00:00
Zuul
bc8b11c388 Merge "Remove left over artifacts from set/get-cluster/credentials cmds" 2020-09-11 17:00:02 +00:00
Ruslan Aliev
165ccb2d7a Add node availability check for deploy initinfra script
Deploy initinfra script can fail due to "node01 not found error".
We need to wait until node01 become ready and available before
performing manipulations. Around 10% of gate script runner test
fails due to this error. Example of error can be found here[1],
example of handling - here[2].

[1] https://zuul.opendev.org/t/openstack/build/5f789f5b6f7c42af903a1892cc69ebf8
[2] https://zuul.opendev.org/t/openstack/build/be22de82d32d4c79a9f993d73fcd6d58/console

Change-Id: If525042ec1260afae278542b033abb14b97347f6
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2020-09-11 11:58:33 -05:00
Zuul
864ea8739b Merge "Implement helper interface" 2020-09-11 16:38:18 +00:00
Kostiantyn Kalynovskyi
a5c6b12e7e Allow do gather pod logs for different clusters
Relates-To: #346
Closes: #346

Change-Id: I80d16fdafde3d39cdac65942f49e892297cbfeda
2020-09-10 17:54:16 -05:00
Rishabh Kumar Jain
809b6234a5 Integrate docker provider (capd) with airshipctl
* add documentation for docker provider (capd)
  * add manifests for docker provider (capd)
  * add cluster templates for control plane and workers
  * add site definition to use docker provider (capd) with
    control plane and workers

Change-Id: I36a643774ce2e468b70ab29568bface3da537d41
2020-09-10 21:24:40 +00:00