Commit Graph

20 Commits

Author SHA1 Message Date
Ruslan Aliev eaabbb2722 Disable ipv6 for bind9 named service
* Allow any recursion and cache queries for named svc
 * Bump maas v3 to the actual version

Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Change-Id: I16a4ec843dc73a2349e8603d4200920599eab918
2023-07-12 21:31:53 -05:00
Wahlstedt, Walter (ww229g) 565d20ee18 add commissioning script
Change-Id: I5aadcee07b4eefccdf5666fa024d87f2f4e86eb5
2023-05-24 15:59:53 -04: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
Phil Sphicas 636777ee79 MAAS chart: configure extra MAAS settings
Provide a knob to adjust some less-common MAAS configuration settings.
Changes the default values as follows: disables network discovery, sets
the active subnet mapping interval to 0 (from 10800 seconds), marks the
intro as completed, and disables Google analytics.

Refer to `maas $PROFILE maas set-config -h` for the list of available
configuration items.

Change-Id: I46d348ef5777e22ebeb7a062e5f6061d9ad61a1c
2020-05-03 07:56:06 +00:00
Scott Hussey 277fb483a4 (chart) Fix import issue
- The import script would skip creating a new boot source
  selection for a non-default distro in some cases due
  to a non-recommended if construct. Change to the recommended
  'if ! grep -q' pattern

Change-Id: I59e6732598f74fc34a6986dbdfe4200d8cd9ea9f
2019-10-02 02:37:10 -05:00
Hussey, Scott (sh8121) c84a5b64de (fix) Check sync of only active rack controllers
- The import resources job waits for rack controllers to sync
  the imported resources. In an environment that rack pods have
  been scheduled away from a node, it leaves a dead rack controller
  in the MAAS database. We cannot gate on dead controllers syncing
  as rackd is no longer running, so now only look at rack controllers
  with a running rackd.

Change-Id: I5ca16a0c97ed201a08844ca7c82c2cbb7d059aa7
2019-07-01 15:37:22 -05:00
anthony.bellino edf2c549ad [Fix] Add retry to check_then_set
Retry logic was added in the check_then_set function to avoid edge case
scenarios where the rack controller is not synced yet.

Change-Id: I33fe7aabf32b872d67c31616ee6074d262aece4a
2019-05-30 21:57:21 +00:00
anthony.bellino ce4a4404d7 [Fix] Remove the check for rack sync images
Since Drydock checks for image sync before node deployment
this check is not needed.

Change-Id: I4ca3c5e9c179cce0a0d50df5e29b3466b1126054
2019-05-30 19:50:26 +00:00
Scott Hussey 2bc9141a12 Add explicit rackd image sync
- The import resources job can sometimes take much longer
  than expected seemingly because even though the rack
  controller has the image data, it doesn't report it.
  Rather than waiting for MAAS to resync the rack controller
  automatically, explicitly start an image sync on each rack
  controller that isn't synced

Change-Id: Ie3a8124db2266380420b1efa4aaec6e3aa3c2904
2019-04-17 15:21:12 -05:00
Scott Hussey b4d6562bba (fix) Fix import job race condition
- If the import job triggers before the rack controller pod(s)
  have registered w/ the region controller, then it must fully timeout
  and then reschedule to pass. Update it so that each time it checks for
  rack controller image sync, it updates the list of all registered
  rack controllers.
- Update register service to be part of Dockerfile so it can be
  enabled.

Change-Id: I72e190d472ad259da65b2e583b2a16d8adf660f5
2018-11-19 14:50:19 -06:00
Kaspars Skels e53cb2d237 Set MAAS internal proxy to 31800
Looks like new version of MAAS has fixed long standing bug
https://bugs.launchpad.net/maas/+bug/1779712

This will match internal MAAS ports to NodePort.

Change-Id: I639a4c492eb80545c69fd132d3b2dc4cca524933
2018-10-19 09:06:28 -05:00
Scott Hussey a9301c146b [Fix] Ubuntu 18.04 broke default MAAS configs
- Add a selection to explicitly choose the Ubuntu release
- Add a gate for rack controller image sync before attempting to
  configure ephemeral image selection

Change-Id: Id8397d79fa5d136d78923f838c624283fad3d769
2018-05-02 21:58:08 -05:00
Scott Hussey 57e8557eb1 MAAS helm test improvement
- Add an improved helm test for MaaS to validate that
  there are available images for bootstrapping and that
  at least one rack controller is available
- Improve idempotence of the import images job for more
  resilient chart upgrades

Change-Id: Id1b07981f13636fcd3b5b1d0bf5fb2ce0f3e5216
2018-04-02 16:15:39 -05:00
Scott Hussey 219c821b22 [Fix] import job crashloop
- Relied on JSON field names being in a deterministic order. This
  is not guaranteed. Update import job to no longer assume this.

Change-Id: I8d0a3abae94b99a94df61346b504517e2cb4a8ca
2018-03-26 12:25:31 -05:00
Scott Hussey fced4bd1d2 Fix - Job robustness
- Fix bash conditional error causing the export
  key job to fail for any chart upgrade
- Enhance the image import/configuration job to
  be more robust with additional retrying and better
  failure detection

Change-Id: I874a98587a56b03905d740cd53cdd70a8419a04e
2018-03-09 22:50:21 -05:00
Scott Hussey 88099da448 Configurable default images
- Allow overrides to configure the default operating
  system, distribution and kernel to use in MAAS
- The defaults will be used for node enlistment and
  commissioning and for deployment if per node overrides
  are not used

Change-Id: I872df1c7b7741ec5e599a7a1d05c2707afd6d99e
2018-02-13 16:13:20 -06:00
Scott Hussey 5cb7936b40 Support HTTP boot
MaaS 2.3 now supports serving ephemeral
images via HTTP instead of iSCSI

Change-Id: I6c8d4d2c89cfc40f5352edc04bffa5b27ec785df
2018-01-29 09:55:58 -06:00
Scott Hussey fa06f61461 Update chart for MaaS 2.3
- Default images to MaaS 2.3
- Add Peer Proxy support (double proxy)

Change-Id: I2d064a96f0e551b3514c841056bdda5c4571e4a7
2018-01-04 21:13:24 -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 668fd328d2 Move MaaS chart into maas repo
Change-Id: If1d9e92d9a691892b9a3afcef5b229d704b5dcbc
2017-10-25 14:02:38 -05:00