1813 Commits

Author SHA1 Message Date
Kostiantyn Kalynovskyi
ef19a9e5da Remove redundant logging when building kubeconfig
Closes: #500

Change-Id: I0fed5bf5abd5c3bfd193270b7c418f493746bea4
2021-03-31 09:44:33 +00:00
Ruslan Aliev
fa6b217297 Bump timeout for airshipctl-gate-script-runner job
Currently, about 15% of the last jobs were failed [1]
due to exceeding timeout error, however in most cases the job
was running just fine, but it was interrupted due to global
timeout. This patch increases timeout for this job by 20 minutes.

[1] https://zuul.opendev.org/t/openstack/builds?job_name=airship-airshipctl-gate-script-runner
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>

Change-Id: I5d8058aa5edd56052d51b67fbf23c0665ee1e6a9
2021-03-25 19:46:34 -05:00
Zuul
c7516c3f05 Merge "Change default worker count (capd)" 2021-03-25 22:01:44 +00: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
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
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
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
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
Zuul
cfcb4f108e Merge "Point images to quay.io" 2021-03-19 21:32:32 +00:00
Alexey Odinokov
a7e332f9ec SOPS improvements
Added 2 phases:
1. secret-reencrypt - This phase can be used to
reecnrypt the existing secrets with new key.
To do so SOPS_IMPORT_PGP must contain
old public key and new private key (but
may also include other data).
SOPS_PGP_FP must contain fingerprint of
new private key.

2. secret-show - This phase may be useful for some users
that need to see what generated by secret-generate phase.

Disabled SOPS debug by default.
To enable it back run commands with
env variable DEBUG_SOPS_GPG=true

Change-Id: Id7fe13d6943d386577df25dba4aaa83e62e58980
2021-03-19 21:31:25 +00:00
Zuul
bfe23f4755 Merge "Improve error messages from Event Processor" 2021-03-19 19:19:40 +00:00
Zuul
a6900b9307 Merge "Airship blog series link fix" 2021-03-19 19:15:47 +00:00
Matthew Fuller
585af5a516 Remove defaults from Config object at runtime
This change fixes a bug where the default values that are
populated during an `airshipctl config init` were getting
mixed in with user specified values at runtime. For example,
a user with two contexts defined in their airship config
file would actually see a third phantom context with default
values in the output of `airshipctl config get-context`.

Also fixes a number of the config cmd and pkg unit tests that
were affected by this bug.

Change-Id: Iac591d4c2a616090028eb730576478edefb82544
Closes: #447
2021-03-19 17:31:02 +00:00
Sreejith Punnapuzha
4be0f16ae3 Point images to quay.io
* point ironic init contianer image to quay.io
  * set calico image registry to quay.io

Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: Ifab5e486724ee8ada0ccb9dab9cd04472a0cdca3
2021-03-19 12:22:32 -05:00
Kostiantyn Kalynovskyi
3fbf865048 Fix CAPD deployment
Commit fixes CAPD deployment and removes redundant scripts
that check expiration for CAPD site.

They must be tested separately outside CAPD pipeline

Related-To: #482
Closes: #482
Change-Id: I60ffd76a4f3f08bd7bd198a0c2b15483dfbdd6a6
2021-03-19 11:31:21 +00:00
Zuul
057d391901 Merge "Add updated Tigera Operator and Project Calico" 2021-03-19 10:15:10 +00:00
Zuul
86bd2c9984 Merge "Get-kubeconfig return all cluster contexts" 2021-03-19 01:20:48 +00:00
Zuul
c3e5355322 Merge "Kubeconf builder to return single cluster kubeconf" 2021-03-18 20:55:57 +00:00
Ruslan Aliev
8f1d0e0a75 Remove obsolete directory in manifests
Since we switched to tigera operator to deploy calico, the directory
manifests/composite/infra/replacements became obsolete since it contains
link to cni/calico, which is no longer exists. Also, this directory
isn't used anywhere in manifests, so it can be safely removed.

Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Relates-To: #492
Closes: #492
Change-Id: I14d9b9ba192aa9546e198300f81045cc035fe13a
2021-03-18 11:23:43 -05:00
Zuul
7f95156110 Merge "Suppress the "go command not found" message" 2021-03-18 03:06:37 +00:00
Hemachandra Reddy
8d904c2354 Increase required disk size to 80GB
The existing recommendation of 60GB disk space is not enough to configure
all-in-one airshitpctl. It is not easy to expand disk space in virtual box
and other envivonrments and developer needs to recreate the environment from
scratch again.

Change-Id: Ifdb260e443647eb4dc942674ee495c9790e28fe6
2021-03-17 21:57:54 +00:00
Kostiantyn Kalynovskyi
f24bf00d17 Get-kubeconfig return all cluster contexts
Now if we run `airshipctl cluster get-kubeconfig` without args
it will return kubeconfig for the entire site, which will have
contexts for every cluster defined in cluster map.

Relates-To: #460
Closes: #460

Change-Id: Icf1f09724a5c60ac520b1dbcbda69c3280ac4c7e
2021-03-17 19:27:14 +00:00
Zuul
d2da9c3d4c Merge "Point calico to quay.io" 2021-03-17 19:23:36 +00:00
Zuul
d407142498 Merge "Add v prefix to semver image tags" 2021-03-17 17:49:42 +00:00
Zuul
04149bd8ae Merge "Ensure semver publishing for all krm functions" 2021-03-17 17:49:20 +00:00
Zuul
b34d0ba918 Merge "Fix calculation of previous tag for release notes gen" 2021-03-17 17:49:14 +00:00
Zuul
7277a8492a Merge "Remove clusterctl command related functionality" 2021-03-17 17:48:49 +00:00