1832 Commits

Author SHA1 Message Date
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
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
Zuul
5e06ad2287 Merge "Add permission to home folder in pip installation" 2021-03-27 00:37:06 +00:00
Zuul
bde1998648 Merge "Allow relative and ~ path for container mount" 2021-03-26 21:57:56 +00:00
Zuul
aa76ebab3f Merge "Update hwcc replacement target name" 2021-03-26 17:16:43 +00:00
Alexey Odinokov
988cd9f99b Changing personal images with upstream for Sops
During our work we used personal images, because
there was no upstream available. Now when the
upstream is avaialbe - we're changing all urls to it.

Change-Id: I6e8344723e343c4396304d68908fae328d139434
2021-03-26 16:17:27 +00:00
Andrii Ostapenko
0c14bde17e Allow to pass iso url from env for remotedirect-ephemeral phase
This commit introduces an ability to consume
AIRSHIPCTL_EPHEMERAL_ISO_URL environment variable. Also
it switches from phase patch to catalogue and implements
corresponding replacement transformer for remotedirect
variables.

With this code isoURL catalogue value is only used in an
absense of AIRSHIPCTL_EPHEMERAL_ISO_URL.

Airshipctl does not control how an iso is served leaving it on
discretion of deployment pipeline, also iso contents are fully
determined by image-builder image and manifests, thus this change
does not violate GitOps principles.

Change-Id: Ie6eebe0f0502b2f8e41b081281336299c63f5e4d
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2021-03-26 16:16:21 +00:00
Zuul
df0e4cec2d Merge "Modify airshipctl cluster status cmd" 2021-03-26 09:28:12 +00:00
Zuul
e685fb2f1c Merge "Remove "time" leftover from previous patchset" 2021-03-26 02:33:58 +00:00
Zuul
c7516c3f05 Merge "Change default worker count (capd)" 2021-03-25 22:01:44 +00:00
Ruslan Aliev
92ce88fc29 Allow relative and ~ path for container mount
This patch allow to specify relative and home (~/) path for container
mounts.src field. In case if specified path is not absolute, it will be
created by following pattern: 'targetPath+mounts.src'; in case if path
contains ~/ - it will be properly expanded (it will allow us to mount
~/.airship working directory).

Change-Id: I878094371a2bc4e48216b1d076e466e3d29a86f6
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #484
Closes: #484
2021-03-25 16:41:30 -05:00
Zuul
36d5f9822a Merge "Update Airshipctl and CAPD Documentation" 2021-03-25 21:37:23 +00:00
Zuul
fc00c180ff Merge "Add phase status command" 2021-03-25 21:36:44 +00:00
Sreejith Punnapuzha
e4970aa37d Add permission to home folder in pip installation
Pip installation of package with sudo will fail because of permission
issues in home folder. Adding -H option to sudo to fix this.

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I60222b300591aecdbd5e27a0bb86c1c62daca289
2021-03-25 15:00:05 -05:00
Zuul
d38bcd8c44 Merge "Fix hard coded max width in Sphinx rtd theme" 2021-03-25 19:11:50 +00:00
Zuul
271171c9b9 Merge "Release notes gen: Fix previous tag calculation" 2021-03-25 19:11:45 +00:00
Zuul
929b11b8bc Merge "Bump timeout for controlplane phases" 2021-03-25 19:11:40 +00:00
Battina, Sai (sb464f)
5edde6b4f6 Add pause annotation to bmh object
Change-Id: I245aa4e57f3e249b4dff740e3eb642f9c73890c0
2021-03-25 13:45:29 -05:00
Kostiantyn Kalynovskyi
34ade93029 Remove "time" leftover from previous patchset
time command infront of airshipctl is a forgotten piece that needs
to be removed.

Change-Id: I6262e5382e59dab5ef51ca541a57d89522f59197
2021-03-25 17:09:35 +00:00
Niharika Bhavaraju
0cc7c9cafd [#358] Introduce Phase List command to output phase list(cmd module)
* Phase list command lists phases of current documentset/plan.
 airshipctl phase list
 airshipctl phase list --plan planName
 airshipctl phase list --plan planName -o table(default output)
 airshipctl phase list --plan planName -o yaml

Co-Authored-By: Niharika Bhavaraju <niha.twinkle@gmail.com>

Relates-To: #358

Change-Id: Iab3a6cdf5a25583ba3d01341da350841c9cc362d
2021-03-25 16:11:10 +00:00
Niharika Bhavaraju
9bf40366a5 [#358] Introduce Phase List command to output phase list(pkg module).
* Phase list command lists phases of current documentset/plan in
  table or yaml format.
 airshipctl phase list
 airshipctl phase list --plan planName
 airshipctl phase list --plan planName -o yaml
 airshipctl phase list --plan planName -o table(default format)

Relates-To: #358

Co-Authored-By: Niharika Bhavaraju <niha.twinkle@gmail.com>

Change-Id: I37add2fc9dca2433de525bac8c2cc9e56fe39621
2021-03-25 20:16:27 +05:30
Sean Eagan
6cf4a057f4 Release notes gen: Fix previous tag calculation
The latest version of gren (0.17.3) has a bug [0] which causes
it to include all issues rather than just than since the last
tag. This pins to 0.17.1 to avoid this bug.

This also limits the previous tag search to airshipctl semver tags,
that is those without a krm function prefix.

[0]: https://github.com/github-tools/github-release-notes/issues/279

Change-Id: Ib3524bef7a52da97a89f0bc408a1b2e1072e64b1
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2021-03-25 08:27:44 -05:00
bijayasharma
60488d4d7a Add phase status command
Signed-off-by: bijayasharma <vetbijaya@gmail.com>
Change-Id: I09fc1e84f195982a43c97f80feb82fb2e489771d
Relates-To: #411
2021-03-25 12:36:01 +00:00
bijayasharma
ddf1641168 Modify airshipctl cluster status cmd
* This commits modifies airshipctl cluster status cmd to
  return not implemented error

Change-Id: I7a9fea382217f4eb3d9903b6575f9df5d331255d
Signed-off-by: bijayasharma <vetbijaya@gmail.com>
Relates-To: #370
Closes: #370
2021-03-25 12:35:15 +00:00
Zuul
4e296dacab Merge "Don't fail if docEntryPoint isn't defined for Container exec" 2021-03-25 08:49:25 +00:00
Zuul
818efdfc19 Merge "Remove deprecated options for phase/plan run cmd" 2021-03-25 06:20:03 +00:00
Zuul
961c10fa9c Merge "Refactor phase related errors" 2021-03-25 05:04:19 +00:00
Zuul
76e345b862 Merge "Pin krm function calls" 2021-03-24 21:34:06 +00:00
Ruslan Aliev
3ccafd9d0f Remove deprecated options for phase/plan run cmd
There are some debries left after removing --kubeconfig flag
from support, this patch cleans them up.

Change-Id: Iabdd6bcbc59d169bf162c9cddb3cb264fb88a3f7
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2021-03-24 13:39:13 -05:00
Sean Eagan
299b2833b2 Pin krm function calls
This pins krm function calls to version `v2` which represents [0] [1] the latest
2.x.x semantic version. If we need to make breaking changes to any krm functions,
that can now be done by incrementing their major version and thus not
breaking these references.

[0]: https://review.opendev.org/c/airship/airshipctl/+/762924
[1]: https://review.opendev.org/c/airship/airshipctl/+/780875

Closes: #419
Change-Id: I6cf6519511c77da6cac7e46a6b56ea338bcf150c
2021-03-24 09:28:54 -05:00
Ruslan Aliev
395aa537ca Don't fail if docEntryPoint isn't defined for Container exec
Input for this executor could be empty, so we have to handle
ErrDocumentEntrypointNotDefined error more intelligently.

Change-Id: I73e0f770e64cead7dbbbce2af2b7a2ebd323b83b
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #485
Closes: #485
2021-03-23 22:04:40 -05:00
Ruslan Aliev
8bed52b057 Refactor phase related errors
* phase related errors were moved to separate package to prevent
   cycling import error;
 * error duplicates were removed;
 * non-related to package errors were moved to appropriate ones.

Change-Id: If6cfb08c48d356c1517a13157a5fe740dc1635a4
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #485
2021-03-23 22:04:28 -05:00
Zuul
104d650a36 Merge "Remove obsolete directory in manifests" 2021-03-24 00:46:49 +00:00
Rishabh Kumar Jain
a4548cb9ea Change default worker count (capd)
* change default worker count to 2
      from 1
    * remove usage comments to scale workers
      in deployment script

Change-Id: Ic880deea7d3ff104cb2af39b1b81c53a331d353f
2021-03-23 14:10:48 -07:00
Rishabh Kumar Jain
0ba801140e Fix hard coded max width in Sphinx rtd theme
* improves document reading experience
      on wider monitors
    * added _templates/layout.html to set
      max width to none

Related-To: #496
Closes: #496
Change-Id: I1f2fc0a958cf9f6526ca314142fbcba34b5ef5c7
2021-03-23 20:47:23 +00:00
Zuul
a6b4eef607 Merge "Enhanced deployment script to support baremetal multi-node" 2021-03-23 20:38:00 +00:00
Rishabh Kumar Jain
fd14ed45bf Update Airshipctl and CAPD Documentation
Update the document to use new phases
 - clusterctl-init-ephemeral
 - controlplane-ephemeral
 - initinfra-networking-target
 - clusterctl-init-target
 - clusterctl-move
 - workers-target

Change-Id: If41412b1810cb61092eaccd96161b012b518eaf6
2021-03-23 20:21:44 +00:00
Battina, Sai (sb464f)
a7ea1dddaf Update hwcc replacement target name
Change-Id: I91d496d31b3c0391cb04eba25f0b5139a1a7a2c5
2021-03-23 14:38:00 -05:00
Zuul
bb37ba1382 Merge "SOPS improvements" 2021-03-23 17:41:00 +00:00
Zuul
dcdeaf9c7d Merge "Fix CAPD deployment" 2021-03-23 17:22:51 +00:00
James Gu
1342ab708f Enhanced deployment script to support baremetal multi-node
Additionally aligned between Treasuremap and Airchipctl to use the same
environemnt variable "SITE" for a site name.

Change-Id: I50494b50691a40efe68996cd11ccede6517b23d6
Signed-off-by: James Gu <james.gu@att.com>
2021-03-23 06:21:31 -07:00
Matthew Fuller
fbdff6c38e Fix Config object permissions
This change fixes a bug where the default file and directory
permissions weren't getting added (if missing) to the Config
object at runtime.

Change-Id: I87ed2f40af9fe079baade67c506a19de427c4e64
2021-03-22 21:18:15 +00:00
Zuul
edd0b84d84 Merge "Move git tag fetching to release notes job" 2021-03-22 18:29:38 +00:00
Zuul
81a7849f28 Merge "Increase required disk size to 80GB" 2021-03-22 18:22:36 +00:00
Zuul
853b16997a Merge "Remove defaults from Config object at runtime" 2021-03-22 16:40:09 +00:00
Sean Eagan
4d8c3bbcc0 Move git tag fetching to release notes job
It was added to the wrong job originally [0].

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

Change-Id: I023bf1b8f0e133f190dc320bf45e4c79efd5de2b
Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
2021-03-22 09:46:41 -05:00