Commit Graph

23 Commits

Author SHA1 Message Date
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
Maximilian Weiss 2746d04402 Cleanup Makefile, allow cache use, and allow extra args
Change-Id: I7ded3a1c95151f898e00f6168d0c90938e17b0e6
2021-08-24 17:19:57 +00:00
Phil Sphicas b648edfe40 Deploy MAAS 2.8 on Ubuntu bionic
Image changes:
* base image ubuntu:18.04
* MAAS version 2.8.6-8602-g.07cdffcaa-0ubuntu1~18.04.1 from ppa/2.8
* default contents of /var/lib/maas are archived in /opt/maas
* updated patches:
  - 2.3_bios_grub_partition.patch, changed in maas [0]
  - 2.3_partitiontable_does_not_exist.patch, changed in maas [1] [2]
  - 2.3_secure_headers.patch, updated for twisted 17.9.0 [3]
* removed patches:
  - 2.3_bios_grub_preseed.patch, changed in maas, now N/A [0]
  - 2.3_hostheader.patch, fixed in maas [4]
  - 2.3_maas_enlist.patch, fixed in maas [5]
  - 2.3_mac_address.patch, fixed in maas [6]
* new patches:
  - 2.8_maas_ipmi_autodetect_tool.patch, enlistment reliability
* reformatted patches due to blackening change [1]:
  - 2.3_configure_ipmi_user.patch
  - 2.3_ipmi_error.patch
  - 2.3_kernel_package.patch, custom req to specify kernel package
  - 2.3_nic_filter.patch, custom req to ignore cali* interfaces
  - 2.3_region_secret_rotate.patch
  - 2.3_route.patch

Chart changes:
* maas-region podport is 5240
* maas config option http_boot is no longer configurable [7]
* start script restores some default files into /var/lib/maas
* register-rack-controller script removes old files in /etc/maas
* enlist userdata now matches commissioning/curtin userdata [8]
* force_gpt option is removed [9], as GPT is now the default
* update to configure remote_syslog in import resources job [10]
* enlist_commissioning is disabled for backwards compatibility [11]

0: d8e234eb09
1: db30bb39fa
2: 665feb7575
3: https://github.com/twisted/twisted/blob/twisted-17.9.0/src/twisted/web/server.py
4: 573da69729
5: d390a1da6a
6: 34631c2fe5
7: 0e94c26a53
8: 22641cffcc
9: 97c25a0486
10: d67c359c7b
11: 51b9712c20

Change-Id: I0685d76cf083ff5aa33c8db552059721289d5c53
2021-08-03 21:56:23 +00:00
Scott Hussey a8887a93b4 (cache) Configurable Ubuntu release
- Allow the image build to support any Ubuntu release, default
  to Xenial to maintain default behavior

Change-Id: Iabb54f7bdc2f6436cc8964ae9a9e971e2ce20501
2019-09-27 19:19:46 +00:00
Roman Gorshunov 6935bc798e Minor: meaningful default label
Making default label meaningful and conformant to "key=value" requirement.

Change-Id: I720452da80a30d6cf21d8968abb2303629cd5f72
2018-11-08 19:32:19 +01:00
Roman Gorshunov 24991ffb81 Fix: adding back the possibility to add arbitrary labels
Arbitrary labels could be added as `make` parameter `LABEL=`, which is used in
att-comdev/cicd Jenkins pipelines.

Sample parameter:
'LABEL=org.label-schema.vcs-url=${GERRIT_CHANGE_URL} \
--label org.label-schema.base-image=${base_sha256}'

Sample usage:
See Jenkinsfile files under images/ directory in att-comdev/cicd repo.

In addition to that, if `COMMIT` variable is undefined when invoking `make`, we
use result of `git rev-parse HEAD` command, which should output latest git
commit ID.

[0] https://github.com/att-comdev/cicd

Change-Id: Ibd4921de87b2d9cbf094c7f3378a56df470accae
2018-10-24 18:28:52 +02: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
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
Roman Gorshunov 18a82a0a70 Unifying proxy variables for docker build
This patch adds proxy-related variables to 'docker build' command.

Change-Id: I02f25639a700983ad5f2431bcd917a84375dadb9
2018-06-22 14:47:57 +02:00
Pete Birley 4ee79fc568 Image: update image makefile to use host-networking
This PS updates the makefile to use host-networking, allowing
simple build on systems not using dockers iptables.

Change-Id: I71b07499ca38243ff6c7c86f6427348036384547
Signed-off-by: Pete Birley <pete@port.direct>
2018-06-16 11:02:45 -05:00
Stacey Fletcher 8adc845af5 Add ARG to MAAS SimpleStream Dockerfile
This allows the simplestream repo to be passed at build time.

Change-Id: I7c854bd04366ec145f0ae5b7e3b166c2201ff740
2018-06-15 17:04:58 +00: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
Stacey Fletcher bde0e4260e Update Makefile
This ps updates the build commands to allow the same
format to be used in att-comdev projects

Change-Id: If6189795e1b54656ca38d006f630844b17208c58
2018-02-25 15:00:50 -05:00
Stacey Fletcher 9573b179cb Add labels to Makefile image build
This ps allows labels to be added to the docker image at build
time

Change-Id: I17c816077bc5a3ad389cbe38ceaaf42f21690c09
2018-02-17 16:15:52 -06: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
Stacey Fletcher ebcf60c01a Update the suffix to be overridden with 1 var
Updating this since the '-' in the build commands made it hard
for Jenkins to override with one variable without repeating the
maas-maas-rack-controller.
w

Change-Id: I9ef1644e25ad260b6d652d53e9d544758ced18f5
2017-12-08 18:56:04 -04:00
Stacey Fletcher 847b7d4965 Update Makefile individual image build
This patchset will allow for Jenkins jobs to build each image
using the Jenkins job name.

Change-Id: Ic4dfda4290b6d9ba3f7c95329719abc5fe6545bc
2017-12-07 17:00:42 -06:00
Scott Hussey 08c1da5be1 Add image cache sidecar
- If conf.cache.enabled is true, deploy a sidecar container
  in the region pod with a simplestreams repo populated w/ a Ubuntu image
- If conf.cache.enabled is true, configure MaaS to source the image
  from the sidecar
- Update README

Closes #1

Change-Id: I968614d6fb7ca86589dc6e2efd1f66ae920d03a8
2017-12-04 12:50:30 -06:00
Scott Hussey d3b4cc974f Create simplestreams cache image
- Create image with simplestreams package
- Mirror current upstream maas.io xenial images
- Run apache on port 8888 to serve the simplestreams repo

Change-Id: I121d62894464ae62a2a59bd62a2448835a1f67af
2017-11-29 16:03:46 -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