Skip to content

Commit 4033ce8

Browse files
authored
0.7.0+1.8.2 (#16)
* update Longhorn to v1.8.2 * update CHANGELOG
1 parent d1c394b commit 4033ce8

File tree

4 files changed

+47
-36
lines changed

4 files changed

+47
-36
lines changed

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,36 @@ SPDX-License-Identifier: GPL-3.0-or-later
55

66
# Changelog
77

8+
## 0.7.0+1.8.2
9+
10+
This is a major release update of Longhorn. Please read Longhorn important notes before upgrading:
11+
12+
- [Longhorn Important Notes 1.8.0](https://longhorn.io/docs/1.8.0/important-notes/)
13+
- [Longhorn Important Notes 1.8.1](https://longhorn.io/docs/1.8.1/important-notes/)
14+
- [Longhorn Important Notes 1.8.2](https://longhorn.io/docs/1.8.2/important-notes/)
15+
16+
Consider doing a [Longhorn System Backup](https://longhorn.io/docs/1.8.2/advanced-resources/system-backup-restore/backup-longhorn-system/) before the upgrade!
17+
18+
Starting with v1.5.0, Longhorn only supports upgrades from one minor version to the next. For example, upgrading from 1.7.x to 1.8.x is supported, but skipping versions (e.g., from 1.6.x to 1.8.x) is not.
19+
20+
Moreover, Longhorn does not support downgrades to earlier versions. This restriction helps prevent unexpected system behavior and issues associated with function incompatibility, deprecation, or removal.
21+
22+
### Changes to the role
23+
24+
- update Longhorn to `v1.8.2`
25+
26+
### Further reading
27+
28+
Additional important information:
29+
30+
- [Best practices](https://longhorn.io/docs/1.8.2/best-practices/)
31+
32+
### Changelogs
33+
34+
- [Longhorn v1.8.0 Release Notes](https://github.com/longhorn/longhorn/releases/tag/v1.8.0)
35+
- [Longhorn v1.8.1 Release Notes](https://github.com/longhorn/longhorn/releases/tag/v1.8.1)
36+
- [Longhorn v1.8.2 Release Notes](https://github.com/longhorn/longhorn/releases/tag/v1.8.2)
37+
838
## 0.6.0+1.7.3
939

1040
This is a major release update of Longhorn. Please read [Longhorn Important Notes](https://longhorn.io/docs/archives/1.7.3/important-notes) before upgrading!

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This Ansible role is used in my blog series [Kubernetes the not so hard way with
99

1010
## Versions
1111

12-
I tag every release and try to stay with [semantic versioning](http://semver.org). If you want to use the role I recommend to checkout the latest tag. The master branch is basically development while the tags mark stable releases. But in general I try to keep master in good shape too. A tag `0.6.0+1.7.3` means this is release `0.6.0` of this role and it contains Longhorn chart version `1.7.3` (which normally is the same as the Longhorn version itself). If the role itself changes `X.Y.Z` before `+` will increase. If the Longhorn chart version changes `X.Y.Z` after `+` will increase too. This allows to tag bugfixes and new major versions of the role while it's still developed for a specific Longhorn release.
12+
I tag every release and try to stay with [semantic versioning](http://semver.org). If you want to use the role I recommend to checkout the latest tag. The master branch is basically development while the tags mark stable releases. But in general I try to keep master in good shape too. A tag `0.7.0+1.8.2` means this is release `0.7.0` of this role and it contains Longhorn chart version `1.8.2` (which normally is the same as the Longhorn version itself). If the role itself changes `X.Y.Z` before `+` will increase. If the Longhorn chart version changes `X.Y.Z` after `+` will increase too. This allows to tag bugfixes and new major versions of the role while it's still developed for a specific Longhorn release.
1313

1414
## Requirements
1515

@@ -37,7 +37,7 @@ See [CHANGELOG.md](https://github.com/githubixx/ansible-role-longhorn-kubernetes
3737

3838
```yaml
3939
# Helm chart version
40-
longhorn_chart_version: "1.7.3"
40+
longhorn_chart_version: "1.8.2"
4141

4242
# Helm release name
4343
longhorn_release_name: "longhorn"
@@ -176,13 +176,13 @@ longhorn_label_nodes: false
176176

177177
### Longhorn documentation
178178

179-
Before you start installing Longhorn you REALLY want to read the [The Longhorn Documentation v1.7.3](https://longhorn.io/docs/archives/1.7.3/)! As data is the most valuable thing you can have you should understand how Longhorn works and don't forget to add backups later ;-). Esp. have a look at the [best practices](https://longhorn.io/docs/archives/1.7.3/best-practices/).
179+
Before you start installing Longhorn you REALLY want to read the [The Longhorn Documentation v1.8.2](https://longhorn.io/docs/1.8.2/)! As data is the most valuable thing you can have you should understand how Longhorn works and don't forget to add backups later ;-). Esp. have a look at the [best practices](https://longhorn.io/docs/1.8.2/best-practices/).
180180

181181
### Helm chart values
182182

183-
That said: The first thing to do is to check `templates/longhorn_values_default.yml.j2`. This file contains the values/settings for the Longhorn Helm chart that are partly default anyways (just to avoid that someone changes the defaults) or different to the default ones which are located at [values.yaml](https://github.com/longhorn/longhorn/blob/v1.7.3/chart/values.yaml). All settings can be found in the [Settings Reference](https://longhorn.io/docs/archives/1.7.3/references/settings/).
183+
That said: The first thing to do is to check `templates/longhorn_values_default.yml.j2`. This file contains the values/settings for the Longhorn Helm chart that are partly default anyways (just to avoid that someone changes the defaults) or different to the default ones which are located at [values.yaml](https://github.com/longhorn/longhorn/blob/v1.8.2/chart/values.yaml). All settings can be found in the [Settings Reference](https://longhorn.io/docs/1.8.2/references/settings/).
184184

185-
To use your own values just create a file called `longhorn_values_user.yml.j2` and put it into the `templates` directory. Then this Longhorn role will use that file to render the Helm values. You can use `templates/longhorn_values_default.yml.j2` as a template or just start from scratch. As mentioned above you can modify all settings for the Longhorn Helm chart that are different to the default ones which are located at [values.yaml](https://github.com/longhorn/longhorn/blob/v1.7.3/chart/values.yaml).
185+
To use your own values just create a file called `longhorn_values_user.yml.j2` and put it into the `templates` directory. Then this Longhorn role will use that file to render the Helm values. You can use `templates/longhorn_values_default.yml.j2` as a template or just start from scratch. As mentioned above you can modify all settings for the Longhorn Helm chart that are different to the default ones which are located at [values.yaml](https://github.com/longhorn/longhorn/blob/v1.8.2/chart/values.yaml).
186186

187187
### Render and verify deployment manifests
188188

@@ -218,15 +218,15 @@ To check if everything was deployed use the usual `kubectl` commands like `kubec
218218

219219
### Update/upgrade
220220

221-
As Longhorn gets updates/upgrades every few weeks/months the role also can do upgrades. For updates/upgrades (esp. major upgrades) have a look at `tasks/upgrade.yml` to see what's happening before, during and after the update. In general this Ansible role does what's described in [Upgrade with Helm](https://longhorn.io/docs/archives/1.7.3/deploy/upgrade/longhorn-manager#upgrade-with-helm) in the [Upgrading Longhorn Manager](https://longhorn.io/docs/archives/1.7.3/deploy/upgrade/longhorn-manager/) documentation. So in this step only the Longhorn Manager gets updated. After Ansible applied the update/upgrade wait till all Longhorn Pods are ready again.
221+
As Longhorn gets updates/upgrades every few weeks/months the role also can do upgrades. For updates/upgrades (esp. major upgrades) have a look at `tasks/upgrade.yml` to see what's happening before, during and after the update. In general this Ansible role does what's described in [Upgrade with Helm](https://longhorn.io/docs/1.8.2/deploy/upgrade/longhorn-manager#upgrade-with-helm) in the [Upgrading Longhorn Manager](https://longhorn.io/docs/1.8.2/deploy/upgrade/longhorn-manager/) documentation. So in this step only the Longhorn Manager gets updated. After Ansible applied the update/upgrade wait till all Longhorn Pods are ready again.
222222

223-
By default the Longhorn volume engines are NOT upgraded automatically. That means in the `Volumes` overview of the Longhorn UI one needs to click on the burger menu in the `Operation` column and run `Upgrade Engine`. To make yourself live easier, **make sure** that all volumes are in `Healthy` state before you upgrade anything. If you want to avoid this manual task of upgrading the volumes to the latest engine version you can set `Concurrent Automatic Engine Upgrade Per Node Limit` to `1` e.g. in `Settings / General` in the Longhorn UI. This setting controls how Longhorn automatically upgrades volumes' engines after upgrading Longhorn manager. The value of this setting specifies the maximum number of engines per node that are allowed to upgrade to the default engine image at the same time. If the value is `0`, Longhorn will not automatically upgrade volumes' engines to default version. For further information see [Automatically Upgrading Longhorn Engine](https://longhorn.io/docs/archives/1.7.3/deploy/upgrade/auto-upgrade-engine/). If you want to do the volume engine upgrade manually have a look at [Manually Upgrading Longhorn Engine](https://longhorn.io/docs/archives/1.7.3/deploy/upgrade/upgrade-engine/)
223+
By default the Longhorn volume engines are NOT upgraded automatically. That means in the `Volumes` overview of the Longhorn UI one needs to click on the burger menu in the `Operation` column and run `Upgrade Engine`. To make yourself live easier, **make sure** that all volumes are in `Healthy` state before you upgrade anything. If you want to avoid this manual task of upgrading the volumes to the latest engine version you can set `Concurrent Automatic Engine Upgrade Per Node Limit` to `1` e.g. in `Settings / General` in the Longhorn UI. This setting controls how Longhorn automatically upgrades volumes' engines after upgrading Longhorn manager. The value of this setting specifies the maximum number of engines per node that are allowed to upgrade to the default engine image at the same time. If the value is `0`, Longhorn will not automatically upgrade volumes' engines to default version. For further information see [Automatically Upgrading Longhorn Engine](https://longhorn.io/docs/1.8.2/deploy/upgrade/auto-upgrade-engine/). If you want to do the volume engine upgrade manually have a look at [Manually Upgrading Longhorn Engine](https://longhorn.io/docs/1.8.2/deploy/upgrade/upgrade-engine/)
224224

225-
Of course you should consult Longhorn's v1.7.3 [upgrade guide](https://longhorn.io/docs/archives/1.7.3/deploy/upgrade/) to check for major changes and stuff like that before upgrading. Now is also a good time to check if the backups are in place and if the backups are actually valid ;-)
225+
Of course you should consult Longhorn's v1.8.2 [upgrade guide](https://longhorn.io/docs/1.8.2/deploy/upgrade/) to check for major changes and stuff like that before upgrading. Now is also a good time to check if the backups are in place and if the backups are actually valid ;-)
226226

227-
After consulting Longhorn's [upgrade guide](https://longhorn.io/docs/archives/1.7.3/deploy/upgrade/) you basically only need to change `longhorn_chart_version` variable e.g. from `1.7.2` to `1.7.3` for a patch release or from `1.6.3` to `1.7.3` for a major upgrade. And of course the Helm values need to be adjusted for potential breaking changes (if any are mentioned in the upgrade guide e.g.). But please remember that MOST settings shouldn't be changed anymore via the Helm values file but via the Longhorn UI in `Settings / General` e.g.
227+
After consulting Longhorn's [upgrade guide](https://longhorn.io/docs/1.8.2/deploy/upgrade/) you basically only need to change `longhorn_chart_version` variable e.g. from `1.8.1` to `1.8.2` for a patch release or from `1.7.3` to `1.8.2` for a major upgrade. And of course the Helm values need to be adjusted for potential breaking changes (if any are mentioned in the upgrade guide e.g.). But please remember that MOST settings shouldn't be changed anymore via the Helm values file but via the Longhorn UI in `Settings / General` e.g.
228228

229-
You can also use the upgrade method if you keep the version number and just want to change some Helm values or other settings. But please be aware that changing some of settings might have some serious consequences if you already have volumes deployed! Not all Longhorn settings can be changed just by changing a number or a string. So you really want to consult the [Settings reference](https://longhorn.io/docs/archives/1.7.3/references/settings/) to figure out what might happen if you change this or that setting or what you need to do before you apply a changed setting!
229+
You can also use the upgrade method if you keep the version number and just want to change some Helm values or other settings. But please be aware that changing some of settings might have some serious consequences if you already have volumes deployed! Not all Longhorn settings can be changed just by changing a number or a string. So you really want to consult the [Settings reference](https://longhorn.io/docs/1.8.2/references/settings/) to figure out what might happen if you change this or that setting or what you need to do before you apply a changed setting!
230230

231231
That said to actually do the update/upgrade run
232232

@@ -246,7 +246,7 @@ ansible-playbook \
246246
k8s.yml
247247
```
248248

249-
Longhorn has a [Deleting Confirmation Flag](https://longhorn.io/docs/archives/1.7.3/references/settings/#deleting-confirmation-flag) which is set to `false` by default. In this case Longhorn refuses to be uninstalled. By setting `--extra-vars longhorn_delete=true` the Ansible role will set this flag to `true` and afterwards the Longhorn resources can be deleted by the role. Without `longhorn_delete` variable the role will refuse to finish uninstallation.
249+
Longhorn has a [Deleting Confirmation Flag](https://longhorn.io/docs/1.8.2/references/settings/#deleting-confirmation-flag) which is set to `false` by default. In this case Longhorn refuses to be uninstalled. By setting `--extra-vars longhorn_delete=true` the Ansible role will set this flag to `true` and afterwards the Longhorn resources can be deleted by the role. Without `longhorn_delete` variable the role will refuse to finish uninstallation.
250250

251251
## Setting/removing node labels
252252

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: GPL-3.0-or-later
44

55
# Helm chart version
6-
longhorn_chart_version: "1.7.3"
6+
longhorn_chart_version: "1.8.2"
77

88
# Helm release name
99
longhorn_release_name: "longhorn"

templates/longhorn_values_default.yml.j2

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,13 @@
66
# https://github.com/longhorn/longhorn/blob/76fb3e789ab6b221a4bdfee96ffff3800f614501/chart/values.yaml
77
#
88
# Additional important information:
9-
# https://longhorn.io/docs/archives/1.7.3/best-practices/
10-
# https://longhorn.io/docs/archives/1.7.3/important-notes
9+
# https://longhorn.io/docs/1.8.2/best-practices/
10+
# https://longhorn.io/docs/1.8.2/important-notes
1111

1212
# Changelogs:
13-
# https://github.com/longhorn/longhorn/releases/tag/v1.7.0
14-
# https://github.com/longhorn/longhorn/releases/tag/v1.7.1
15-
# https://github.com/longhorn/longhorn/releases/tag/v1.7.2
16-
# https://github.com/longhorn/longhorn/releases/tag/v1.7.3
17-
18-
# IMPORTANT: Temporary setting for Longhorn v1.7.3 update.
19-
# The longhorn-share-manager v1.7.3 is impacted by a regression issue in
20-
# nfs-ganesha v6.0+, which causes unexpected “permission denied” errors
21-
# when non-root users access RWX volumes. To resolve this issue, replace
22-
# longhorn-share-manager:v1.7.3 with the hotfixed image
23-
# longhorn-share-manager:v1.7.3-hotfix-1.
24-
# See: https://longhorn.io/docs/archives/1.7.3/important-notes/#warning
25-
# See: https://github.com/longhorn/longhorn/blob/76fb3e789ab6b221a4bdfee96ffff3800f614501/chart/values.yaml#L58-L62
26-
image:
27-
longhorn:
28-
shareManager:
29-
# -- Registry for the Longhorn Share Manager image.
30-
registry: ""
31-
# -- Repository for the Longhorn Share Manager image.
32-
repository: longhornio/longhorn-share-manager
33-
# -- Tag for the Longhorn Share Manager image.
34-
tag: v1.7.3-hotfix-1
13+
# https://github.com/longhorn/longhorn/releases/tag/v1.8.0
14+
# https://github.com/longhorn/longhorn/releases/tag/v1.8.1
15+
# https://github.com/longhorn/longhorn/releases/tag/v1.8.2
3516

3617
csi:
3718
kubeletRootDir: "/var/lib/kubelet"

0 commit comments

Comments
 (0)