kni/installer.git
5 years agoQuery metadata.json with sudo 82/2282/1
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

5 years agoRetry wait for install a max of 3 times 81/2281/1
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

5 years agoMerge "Add extra wait-for installer in libvirt"
Yolanda Robla Mota [Wed, 4 Mar 2020 11:46:31 +0000 (11:46 +0000)]
Merge "Add extra wait-for installer in libvirt"

5 years agoAdd extra wait-for installer in libvirt 76/2276/1
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

5 years agoMerge "Remove whole site folder before deploying"
Yolanda Robla Mota [Tue, 3 Mar 2020 12:56:19 +0000 (12:56 +0000)]
Merge "Remove whole site folder before deploying"

5 years agoRemove whole site folder before deploying 73/2273/1
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

5 years agoMerge "Remove the copy of pull-secret.json" akraino_r2
Yolanda Robla Mota [Mon, 2 Mar 2020 13:25:01 +0000 (13:25 +0000)]
Merge "Remove the copy of pull-secret.json"

5 years agoAdd CI job for GCP footprint 59/2259/2
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

5 years agoAdd support for Google Cloud Platform deploys 20/2220/1
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

5 years agoMerge "Support for automated scaling-up of BM workers"
Ricardo Noriega [Tue, 28 Jan 2020 11:33:24 +0000 (11:33 +0000)]
Merge "Support for automated scaling-up of BM workers"

5 years agoSupport for automated scaling-up of BM workers 10/2210/1
Andrew Bays [Mon, 27 Jan 2020 18:58:08 +0000 (13:58 -0500)]
Support for automated scaling-up of BM workers

Change-Id: I1fb3a02976cfaaf24f366a316c6111e22c326e3c

5 years agoRemove the copy of pull-secret.json 78/2078/1
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

5 years agoRun installer from /usr/bin directory 59/2059/2
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

5 years agoOverride two extra settings on settings_upi.env 35/2035/1
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

5 years agoAdd libvirt cleanup before starting the deploy 33/2033/1
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

5 years agoAdd exec perms to deploy script 32/2032/1
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

5 years agoAdd new script for adding baremetal to CI 16/2016/3
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

5 years agoAutomation skips OCP binary download if not needed 86/1986/1
Andrew Bays [Fri, 15 Nov 2019 11:40:09 +0000 (06:40 -0500)]
Automation skips OCP binary download if not needed

Change-Id: I189df174b2eb6da4db3c943d9acbcbf2346f5536

5 years agoAdd missing requirements directory to automation 68/1968/2
Andrew Bays [Wed, 13 Nov 2019 12:16:56 +0000 (07:16 -0500)]
Add missing requirements directory to automation

Change-Id: Ic4ca3768ada3a794849f898ff1525e14fd9d956a

5 years agoChange texts to reflect baremetal deployment 25/1925/1
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

5 years agoAdd error-checking for automated cluster teardown 98/1898/1
Andrew Bays [Fri, 1 Nov 2019 14:59:47 +0000 (10:59 -0400)]
Add error-checking for automated cluster teardown

Change-Id: I4c7a056da929cd03e0cdbfb4d2a5469850e5631d

5 years agoMake automation use default 'cluster' dir 24/1824/1
Andrew Bays [Tue, 22 Oct 2019 17:21:49 +0000 (13:21 -0400)]
Make automation use default 'cluster' dir

Change-Id: I0c6c794a172181a58f84a0d1b607c402cb2419d0

5 years agoMake sure to copy site yamls to automation repo 19/1819/1
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

5 years agoMove automation prep call to prepare_manifests 11/1811/1
Andrew Bays [Mon, 21 Oct 2019 18:45:22 +0000 (14:45 -0400)]
Move automation prep call to prepare_manifests

Change-Id: I8c74cc4c1ef60d23e34cc00dd32f765c29f3187c

5 years agoMerge "Version-selection for automated baremetal"
Andrew Bays [Mon, 21 Oct 2019 16:09:35 +0000 (16:09 +0000)]
Merge "Version-selection for automated baremetal"

5 years agoVersion-selection for automated baremetal 02/1802/1
Andrew Bays [Fri, 18 Oct 2019 11:29:17 +0000 (07:29 -0400)]
Version-selection for automated baremetal

Change-Id: I1f46fa879a805800916dec97b5cd147593e03332

5 years agoParameterize the name of the blueprint 97/1797/1
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

5 years agoAutomated cluster teardown command 74/1774/1
Andrew Bays [Fri, 11 Oct 2019 19:32:57 +0000 (15:32 -0400)]
Automated cluster teardown command

Change-Id: Id4d4df957b08a1b38b50fbe8bd948904f82a936f

5 years agoAutomated masters and workers deploy 46/1746/3
Andrew Bays [Tue, 8 Oct 2019 10:57:59 +0000 (06:57 -0400)]
Automated masters and workers deploy

Change-Id: I9ed643e4fee34fef6c73bbf0a5266c9cfba401db

5 years agoFramework for automation support 29/1729/2
Andrew Bays [Thu, 3 Oct 2019 16:42:23 +0000 (12:42 -0400)]
Framework for automation support

Change-Id: Ida577033f8906cb00fb3cbe340272d8984621d3d

5 years agoMerge "Revert "Retrieve original source for kustomize""
Ricardo Noriega [Wed, 2 Oct 2019 14:29:20 +0000 (14:29 +0000)]
Merge "Revert "Retrieve original source for kustomize""

5 years agoRevert "Retrieve original source for kustomize" 97/1697/1
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

5 years ago'fetch_reqs' integration with bm automation 88/1588/4
Andrew Bays [Mon, 16 Sep 2019 17:10:57 +0000 (13:10 -0400)]
'fetch_reqs' integration with bm automation

Change-Id: I8ec51432cf9f50e5793209932d72e76aa2d2e4c2

5 years agoStaging for getting site profile type 75/1575/1
Andrew Bays [Thu, 12 Sep 2019 12:24:34 +0000 (08:24 -0400)]
Staging for getting site profile type

Change-Id: Ieaccf5b2ea962f3f179cf19e1e85dea93118e6d4

5 years agoMerge "Retrieve original source for kustomize"
Yolanda Robla Mota [Fri, 6 Sep 2019 11:49:19 +0000 (11:49 +0000)]
Merge "Retrieve original source for kustomize"

5 years agoAdd fixes on apply_workloads for kustomize path 46/1546/1
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

5 years agoRetrieve original source for kustomize 21/1421/9
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

5 years agoReplace kubectl with oc for apply 41/1541/1
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

5 years agoAdd dockerfile to build an image with knictl 86/1486/1
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

5 years agoDownload the blueprint on apply_workloads 81/1481/1
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

5 years agoAllow to specify the kubeconfig file 79/1479/1
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

5 years agoAllow to just fetch individual requirements 78/1478/1
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

5 years agoDecrease time and repeats on kubectl 77/1477/1
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

5 years agoRemove extra popd 10/1410/1
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

5 years agoGenerate env vars from siteconfig 29/1329/1
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

5 years agoIncrease memory of masters to test 07/1307/1
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

5 years agoAdd a comment about ignition and UPI 03/1303/1
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

5 years agoUse sudo when removing openshift.conf file 99/1299/1
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

5 years agoModify AWS job to run from internal repo 93/1293/1
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

5 years agoInclude changes to pick local repo 92/1292/1
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

5 years agoRemove the approval of certs call 91/1291/1
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

5 years agoModify libvirt deploy to run from internal repo 90/1290/1
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

5 years agoCreate new ci folder to store the testing scripts 89/1289/1
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

5 years agoAdd support to deploy from local directory 78/1278/1
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

5 years agoAdd the possibility to specify ref for a site 76/1276/1
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

5 years agoAdd instructions for baremetal 35/1235/1
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

5 years agoRemove not used endpoints 18/1218/1
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

5 years agoFix typo in apply workloads 96/1196/1
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

5 years agoCreate wrapper to execute commands 95/1195/3
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

5 years agoMerge "Modify ssh key command generation"
Ricardo Noriega [Tue, 16 Jul 2019 07:56:14 +0000 (07:56 +0000)]
Merge "Modify ssh key command generation"

5 years agoModify ssh key command generation 91/1191/1
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

5 years agoShow output of prepare manifests if failed 88/1188/1
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

5 years agoSend output of kustomize to tempfile 87/1187/2
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

5 years agoFix typo in logs for applying workloads 77/1177/1
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

5 years agoFix getting cluster_domain and changing dns 76/1176/1
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

5 years agoRemove comment on prerequisites 75/1175/1
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

5 years agoInherit GOPATH from environment 74/1174/1
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

5 years agoFix declared and not used variable 71/1171/1
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>
5 years agoMerge "Update README.md to reflect the new workflow"
Ricardo Noriega [Thu, 11 Jul 2019 15:48:53 +0000 (15:48 +0000)]
Merge "Update README.md to reflect the new workflow"

5 years agoMerge "Parametrize prep_host to set cluster domain"
Yolanda Robla Mota [Thu, 11 Jul 2019 14:08:14 +0000 (14:08 +0000)]
Merge "Parametrize prep_host to set cluster domain"

5 years agoMerge "Add new command to run workloads"
Ricardo Noriega [Thu, 11 Jul 2019 14:00:49 +0000 (14:00 +0000)]
Merge "Add new command to run workloads"

5 years agoUpdate README.md to reflect the new workflow 66/1166/1
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

5 years agoCreate profile.env to source on cluster creation 47/1147/3
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

5 years agoParametrize prep_host to set cluster domain 64/1164/1
Ricardo Noriega [Thu, 11 Jul 2019 10:20:45 +0000 (12:20 +0200)]
Parametrize prep_host to set cluster domain

Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
Change-Id: I99ca8c3fd3ec210a3e65bdc8eb450c7d63deb500

5 years agoAdd new command to run workloads 51/1151/5
Yolanda Robla [Tue, 9 Jul 2019 15:59:25 +0000 (17:59 +0200)]
Add new command to run workloads

This command will apply kustomize on the extra
workloads directories, and appy it with kubectl

Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I41639c99602cae2962533db807be951f293d2451

5 years agoAdd prepare_manifests endpoint 24/1124/10
Yolanda Robla [Thu, 4 Jul 2019 16:03:12 +0000 (18:03 +0200)]
Add prepare_manifests endpoint

Added new command to prepare the manifests for the site. It
combines the original manifests declaration with the output of
kustomize for the site, to generate a complete set of manifests,
ready to be applied.

Change-Id: I911bee254ee05322f2e683ce24391acdbfd81c72
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
5 years agoMerge "Add site as a positional mandatory first argument"
Ricardo Noriega [Tue, 9 Jul 2019 13:42:10 +0000 (13:42 +0000)]
Merge "Add site as a positional mandatory first argument"

5 years agoAdd site as a positional mandatory first argument 44/1144/1
Yolanda Robla [Tue, 9 Jul 2019 11:44:29 +0000 (13:44 +0200)]
Add site as a positional mandatory first argument

As we are requiring site to be mandatory, let's skip
the --site flag and just accept it as a positional
argument.

Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I7f531f640bc4cb2f6a04152684e169b6d8558223

5 years agoFix building openshift-install binary 42/1142/1
Ricardo Noriega [Tue, 9 Jul 2019 10:28:42 +0000 (12:28 +0200)]
Fix building openshift-install binary

Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
Change-Id: I80d73fb4b346a2776bcaf6532c45c01ab807f90b

5 years agoUpdate dependencies for intaller 40/1140/1
Yolanda Robla [Tue, 9 Jul 2019 08:15:45 +0000 (10:15 +0200)]
Update dependencies for intaller

In order to keep dependencies up to date, a
dep ensure -update has been executed. This commit is
pushing the new generated dependencies.

Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Ib5fec89fe673c2033efe34f5277151c6a4f6fa1c

5 years agoAdd installation of plugins and publish as tarball 23/1123/2
Yolanda Robla [Thu, 4 Jul 2019 14:28:04 +0000 (16:28 +0200)]
Add installation of plugins and publish as tarball

Include a plugins folder for the SiteConfig kustomize plugin.
Also refactor make build to publish as a tarball, that will
include the plugins and utils folder.

Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I3fcc3e5acc190ab455c996e4ca2950fabe1bcd43

5 years agoAdd fetch requirements from site 17/1117/3
Yolanda Robla [Wed, 3 Jul 2019 15:30:21 +0000 (17:30 +0200)]
Add fetch requirements from site

This entrypoint will fetch requirements from a site, and
will store on $HOME/.kni/$SITE_NAME. It accepts a single
argument, the path/url to a site (in go-getter format)

Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Id9025fa7d14e90a8f03ee07d1e550b48d0003ae6

5 years agoMerge "Remove images from knictl endpoint"
Ricardo Noriega [Tue, 2 Jul 2019 10:51:52 +0000 (10:51 +0000)]
Merge "Remove images from knictl endpoint"

5 years agoRemove images from knictl endpoint 03/1103/1
Yolanda Robla [Tue, 2 Jul 2019 09:47:20 +0000 (11:47 +0200)]
Remove images from knictl endpoint

This is not being used anymore, so remove the command
that generates it.

Change-Id: I3d7ecc53482ed9ef0cb164ab6f75ca7d409600f4

5 years agoChange bin name from kni-edge-installer to knictl 02/1102/1
Yolanda Robla [Tue, 2 Jul 2019 09:34:39 +0000 (11:34 +0200)]
Change bin name from kni-edge-installer to knictl

To avoid giving a false impression of our tooling being
another installer, rename it from kni-edge-installer to
knictl.

Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I81be6fdbf08d91665529f30f623fba595a70d2a6

5 years agoSet OCP installer version tmp file for CI purposes 99/1099/1
Ricardo Noriega [Mon, 1 Jul 2019 08:12:31 +0000 (10:12 +0200)]
Set OCP installer version tmp file for CI purposes

Change-Id: I16690e011bde908959cdacd70918d4c12ce103df
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
5 years agoFix prep_host.sh permissions 20/1020/1
Andrew Bays [Wed, 19 Jun 2019 14:26:18 +0000 (10:26 -0400)]
Fix prep_host.sh permissions

Change-Id: If4d37e168a009d369be5502d4fcae0738fb22a95

5 years agoIncrease memory of master nodes to 16gb 71/971/2 akraino_r1
Yolanda Robla [Tue, 11 Jun 2019 07:42:14 +0000 (09:42 +0200)]
Increase memory of master nodes to 16gb

Currently defaults to 11192mb, and it showed
some failures on masters, so increasing it.

Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I2c1a16b60810f508ec7de4bcda7088e43a79bf18

5 years agoFix make binary to place it on bin 44/944/2
Ricardo Noriega [Tue, 4 Jun 2019 16:18:36 +0000 (18:18 +0200)]
Fix make binary to place it on bin

  make binary places openshift-install binary on the same
  build path that gets cleaned up at deployment time. Now
  it will be located under bin.

Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
Change-Id: Ie4e3ad8218d8091f28c679b9eeeacbd2565bed7e

5 years agoMerge "Updated README to reflect the changes in installer"
Yolanda Robla Mota [Tue, 4 Jun 2019 09:01:55 +0000 (09:01 +0000)]
Merge "Updated README to reflect the changes in installer"

5 years agoUpdated README to reflect the changes in installer 38/938/1
Yolanda Robla [Tue, 4 Jun 2019 07:35:21 +0000 (09:35 +0200)]
Updated README to reflect the changes in installer

Links for the installer, secrets, etc.. have changed lately. Update
the documentation to reflect that.
Also remove the images section, that is not currently used.

Change-Id: I351134335b3b73efcfb36542e0785ccc357208d9

5 years agoFix sudos in prep host script 33/933/1
Ricardo Noriega [Mon, 3 Jun 2019 15:12:03 +0000 (17:12 +0200)]
Fix sudos in prep host script

Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
Change-Id: Ibaee056689ca33e0ea6b5d04f337f27113af1abb

5 years agoMerge "build system requirements"
Yolanda Robla Mota [Mon, 3 Jun 2019 12:19:38 +0000 (12:19 +0000)]
Merge "build system requirements"

5 years agobuild system requirements 60/860/3
ashok chandran [Tue, 28 May 2019 06:00:03 +0000 (06:00 +0000)]
build system requirements

Change-Id: I842828ab1e258f3a770045fc807c617027eb8ae0

5 years agoAdd Virtctl as dependency to manage Kubevirt VMs 66/866/2
Ricardo Noriega [Tue, 28 May 2019 11:13:31 +0000 (13:13 +0200)]
Add Virtctl as dependency to manage Kubevirt VMs

Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
Change-Id: I80b2620d8939bec13939a60d13ee7e9a5ef38cd7

5 years agoAdd new customizations folder for kustomize 57/857/1
Yolanda Robla [Mon, 27 May 2019 14:50:18 +0000 (16:50 +0200)]
Add new customizations folder for kustomize

Change-Id: I34a27c51741862a76fae11c7ec8f33332b440ea7

5 years agoChange permission execution to kustomize 46/846/1
Yolanda Robla [Sat, 25 May 2019 09:14:48 +0000 (11:14 +0200)]
Change permission execution to kustomize

Change-Id: I2bf3509c58ffe88e0425e96df8655dfe7c2bdc69

5 years agoAdd new endpoint to generate workloads 45/845/1
Yolanda Robla [Sat, 25 May 2019 07:29:09 +0000 (09:29 +0200)]
Add new endpoint to generate workloads

Change-Id: Iadce1486585781c68150943ba35f8fac90b90d37

5 years agoModify makefile to add workloads deployment 44/844/1
Yolanda Robla [Sat, 25 May 2019 06:24:26 +0000 (08:24 +0200)]
Modify makefile to add workloads deployment

Change-Id: Ie74506f3a9ba987d88c52d83e642881d12bb42c5

5 years agoModify installation of kustomize 33/833/1
Yolanda Robla [Fri, 24 May 2019 17:25:57 +0000 (19:25 +0200)]
Modify installation of kustomize

Download an already compiled kustomize version, to
pin to an stable release instead of latest.

Change-Id: I1afecb6aa35a0ef07cb7a7a8acefeceb029e3dcb