-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #197 from danskernesdigitalebibliotek/feature/upda…
…te-tools Lagoon + AKS upgrades
- Loading branch information
Showing
13 changed files
with
82 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# RabbitMQ broker force start | ||
|
||
## When to use | ||
|
||
When the PR environments are no longer being created, and the | ||
`lagoon-core-broker-<n>` pods are missing or not running, and the container logs | ||
contain errors like `Error while waiting for Mnesia tables: | ||
{timeout_waiting_for_tables`. | ||
|
||
This situation is caused by the RabbitMQ broker not starting correctly. | ||
|
||
## Prerequisites | ||
|
||
* A [dplsh session](using-dplsh.md) with DPLPLAT_ENV exported . | ||
|
||
## Procedure | ||
|
||
You are going to exec into the pod and stop the RabbitMQ application, and then | ||
start it with [the `force_boot` | ||
feature](https://www.rabbitmq.com/rabbitmqctl.8.html#force_boot), so that it can | ||
perform its Mnesia sync correctly. | ||
|
||
Exec into the pod: | ||
|
||
```shell | ||
dplsh:~/host_mount$ kubectl -n lagoon-core exec -ti pod/lagoon-core-broker-0 -- sh | ||
``` | ||
|
||
Stop RabbitMQ: | ||
|
||
```shell | ||
/ $ rabbitmqctl stop_app | ||
Stopping rabbit application on node [email protected] | ||
core-broker-headless.lagoon-core.svc.cluster.local ... | ||
``` | ||
|
||
Start it immediately after using the `force_boot` flag: | ||
|
||
```shell | ||
/ $ rabbitmqctl force_boot | ||
``` | ||
|
||
Then exit the shell and check the container logs for one of the broker pods. It | ||
should start without errors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 5 additions & 10 deletions
15
infrastructure/environments/dplplat01/lagoon/lagoon-versions.env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
# Get Lagoon versions from the Chart.yml - inspect appVersion to determine which | ||
# version of lagoon is installed | ||
|
||
# Current appVersion for remote and core is v2.15.0 | ||
# https://github.com/uselagoon/lagoon-charts/blob/main/charts/lagoon-core/Chart.yaml#L20 | ||
VERSION_LAGOON_CORE=1.29.0 | ||
# https://github.com/uselagoon/lagoon-charts/blob/main/charts/lagoon-remote/Chart.yaml#L21 | ||
VERSION_LAGOON_REMOTE=0.77.0 | ||
|
||
# This should match the currently installed version of Lagoon Remote. It | ||
# actually maps to an image tag here: https://hub.docker.com/r/uselagoon/kubectl-build-deploy-dind/tags | ||
# See https://github.com/uselagoon/lagoon-charts/releases/tag/lagoon-core-1.2.0 | ||
# | ||
# Current appVersion for remote and core is v2.16.0 | ||
# https://github.com/uselagoon/lagoon-charts/blob/main/charts/lagoon-core/Chart.yaml#L24 | ||
VERSION_LAGOON_CORE=1.39.0 | ||
# https://github.com/uselagoon/lagoon-charts/blob/main/charts/lagoon-remote/Chart.yaml#L22 | ||
VERSION_LAGOON_REMOTE=0.86.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
infrastructure/terraform/modules/dpl-platform-environment/dnsimple.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters