2262 Commits

Author SHA1 Message Date
Kostiantyn Kalynovskyi
10f51f4a10 Stop pausing BMHs and applying it to target cluster
Closes: #501

Change-Id: I22ba53ea23ae9bbdecf8b47c81c0f075926591ce
2021-05-27 20:06:24 +00:00
Zuul
fa939137d2 Merge "Removed HelmRepository from helm-chart-collator and created as a seperate function" 2021-05-27 19:50:16 +00:00
Zuul
7bbf25400e Merge "Externalize KRM function versions" 2021-05-27 19:47:07 +00:00
Ruslan Aliev
16e5e9f06a Use proper object to create cmdutil factory
MatchVersionFalgs object should be used instead as cli-utils
library suggests, particularly it will allow us to avoid the
issue when airshipctl apply process stuck after Unknown state.

Change-Id: Id6d6ca69a67cb4a500b150a00df538ffffa11eb3
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Closes: #552
2021-05-27 12:24:39 -05:00
sa069q
d606d3a856 Removed HelmRepository from helm-chart-collator and created as a seperate function
Change-Id: Ic32fab2eccf41b851de5694d13584c6c4789d62c
2021-05-27 21:14:31 +05:30
Zuul
466c7892dc Merge "Remove redundant waiting logic for BMHs" 2021-05-27 00:31:08 +00:00
Zuul
e6391444fd Merge "[FIX] Fix timeout error waiting for bmh ready" 2021-05-26 21:14:23 +00:00
Sean Eagan
a65a7e155b Externalize KRM function versions
Relates-To: #524
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
Change-Id: I7e811835ae1e5ab2cab65c398c53126f3a632405
2021-05-26 20:18:49 +00:00
Zuul
9dd3419cf2 Merge "Fix an issue with selecting which site to test" 2021-05-26 16:13:00 +00:00
Matthew Fuller
c03b1f6a45 [FIX] Fix timeout error waiting for bmh ready
There appears to be a race condition in the
kubectl_wait_bmh.sh script. It waits for the bmh
to reach provisioning state 'ready', but it may
have already moved into 'provisioning' state between
checks. Changed the script to wait for the final
'provisioned' state instead.

Change-Id: I3d825e8d6b2b4d3f2a4b15fe4c2823fb03588405
2021-05-26 14:26:24 +00:00
Zuul
cc5221972a Merge "Update Validation Logic for Clusterctl Move" 2021-05-26 04:03:58 +00:00
Zuul
d76e9dba0e Merge "Move kubectl calls to KRM toolbox pt.7" 2021-05-26 04:03:54 +00:00
Zuul
01c0ddd9f2 Merge "Move kubectl calls to KRM toolbox pt.6" 2021-05-26 03:20:49 +00:00
Kostiantyn Kalynovskyi
0e38cc0863 Remove redundant waiting logic for BMHs
Waiting for BMH to become ready isn't needed because we wait for
node to become ready anyway. It is not guaranteed that BMH will
ever reach provisioning state ready, because this status is
intermediate.

Change-Id: Ia3a9e41daaf759dbb48dd7d615bf993b1831f1d1
2021-05-26 00:51:54 +00:00
Zuul
9f4b5b82bd Merge "Update default CRI and cgroup driver" 2021-05-25 16:50:18 +00:00
Vladislav Kuzmin
dff6085f34 Move kubectl calls to KRM toolbox pt.7
Move kubectl calls to phases. These phases call KRM toolbox with
prepared shell scripts.

Change-Id: If847bc822981f4781eed12461f16adfbf53686a6
Relates-To: #517
2021-05-25 14:08:10 +04:00
Vladislav Kuzmin
22b84b2ca0 Move kubectl calls to KRM toolbox pt.6
Move kubectl calls to phases. These phases call KRM toolbox with
prepared shell scripts.

Relates-To: #517
Change-Id: I70d3d5a6469af826ed4105bdc946849176e2b700
2021-05-25 14:07:59 +04:00
Sirisha Gopigiri
3274b41151 Config- updating cmd files for documentation
The description and examples are updated for the airshipctl
commands, which will be inturn used for generating documentation.
Please ignore the .md file changes in this PS. They are added for zuul
gates to pass. Here is the PS with generated documention
files https://review.opendev.org/c/airship/airshipctl/+/789250

Relates-To: #280
Change-Id: If3ec175e2f582919296576a4bff6ae64871a7333
2021-05-25 12:14:59 +05:30
Zuul
1f5dbf8645 Merge "Implement render method for container exec" 2021-05-24 21:32:08 +00:00
Zuul
dc8c241c31 Merge "Show the context name and current context using get-context command" 2021-05-24 21:31:52 +00:00
Zuul
e25b89a51f Merge "Generate user guide command links" 2021-05-24 21:31:46 +00:00
SIGUNOV, VLADIMIR (vs422h)
e174dbe318 Update default CRI and cgroup driver
Default CRI: containerd
Default cgroup driver: systemd

* Fixed VM disk size issue

Relates-To: #456

Change-Id: I4072fffcd466534e51a4e2da0b38272ead820d65
2021-05-24 21:02:02 +00:00
Zuul
be81343ace Merge "Fix validate-docs script" 2021-05-24 19:47:55 +00:00
Ian Howell
e2213885cf Fix an issue with selecting which site to test
This fixes the name of the ansible `site` variable to `site_name`, so
that we can properly set the value of the SITE environment variable
while running gate scripts.

Change-Id: I9156fbdda4e52dc2b5310beb4d285736282bc8b6
2021-05-24 12:42:37 -05:00
Zuul
89e81b54a7 Merge "Move kubectl calls to KRM toolbox pt.5" 2021-05-24 12:42:53 +00:00
Zuul
46df5d4076 Merge "Redirect STDOUT to STDERR in virsh script" 2021-05-24 00:27:02 +00:00
Zuul
67d8887b9d Merge "Combining helm-chat-collator with HelmRepository" 2021-05-22 12:59:20 +00:00
Zuul
7e992e38f7 Merge "Adding a phase to help importing external secrets" 2021-05-22 03:25:26 +00:00
Ruslan Aliev
356b04c0d4 Support proxy envs for kubeval-validator krm function
This patch will inject custom root certificate authorities if needed.

Change-Id: I00199606b0353f674d61773bf3215fa46109d9c6
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-05-21 15:53:55 -05:00
Zuul
4dd7465af7 Merge "Redirect all stdout of the toolbox containers to stderr" 2021-05-21 19:28:05 +00:00
Pallav Gupta
98a7976b73 Fix validate-docs script
Validate-docs script return exit 0 status even though
airshipctl command fails in variable assignment with
broken pipe. This make validate-docs zuul gate passes
without complete script execution. In order to solve
this issue added bash option 'set -o pipefail' which
ensure return exit 0 if all commands in the pipeline
exit successfully.

Also minor change in echo statement which should print
'successful site valiation' only when particular phase
evaluate not for skipped phases.

Change-Id: I24db77e8054f4c7017d533b6640516f3141675fc
2021-05-20 23:45:05 -07:00
Zuul
f87fbdbadb Merge "Add ntp to network catalogue" 2021-05-20 20:09:43 +00:00
Zuul
6bf2f4daee Merge "Improve release notes issue selection accuracy" 2021-05-20 17:54:38 +00:00
Kostiantyn Kalynovskyi
c4598ba4cb Redirect all stdout of the toolbox containers to stderr
Initially we did not want this because we had a feeling that
at some point we want to perform render action inside the script.
Rendering inside the script would facilitate better debugging
functionality. Where each script would be able to render, validate
and run. However, at this point solution seems like overengineering
and seems like this should be simply a limitation of the toolbox image.

Change-Id: I99871c1c79934612d9a1ac06a5141e57e5497054
2021-05-20 17:48:51 +00:00
sa069q
245ddc3b4b Combining helm-chat-collator with HelmRepository
Change-Id: Id88a6ff7e8c464116b0e184750d1a13b2baee986
2021-05-20 11:13:12 +05:30
Alexey Odinokov
cce32b5d16 Adding a phase to help importing external secrets
In addition:
moved decrypt-secret to type level to avoid duplication
updated documentation

Change-Id: I33511ce2db27304e18720ffba5342419a986929a
2021-05-20 04:50:06 +00:00
Zuul
281e99aa3d Merge "Fix passing entrypoint as a build arg" 2021-05-20 01:08:23 +00:00
Vladislav Kuzmin
df3a4b1883 Move kubectl calls to KRM toolbox pt.5
Move kubectl calls to phases. These phases call KRM toolbox with
prepared shell scripts.

Relates-To: #517

Change-Id: I5e847250902c1bebe9464e01c64e607dbdac98bc
2021-05-19 19:23:43 +04:00
Vladislav Kuzmin
4d56bccd44 Redirect STDOUT to STDERR in virsh script
KRM framework need only valid yaml in STDOUT
otherwise must redirect to STDOUT.

Change-Id: I89ac1c0622a542b3906eaf65cb94bf946239518f
Relates-To: #517
2021-05-19 19:20:36 +04:00
Matthew Fuller
b69a641940 Add ntp to network catalogue
Adds an ntp object to the NetworkCatalogue schema
and populates default ntp servers into the networking
base catalogue. Also adds replacement rules in:

* function/k8scontrol/replacements
* function/workers-capm3/replacements

Change-Id: I5dedda563c8825c283e7ba846bedb0b282459d41
2021-05-19 15:13:34 +00:00
Ratnopam Chakrabarti
1cd6c2842a Update Validation Logic for Clusterctl Move
Removed the namespace condition check from the validation of 'Move'.
This is to allow validation of docker and cloud provider test site
manifests that do not use namespace.

Relates-To: #503
Change-Id: I39544ba9c9c13ff5a6519b7afd8844629e60087e
2021-05-19 11:09:25 -04:00
Zuul
c8d9160fe2 Merge "Functionalize workers/provision" 2021-05-19 15:05:55 +00:00
chumkid
02d2fc7e4a Show the context name and current context using get-context command
The command "airshipctl config get-context" will display the name of the contexts as well as the current context name.

Relates-To: #475
Change-Id: I8234d74f6b98869e27e4974a54b68230d8be8565
2021-05-19 13:42:22 +05:30
Andrii Ostapenko
3ad8f34e3f
Fix passing entrypoint as a build arg
Neither ARG or ENV are not expandable in ENTRYPOINT, though since
ENV is available at runtime, we can use it as a work-around here.

Thus, before [0], ENTRYPOINT could be overridden using env by passing
--env BINARY=../../../<path to any binary>.
Now previous default behavior is broken since we don't have ENTRYPOINT
env var. This commit fixes default behavior and allows to modify it
from build arg as was intended with [0].

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

Change-Id: I115df039bc4f845d07f53f68fa3b716d86e8b3a9
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2021-05-19 01:05:49 -05:00
Zuul
3f5c7efd81 Merge "Allow to override default entrypoint for airshipctl image" 2021-05-19 04:56:34 +00:00
Zuul
e38f4fbf4c Merge "Use site-wide kubeconfig only on demand" 2021-05-18 19:06:09 +00:00
Zuul
a9dcdaaf47 Merge "Use bundle mock for k8s applier tests" 2021-05-18 17:49:49 +00:00
Alexander Hughes
01753f64f8 Functionalize workers/provision
- moves metal3 worker definition to its own function
- removes workers-classification phase
- removes 37_verify_hwcc_profiles.sh script

Signed-off-by: Alexander Hughes <Alexander.Hughes@pm.me>
Co-authored-by: Matthew Fuller <mf4192@att.com>
Closes: #537

Change-Id: I844e88a1bf7a80954aca5afc8fa49a534c9ff2b0
2021-05-18 16:09:49 +00:00
Andrii Ostapenko
d5049239dc
Allow to override default entrypoint for airshipctl image
Change-Id: Ic1eb96fbc7c0a510d135c079ac94187a51087155
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2021-05-18 00:33:07 -05:00
Zuul
9ca9106f34 Merge "Add replacements/ for the flux composite" 2021-05-18 03:38:02 +00:00