1654 Commits

Author SHA1 Message Date
Niharika Bhavaraju
90c0116b7f Phase Validation: k8s applier package changes to support Phase Validation sub command
Relates-To: #330

Change-Id: I1503bcef1bc9d91d6897065a7c4418c1aa6181b6
2021-02-24 13:35:50 +00:00
Zuul
abc8315828 Merge "Implements custom QCOW delivery" 2021-02-24 05:21:01 +00:00
Andrii Ostapenko
3f559c3c1e
Implements custom QCOW delivery
With this commit QCOW images are pulled as a docker image to new
qcow-bundle container within ironic pod and copy them to shared ironic
volume to be served to hosts.

Also squashed with [0], manifests are adjusted to consume new QCOWs and
old QCOW related funtionality is removed.

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

Co-Authored-By: Alexey Odinokov <aodinokov@mirantis.com>
Co-Authored-By: Craig Anderson <craig.anderson@att.com>

Change-Id: I958184b34ae94206bc5e87993e9287587b6a11d9
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2021-02-23 15:43:45 -06:00
Zuul
1ffe4f044d Merge "Update sushy-tools to latest" 2021-02-23 18:52:30 +00:00
Zuul
b9ecb7095a Merge "Add phase to apply CNI (capd)" 2021-02-23 01:25:54 +00:00
Zuul
0166bfc38f Merge "Fix role not found when running locally" 2021-02-23 00:58:56 +00:00
Zuul
69f5b3534d Merge "Allow airshipctl phase render to display encrypted secrets" 2021-02-22 23:40:56 +00:00
Zuul
4c1d1f87c0 Merge "Increase site doc validation job timeout" 2021-02-22 21:27:38 +00:00
Zuul
0124d16aba Merge "Cleaning up not needed artifacts" 2021-02-22 21:22:41 +00:00
Zuul
7e2e6975ec Merge "Read manifest repository URL from env" 2021-02-22 17:02:12 +00:00
Rishabh Kumar Jain
95fc665cc3 Add phase to apply CNI (capd)
* add phase initinfra-networking-target
  to apply CNI

Relates-To: #452
Change-Id: I239de9d3cecb6da66a8f06ebc7bd93def9cdacee
2021-02-22 16:10:39 +00:00
Sreejith Punnapuzha
879c93bad2 Fix role not found when running locally
This Commit fixes role not found issue when running script
20_run_gate_runner.sh

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: Ic671cf04f30ae9647b052ce31f2ca76fb80043cf
2021-02-22 10:03:24 -06:00
siraj.yasin
191736e852 Read manifest repository URL from env
* Read manifest repository URL from environment variable,
  so that it can be configured to use for other repos like
  treasuremap

Change-Id: I756e5be6fce72d4a5e7fe2d2f1115e92ea67843f
2021-02-19 21:41:28 +00:00
Sean Eagan
43698482ab Fix github release workflow npm permissions
Change-Id: I14d6ac20f10ed1aec0fa83108e92ba1dbf116dfe
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
v2.0.0-beta.4
2021-02-19 12:55:30 -06:00
Zuul
afcfd2422c Merge "CRITICAL: Switching to krm generic containers" 2021-02-19 08:54:34 +00:00
Alexey Odinokov
b9734169a1 CRITICAL: Switching to krm generic containers
There is an issue with airship generic containers -
if the output yaml contains empty lines it removes that.
Krm generic containers don't have that issue.
The plan is to switch to krm and continute to debug

Change-Id: I49dfea8ba4f05dca70209a56f783195d4a213fa4
2021-02-18 16:49:38 +00:00
Zuul
b8a4b6ad73 Merge "Adding secrets/encryption how-to-guide doc" v2.0.0-beta.3 2021-02-17 20:52:06 +00:00
Alexey Odinokov
1d7f8db802 Adding secrets/encryption how-to-guide doc
Relates-to: #454
Change-Id: I7ab7a0be00e37ef74258b73e4b2477cc6ac35129
2021-02-17 18:37:26 +00:00
Alexey Odinokov
f2dc2ca3f6 Allow airshipctl phase render to display encrypted secrets
Relates-to: #453
Change-Id: I150a48cbec5c87943ed6c07a8ef8d562437fda46
2021-02-16 19:27:23 +00:00
Alexey Odinokov
96379d25b3 Cleaning up not needed artifacts
Change-Id: I746a46a809907e6cae453a66361d68f3583783ff
2021-02-16 04:14:38 +00:00
Zuul
f50998935e Merge "Integrate clusterctl client into phases" 2021-02-13 06:04:05 +00:00
Zuul
0d4f377c4e Merge "Extend kubeconfig builder" 2021-02-13 05:56:19 +00:00
Zuul
a252b248bc Merge "Adding encryption of k8s secrets and iso users passwords" 2021-02-12 23:11:52 +00:00
Zuul
ea055dc87c Merge "Allow container config to be referenced as objects" 2021-02-12 21:06:53 +00:00
Zuul
69017214aa Merge "Templater config syntax update for env vars" 2021-02-12 19:50:06 +00:00
Zuul
d2e0f5121b Merge "Fix github release trigger" 2021-02-12 19:01:16 +00:00
Zuul
1d1511b3cc Merge "Publish binaries on release" 2021-02-12 19:01:12 +00:00
siraj.yasin
c417060e02 Templater config syntax update for env vars
* Env vars were not replaced in the templater and is always empty string
  in the rendered yamls.
* Updated the correct syntax for using env in templater

Change-Id: I840d7d246d1408addbe9871e1e251e15a35e0305
2021-02-12 15:48:57 +00:00
Alexey Odinokov
b51e7559b6 Adding encryption of k8s secrets and iso users passwords
This patchset introduces a generated with template [1] and encrypted
VariableCatalogue generated-secrets that contains steps to
generate: ephemeral and target CA+admin key/cert and passwords for
users in ephemeral bootstrap iso.

It also introduces the way how these secrets are used in manifests:
They're decrypted by kustomize and incorporated into the folders
`catalogues` in the site, so they can be used by replacement plugin.

This patchset contains modifications in replacement plugin
configurations to put the decrypted values from VariableCatalogue
in place.

Since k8s secrets were substituted with generated values
this patchset removes pre-generated k8s secrets.

[1]
manifests/type/gating/target/generator/secret-template.yaml

Change-Id: I0898c74012833f0e171d36bb8145acf358510b69
2021-02-12 04:07:36 +00:00
Matt McEuen
0398c974ed Update sushy-tools to latest
This migrates away from a custom fork of sushy-tools, which worked
around the booting issue described here:
https://storyboard.openstack.org/#!/story/2007689

This issue has been fixed, according to the following issue, so
this patchset migrates us back to upstream sushy-tools.
https://review.opendev.org/c/openstack/sushy-tools/+/733152

Change-Id: I421c9d267640720571ac6fa2341af5102afbafb2
Closes: #467
2021-02-11 17:49:42 -06:00
Zuul
56cb8cef20 Merge "Allow to get container logs asynchronously" 2021-02-11 21:22:56 +00:00
Sean Eagan
e34f1ea83e Fix github release trigger
The `git.ref` variable includes the `refs/tags/` prefix [0].

[0]: https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context

Change-Id: I2880c7cc1463e52cc8ca6605db80b2a46cb5a449
2021-02-11 14:37:40 -06:00
Alexander Hughes
2d523314d8 Bump linter from 1.29 to 1.36
Updating linter to latest version, which also updates
gosec to latest version to keep on top of updated security
checks in source code. Also disable gosec testing for rand.new.

Co-Authored-By: Alexander Hughes <Alexander.Hughes@pm.me>
Co-Authored-By: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I46e71c41597f70150ace6d9611da5a01f93a933d
Signed-off-by: Alexander Hughes <Alexander.Hughes@pm.me>
2021-02-11 12:08:21 +00:00
Zuul
743f652494 Merge "Preparing zuul tests for secrets generation" v2.0.0-beta.2 templater-v1.0.0 2021-02-11 07:22:22 +00:00
Kostiantyn Kalynovskyi
1055f5c82a Increase site doc validation job timeout
the job takes around 45-60 minutes to complete on most of the nodes
however some nodes are slower and it make take a little bit more.

As future enhancement we should pararelize validation and refactor
scripts to run two cluster validation at the same time.

Change-Id: I01ac2ed15727931126058c343dbbb826790e940d
2021-02-11 03:50:15 +00:00
Kostiantyn Kalynovskyi
efc4399e17 Allow container config to be referenced as objects
Now GenericContainer input config can be referenced as another
object inside the config bundle (with phase and executor objects).

Change-Id: Iff35e0844b1e9ce4beb72d939e229410208dcb16
2021-02-11 00:39:36 +00:00
Zuul
de970a8adf Merge "Fixed typos in inventory pkg" 2021-02-11 00:02:51 +00:00
Zuul
40f24de8b0 Merge "Added verbose to gate runner playbook" 2021-02-10 22:27:22 +00:00
Zuul
a73ee005ad Merge "Added a warning message that cluster api already initialized" 2021-02-10 22:20:42 +00:00
Alexey Odinokov
a098fb908d Preparing zuul tests for secrets generation
zuul takes playbooks from master
and if it's necessary to add one more step to
that playbooks, it's necessary to add that first
to playbook, merge and only after that merge the step
itself.

Change-Id: I9569e1e7e4b8be216563ee66b6e6adea170f5aa1
2021-02-10 20:34:39 +00:00
Zuul
34b618be9b Merge "Repair validate-site job" 2021-02-10 20:21:37 +00:00
bijayasharma
62272ed900 Added a warning message that cluster api already initialized
* Currently if the cluster init command is run & the cluster-api
  has already been initialized, the command fails.
* So,this commit adds a warning message that cluster-api already initialized.

Signed-off-by: bijayasharma <vetbijaya@gmail.com>
Change-Id: I93cc6b141c15fa4bc5661646ae0cbdf08580cbf9
Relates-To: #450
Closes: #450
2021-02-10 13:05:17 -05:00
siraj.yasin
3e1553684e Added verbose to gate runner playbook
* Add verbose to see little more details on each tasks of play
* Added option to prettyprint verbose in stdout
  ANSIBLE_STDOUT_CALLBACK=debug
* Updated the virsh cleanup sequence.
  The images(.img) within /var/lib/libvirt/images/ were not removed

Change-Id: I0a52aa4ccca41e3f2258420eb2e1173137ca0d06
2021-02-10 16:40:59 +00:00
Kostiantyn Kalynovskyi
9f051e465a Integrate clusterctl client into phases
This will make sure that phases have access to kubeconfgs generated
by cluster-api for the managed clusters.

Change-Id: Iabecced78192969d7a2ee5a48e75fc3adb0af092
2021-02-10 14:53:40 +00:00
Kostiantyn Kalynovskyi
d9f54b4171 Extend kubeconfig builder
Change-Id: I6724112826a4cc59815b7524bd05af01a9a1d01b
2021-02-10 14:52:39 +00:00
bijayasharma
c50286d015 Fixed typos in inventory pkg
Signed-off-by: bijayasharma <vetbijaya@gmail.com>
Change-Id: I8da797a6883df63adf6089743faa757d1099ef82
2021-02-10 13:20:50 +00:00
Zuul
77268cd1d0 Merge "Implement cluster list command" 2021-02-10 07:11:37 +00:00
Zuul
d0a9adc752 Merge "Implement render method for clusterctl executor" 2021-02-10 04:28:14 +00:00
Zuul
bc919145ac Merge "Fix typos in baremetal executor" 2021-02-10 01:58:51 +00:00
Zuul
5647f5381e Merge "Add ability to create bundle from bytes" 2021-02-09 22:46:15 +00:00