Go builder and base images override support for downstream
deployment customizations for both airshipctl and plugins.
If required, adjust the following Zuul job variables:
- docker.base_go_image
- docker.base_release_image
- docker.base_plugins_build_image
- docker.base_plugins_release_image
Closes: #515
Change-Id: Iaf4b54a353207b06c9ed6bdcae876537e73f6e44
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>
* `cp -r /var/log/apache2` copies all the archive(*.gz) logs also.
So just copy only the current logs
access.log, error.log, *vhost.log
Change-Id: I2ec55b3da61eb258337f0c0023eb7ebcd9ce1913
Don't gather logs for unavailable cluster that is always the case for
ephemeral cluster in successful deployments. Cheap ~5 mins on each
deployment.
Change-Id: I32f84e9dadbad11fe92337cd0dc04870d1a0ff3e
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
* Added tag to zuul specific tasks, so that it can be skipped
when running the playbooks in local setup or in a 3rd party gate
Change-Id: If512eac4e0c5889a48e4aa98e357ca2ed1feefd8
Relates-To: #449
libvirt-bin package have been split into 2 packages,
libvirt-daemon-system and libvirt-clients. this commit changes the
libvirt-bin package to the new packages
Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com>
Change-Id: I24c2d32d2b10ae86684c4a4ef82c2d994064c24e
* Updated the clustered objects and namespaced objects to
use a custom list when defined, otherwise fallback to
the existing default list.
* This will allow other providers to trim down or change the
resource names for log collection
Change-Id: I4e19e558470186943f66b6e1f69221b85bab739d
Modify following roles to accept the proxy and env
variables from zuul jobs and project manifest so they
can be overwritten to run them on downstream zuul
- airshipctl-build-images
- airshipctl-publish-images
Change-Id: Ied06e60507f125c60ca7b9d47331e967fd69bf14
OpenDev Zuul CI hosts cache of docker containers on
{{ zuul_site_mirror_fqdn }} host. Set up docker on main VM to use it.
This change reduces time needed to run majority of our jobs by 1-3 min.
Change-Id: I6f7c88ff0e45fb48a0fa1369c6dc593f85cb7c3e
According to [0] kubectl get all -A does not include all types (e.g.
configmaps) and is going to be deprecated. Instead of getting all
objects with one kubectl request, doing the same for each object type
separately.
[0] https://github.com/kubernetes/kubectl/issues/151
Change-Id: I624e785b95e0c5697a567251b42855545d771179
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
Currently we don't test document pull step by rewriting
manifest_directory variable as current source path, which
makes a mess in target_path, manifest_path and related paths
(concatenation of target_path+manifest_path won't return
an existing and proper location). This patch organizes
mentioned variables and enables document pull step which
starts working properly. The latest repo state used as
git source for this command.
Change-Id: I5abce73877441c7529f2f77add79cf410e2226d8
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
This change adds multi-site support to the gate runner by leveraging
environment variables used by the deployment scripts. Zuul jobs can
change the site by defining the site variable in the job definition. If
no site name is specified, test-site is used as a default.
Example:
- job:
name: gate-script-runner-site-b
vars:
site: site-b
This change will allow the treasuremap repository to test multiple sites
using the same job definitions.
Change-Id: I5ed02d2563db2d2b3b1587fcac94ad2bce805ced
Signed-off-by: Drew Walters <andrew.walters@att.com>
In order to enable UEFI support we need to configure guests VM to use OVMF
(Open Virtual Machine Firmware)
Closes: #319
Change-Id: I4b1c3b9fa8f1f0fe42ced7ec3e57b9d95dd4a3f5
We should use interface naming independent on OS, type, speed, slot etc.
This CR takes an approach that is already used for the target node.
To define VMs, their script uses MAC addresses from manifests.
Relates-To: #285
Change-Id: Iafffd23bc584d2daf3fed5ee301491f447498193
Due to incorrect processing IP:port pairs using 'regex_replace' filter,
roles-test gate job fails. This patches fixes all the related errors and
CI gate check itself.
Change-Id: Ifd7f890166195df0af9b34e1ccff59b7abd2d9ab
Relates-To: #305
Closes: #305
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Removed orphaned local scripts because some roles were removed.
Fixed env vars for proper configuration.
Updated documentation accordingly.
Change-Id: I37f0c8d038fb51ddaa57664a65d347056df6f007
CI jobs have been rewritten in Bash scripts and seem to be working fine for the
past few weeks. Removing now redundant Ansiblle-based CI jobs.
This would reduce workload we impose in CI infrastructure.
Change-Id: I690405f5401da0beeb4b176ab22cffdfda24a09f
apt/yum use is not convenient, package module automatically uses
the underlying OS package manager. Also, some ansible roles currently
use only apt module without yum, therefore patch fixes this bug too.
Change-Id: I5dd49d513d1a791ab51ca6ce6eb1c079542c5624
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
This commit updates kubectl version from 1.16.2 to 1.17.4 as part of
gate setup
Change-Id: I88728be65474ee7ce57f243e1356b84c7609a45f
Signed-off-by: Sreejith Punnapuzha <sreejith.punnapuzha@outlook.com>
This commit adds python3-setuptools to needed packages so that
sushy-tool installation will not fail
Change-Id: I7b6de0ebf09b7c187061030463327831c7d856f3
Signed-off-by: Sreejith Punnapuzha <sreejith.punnapuzha@outlook.com>
* command: airshipctl image build
* For now it is just a wrapper for baremetal isogen.
* Removed isogen subcommand from baremetal
Change-Id: I5c1260c4b167e5768eba27a7cd83c9b60ab29184
Relates-To:#251
Closes:#251
K8s control plane is deployed by KubeadmControlPlane controller. This
controller creates CAPI machines and infrastructure objects
(Metal3Machine). Metal3Machine objects are created based on a template
which contins host selector label. Control plane label is assigned to a
particular BareMetalHots object defined inside of the shared
kustomization.
Relates-To: #149
Closes: #221
Change-Id: I3be1750aacf9736ece2944045c036f405e404561
This change removes the deprecated "remoteType", "useProxy", and
"insecure" fields from the remoteDirect field of bootstrapInfo
Change-Id: I64d28b715b81464c871f99ad0348fadc2e9fc5f6
Relates-To: #242
0.9.1 is not working with current implementation of airshipctl
Error below:
Setting boot device to 'CD'.
BMC responded '500 INTERNAL SERVER ERROR'. Attempting to unmarshal the raw BMC error response.
Unable to decode BMC response. "Unable to decode Redfish response.
Key 'error.@Message.ExtendedInfo.Message' is missing or has unknown format."
redfish client encountered an error: BMC responded '500 INTERNAL SERVER ERROR'.
0.9.0 works fine
Change-Id: I34907cc42bbe78624e2741a581bc95c2e2f68bea
This change enables execute 'airshipctl cluster init' command
as a part of zuul pipeline
Co-Authored-By: Kostyantyn Kalynovskyi <kkalynovskyi@mirantis.com>
Change-Id: I9d499ae66f8d847759c2e61e5d4415f2c9f3c860
Command "cluster initinfra" should be removed since
"phase apply" was introduced instead.
Change-Id: I263f8988a4456fc03314093a55ee1c1da8048404
Relates-To: #162
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Problems description:
Once we execute airshipctl config init, the default config in
~/.airship/config doesn't contain default values for:
currentContext: ~
clusters:
default:
clusterType:
target:
bootstrapInfo: ~
managementConfiguration: ~
---
This PS set default values for Airshipctl config to use it
out of the box.
Closes: #234
Change-Id: I57449e678f19ab1c0e2212c38b01ea195f62aa44
A change [0] recently merged that makes additional remote parameters
configurable; however, it changed the default wait value to two seconds
and made the wait value a duration in time between two nanoseconds.
This change restores the default wait value of thirty seconds and makes
the wait value representative of seconds again.
[0] https://review.opendev.org/717812
Change-Id: I9fad30d479419efe95fca7dc78154bfc3ca66697
Signed-off-by: Drew Walters <andrew.walters@att.com>