jcope [Mon, 12 Oct 2020 15:42:35 +0000 (10:42 -0500)]
build output to appropriate dir
GOBIN is defined but overridden in go build command. This fix corrects
the bug and builds binaries to ./bin. Includes a .gitignore file in ./bin
to exclude build artifacts.
Replaces hardcoded ./bin paths in other commands with $(GOBIN), else
other make targets may not reference the most recent binary.
Change-Id: Icc7e0e23fef9ec4f41e5a9660bbf3d21d056deb4
Signed-off-by: jcope <jcope@redhat.com>
jcope [Wed, 7 Oct 2020 20:58:39 +0000 (15:58 -0500)]
Clean logging and fatal calls
log.Fatal() calls os.Exit(1), making the explicit os.Exit() calls in source unreachable
condense string formatting and loging calls to single log.*f(...)
Change-Id: Ied2fadcfd878e7cf4021b2f183af1edca083e165
Signed-off-by: jcope <jcope@redhat.com>
Ricardo Noriega [Tue, 22 Sep 2020 08:19:54 +0000 (10:19 +0200)]
Add Github vars in kustomize plugin
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
Change-Id: I4f4083974dfed89b08199b59caf48c5c0768e351
Yolanda Robla [Thu, 30 Jul 2020 15:50:34 +0000 (17:50 +0200)]
Do not abort on errors for oc get nodes
We need to iterate across this call without
exiting the loop, so we need to disable
the exit flag
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I8f140be4cfab5159b039e9bbde272c9d8a990e0e
sheetalsingala [Sun, 26 Jul 2020 14:27:13 +0000 (10:27 -0400)]
Parameterize the number of retries
Signed-off-by: sheetalsingala <ssingala@redhat.com>
Change-Id: I4eccf49258b60a76b45d38712a5d2b6934215f5c
Yolanda Robla [Fri, 24 Jul 2020 07:54:50 +0000 (09:54 +0200)]
Fix setlocale warnings
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I5a4fe54cc43bb77bb4f50cb9771444754d323973
Ricardo Noriega [Fri, 17 Jul 2020 13:15:33 +0000 (15:15 +0200)]
Catch STATUS without exit CI job
Change-Id: I596172a02cb710a153965bee18dd8d29b176cfc7
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
Ricardo Noriega [Fri, 17 Jul 2020 10:41:13 +0000 (12:41 +0200)]
Add destroy cluster per status check
Change-Id: I6a170e6a5a3f8c8d29e9407a7a3a3e243864ad20
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
sheetalsingala [Fri, 10 Jul 2020 17:26:52 +0000 (13:26 -0400)]
Add message to destroy bootstrap VM
Signed-off-by: sheetalsingala <ssingala@redhat.com>
Change-Id: If351f1a282c6f47e3bc3c21631a6ff46d0786bd8
Signed-off-by: sheetalsingala <ssingala@redhat.com>
Yolanda Robla [Fri, 10 Jul 2020 12:41:16 +0000 (14:41 +0200)]
Add || true so we don't break on error
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I73be752eafaf2f579ddf8838f478d9cd476801f2
Yolanda Robla [Fri, 10 Jul 2020 10:32:06 +0000 (12:32 +0200)]
Remove bootstrap vm after deploying workers
Due to https://github.com/openshift/okd/issues/209, the
worker nodes cannot fetch ignition properly when bootstrap
vm is up. So we need to destroy the vm after the worker
creation, so they can get ign properly.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I5e2c74db201825c2375d86af5c621f452d788672
Yolanda Robla [Fri, 10 Jul 2020 09:55:11 +0000 (11:55 +0200)]
Do not stop loop on error
It can be the case that the oc get nodes api is returning EOF,
which is causing an error and is breaking the loop befor time.
Change the way we capture the nodes, by allowing failure, then
compute the ready nodes.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I176682c2206075c221ab8d3e634a11cfc4c539d0
Yolanda Robla [Thu, 9 Jul 2020 10:54:49 +0000 (12:54 +0200)]
Remove wait-for-bootstrap call
It is not currently working in the case of UPI. So instead,
query for at least one master node to be ready, that will be
enough to start adding worker nodes.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I1d4a2ec2f1df0dbb40d9a80648ea8a12559c429e
sheetalsingala [Mon, 6 Jul 2020 12:17:36 +0000 (08:17 -0400)]
Remove CentOS node bits
Signed-off-by: sheetalsingala <ssingala@redhat.com>
Change-Id: I9d44eca38b961397e6c1336c63434f569898c212
Yolanda Robla [Fri, 26 Jun 2020 07:43:08 +0000 (09:43 +0200)]
Add missing PRESERVE_CLUSTER var
When this is not set, CI is crashing when
cleaning the cluster.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Icfa5d282c9147c05000be0a0adde885e77dc6bf5
Andrew Bays [Fri, 8 May 2020 10:59:16 +0000 (06:59 -0400)]
Fix kustomize SiteConfig plugin
Change-Id: I77a998ae710bfb0d343ec66881f60b4b4a9c8965
Ricardo Noriega [Thu, 7 May 2020 14:10:15 +0000 (16:10 +0200)]
Make dockerjson and kubeadminhub files optional
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
Change-Id: Ibf37f186778e9be670e5427ea95d1b7a7e5b38fb
Ricardo Noriega [Thu, 16 Apr 2020 11:08:57 +0000 (13:08 +0200)]
Change in SiteConfig Kustomize Plugin
This change allows to add a manifest with a
dockerconfigjson type of Secret, so deployments
can pull images from private registries and kubeconfig
from a hub management site as secret.
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
Change-Id: Ic4a5b3ee3ea15a88e7d4f4318feea41a4e753800
Yolanda Robla [Wed, 8 Apr 2020 09:22:24 +0000 (11:22 +0200)]
Change path to use site from kni repo
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Ib8bd17b8b22d07962fce6c60c8f2b6d1a1f85d87
Yolanda Robla [Wed, 8 Apr 2020 07:37:14 +0000 (09:37 +0200)]
Add default vars for baremetal job
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Ica914adb5ecfbff334ef6e2b1dad71c11a41edca
Yolanda Robla [Mon, 30 Mar 2020 12:53:11 +0000 (14:53 +0200)]
Add virtual baremetal install option
Read the flag from site-config.yaml, and pass it to
common.sh to indicate kni-upi-lab that it needs a
virtual install.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Ib52c5be39c56b873aa65d27e18600a04868f6b56
Yolanda Robla [Tue, 31 Mar 2020 07:58:17 +0000 (09:58 +0200)]
Allow skipping destroy cluster
Destroy the cluster only if PRESERVE_CLUSTER is not set
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I22f87c83c0d04c8e82d15fa57ca62e24be752260
Yolanda Robla [Sat, 7 Mar 2020 12:08:59 +0000 (13:08 +0100)]
Add missing kni on path
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Ie4b6aa7cc11706dfe75752667ebcea5a2a7e85d6
Yolanda Robla [Fri, 6 Mar 2020 16:05:44 +0000 (17:05 +0100)]
Send build path to apply-workloads
We need to run it with sudo because previous commands
were also with sudo and there are permission problems if
not. But if we run with sudo installer tries to read
kubeconfig from /root/, not from /home/jenkins,
and it fails. So passing the build path pointing
to the right home.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I8aff76b7ece9e89258990c699b7fb36f8c70fb80
Yolanda Robla [Thu, 5 Mar 2020 16:08:32 +0000 (17:08 +0100)]
Add missing sudo
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Ib0be47493ce07dc8ccca26d916dd1335d8ad6ea0
Yolanda Robla [Thu, 5 Mar 2020 14:21:50 +0000 (15:21 +0100)]
Pop from the previous directory
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I84c4dfa4ef662fb615b6b267cf1b836c50fc359e
Yolanda Robla [Thu, 5 Mar 2020 11:35:40 +0000 (12:35 +0100)]
Properly check status of the deployed cluster
The status was not captured properly, move
the comparison after wait-for-install
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Ieaad4c81353359215d56f6bc23169c47aa5c89be
Yolanda Robla [Thu, 5 Mar 2020 08:58:31 +0000 (09:58 +0100)]
Query metadata.json with sudo
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I1c3ad3ada7ca64be8622296e836ea63a927b3c60
Yolanda Robla [Thu, 5 Mar 2020 07:20:35 +0000 (08:20 +0100)]
Retry wait for install a max of 3 times
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I79a87f35cbd907dc6d34366fd1d58774f797fca7
Yolanda Robla Mota [Wed, 4 Mar 2020 11:46:31 +0000 (11:46 +0000)]
Merge "Add extra wait-for installer in libvirt"
Yolanda Robla [Wed, 4 Mar 2020 10:22:46 +0000 (11:22 +0100)]
Add extra wait-for installer in libvirt
It is not ready when we finish create cluster, so add extra call
to wait for installer to finish.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Ic3a453b104fba0d433a610fd25d7e581a34b8fe9
Yolanda Robla Mota [Tue, 3 Mar 2020 12:56:19 +0000 (12:56 +0000)]
Merge "Remove whole site folder before deploying"
Yolanda Robla [Tue, 3 Mar 2020 12:51:31 +0000 (13:51 +0100)]
Remove whole site folder before deploying
In some jobs the $HOME/.kni/$SITE_NAME folder
was not being cleaned, just the final_manifests one.
This was causing existing requirements to be reused,
instead of picking the new ones. Remove all the times
to avoid problems when new requirements need to be
pulled.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I9206846aa78f507d455f65a1c7bc71331c0c5d22
Yolanda Robla Mota [Mon, 2 Mar 2020 13:25:01 +0000 (13:25 +0000)]
Merge "Remove the copy of pull-secret.json"
Ricardo Noriega [Wed, 26 Feb 2020 11:46:42 +0000 (12:46 +0100)]
Add CI job for GCP footprint
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
Change-Id: I9fa553ccc0477f6fba7fa9205a4a5688c7f3d1f8
Ricardo Noriega [Thu, 30 Jan 2020 15:57:13 +0000 (16:57 +0100)]
Add support for Google Cloud Platform deploys
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
Change-Id: I98755a45b8f07111938a692bfbfccb6ad05b3358
Ricardo Noriega [Tue, 28 Jan 2020 11:33:24 +0000 (11:33 +0000)]
Merge "Support for automated scaling-up of BM workers"
Andrew Bays [Mon, 27 Jan 2020 18:58:08 +0000 (13:58 -0500)]
Support for automated scaling-up of BM workers
Change-Id: I1fb3a02976cfaaf24f366a316c6111e22c326e3c
Yolanda Robla [Fri, 29 Nov 2019 09:39:37 +0000 (10:39 +0100)]
Remove the copy of pull-secret.json
As we always use the same server, we have the
secret already there. It's also a secret that
cannot be shared outside, so we keep that installed
on the server and use it.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I32b1a43b16e260e80c3efb3520c59d66458f0fec
Yolanda Robla [Wed, 27 Nov 2019 15:31:05 +0000 (16:31 +0100)]
Run installer from /usr/bin directory
It is a current limitation of openshift libvirt
installer
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I954d07da42670c225fe499733d0b90531d8eca9c
Yolanda Robla [Thu, 21 Nov 2019 15:32:12 +0000 (16:32 +0100)]
Override two extra settings on settings_upi.env
For a full automation we also need to override
the site name and domain
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I8a74dbf1f14d932ba3fbfa252175a0810d89422a
Yolanda Robla [Thu, 21 Nov 2019 11:31:54 +0000 (12:31 +0100)]
Add libvirt cleanup before starting the deploy
In case some old clusters are there, it is possible
that old bootstrap vms are still up. This script
will clean all the previous contents of libvirt, ensuring
a clean install.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I95137fd798ab8c5f87f84280c1f7426326c46c86
Yolanda Robla [Thu, 21 Nov 2019 10:00:01 +0000 (11:00 +0100)]
Add exec perms to deploy script
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Ic5f2b20943e0b8c433e2e3fa077d53061423b9fa
Yolanda Robla [Wed, 20 Nov 2019 12:38:47 +0000 (13:38 +0100)]
Add new script for adding baremetal to CI
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I88595855023af9bfa7a10522c50d1e0a2b4b078a
Andrew Bays [Fri, 15 Nov 2019 11:40:09 +0000 (06:40 -0500)]
Automation skips OCP binary download if not needed
Change-Id: I189df174b2eb6da4db3c943d9acbcbf2346f5536
Andrew Bays [Wed, 13 Nov 2019 12:16:56 +0000 (07:16 -0500)]
Add missing requirements directory to automation
Change-Id: Ic4ca3768ada3a794849f898ff1525e14fd9d956a
Yolanda Robla [Wed, 6 Nov 2019 09:18:19 +0000 (10:18 +0100)]
Change texts to reflect baremetal deployment
When using the automated baremetal deploy, masters and
workers are deployed using knictl commands, and
destroying cluster as well. Modify the texts to
reflect it.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I925ce5c2a5af4ba77440f8fc841d88fe906105da
Andrew Bays [Fri, 1 Nov 2019 14:59:47 +0000 (10:59 -0400)]
Add error-checking for automated cluster teardown
Change-Id: I4c7a056da929cd03e0cdbfb4d2a5469850e5631d
Andrew Bays [Tue, 22 Oct 2019 17:21:49 +0000 (13:21 -0400)]
Make automation use default 'cluster' dir
Change-Id: I0c6c794a172181a58f84a0d1b607c402cb2419d0
Andrew Bays [Tue, 22 Oct 2019 12:55:53 +0000 (08:55 -0400)]
Make sure to copy site yamls to automation repo
Change-Id: I9cba91b07acba4cbd98346f58ce0a023f19e0c5d
Andrew Bays [Mon, 21 Oct 2019 18:45:22 +0000 (14:45 -0400)]
Move automation prep call to prepare_manifests
Change-Id: I8c74cc4c1ef60d23e34cc00dd32f765c29f3187c
Andrew Bays [Mon, 21 Oct 2019 16:09:35 +0000 (16:09 +0000)]
Merge "Version-selection for automated baremetal"
Andrew Bays [Fri, 18 Oct 2019 11:29:17 +0000 (07:29 -0400)]
Version-selection for automated baremetal
Change-Id: I1f46fa879a805800916dec97b5cd147593e03332
Yolanda Robla [Thu, 17 Oct 2019 10:41:39 +0000 (12:41 +0200)]
Parameterize the name of the blueprint
Now we don't have a single blueprint, but two.
So we cannot have the name of the blueprint hardcoded
anymore. By looking at the env vars provided by
jenkins, we can reuse the GIT_CHECKOUT_DIR env var
instead, that will contain the name of the blueprint.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I3a0e517d64268f2287bb19ca50d2e5f7431ded22
Andrew Bays [Fri, 11 Oct 2019 19:32:57 +0000 (15:32 -0400)]
Automated cluster teardown command
Change-Id: Id4d4df957b08a1b38b50fbe8bd948904f82a936f
Andrew Bays [Tue, 8 Oct 2019 10:57:59 +0000 (06:57 -0400)]
Automated masters and workers deploy
Change-Id: I9ed643e4fee34fef6c73bbf0a5266c9cfba401db
Andrew Bays [Thu, 3 Oct 2019 16:42:23 +0000 (12:42 -0400)]
Framework for automation support
Change-Id: Ida577033f8906cb00fb3cbe340272d8984621d3d
Ricardo Noriega [Wed, 2 Oct 2019 14:29:20 +0000 (14:29 +0000)]
Merge "Revert "Retrieve original source for kustomize""
Yolanda Robla Mota [Wed, 2 Oct 2019 10:41:58 +0000 (10:41 +0000)]
Revert "Retrieve original source for kustomize"
This reverts commit
59ce04c30e7c3249cf6a721b6673f9eebaa2f7bf.
We don't need it as we can inject cluster modifications on initial steps
Reason for revert: <INSERT REASONING HERE>
Change-Id: Icb4ce87355bca87d5b2c860ec373b5d90e18ba00
Andrew Bays [Mon, 16 Sep 2019 17:10:57 +0000 (13:10 -0400)]
'fetch_reqs' integration with bm automation
Change-Id: I8ec51432cf9f50e5793209932d72e76aa2d2e4c2
Andrew Bays [Thu, 12 Sep 2019 12:24:34 +0000 (08:24 -0400)]
Staging for getting site profile type
Change-Id: Ieaccf5b2ea962f3f179cf19e1e85dea93118e6d4
Yolanda Robla Mota [Fri, 6 Sep 2019 11:49:19 +0000 (11:49 +0000)]
Merge "Retrieve original source for kustomize"
Yolanda Robla [Fri, 6 Sep 2019 10:32:06 +0000 (12:32 +0200)]
Add fixes on apply_workloads for kustomize path
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I0c5f5d42448afa5e5d70de4ede2ccfab33109afa
Yolanda Robla [Fri, 16 Aug 2019 14:18:45 +0000 (16:18 +0200)]
Retrieve original source for kustomize
When patching content that is dynamically generated
and not being in kustomize, it cannot be done as it
misses the original source. Add a pre-processing in
apply_workloads, so it will retrieve all the original
data from cluster deploy, to make it available
to kustomize.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Ibd37801768fa2c45b89bdfa161838d843dd2c436
Yolanda Robla [Thu, 5 Sep 2019 10:56:15 +0000 (12:56 +0200)]
Replace kubectl with oc for apply
When applying certain manifests, kubectl could
throw an error because it is not dealing properly
with openshift manifests. Switch to oc client that
is totally matching the installer version.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I4de5e230577e7f10f1c181b166770d14cb7f3465
Yolanda Robla [Thu, 29 Aug 2019 10:52:37 +0000 (12:52 +0200)]
Add dockerfile to build an image with knictl
In order to run it inside a pod, we need
to have the knictl binary. Create an image that
contains the latest version of it, ready to
use.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I5430699c041f7afc51b74040803e841b29adf608
Yolanda Robla [Wed, 28 Aug 2019 14:11:44 +0000 (16:11 +0200)]
Download the blueprint on apply_workloads
If we assume that apply_workloads can run
from anywhere, there is no need for blueprint
to be present. So download it as we do
for prepare_manifests
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I93578ec1fb1bc2837a07d9648eefa5b8f35c899a
Yolanda Robla [Wed, 28 Aug 2019 13:34:40 +0000 (15:34 +0200)]
Allow to specify the kubeconfig file
In order to apply from any place, we need to
parameterize the kubeconfig path. Accept a
kubeconfig parameter, that defaults to the one
from prepare_manifests is not set, or add the
ability to specify "local" to deploy to a
local cluster without kubeconfig file.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I9fffeeae28369f0fbe4dd2de127a61e99e35e62e
Yolanda Robla [Wed, 28 Aug 2019 11:32:20 +0000 (13:32 +0200)]
Allow to just fetch individual requirements
If we want to download requirements just for workloads
we will just need kustomize and kubectl. Allow to pass
a list of requirements to download (optional), so we
avoid downloading not needed requirements
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I84d552a49eb82b0883faccfbf797afc1a4b23412
Yolanda Robla [Wed, 28 Aug 2019 09:39:57 +0000 (11:39 +0200)]
Decrease time and repeats on kubectl
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Ibb28da9017a7828011443f67c014c0f0300db1e8
Yolanda Robla [Wed, 14 Aug 2019 14:39:51 +0000 (16:39 +0200)]
Remove extra popd
This is causing libvirt test to fail, as
just one popd is needed.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Ie8c7b613ad41dd5f6fe0965d6cc978a34abb0c74
Yolanda Robla [Tue, 6 Aug 2019 10:18:27 +0000 (12:18 +0200)]
Generate env vars from siteconfig
Just accept any env var in siteConfig, to be populated
into profile.env.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I7436d138d7a3c97aa8112c50cca5f21187f42e35
Yolanda Robla [Thu, 1 Aug 2019 14:46:33 +0000 (16:46 +0200)]
Increase memory of masters to test
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I4115a71a9fae955a992054ef4dbbc00f2a53146f
Yolanda Robla [Thu, 1 Aug 2019 08:22:24 +0000 (10:22 +0200)]
Add a comment about ignition and UPI
When manifests are generated, there is a comment
explaining on how to create the cluster. Add also the
comment for using UPI and ignition files.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I6fcd3850894c4939926935aee255fca06da50124
Yolanda Robla [Thu, 1 Aug 2019 07:44:31 +0000 (09:44 +0200)]
Use sudo when removing openshift.conf file
Otherwise it cannot be removed when ran with
jenkins user
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I94b827dbf5c1de8bb6c62a6d5fc2fec1da3176b6
Yolanda Robla [Wed, 31 Jul 2019 09:57:48 +0000 (11:57 +0200)]
Modify AWS job to run from internal repo
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I4a9224cf4d35d8cbe6b7aea19718c24a2c7c541d
Yolanda Robla [Wed, 31 Jul 2019 09:03:41 +0000 (11:03 +0200)]
Include changes to pick local repo
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Ia493bdcfae73096ff4113c680ec7e49b00ed1273
Yolanda Robla [Wed, 31 Jul 2019 08:59:18 +0000 (10:59 +0200)]
Remove the approval of certs call
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I68623e2f0b8e8e97dd16ddc794640e27a8c97db2
Yolanda Robla [Wed, 31 Jul 2019 08:53:56 +0000 (10:53 +0200)]
Modify libvirt deploy to run from internal repo
Adapt some of the clones and references to folder,
to use this internal repo instead of relying
on ci-management.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Ic8df9ef32536793a873fe8c14b994b7259b742ed
Yolanda Robla [Wed, 31 Jul 2019 07:56:47 +0000 (09:56 +0200)]
Create new ci folder to store the testing scripts
Instead of having the shell scripts contained
in akraino ci, move it to our project so we can
have control of the reviews and merges
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I15a2dc1fb8f38881c3495f0be2cab070b5f7c551
Yolanda Robla [Mon, 29 Jul 2019 15:40:42 +0000 (17:40 +0200)]
Add support to deploy from local directory
In order to use CI, or for local testing, add the
possibility of using a local directory for the
site in kustomization.yaml
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Iab9035501168c80377c59780d221f1ef99b2e445
Yolanda Robla [Mon, 29 Jul 2019 10:15:18 +0000 (12:15 +0200)]
Add the possibility to specify ref for a site
Currently all references for a site are set to
master. Add the possibility to specify a ref, like
git::repo?ref=commit_id, to support using different
branches and commits for the site.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I9ab5ca8f31c3382730d7318b94a99f2f52d0e3f8
Yolanda Robla [Mon, 22 Jul 2019 08:12:25 +0000 (10:12 +0200)]
Add instructions for baremetal
While we have automation for baremetal, add documentation on
how to execute UPI manually.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I4c764f6844c2eee278478e862f3474461de2e87b
Yolanda Robla [Thu, 18 Jul 2019 07:54:26 +0000 (09:54 +0200)]
Remove not used endpoints
With the new workflow, some of the endpoints
for knictl are not longer being used. So remove
those.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I067f6feb1d249d725bd337a4b5b3805e209fb2af
Yolanda Robla [Tue, 16 Jul 2019 12:16:56 +0000 (14:16 +0200)]
Fix typo in apply workloads
The env var is not KUBECONFIG_PATH but KUBECONFIG
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I43b29d5dc0e3cf9565a6fc5bedc5226f78a9045c
Yolanda Robla [Tue, 16 Jul 2019 10:28:24 +0000 (12:28 +0200)]
Create wrapper to execute commands
In order to have a standard way of executing shell
commands, and show the proper output/error, i have
created a wrapper that is called on each system call,
and controls the behaviour of it.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I0a40a126677a5f7ec878e34e657399d696dd5ee9
Ricardo Noriega [Tue, 16 Jul 2019 07:56:14 +0000 (07:56 +0000)]
Merge "Modify ssh key command generation"
Yolanda Robla [Mon, 15 Jul 2019 16:57:04 +0000 (18:57 +0200)]
Modify ssh key command generation
There was a problem with the current command and
the quotes, modify the way of generating it.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I21531e01c062ae1e46c93d50b7f7ef5bd9df5b49
Yolanda Robla [Mon, 15 Jul 2019 13:46:46 +0000 (15:46 +0200)]
Show output of prepare manifests if failed
Right now when apply manifests fail, just shows a
cryptic error. Showing the whole output of the command
now, to allow troubleshoot.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I7141950e516250368be7dc6705d8071bec64b8f8
Yolanda Robla [Mon, 15 Jul 2019 08:46:43 +0000 (10:46 +0200)]
Send output of kustomize to tempfile
There is an issue with pipes when running on a ci
system like jenkins. So instead of relying on stdin pipe,
send the output to a tmp file and apply from there.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Ic2d0513acadd2554f8739d31ad7fec0117dd3339
Yolanda Robla [Fri, 12 Jul 2019 13:52:36 +0000 (15:52 +0200)]
Fix typo in logs for applying workloads
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I45e9627e465f12c19956f4d85cd4da9ce7bf376b
Yolanda Robla [Fri, 12 Jul 2019 11:34:39 +0000 (13:34 +0200)]
Fix getting cluster_domain and changing dns
The parameter for cluster_domain was not being
propagated correctly, fixing it.
Also always overwriting the openshift.conf file
because right now, if domain was changed, it
was not updated properly.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I71d161846b63a11d76edf8b5386b19c63bdb4b44
Yolanda Robla [Fri, 12 Jul 2019 11:04:19 +0000 (13:04 +0200)]
Remove comment on prerequisites
This comes from a test by error and is preventing
the main tasks to be executed.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I07067eec395a651d0f57a45fac2629f28d3f6008
Yolanda Robla [Fri, 12 Jul 2019 09:47:27 +0000 (11:47 +0200)]
Inherit GOPATH from environment
We are setting some paths by default in GOPATH, but it
is important to inherit the ones from the environment,
to support all deployments.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I627f363d035e2da76e59e74e58d7822df0a39b81
Ricardo Noriega [Fri, 12 Jul 2019 08:57:00 +0000 (10:57 +0200)]
Fix declared and not used variable
Change-Id: Ic4715be4eadc13402eb6971b96f178ea5efbedda
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
Ricardo Noriega [Thu, 11 Jul 2019 15:48:53 +0000 (15:48 +0000)]
Merge "Update README.md to reflect the new workflow"
Yolanda Robla Mota [Thu, 11 Jul 2019 14:08:14 +0000 (14:08 +0000)]
Merge "Parametrize prep_host to set cluster domain"
Ricardo Noriega [Thu, 11 Jul 2019 14:00:49 +0000 (14:00 +0000)]
Merge "Add new command to run workloads"
Yolanda Robla [Thu, 11 Jul 2019 13:42:04 +0000 (15:42 +0200)]
Update README.md to reflect the new workflow
The workflow for installing a cluster has changed
totally with the latest changes. So update README
file to reflect this, and the interaction with blueprints.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Iefab584c9637aca34c6c8931c3f4defd3c3f1d8b
Yolanda Robla [Tue, 9 Jul 2019 14:17:17 +0000 (16:17 +0200)]
Create profile.env to source on cluster creation
In order to run the cluster with the specific env
vars we are creating a profile.env file with some
fixed values (TF_VAR_libvirt_master_* vars) , and
one env var in case we want to override the release
image.
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Ie2d90c613757c458a7b56b85cc31921fde96ac0c