14 Commits

Author SHA1 Message Date
Yue Tao
4a709349a9 meta_data.yaml: add sha256sum checksum
Test Plan:
Pass: Verify sha256sum checksum via "download -s"

Story: 2008846
Task: 44578

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Change-Id: I78d9dff2af0afb18c6db4e8d2d39ef79b5cf5864
2022-03-03 14:30:40 +08:00
Yue Tao
fd5884c428 armada: remove dl_hook
"dl_path" to replace

tar xfz ${ARMADA_PKG}
cp -pr ${PKG}/charts ${PKG_BUILD_ROOT}

debrepack extracts the ${ARMADA_PKG} as ${PKG_BUILD_ROOT},
so no need cp -pr ${PKG}/charts ${PKG_BUILD_ROOT}.

And move the patches into deb_folder

Test Plan:
Pass: successfully build test

Story: 2009221
Task: 43917

Signed-off-by: Yue Tao <yue.tao@windriver.com>
Change-Id: I041bbed3dff41ed7e63c99ddfef14c206628436e
2021-12-16 13:37:33 +08:00
Daniel Safta
db16f48a95 Add debian package for armada
Create debian package structure
for armada and armada-helm-toolkit.

Story: 2009221
Task: 43917
Change-Id: Ie1177d50b1c22239be18c109129308d13d75ba28
Signed-off-by: Daniel Safta <daniel.safta@windriver.com>
2021-11-11 16:28:11 +02:00
Enzo Candotti
b97f3ebade Add toleration to ansible-api deployment
A toleration needs to be added to all resources that create pods since
the node-role.kubernetes.io/master taint will be restored to all master
nodes. This ensures that the pods will run on the master node.

Test plan:

- Building and installing a new iso with this patch and the taint
applied. The armada-api pod was able to run on the tainted node.
- Confirmed that toleration is present when describing the armada pod.

Story: 2009232
Task: 43482
Change-Id: I7ec3a3753b49099279450d6228cce8915bc77cd2
2021-10-06 20:50:03 -03:00
Robert Church
4e1aa82e96 Update postgres liveness check to support IPv6 addresses
Templating will add square brackets for IPv6 addresses which are
interpreted as an array vs. a string. Quote this so that it interpreted
correctly.

Change-Id: I2b705015a74ea2e4e914b7a83cdceed37d49b766
Related-Bug: #1917308
Signed-off-by: Robert Church <robert.church@windriver.com>
2021-05-15 16:30:18 -04:00
Robert Church
b3540ccfdf Update the liveness probe to verify postgres connectivity
Change the tillerLivenessProbeTemplate to test the connectivity to the
postgres backend. We will override the periodSeconds and
failureThreshold when installing the helm chart to trigger a restart of
the tiller pod over a swact when the postgres DB/server moves from one
controller to the other.

This will help guarantee that the tiller connection is always
re-established if the connectivity to the postgres backend fails.

Change-Id: I7fbed33a8c821f6c9254f58d5953e2115cf4141a
Related-Bug: #1917308
Signed-off-by: Robert Church <robert.church@windriver.com>
2021-05-12 23:09:39 -04:00
Dan Voiculeasa
764cac1642 Armada: Fix tiller stuck connecting to postgres database
Tiller may start executing before IPv6 network is fully initialized.
This will result in tiller not being fully functional.
The liveness probe will detect that tiller didn't start properly and
restart it. But this might happen an unlimited number of times in a row.

Wait until ping is succesful to the ip of the postgres database.
This ensures that networking finished setting up.
Credits to Cole Walker <cole.walker@windriver.com> for proposing the
idea.

Depends-On: I177bb628497611eb64472291a04d635856c26590
Closes-Bug: 1928141
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I9c5be3f30fad2650e6aa53fb80ef44f7798813ed
2021-05-11 23:41:57 +00:00
Thiago Brito
18010eb1d6 Upversioning armada tarball to 7ef4b86
A fix landed upstream to deal with armada waiting indefinitely for
evicted pods, which intermittently fails stx-openstack
application. This commit upversions the tarball version to the
one containing that change.

Removing patches 0002 and 0003 since the commits are already on
the armada code at this version.

Story: 2008645
Task: 41906

Signed-off-by: Thiago Brito <thiago.brito@windriver.com>
Change-Id: I62caf0a403a054c30b5bbfc1a3c5bc4cf73b60a6
2021-04-26 09:21:21 -04:00
Marcus Secato
3924cfe7ae Set proper user ID for armada-api container
Since armada application moved to Kubernetes cluster, processes and
commands are not executed with the 'armada' user in armada-api
container. Previously when armada was a separated container user was
enforced through 'docker exec'.

Closes-Bug: 1924579

Signed-off-by: Marcus Secato <marcus.viniciuscarvalhosecato@windriver.com>
Change-Id: I5600974c0b9c3ade73a58dae300e8f3b18c6aefd
2021-04-15 18:03:36 -04:00
Zuul
d6a07b92eb Merge "Armada: add configurations for helm sql storage backend" 2021-01-14 16:00:09 +00:00
Don Penney
8ec4e97b34 Add auto-version for remaining stx/integ packages
Update remaining StarlingX packages with hardcoded TIS_PATCH_VER to
use PKG_GITREVCOUNT where possible, with offsets as needed to ensure
the version is incremented above the hardcoded version.

Change-Id: I9b40cd7e41c0cd713b73741ac3c8cab41d358642
Story: 2008455
Task: 41461
Signed-off-by: Don Penney <don.penney@windriver.com>
2020-12-17 13:26:44 -05:00
Angie Wang
39f6f92cc8 Armada: add configurations for helm sql storage backend
Configmap is the default helmv2 storage backend to store
release information but its 1MB resource limit prevents
scaling up stx openstack workers, so we want to use sql
as helm storage backend.

Update armada chart to support sql storage backend
configuration for helm/tiller.

Upstream review: https://review.opendev.org/#/c/759899/

Partial-Bug: 1887677
Change-Id: Ifcb7f28e99413be5a0dbfddf684ca064866860f5
Signed-off-by: Angie Wang <angie.wang@windriver.com>
2020-11-05 10:40:47 -05:00
Jim Gauld
8ceb938222 Build helm-toolkit for armada to decouple distro from flock
This provides helm-toolkit identically to how openstack-helm-infra
is built in repo stx/openstack-armada-app. This version of
helm-toolkit is used to build armada chart. This decouples distro
build from flock.

Story: 2007000
Task: 38893

Change-Id: I537625236fb05200e5380c4f23e3e144e24c8675
Signed-off-by: Jim Gauld <james.gauld@windriver.com>
2020-06-13 16:34:13 -04:00
Jim Gauld
e0bf31f63f Add support for Helm v3, chartmuseum, and armada chart
This adds support for Helm v3:
- 'helm init' and 'helm serv' were removed in v3, and helm
  initialization was simplified so that is not required in build.
- chart validation and version checking is enforced with 'helm lint',
  so all Charts require the tag: apiVersion: v1 (or v2).
- 'chartmuseum' is a drop-in replacement for 'helm serv', and is
  currently used for building charts only. It is not part of ISO
  image.
- armada chart is built and installed to /opt/extracharts. This
  provides a Kubernetes pod with armada-api and tiller containers.

This provides a Helm v2 client (i.e., helmv2-cli) that gives access
to containerized armada/tiller managed charts. This can be used as
an interactive shell, or as a wrapper for single helm v2 commands.

Change-Id: Iff2b219ea765cf9278c6e80c6aeb5b98cc9a0626
Depends-On: https://review.opendev.org/732731
Story: 2007000
Task: 38893
Signed-off-by: Jim Gauld <james.gauld@windriver.com>
2020-06-10 03:44:59 -04:00