1875 Commits

Author SHA1 Message Date
Zuul
359c362861 Merge "Fix docker stdin write." 2021-04-07 19:13:11 +00:00
Zuul
7bc47c8a34 Merge "Pass HostNetwork value to docker container" 2021-04-07 19:13:06 +00:00
Kostiantyn Kalynovskyi
7c9dd85eeb Fix docker stdin write.
Without this commit airship can hang endlessly waiting for stdin
to be open. Apparently it depends on the containerd and docker
server version. This commit adds asnyc writing to stdin, this way
we don't have to wait for write to complete before starting docker
container. The code uses similar approach to upstream docker cli
implementation.

Related-To: #513

Change-Id: I2e6d4cbe37df1f8cba356af79c1c2cf18438e86c
2021-04-07 14:37:17 +00:00
Zuul
df135197ad Merge "Remove unused fields from ExecutorConfig" 2021-04-07 11:48:17 +00:00
Zuul
2185f53e16 Merge "Parameterize secret generation" 2021-04-07 06:20:19 +00:00
Sreejith Punnapuzha
c58a4177f8 Fix ssh key replacement
Correct the user for ssh in replacement

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I48a04a8d9be1c05fe36b78c27c4fec2cfc7f4daa
2021-04-06 10:38:55 -05:00
Ruslan Aliev
675f718317 Remove unused fields from ExecutorConfig
AirshipConfig and BundleName fields are not used within Executors,
so they should be removed.

Change-Id: I23c54b854938ae554e888102a41c7ec215b85c27
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-04-03 16:52:15 -05:00
Zuul
346196e6c1 Merge "Add qcow-bundle to base catalogues" 2021-04-03 18:07:07 +00:00
Kostiantyn Kalynovskyi
c17246b006 Pass HostNetwork value to docker container
This fixes a bug when in host value is specified in api object,
but it is ignored by docker

Closes: #512
Related-To: #512

Change-Id: I57e66a19124d1d0a295396491dbd22e2e2193d31
2021-04-03 17:09:32 +00:00
Sreejith Punnapuzha
44b0abb5f9 Parameterize secret generation
Currently secret generation script is hard coded to test-site.
parameterizing it so that we can use the same script for multiple sites

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I501f577952d14541da1cb632e92ae19f577dbd53
2021-04-02 13:17:38 -05:00
Zuul
34282759af Merge "Trigger Github mirroring on tag push" 2021-04-02 01:06:40 +00:00
Sean Eagan
f5f4f31063 Trigger Github mirroring on tag push
Currently tags aren't mirrored until the next patchset is merged,
which delays the Github release workflow.

Change-Id: Ib50b6369d4f8ddeaf832f1de2c8f6b133b9b40c5
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2021-04-01 13:46:53 -05:00
Vladislav Kuzmin
892bb6a16d Move deployment scripts from test-site to function
Change-Id: I35a83a4e3fbc60c0f25b3969d624bbc370f0a41b
2021-04-01 15:52:41 +00:00
Zuul
ea534c379f Merge "Add toolbox krm function" 2021-04-01 07:08:19 +00:00
Zuul
030bb123d8 Merge "Add toleration for taint in helm-chart-collator" 2021-04-01 06:45:20 +00:00
Zuul
c2462f2717 Merge "Use SSH key to access target & worker node." 2021-03-31 18:41:01 +00:00
Sreejith Punnapuzha
494e90df90 Add toleration for taint in helm-chart-collator
This commit adds toleation for taint master:NoSchedule so that
helm-chart-collator deployment will be successfull

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I4c5115a57596984247f7540d2acefd315ef99da4
2021-03-31 16:28:27 +00:00
Zuul
9329b9cc21 Merge "Remove redundant logging when building kubeconfig" 2021-03-31 14:48:27 +00:00
Vladislav Kuzmin
d5c0377207 Add toolbox krm function
Add krm function to execute bash scripts inside container.

Closes: #494
Change-Id: I3074a27a022f65e87f190ab5a39c252f225ca1fa
2021-03-31 13:28:16 +00:00
Sirajudeen
e437d5456b Use SSH key to access target & worker node.
* Private and public key will be generated during
  `phase run generate-secrets`
* generated public key will be used to replace the
  place holders in the manifests and the same will be deployed
  on nodes.
* This can be used to prepare inventory for
  Hostconfig operator to manage nodes.

Depends-On: https://review.opendev.org/c/airship/airshipctl/+/783718

Change-Id: I780f6f6acce3df2fb3ba2f94e732fe34ddfb0454
2021-03-31 13:00:33 +00:00
Zuul
386c44aa44 Merge "Add azure integration document into the doc source tree" 2021-03-31 12:03:20 +00:00
Zuul
8cef84045b Merge "Add validation for catalogues" 2021-03-31 12:02:56 +00:00
Zuul
5c7f919261 Merge "Add function to generate SSH KeyPair via templater" 2021-03-31 12:02:51 +00:00
Zuul
8759632d4f Merge "Bump timeout for airshipctl-gate-script-runner job" 2021-03-31 12:02:39 +00:00
Zuul
f1cab5b579 Merge "Change logic of config set-management-config command" 2021-03-31 12:02:34 +00:00
Kostiantyn Kalynovskyi
ef19a9e5da Remove redundant logging when building kubeconfig
Closes: #500

Change-Id: I0fed5bf5abd5c3bfd193270b7c418f493746bea4
2021-03-31 09:44:33 +00:00
Zuul
e500e3c756 Merge "Add kustomize install script" 2021-03-31 06:40:37 +00:00
Zuul
6a62e11fea Merge "[#323] Cluster list command to output in table/clusternames." 2021-03-31 03:00:29 +00:00
Matthew Fuller
7222467df3 Add validation for catalogues
This change ensures that catalogue CRs (i.e. networking,
versions) are validated when running validate_docs script.

Also fixes:
* problem encountered with the creation of the ironic-vars
ConfigMap when a non-string data type was used as the
replacement target value.
* amends VersionsCatalogue schema to allow an optional
'ipam-manager' object in capi_images, necessitated by
a change to the capm3 function[0].

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

Closes: #476
Change-Id: Idd05eb046e411b757b7d4f7b21a9b89b6cc51bb6
2021-03-31 02:44:07 +00:00
James Gu
e303de5c5b Add azure integration document into the doc source tree
Relates-To: #504

Change-Id: I1645ec6cf2ce6b37509491fbe274b0c399574d0a
Signed-off-by: James Gu <james.gu@att.com>
2021-03-31 02:42:49 +00:00
Zuul
bba25054b0 Merge "Change logic of config set-context cmd" 2021-03-31 02:11:41 +00:00
Zuul
5737f3bf26 Merge "Remove NameInKubeconf field from Context struct" 2021-03-31 02:11:36 +00:00
Zuul
ba5e56d3c9 Merge "Introduce plan validate command" 2021-03-31 02:02:55 +00:00
Zuul
9196dd089a Merge "Reduce the number of unnecessary document.NewBundleByPath() calls" 2021-03-31 02:02:41 +00:00
Sreejith Punnapuzha
ab85f2236f Add function to generate SSH KeyPair via templater
This commit adds functionality to generate SSH keypair via templater
plugins. ssh keypairs can be generated via generate-secrets phase.

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I83720df5f934caf65dab201a1d0894ed3fee6cb5
2021-03-30 18:00:23 -05:00
James Gu
3232e3d9f9 Add kustomize install script
kustomize is a useful tool for debugging when rendering fails

Relates-To: #504

Signed-off-by: James Gu <james.gu@att.com>
Change-Id: I649c74bb7868a80618617db16dc1f1028c262c11
2021-03-30 10:51:37 -07:00
Ruslan Aliev
1684ad45cf Change logic of config set-management-config command
* command internal logic was revised and optimized
 * added ability to delete/reset management config fields
 * unit tests were reorganized, new cases were added

Change-Id: I911df180e6986cb1f4dab6aea01216c8a4e15353
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #348
2021-03-30 12:16:13 -05:00
Niharika Bhavaraju
1f90036413 [#323] Cluster list command to output in table/clusternames.
* airshipctl cluster list
* airshipctl cluster list -o table
* airshipctl cluster list -o name(lists cluster names)

Relates-To: #323
Change-Id: Ic4609b8e05984c14acf8f20053123423d5e0088a
2021-03-30 17:03:13 +05:30
Zuul
310bc282f5 Merge "[#358] Introduce Phase List command to output phase list(cmd module)" 2021-03-30 01:02:39 +00:00
Zuul
adacadda4d Merge "[#358] Introduce Phase List command to output phase list(pkg module)." 2021-03-30 00:37:04 +00:00
Ruslan Aliev
6076891f31 Introduce plan validate command
This patch implements CLI command to invoke plan validation.
Appropriate functionality was already added to pkg previously.

Change-Id: I038b49c8de0af65f38b62950b27b31d95a6301a9
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #19
Relates-To: #497
Closes: #497
2021-03-27 12:59:30 -05:00
Ruslan Aliev
e9041a2a22 Reduce the number of unnecessary document.NewBundleByPath() calls
Since document.NewBundleByPath() is pretty resource and time
consuming call (because it invokes kustomize under the hood),
we should avoid unnecessary calls of this function. There are
lots of the same constructor calls of new bundle from phase
bundle root path, mostly in helper, which slows airshipctl
and makes no sense. This patch fixes this problem by storing
phase root bundle variable in helper, which creates only once
during airshipctl execution.

Change-Id: I6b59d440f7ab7a68dc613091dafcc9e82df10eb7
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Closes: #488
2021-03-27 12:58:36 -05:00
Zuul
3749a8fe50 Merge "Allow to pass iso url from env for remotedirect-ephemeral phase" 2021-03-27 08:53:01 +00:00
Zuul
9f0c254733 Merge "Changing personal images with upstream for Sops" 2021-03-27 07:47:41 +00:00
Zuul
b38dfb4929 Merge "Add pause annotation to bmh object" 2021-03-27 05:11:29 +00:00
Andrii Ostapenko
993544d2ac Add qcow-bundle to base catalogues
Change-Id: I200b7f58070b001dec658c2c02bf70b602a2e620
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2021-03-27 03:38:27 +00:00
Zuul
5e06ad2287 Merge "Add permission to home folder in pip installation" 2021-03-27 00:37:06 +00:00
Ruslan Aliev
3dd66f7685 Change logic of config set-context cmd
* command internal logic was revised and optimized
 * added ability to delete/reset context fields
 * unit tests were reorganized, new cases were added

Change-Id: Ie35d11405e88fea21abf33cb75f44b03bb4644fd
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #348
2021-03-26 19:22:52 -05:00
Ruslan Aliev
b8e0978d6d Remove NameInKubeconf field from Context struct
Since this field is no longer actually used, there is need to
remove it completely.

Change-Id: I9f7002f8def31d1660919bd0128707e43a57ad71
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-03-26 19:22:52 -05:00
Zuul
bde1998648 Merge "Allow relative and ~ path for container mount" 2021-03-26 21:57:56 +00:00