Commit Graph

34 Commits

Author SHA1 Message Date
Ritchie, Frank (fr801x) 962db46114 Update helm toolkit reference
Update helm toolkit reference

Update helm toolkit ref so that ingress will be created with a pathType
of Prefix.

https: //review.opendev.org/c/openstack/openstack-helm-infra/+/905757
Change-Id: Iccedcd7b15b2da9ed35748af9809def69b7ae6da
2024-01-23 17:34:07 -05:00
Ruslan Aliev 23a2b557f1 Revert "Upgrading MAAS to v3"
This reverts commit 129d958a51.

Reason for revert: reverting back to 2.8.7 to modify chart

Change-Id: I68d3abfb19decc5eb470fcf43694506bc5edd4b6
2023-02-16 15:32:01 -06:00
Anselme, Schubbert (sa246v) 129d958a51
Upgrading MAAS to v3
Signed-off-by: Anselme, Schubert (sa246v) <sa246v@att.com>
Change-Id: I4b5a5f6a7e21d790cce13a5ccff9819f517cad64
2022-11-23 12:55:52 -05:00
Ruslan Aliev 2d5b698d9e Switch PVCs to use storageClassName
HTK and Helm versions are also updated.

Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Change-Id: Ia1ef4ec23f53dcb591e139c3476e143a55351fd3
2022-09-16 19:02:23 -05:00
Phil Sphicas 666567eae5 Update chart to use stable Kubernetes APIs
Update the MAAS chart to use non-deprecated APIs [0], specifically
addressing the following resource types:
* ClusterRole
* ClusterRoleBinding
* Ingress
* Role
* Rolebinding

The APIs being migrated to are available in v1.19 or earlier. As of this
change, v1.19 is the oldest supported Kubernetes version, slated for EOL
on 2021-10-28. [1]

Also includes an HTK uplift that includes updated Ingress templates. [2]

0: https://kubernetes.io/docs/reference/using-api/deprecation-guide/
1: https://kubernetes.io/releases/
2: https://review.opendev.org/c/openstack/openstack-helm-infra/+/813115

Change-Id: I5e78f1ab094666538ed419a78f6966a2ba295d6a
2021-10-18 11:52:30 -07:00
Sean Eagan 983853de55 Helm 3: Fix Job labels
See the dependency below for details.

Depends-On: https://review.opendev.org/c/openstack/openstack-helm-infra/+/811826
Change-Id: I997313865002469f1916c5baa8ccaa26c37619b5
2021-10-01 13:40:45 -05:00
Maximilian Weiss 3accf71685 Update HTK stable commit to 0.2.19
Update helm-toolkit stable commit to merge of this change:
https://review.opendev.org/c/openstack/openstack-helm-infra/+/802925

Change-Id: Iafd86a087dbf04ce49c8d0a427305219d1d0483e
2021-08-17 17:47:09 +00:00
Maximilian Weiss d3e8a4601d Update helm installation script
Updates the helm installation script to download and install v2.17.0
from get.helm.sh (instead of v2.14 from storage.googleapis.com).

Change-Id: I5e0ccfc60ff976f7a8d89a9a66ad6da0785a9f2b
2021-08-17 17:47:09 +00:00
Phil Sphicas 840b482373 Fix Docker image build jobs
Update the deb-docker path to fix the docker image build jobs.

Change-Id: Ia6f427af61827ffff15b6c9b246809fae37cc26a
2021-05-10 05:20:53 +00:00
Phil Sphicas ff7676e58e Ignore upstream chart repos when installing Helm
The upstream Helm chart repos have moved permanently, causing a failure
when running "make helm-serve": 'Error: error initializing: Looks like
"https://kubernetes-charts.storage.googleapis.com" is not a valid chart
repository or cannot be reached'.

This change skips the chart refresh, since the upstream charts are not
used anyway.

Change-Id: Ic146e09dca6a7d72607a794984376d0fa9bc5475
2021-01-07 19:59:13 +00:00
Phil Sphicas 294980dfa9 Update HTK stable commit
Update helm-toolkit stable commit to merge of this change:
https://review.opendev.org/#/c/734702/

Change-Id: I770334c5a2ca58980d6eae013150e0f8127f22cf
2020-07-28 16:32:11 +00:00
Alexander Hughes afe3d6e444 Fix image build checks missing setuptools
Use apt to install python3-pip, and use pip3 in event system has
both pip2 and pip3 installed. Use apt to install setuptools for
Ansible's consumption.

Change-Id: I041d4cdfda670339cfbbc75d280c8d9071227f3b
Signed-off-by: Alexander Hughes <Alexander.Hughes@pm.me>
2020-06-17 12:42:40 +00:00
Raven Daugherty dae2fda64e Added YAML file linting to maas
Change-Id: I4711ad587d903e25bd59cd5cae75841166340a84
2020-01-16 16:36:53 +00:00
Sean Eagan a36823d81d Move to helm 2.14.0
Change-Id: I67fe0107eed99a649661588e6be9de6de2ac74bd
2019-05-21 13:50:28 -05:00
Zuul 928cddad00 Merge "CI: Add chart build job for latest Helm toolkit" 2019-04-17 16:12:59 +00:00
Scott Hussey 27c9e2f00c (zuul) Fix image publish job
- Fix post pipeline image publish job issue introduced
  by Ansible update.

Change-Id: Ifc73524a8bcd1863b374815aeb553df71ba4a568
2019-04-03 15:03:07 -05:00
Drew Walters 93778c36fb CI: Add chart build job for latest Helm toolkit
This commit introduces a non-voting job to lint Helm charts against the
latest version of Helm toolkit from OpenStack-Helm Infra. This job
should serve as an indicator of when it's safe to advance the version of
Helm toolkit used by Airship.

Additionally, this commit modifies all Helm chart lint jobs to run on
each commit, regardless of the files modified by a change. This should
not introduce a noticeable difference in CI runtime, as these jobs
execute quicker than the tox jobs.

Change-Id: I43e9ef816317d20277bd951b97fd059ec472a234
2019-04-03 14:27:00 +00:00
Drew Walters 06fed6c019 tools: Update Helm to v2.13.1
Helm v2.13.1 has been released [0]. This change uplifts Helm to v2.13.1
and restores usage of the latest Helm toolkit to match other Airship
projects.

[0] https://github.com/helm/helm/releases/tag/v2.13.1

Depends-On: https://review.openstack.org/647812
Change-Id: I51ea78088a5c37991e6531435018798e420a6e05
2019-03-28 15:21:38 +00:00
Aaron Sheffield 62b9bf2a6c Updating Docker Gate use of zuul.newrev
- Zuul updated ansible to 2.7, no longer allows missing variables.
- Using default value when it isn't available.

Based on Aaron Sheffield's PS for Pegleg: https://review.openstack.org/#/c/645631/

Change-Id: I49de55a9d74e2004786845c1e35ba49e53f71df1
2019-03-22 13:01:11 -05:00
Nishant Kumar 20df4f6eaa Support for password rotation
- This PS adds support for password rotation for 'maas-region' password
  and 'maas-postgres-password'.

- This PS enables MAAS to use the newly created helm-toolkit
  script for postgreSQL DB initialization

Depends-On: https://review.openstack.org/#/c/635348/

Change-Id: Ibb36761351d8c34933a3bb71555bb23e8247a069
2019-03-05 18:45:22 +00:00
indra 361b13342e Added filename to logging message format for
troubleshooting purpose
 This change is related to Maas
   Here are the Change ID's for other airship componets
     Shipyard- I09348ab7ac78700badcff557a82049660ac9f5c6
     Airflow- If8fd5983fd589ddf07b960d38e0081cfb0237003
     Deckhand- I2763ae7ea62e78c9dd89659f97b149ab000d0ebb
     Drydock- I88c8cd6a56771cf6e97cfa874dc63963e247a890
     Armada- I5edd13d2a2c06f844bef1595e045208f53af4e71
     Promenade- Ibbbf65ad815fb8c9e6ede468eda12bec863bc474

Change-Id: I61e4daaac5b6c01dbe59b6d11e343c2b77483cbf
2019-02-05 16:59:51 +00:00
Crank, Daniel (dc6350) 2aaca3f60b Apparmor profile for MaaS
All containers were already running in non-privileged
containers except region-controller and rack-controller.
Both of those require privileged containers but
can still function with the docker-default apparmor
profile applied.

This PS uses the new, more generic HTK snippet name
(see https://review.openstack.org/613703).

Change-Id: Icaa720f05b18f4264ae7098b427fe5f639cba2c6
2018-12-07 16:17:11 -06:00
Zuul 66eb874e63 Merge "MAAS support for pod mobility" 2018-11-05 20:59:51 +00:00
Scott Hussey 74af40376b MAAS support for pod mobility
Upgrades to the MAAS chart to allow for the Pods
running the rack and region services to work across
all control plane hosts.

Change-Id: I84c856599a1122a2b4a64242a7cea357887b0462
2018-10-23 08:19:53 -05:00
Roman Gorshunov c3a364c153 Fix: git commit id labels on images
1) Use OCI Image Specs for labels instead of custom 'commit-id=xxxxx'
   or legacy "Label Schema"
2) Fix missing git commit id labels on images (.revision)
3) Add human-readable title (.title) of the image, URL (.url), and
   a few other properties (annotations) according to the latest Specs

Change-Id: I8ee3aef8d64efe6237f630caab3683f7137d4e68
2018-10-17 20:35:40 +02:00
Pete Birley 582c4d8b20 Chart: Modernise chart
This PS updates the maas chart to support modern helm toolkits.

Change-Id: Id70343afdec622dc84b89b0d7f496e9ef498ea6b
Signed-off-by: Pete Birley <pete@port.direct>
2018-08-22 21:53:33 -05:00
Pete Birley dfb92ce07f Charts: remove hardcoded htk reference from make script
This PS removes the duplicate hardcoded htk reference from the make
script.

Change-Id: I3c816575b6a3cacd9e62dedfea95e552a16a95a5
Signed-off-by: Pete Birley <pete@port.direct>
2018-08-23 02:25:02 +00:00
Pete Birley 35e44008f4 Helm: Move to use current target version of helm for airship
This PS updates the make scripts for charts to use the current version
of helm targetted by ariship.

Change-Id: Iff9d0cd3a9c9107b83d34872c6efaf945203286b
Signed-off-by: Pete Birley <pete@port.direct>
2018-08-22 21:13:25 -05:00
Jerome Brette bfa8c97d3a Update Dockerfile to allow override of FROM variable
l is to let user customize the base image of the component
by passing FROM=myimage during the build process. This would let any
project leveraging Airship ensure that the base image is matching the
security requirements for that project and still use the same Dockerfile.
This will also ease the control of the /etc/apt/source.list
and thereby the result of apt-get update/upgrade procedure.
2. The above goal is achievable by using docker-ce feature such as:
ARG FROM="defaultbaseimage:xx"
FROM ${FROM}
For this reason, the installation of docker.io in the Zuul gating is beeing
replaced by docker-ce.
3. Third Goal is to bring consistency with the other compoenents leveraging
Helm such as the openstack-helm and potentially use bindep the same way
the LOCI images are to ensure
4. The new syntax in the Dockerfile is still commented out until the associated
image builder have been updated to use docker-ce as they have been for the LOCI
images.

Change-Id: I9a9d63329bea2b562f297705dc51661896a592f2
2018-07-17 16:36:20 -05:00
Scott Hussey eb73ba58b5 [Fix] Fix empty bootaction tar files
- When a bootaction returns a tarfile with nothing in it,
  the curtin script fails and causes a failed deployment. This
  fix supports empty tar files.
- Pin to a old helm-toolkit commit to avoid breaking changes

Change-Id: I68c1f0ab3247b901e0dc9041c86ddf4d63e036ff
2018-06-12 09:46:43 -05:00
Scott Hussey 22483e9a15 (zuul) Add Docker image jobs
- Add check/gate jobs to build images
- Add post job to build and publish images

Change-Id: I9c09923996f2d6341f3b9fe3cb27eecc8ae79c64
2018-06-08 05:38:15 -05:00
Scott Hussey 90a5ed3e78 (zuul) Basic zuul gates
- Charting linting

Change-Id: I7c15ba455bab3d2c9d8b458de1d7ebe15e1c97a4
2018-06-01 11:57:45 -05:00
Scott Hussey 2ad9dd1e19 Add rudimentary Helm test
Create a simple Helm test to ensure the Region controller
is functional enough to allow the MaaS CLI to establish
an authenticated session with it.

- Also make image cache disabled by default
- Fix init container args for HTK

Change-Id: I67e688efb91198cd31d3972e09808cea3361570c
2018-01-06 19:10:39 -06:00
Scott Hussey 840075ca88 Move Dockerfiles into maas repo
- Move Dockerfile for MaaS region controller to this repo
- Move Dockerfile for MaaS rack controller to this repo
- Create Makefile with standard UCP entrypoints for image building
- Clean up chart to pass 'make lint'
- Update Dockerfiles to pin apt packages to explicit maas version

Change-Id: I4a540b16a4f75f4a1aae1eb9cfb1bb7a16de18d6
2017-11-27 12:40:00 -06:00