multicloud/k8s.git
2 years agoRemove warning displayed from ssh commands in baremetal test 85/122085/1
Todd Malsbary [Mon, 21 Jun 2021 19:13:29 +0000 (12:13 -0700)]
Remove warning displayed from ssh commands in baremetal test

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: If2845857cd72768b0a1c6cf3831e64f3dc412ebf

2 years agoExpose installer ENV vars through Dockerfile 11/121711/1
Todd Malsbary [Fri, 4 Jun 2021 19:56:31 +0000 (12:56 -0700)]
Expose installer ENV vars through Dockerfile

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: Ie913d3f26d039fae0bff98149ebe0a6e6dea2ebd

2 years agoMerge "Exit cmk test script on error"
Ritu Sood [Fri, 21 May 2021 00:23:45 +0000 (00:23 +0000)]
Merge "Exit cmk test script on error"

2 years agoMerge "Mount /var/run as shared"
Ritu Sood [Fri, 21 May 2021 00:23:17 +0000 (00:23 +0000)]
Merge "Mount /var/run as shared"

2 years agoAdded initial kata files and containerd support as well as adding the Kata webhook 75/119875/10
Eric Adams [Thu, 14 Jan 2021 22:34:54 +0000 (22:34 +0000)]
Added initial kata files and containerd support as well as adding the Kata webhook

Issue-ID: MULTICLOUD-1320
Signed-off-by: Eric Adams <eric.adams@intel.com>
Change-Id: I9ef0bcde7c2ef22a04c32311d4571abc3b688ffe

2 years agoMount /var/run as shared 27/121427/1
Todd Malsbary [Tue, 18 May 2021 22:16:03 +0000 (15:16 -0700)]
Mount /var/run as shared

This fixes the "unknown FS magic" error reported by nfn-agent:

  E0518 22:05:58.596460 20593 cni.go:150] Failed to configure
  interface in pod: failed to open netns
  "/var/run/netns/cni-c24e4d8e-819c-6a0c-9ae5-6b4e5cf8f68d": unknown
  FS magic on
  "/var/run/netns/cni-c24e4d8e-819c-6a0c-9ae5-6b4e5cf8f68d": 1021994

It can be observed as a failure of the ovn4nfv.sh test when
CONTAINER_RUNTIME is "containerd".

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: If979110d125511827a65a5de5101a2832d5efeb5

3 years agoMerge "EMCO deploy of addons"
Ritu Sood [Mon, 10 May 2021 21:25:48 +0000 (21:25 +0000)]
Merge "EMCO deploy of addons"

3 years agoUpdate go_version from 1.12 to 1.14. 97/121197/1
Todd Malsbary [Fri, 7 May 2021 20:03:24 +0000 (13:03 -0700)]
Update go_version from 1.12 to 1.14.

Go reports a missing crypto/ed25519 module when running the vagrant
installer with KUD_PLUGIN_ENABLED.  The package was introduced in go
1.13 (https://golang.org/doc/go1.13#crypto/ed25519).

Issue-ID: MULTICLOUD-1343
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I2fdd06b67122506308038be0fe6b00a2e737f0f0

3 years agoEMCO deploy of addons 44/120244/8
Todd Malsbary [Fri, 26 Mar 2021 21:17:49 +0000 (14:17 -0700)]
EMCO deploy of addons

An example is provided with instructions on how to install the addons
with emcoctl.  Addtionally, the containerized installer will populate
/opt/kud/addons and /opt/kud/multi-cluster/$CLUSTER_NAME/artifacts
with the files and instructions necessary as well.

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I74de1c9d18a0aaec4a96e38684ec80f00ab0b940

3 years agoMerge "Remove unused deployments/helm/v2/emco"
Ritu Sood [Fri, 7 May 2021 00:51:53 +0000 (00:51 +0000)]
Merge "Remove unused deployments/helm/v2/emco"

3 years agoMerge "Replace emco with openness-21.03 release"
Ritu Sood [Fri, 7 May 2021 00:51:48 +0000 (00:51 +0000)]
Merge "Replace emco with openness-21.03 release"

3 years agoMerge "DeletePropagationPolicy changed to background"
Ritu Sood [Thu, 6 May 2021 16:57:05 +0000 (16:57 +0000)]
Merge "DeletePropagationPolicy changed to background"

3 years agoAdd qat addon helm chart 37/120037/6
Todd Malsbary [Wed, 24 Mar 2021 23:02:08 +0000 (16:02 -0700)]
Add qat addon helm chart

This chart contains the upstream qat plugin from
intel-device-plugins-for-kubernetes together with a qat driver
installer.

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I3467ba204276999dac4087bdf68ac0d4439861ad

3 years agoMerge "Add cmk addon helm chart"
Ritu Sood [Wed, 5 May 2021 23:14:50 +0000 (23:14 +0000)]
Merge "Add cmk addon helm chart"

3 years agoMerge "Add sriov-network addon helm chart"
Ritu Sood [Wed, 5 May 2021 23:14:30 +0000 (23:14 +0000)]
Merge "Add sriov-network addon helm chart"

3 years agoMerge "Add ovn4nfv addon helm chart"
Ritu Sood [Wed, 5 May 2021 23:14:09 +0000 (23:14 +0000)]
Merge "Add ovn4nfv addon helm chart"

3 years agoMerge "Add sriov-network-operator addon helm chart"
Ritu Sood [Wed, 5 May 2021 23:13:29 +0000 (23:13 +0000)]
Merge "Add sriov-network-operator addon helm chart"

3 years agoDeletePropagationPolicy changed to background 18/121118/1
Lukasz Rajewski [Wed, 5 May 2021 18:39:10 +0000 (20:39 +0200)]
DeletePropagationPolicy changed to background

The policy is changed to Background operation
which is default for helm application. Later
on dedicated parametr will be added to the profile
to let it be changed for particular helm chart.

Issue-ID: MULTICLOUD-1338
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I29978bc39fe6e1d10b0278fe10736ff1b7cc2006

3 years agoAdd ovn4nfv addon helm chart 33/120033/4
Todd Malsbary [Mon, 1 Mar 2021 23:13:08 +0000 (15:13 -0800)]
Add ovn4nfv addon helm chart

This chart follows the upstream installation guide with the following
exceptions:
- The node-role.kubernetes.io/master:NoSchedule taint is not removed.
  The YAML files already included the necessary tolerations.
- No node labeling is done.  Instead, the ovn-control-plane node
  selector is for the master role, and the nfn-operator pod affinity
  is for "role: ovn-control-plane".  This ensures that the
  ovn-control-plane and nfn-operator run are scheduled on the same
  master node, equivalent to the labelling approach used upstream.

Also, additional allowed capabilities are needed to run the pods with
the restricted PodSecurityPolicy.  These capabilities are requested by
the Pods, but not available in the default set of allowed
capabilities.

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I54ae12434572e2e2dd1fe2ec9298d04557331d94

3 years agoRemove unused deployments/helm/v2/emco 43/120243/8
Todd Malsbary [Wed, 31 Mar 2021 20:35:48 +0000 (13:35 -0700)]
Remove unused deployments/helm/v2/emco

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I42eed23905c848e5ea1ea829a129215817394448

3 years agoReplace emco with openness-21.03 release 42/120242/8
Todd Malsbary [Wed, 31 Mar 2021 20:34:22 +0000 (13:34 -0700)]
Replace emco with openness-21.03 release

This change also installs emcoctl in the artifacts directory, similar
to what is done for kubectl by kubespray.

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I8447210487578ceeef61afc7c3e4d97905303c8a

3 years agoAdd sriov-network addon helm chart 36/120036/3
Todd Malsbary [Fri, 19 Mar 2021 22:07:32 +0000 (15:07 -0700)]
Add sriov-network addon helm chart

This chart deploys the CR used by the sriov-network-operator.

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I9364868d3e58fd64e51a77aaa934284fad86a1b1

3 years agoAdd sriov-network-operator addon helm chart 35/120035/4
Todd Malsbary [Fri, 12 Mar 2021 21:48:25 +0000 (13:48 -0800)]
Add sriov-network-operator addon helm chart

This chart contains the upstream sriov-network-operator from
k8snetworkplumbingwg together with an iavf driver installer.

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: Ic925c66f8e2b28b7604240c3ed35b1a56883b60b

3 years agoMerge "Remove unused cmk kud vars"
Ritu Sood [Fri, 30 Apr 2021 21:41:49 +0000 (21:41 +0000)]
Merge "Remove unused cmk kud vars"

3 years agoMerge "Add nfd addon helm chart"
Ritu Sood [Fri, 30 Apr 2021 21:23:37 +0000 (21:23 +0000)]
Merge "Add nfd addon helm chart"

3 years agoMerge "Add multus addon helm chart"
Ritu Sood [Fri, 30 Apr 2021 21:19:28 +0000 (21:19 +0000)]
Merge "Add multus addon helm chart"

3 years agoMerge "Add Makefile for addon helm charts"
Ritu Sood [Fri, 30 Apr 2021 21:18:14 +0000 (21:18 +0000)]
Merge "Add Makefile for addon helm charts"

3 years agoMerge "Upgrade vagrant version from 2.4 to 2.2.14"
Ritu Sood [Fri, 30 Apr 2021 21:16:23 +0000 (21:16 +0000)]
Merge "Upgrade vagrant version from 2.4 to 2.2.14"

3 years agoMerge "Use group libvirt instead of libvirtd"
Ritu Sood [Fri, 30 Apr 2021 21:15:45 +0000 (21:15 +0000)]
Merge "Use group libvirt instead of libvirtd"

3 years agoExit cmk test script on error 72/120972/3
Todd Malsbary [Wed, 28 Apr 2021 19:51:42 +0000 (12:51 -0700)]
Exit cmk test script on error

Issue-ID: MULTICLOUD-1335
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I83336983475bab25867c44153657d31b1bacb933

3 years agoAdd cmk addon helm chart 39/120039/2
Todd Malsbary [Tue, 23 Feb 2021 17:28:48 +0000 (09:28 -0800)]
Add cmk addon helm chart

The chart follows the instructions laid out in the CMK operator
manual, with the following notes:
- The nodes are prepared by running each CMK subcommand as a Pod
  instead of running cmk cluster-init.  The first reason for this is
  that the existing addon only deploys CMK to the worker nodes in the
  cluster.  This is not possible using cluster-init without explicitly
  providing the list of worker nodes to cluster-init, and this list is
  unknown by helm.  Instead it is sufficient to rely on the
  node-role.kubernetes.io/master:NoSchedule taint.  The second reason
  is that cluster-init creates resources which are unknown to helm,
  thus uninstall does not behave as expected.
- The v1.4.1 version of CMK is chosen.  In v1.5.2, the description key
  of the cmk-nodereport resource is not correct.
- All values listed as possibly requiring modification are exposed in
  values.yaml

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: Ibc75462de3729cd88edeb4b15602d57fe12791ca

3 years agoRemove unused cmk kud vars 38/120038/2
Todd Malsbary [Mon, 22 Feb 2021 21:19:41 +0000 (13:19 -0800)]
Remove unused cmk kud vars

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I0c1d43de8506233eb62bde52641bb7fc95b422fc

3 years agoMerge "Add X710 to iavf driver NICs"
Ritu Sood [Wed, 28 Apr 2021 21:59:19 +0000 (21:59 +0000)]
Merge "Add X710 to iavf driver NICs"

3 years agoMerge "Set helm stable repo URL value to updated URL"
Ritu Sood [Wed, 28 Apr 2021 21:25:35 +0000 (21:25 +0000)]
Merge "Set helm stable repo URL value to updated URL"

3 years agoAdd X710 to iavf driver NICs 74/120974/1
Todd Malsbary [Wed, 28 Apr 2021 19:39:01 +0000 (12:39 -0700)]
Add X710 to iavf driver NICs

Issue-ID: MULTICLOUD-1336
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I7a0ee4302c020e6b7ec785d6a85af636b6a85ecc

3 years agoMerge "Migrate to use Helm v3 libraries"
Lukasz Rajewski [Tue, 20 Apr 2021 16:59:11 +0000 (16:59 +0000)]
Merge "Migrate to use Helm v3 libraries"

3 years agoUpdate k8splugin snapshot image 49/120549/2
Konrad Bańka [Wed, 14 Apr 2021 22:29:27 +0000 (00:29 +0200)]
Update k8splugin snapshot image

Updated image tag to 0.9.0-SNAPSHOT

Issue-ID: MULTICLOUD-1294
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I052726df7d7fd7c58e39e157adb104db7d68a048

3 years agoMerge "Add k8splugin releases file for 0.8.1"
Lukasz Rajewski [Wed, 14 Apr 2021 19:50:13 +0000 (19:50 +0000)]
Merge "Add k8splugin releases file for 0.8.1"

3 years agoAdd k8splugin releases file for 0.8.1 24/120524/2
Konrad Bańka [Wed, 14 Apr 2021 08:34:02 +0000 (10:34 +0200)]
Add k8splugin releases file for 0.8.1

Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Issue-ID: MULTICLOUD-1307
Issue-ID: MULTICLOUD-1308
Issue-ID: MULTICLOUD-1311
Change-Id: I4645cc1dd9c8e6dfcf2a5c27dddf09e4c8de5e5c

3 years agoMigrate to use Helm v3 libraries 37/118337/7
Ritu Sood [Wed, 24 Feb 2021 04:18:26 +0000 (20:18 -0800)]
Migrate to use Helm v3 libraries

Moving to Helm v3. Updated unit tests.
Reworked Healthcheck Execution to align
with v3 design.
Helm v3 requires newer version for K8s
libraries. Moved to use version 0.19.4.

Issue-ID: MULTICLOUD-1295
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I091b75d69841dde56ad2c294cca2d5a0291ffa8f

3 years agoAdd multus addon helm chart 32/120032/2
Todd Malsbary [Mon, 1 Mar 2021 22:02:16 +0000 (14:02 -0800)]
Add multus addon helm chart

- Support for calico configuration is present but currently disabled.

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I2d2161564c4da2e165e5cf13cea92fae4935f8b2

3 years agoUpdate k8splugin snapshot image 64/120364/1 0.8.1
Lukasz Rajewski [Fri, 9 Apr 2021 12:25:30 +0000 (14:25 +0200)]
Update k8splugin snapshot image

Update image version of k8splugin to 0.8.1-SNAPSHOT

Issue-ID: MULTICLOUD-1294
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I009da40eec82ad7fddb22018935928a62451c768

3 years agoAdd Makefile for addon helm charts 31/120031/2
Todd Malsbary [Thu, 18 Mar 2021 20:16:46 +0000 (13:16 -0700)]
Add Makefile for addon helm charts

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I90a9cf23a8fb01cbc579d2b6670b476494c2a7bb

3 years agoMerge "Fix Healthcheck API"
Ritu Sood [Fri, 2 Apr 2021 13:14:11 +0000 (13:14 +0000)]
Merge "Fix Healthcheck API"

3 years agoFix Healthcheck API 23/119223/4
Konrad Bańka [Fri, 12 Mar 2021 07:46:20 +0000 (08:46 +0100)]
Fix Healthcheck API

Fix several issues related to Healthcheck creation.
Updated GET/DELETE methods to work properly.
This commit leaves few FIXME/TODOs that will be handled within Helm3
Rebase commit

Issue-ID: MULTICLOUD-1308
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I5da50363bb240fdc85d3624f43cb0526786da542

3 years agoAdd nfd addon helm chart 34/120034/1
Todd Malsbary [Mon, 1 Mar 2021 21:42:21 +0000 (13:42 -0800)]
Add nfd addon helm chart

This change adds iavf, qat, and pci device labels to the node feature
discovery config.

Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: Ie6296caf898983149483ac581428f2c80405bca8

3 years agoSet helm stable repo URL value to updated URL 30/120030/1
Todd Malsbary [Tue, 30 Mar 2021 22:15:15 +0000 (15:15 -0700)]
Set helm stable repo URL value to updated URL

Issue-ID: MULTICLOUD-1323
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: Iac2046b6df4f76efc7f7745567740fffb9b8e72a

3 years agoUse group libvirt instead of libvirtd 29/120029/1
Todd Malsbary [Tue, 30 Mar 2021 22:10:08 +0000 (15:10 -0700)]
Use group libvirt instead of libvirtd

This fixes the following error when running ./setup.sh -p libvirt:

  usermod: group 'libvirtd' does not exist

Newer versions of Ubuntu appear to have renamed the libvirtd group to
libvirt.

Issue-ID: MULTICLOUD-1322
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I54ffc4558cb8945e8c9f9ca751518b20a6de64d0

3 years agoUpgrade vagrant version from 2.4 to 2.2.14 28/120028/1
Todd Malsbary [Tue, 30 Mar 2021 22:01:16 +0000 (15:01 -0700)]
Upgrade vagrant version from 2.4 to 2.2.14

This fixes the following error when running ./setup.sh -p libvirt:

  Installing the 'vagrant-libvirt' plugin. This can take a few minutes...
  Bundler, the underlying system Vagrant uses to install plugins,
  reported an error. The error is shown below. These errors are usually
  caused by misconfigured plugin installations or transient network
  issues. The error from Bundler is:

  nokogiri requires Ruby version < 3.1.dev, >= 2.5.

Issue-ID: MULTICLOUD-1321
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: Ia867df9df3ec1cc27e2f17df4a72ffc88f6bdf44

3 years agoMerge "Correct Day2 Config Template creation response"
Ritu Sood [Thu, 11 Mar 2021 19:33:55 +0000 (19:33 +0000)]
Merge "Correct Day2 Config Template creation response"

3 years agoCorrect Day2 Config Template creation response 35/119135/1
Konrad Bańka [Thu, 11 Mar 2021 09:58:37 +0000 (10:58 +0100)]
Correct Day2 Config Template creation response

Modified day2 config template handler to return metadata of created
configuration template on its creation.

Issue-ID: MULTICLOUD-1311
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I139486a41c7dbd67d414a07776e9a5d711d9887b

3 years agoRemove Hooks field from InstanceResponse http resp json 32/119132/1
Konrad Bańka [Thu, 11 Mar 2021 09:44:32 +0000 (10:44 +0100)]
Remove Hooks field from InstanceResponse http resp json

Addition of hooks in instantiation response needs to be handled by other
parties or else it may break connectivity. Because currently Hooks
field doesn't provide any relevant public data, this change makes it
hidden.

Issue-ID: MULTICLOUD-1311
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I4ca522cf8c6409ddf71fe06de0b905cfdf219a2f

3 years agoMerge "Correct Query API endpoint registration"
Ritu Sood [Tue, 9 Mar 2021 17:46:32 +0000 (17:46 +0000)]
Merge "Correct Query API endpoint registration"

3 years agoMerge "Enable plugin_fw.sh to preserve CNF after tests"
Ritu Sood [Tue, 9 Mar 2021 17:38:03 +0000 (17:38 +0000)]
Merge "Enable plugin_fw.sh to preserve CNF after tests"

3 years agoCorrect get-pip.py url for python2.7 78/118978/1
Konrad Bańka [Tue, 9 Mar 2021 16:08:47 +0000 (17:08 +0100)]
Correct get-pip.py url for python2.7

It turned out prior url has been further changed and pip is unavailable
by it.

Issue-ID: MULTICLOUD-1255
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: Id5c9285f74bda17c28ac56de8a847ab74005beba

3 years agoEnable plugin_fw.sh to preserve CNF after tests 51/118551/5
Konrad Bańka [Fri, 26 Feb 2021 04:45:23 +0000 (05:45 +0100)]
Enable plugin_fw.sh to preserve CNF after tests

Issue-ID: MULTICLOUD-1306
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: Iea0c2e2a36adadc81860f622f04e85a389f53e0c

3 years agoCorrect Query API endpoint registration 65/118965/1
Konrad Bańka [Tue, 9 Mar 2021 14:57:37 +0000 (15:57 +0100)]
Correct Query API endpoint registration

Apart from corrections, corrected handling of name-only query requests
as well as provided bunch of UTs.

Issue-ID: MULTICLOUD-1307
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: Ida3d3e434525f323bd8c40ddc7ffd58df9c5e831

3 years agoMerge "Add k8splugin releases file for 0.8.0"
Ritu Sood [Fri, 26 Feb 2021 20:40:29 +0000 (20:40 +0000)]
Merge "Add k8splugin releases file for 0.8.0"

3 years agoAdd k8splugin releases file for 0.8.0 24/118424/3
Lukasz Rajewski [Wed, 24 Feb 2021 17:54:54 +0000 (18:54 +0100)]
Add k8splugin releases file for 0.8.0

Add k8splugin releases file for 0.8.0

Issue-ID: MULTICLOUD-1294
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I30991d735fc96054b0fd726a42b3b1f7d69c7201

3 years agoProvide Healthcheck API MVP 41/118441/4 0.8.0
Konrad Bańka [Wed, 24 Feb 2021 23:08:05 +0000 (00:08 +0100)]
Provide Healthcheck API MVP

Implements basic functionality of running starting Healthcheck.
Results can be inspected so-far without dedicated API, by using, for
example, Query API.

Issue-ID: MULTICLOUD-1233
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: Ia4d96d936d573173d7d8f41e6c39d059bf5f8b1f

3 years agoMerge "Update k8splugin for H release"
Ritu Sood [Thu, 25 Feb 2021 14:17:56 +0000 (14:17 +0000)]
Merge "Update k8splugin for H release"

3 years agoMerge "Provide Query API for CNF Instances"
Ritu Sood [Thu, 25 Feb 2021 14:17:19 +0000 (14:17 +0000)]
Merge "Provide Query API for CNF Instances"

3 years agoProvide Query API for CNF Instances 18/118418/4
Konrad Bańka [Wed, 24 Feb 2021 17:28:56 +0000 (18:28 +0100)]
Provide Query API for CNF Instances

Query API doesn't directly use Status API code, in order to allow for
querying derived resources that might not be typically returned by
Status API like replicasets for deployment.

Issue-ID: MULTICLOUD-1305
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: If15adce23845880f3e6771cc8eab78a78ab13517

3 years agoUpdate k8splugin for H release 17/118417/1
Lukasz Rajewski [Wed, 24 Feb 2021 17:17:00 +0000 (18:17 +0100)]
Update k8splugin for H release

Update image version of k8splugin to 0.8.0-SNAPSHOT
This will be then be used to create the release image

Issue-ID: MULTICLOUD-1294
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I0216c83ad9ffaa2cd11236b4462d01eed84b0764

3 years agoMerge "Move Day2 Config Values API to new endpoint"
Bin Yang [Wed, 24 Feb 2021 13:04:48 +0000 (13:04 +0000)]
Merge "Move Day2 Config Values API to new endpoint"

3 years agoCorrect pip url due to using python2.7 23/118323/2
Konrad Bańka [Tue, 23 Feb 2021 21:48:08 +0000 (22:48 +0100)]
Correct pip url due to using python2.7

Issue-ID: MULTICLOUD-1255
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I800c4bdbe1fecc61f196ac3098910ae4278bf0cf

3 years agoMove Day2 Config Values API to new endpoint 12/118312/2
Konrad Bańka [Tue, 23 Feb 2021 19:35:59 +0000 (20:35 +0100)]
Move Day2 Config Values API to new endpoint

Issue-ID: MULTICLOUD-1280
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: Ibeb0920b4ce083f4294b83c887fc7c793a2c3df5

3 years agoget-pip.py error on Python 2.7 52/117252/1
Ritu Sood [Fri, 29 Jan 2021 18:31:54 +0000 (10:31 -0800)]
get-pip.py error on Python 2.7

invalid syntax error when KUD is deployed
sys.stderr.write(f"ERROR: {exc}") SyntaxError: invalid syntax

Issue-ID: MULTICLOUD-1255
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Change-Id: Ia4ecbad5735617a5606cbce2ed93a58cb7322cb5

3 years agoMerge "Fix the nodeSelector indent and define name"
Ritu Sood [Sun, 24 Jan 2021 01:13:31 +0000 (01:13 +0000)]
Merge "Fix the nodeSelector indent and define name"

3 years agoProvide simple v3 chart mock test 88/116788/2
Konrad Bańka [Wed, 13 Jan 2021 12:39:53 +0000 (13:39 +0100)]
Provide simple v3 chart mock test

Issue-ID: MULTICLOUD-1267
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: Ib05167a6e0e2c69268bcd85c0ae3fa30fdd78e39

3 years agoRollback helm library to version not failing v3 charts 19/116419/2
Konrad Bańka [Wed, 16 Dec 2020 09:57:29 +0000 (10:57 +0100)]
Rollback helm library to version not failing v3 charts

This change reverts fef2f1a959341d2abaea6dadaecccc4952c284c9 commit that
updated helm library to a version, that no longer allowed helm v3 charts
by explicitly failing when parsing them. Proper support of helm v3 is
still not implemented in k8splugin, but at least it shouldn't fail on v3
packages that don't implement v3-specific features.
Also apart from revert, go.mod/sum have been also tidied.

Issue-ID: MULTICLOUD-1267
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I992004d30802134039f0a6aca2d07a42db9c2459

3 years agoMerge "MULTICLOUD-1257 updated gui flow"
Ritu Sood [Tue, 15 Dec 2020 00:35:33 +0000 (00:35 +0000)]
Merge "MULTICLOUD-1257 updated gui flow"

3 years agoMerge "Containerized base installation directory change"
Eric Multanen [Thu, 10 Dec 2020 00:44:02 +0000 (00:44 +0000)]
Merge "Containerized base installation directory change"

3 years agoRun all addon tests even when one fails 52/116052/3
Todd Malsbary [Wed, 2 Dec 2020 21:00:45 +0000 (13:00 -0800)]
Run all addon tests even when one fails

Previously the installer would exit immediately after a failure by one
of the addon tests.  Now, record the failure and run subsequent tests,
then exit if any fail.

Issue-ID: MULTICLOUD-1258
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I4fcad9b51b58277344de4fed0e40e87493dc3663

3 years agoMerge "Fix broken virtlet image URL"
Eric Multanen [Thu, 10 Dec 2020 00:21:49 +0000 (00:21 +0000)]
Merge "Fix broken virtlet image URL"

3 years agoMerge "Fix sriov test in baremetal deploy"
Eric Multanen [Thu, 10 Dec 2020 00:21:09 +0000 (00:21 +0000)]
Merge "Fix sriov test in baremetal deploy"

3 years agoMerge "Remove duplicate dict key"
Eric Multanen [Thu, 10 Dec 2020 00:19:52 +0000 (00:19 +0000)]
Merge "Remove duplicate dict key"

3 years agoMerge "Enable pod security policies"
Eric Multanen [Thu, 10 Dec 2020 00:19:11 +0000 (00:19 +0000)]
Merge "Enable pod security policies"

3 years agoRemove duplicate dict key 71/116271/1
Todd Malsbary [Thu, 3 Dec 2020 01:31:38 +0000 (17:31 -0800)]
Remove duplicate dict key

Issue-ID: MULTICLOUD-1262
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: Ie83fad2ad8146b3b33d3a3f0438ff7fe1ac4e475

3 years agoEnable pod security policies 14/115214/6
Todd Malsbary [Fri, 20 Nov 2020 23:42:54 +0000 (15:42 -0800)]
Enable pod security policies

The intention with this change is to disable CAP_NET_RAW (which can be
a security vulnerability) for created Pods.

kubespray provides the podsecuritypolicy_enabled variable for enabling
privileged (for kube-system) and restricted (for everyone else)
policies.  Enabling this requires binding the KUD_ADDONs to the
privileged policy and specifying the security context correctly for
Pods running in the default namespace.

As of this change, the only difference between the privileged and
restricted security policies is the dropping of CAP_NET_RAW in the
restricted policy.  To use the default restricted policy provided with
kubespray, additional changes must be made to the Pods that are run in
the default namespace (such as runing as a non-root user, not
requesting privileged mode, etc.).

Issue-ID: MULTICLOUD-1256
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I7d6add122ad4046f9116ef03a249f5c9da1d7eec

3 years agoFix QAT addon deploy and test 85/116185/1
Todd Malsbary [Thu, 3 Dec 2020 00:09:36 +0000 (16:09 -0800)]
Fix QAT addon deploy and test

Note that as mentioned in install_qat.sh, the kernel command line must
include "intel_iommu=on iommu=pt" for the deploy and test to succeed.

The underlying issue is that the playbook was expecting to be run on
the same host it executed on and was looking for files in the wrong
places.

Issue-ID: MULTICLOUD-1261
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I5f59b9147f34f077fcdc63d7fc5f80b56977054c

3 years agoFix sriov test in baremetal deploy 90/116090/2
Todd Malsbary [Thu, 3 Dec 2020 00:09:14 +0000 (16:09 -0800)]
Fix sriov test in baremetal deploy

The test incorrectly checked the node running the test for sriov
feature support.  This fix now checks the cluster for it.

Issue-ID: MULTICLOUD-1260
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I869823cc062968c8ac7b9fa037d425244a03799c

3 years agoFix broken virtlet image URL 53/116053/1
Todd Malsbary [Thu, 3 Dec 2020 00:07:28 +0000 (16:07 -0800)]
Fix broken virtlet image URL

Issue-ID: MULTICLOUD-1259
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I92cc722818b9023b4aa29d191cf92e2c319f957b

3 years agoMULTICLOUD-1257 updated gui flow 95/116195/1
vikaskumar [Thu, 26 Nov 2020 07:41:45 +0000 (13:11 +0530)]
MULTICLOUD-1257 updated gui flow

Issue-ID: MULTICLOUD-1257
Change-Id: I5c1432c037952abeed6066cb067192076031f9cd
Signed-off-by: vikaskumar <vkumar@aarnanetworks.com>
3 years agoFix the nodeSelector indent and define name 09/114809/4
Le Yao [Thu, 12 Nov 2020 09:24:24 +0000 (09:24 +0000)]
Fix the nodeSelector indent and define name

Deploy the sdewan controller on master node
Change sdewan-contoller-manager to sdewan-crd-controller

Issue-ID: MULTICLOUD-1253
Signed-off-by: Le Yao <le.yao@intel.com>
Change-Id: Ic55744914266278f1c344c10af587d41f4426918

3 years agoFix CrashLoopBackoff in emco-fluentd Pod 61/114461/2
Todd Malsbary [Wed, 21 Oct 2020 16:37:37 +0000 (09:37 -0700)]
Fix CrashLoopBackoff in emco-fluentd Pod

The emco-fluentd pod is stuck in CrashLoopBackOff due to a failure to
resolve the "cluster.local" name.  Explicitly set the
fluentd.clusterDomain value to the actual cluster name during helm
install.

Issue-ID: MULTICLOUD-1244
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: Ia6424e7ce8d4544511ad88c478e65fa8c4df0c52

3 years agoMerge "Build and deploy sriov module only on supported hosts."
Ritu Sood [Thu, 19 Nov 2020 18:13:07 +0000 (18:13 +0000)]
Merge "Build and deploy sriov module only on supported hosts."

3 years agoMerge "Update multus-daemonset.yml to that of multus-cni v3.6 release"
Ritu Sood [Thu, 19 Nov 2020 18:12:34 +0000 (18:12 +0000)]
Merge "Update multus-daemonset.yml to that of multus-cni v3.6 release"

3 years agoMerge "Upgrade kubespray from 2.12.6 to 2.14.1"
Ritu Sood [Thu, 19 Nov 2020 18:12:18 +0000 (18:12 +0000)]
Merge "Upgrade kubespray from 2.12.6 to 2.14.1"

3 years agoMerge "Update images used in onap4k8s and emco helm charts"
Ritu Sood [Thu, 19 Nov 2020 18:11:07 +0000 (18:11 +0000)]
Merge "Update images used in onap4k8s and emco helm charts"

3 years agoMerge "Use same host in both copy and run of deploy_optane.sh"
Ritu Sood [Thu, 19 Nov 2020 18:09:16 +0000 (18:09 +0000)]
Merge "Use same host in both copy and run of deploy_optane.sh"

3 years agoMerge "Ignore 404 when deleting non-existent project in emco.sh"
Ritu Sood [Thu, 19 Nov 2020 18:08:50 +0000 (18:08 +0000)]
Merge "Ignore 404 when deleting non-existent project in emco.sh"

3 years agoMerge "Wait for service to be listening before running tests"
Ritu Sood [Thu, 19 Nov 2020 18:08:35 +0000 (18:08 +0000)]
Merge "Wait for service to be listening before running tests"

3 years agoMerge "Properly escape query string to jq"
Ritu Sood [Thu, 19 Nov 2020 18:08:24 +0000 (18:08 +0000)]
Merge "Properly escape query string to jq"

3 years agoMerge "Move test inside if block to prevent premature exit"
Ritu Sood [Thu, 19 Nov 2020 18:08:12 +0000 (18:08 +0000)]
Merge "Move test inside if block to prevent premature exit"

3 years agoMerge "Fix typo in deployments/helm/v2/emco/Chart.yaml"
Ritu Sood [Thu, 19 Nov 2020 18:07:37 +0000 (18:07 +0000)]
Merge "Fix typo in deployments/helm/v2/emco/Chart.yaml"

3 years agoImprove early-detection of empty template 07/114807/3
Konrad Bańka [Thu, 12 Nov 2020 08:13:37 +0000 (09:13 +0100)]
Improve early-detection of empty template

Previous empty template detection pattern matched only against templates
resolved to empty-or-whitespace-only files. This change makes it handle
other case of empty yaml correctly, namely, yaml containing comments
only.

Issue-ID: MULTICLOUD-1252
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I9132e167ec607c8a4a4ca5584141ed043c6ddd4f

3 years agoUpdate multus-daemonset.yml to that of multus-cni v3.6 release 65/114465/2
Todd Malsbary [Fri, 30 Oct 2020 20:31:04 +0000 (13:31 -0700)]
Update multus-daemonset.yml to that of multus-cni v3.6 release

The only change to the upstream yml is the removal of the
kube-multus-ds-ppc64le DaemonSet and the replacement of
"default-cni-network" with "cni0".

Note also that the v3.6 yml actually uses the v3.4.1 image tag.  The
yml now points to a v3.4.1 image with the addition of code to merge
the results from all delegates to support Virtlet.

Issue-ID: MULTICLOUD-1230
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I0e18644a567facfac1fd7dc1c053002b2d906288

3 years agoUpgrade kubespray from 2.12.6 to 2.14.1 64/114464/1
Todd Malsbary [Tue, 27 Oct 2020 21:46:29 +0000 (14:46 -0700)]
Upgrade kubespray from 2.12.6 to 2.14.1

- Replace move of ansible.cfg from kubespray distribution to
  /etc/ansible with ANSIBLE_CONFIG environment variable.  Ansible
  modifies ansible.cfg during installation, and the paths in it are
  relative.

- kubespray 2.14.1 requires a kubernetes version > 1.16.  Use the
  default versions of kubernetes and helm provided by kubespray
  2.14.1.

- kubespray 2.14.1 replaces helm 2 with helm 3.  This removes support
  for helm init and helm serve.  It is no longer necessary to call
  helm init, and the helm serve repository is replaced with file
  relative URLs.  This also triggered a subsequent update of the
  kubernetes-helm ansible module to include the newer helm versions.

- Add "storageType: hostPath" to etcd/values.yaml.  Helm deploy of
  etcd will fail without this due to nil
  PersistentVolume.metadata.labels.type.

- The mitogen module used by kubespray/ansible requires python2 on the
  hosts.  Use the linear strategy to bypass mitogen and install
  python2 on the cluster hosts.

Issue-ID: MULTICLOUD-1230
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I9f50bb4e123fdcacab6b6a97e79cd09fb5c96634

3 years agoUse same host in both copy and run of deploy_optane.sh 63/114463/1
Todd Malsbary [Fri, 23 Oct 2020 23:18:58 +0000 (16:18 -0700)]
Use same host in both copy and run of deploy_optane.sh

NOTE: This is not a complete fix, it is only a workaround so that
installer.sh can succeed when Optane hardware is not present.

Without this, "No such file or directory" is reported during the
"Apply Optane PMEM CSI Daemonset" task of the configure-optane
playbook.  This error was observed with kubespray 2.14.1 and not with
2.12.6.

Issue-ID: MULTICLOUD-1234
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I1e23741d704ab117a84b4ed11e2f7ac02f0f2ec2