-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into backupstore
- Loading branch information
Showing
166 changed files
with
4,748 additions
and
1,130 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
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,11 @@ | ||
#### Which issue(s) this PR fixes: | ||
<!-- | ||
Use `Issue #<issue number>` or `Issue longhorn/longhorn#<issue number>` or `Issue (paste link of issue)`. DON'T use `Fixes #<issue number>` or `Fixes (paste link of issue)`, as it will automatically close the linked issue when the PR is merged. | ||
--> | ||
Issue # | ||
|
||
#### What this PR does / why we need it: | ||
|
||
#### Special notes for your reviewer: | ||
|
||
#### Additional documentation or context |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: UI | ||
--- |
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,14 @@ | ||
--- | ||
title: ui sanity check | ||
--- | ||
|
||
1. Access Longhorn UI on `Chrome`, `Firefox` and `Safari` latest/stable version. | ||
1. Check the pages. All the text, form, tables should be proper. | ||
1. Verify all the links at the bottom, they shouldn't be broken and redirects to right pages. | ||
1. Check the setting page, all the settings's text, values should be proper. | ||
1. Create `Backing Image`, `volume`, `pv`, `pvc` and `recurring jobs` using UI. | ||
1. Take `volume snapshot`, create `volume backup`, and `system backup` using UI. | ||
1. Restore `Backup` and `system backup` using UI. | ||
1. Check the `events` on dashboard, they should be normal. | ||
1. Check the logs on the volume detail page, there shouldn't be any error. | ||
1. Check the browser's console, there shouldn't be any error. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: v2 volume | ||
--- |
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,14 @@ | ||
--- | ||
title: v2 volume sanity check | ||
--- | ||
## Related doc: | ||
https://longhorn.io/docs/1.6.0/v2-data-engine/features/ | ||
|
||
- Support both amd64 and arm64 | ||
- Volume creation, attachment, detachment and deletion | ||
- Automatic offline replica rebuilding | ||
- [Orphaned replica management](https://github.com/longhorn/longhorn/issues/5827) | ||
- Snapshot creation, deletion and reversion | ||
- Volume backup and restoration | ||
- [Selective v2 Data Engine activation](https://github.com/longhorn/longhorn/issues/7015) | ||
- Upgrade Longhorn from previous version with v2 volume |
43 changes: 43 additions & 0 deletions
43
docs/content/manual/release-specific/v1.6.0/test-engine-version-enforcement.md
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,43 @@ | ||
--- | ||
title: Test engine version enforcement | ||
--- | ||
|
||
## Related issue | ||
https://github.com/longhorn/longhorn/issues/5842 | ||
https://github.com/longhorn/longhorn/issues/7539 | ||
|
||
## Test step | ||
|
||
**Given** Longhorn v1.4.x cluster running | ||
And create and attach a volume (volume-1) | ||
And upgraded Longhorn to v1.5.x | ||
And create and attach a volume (volume-2) | ||
|
||
**When** upgraded Longhorn to v1.6.0 | ||
**Then** v1.6.0 longhorn-manager Pods should be in crashloop | ||
``` | ||
longhorn-manager-zrf8r 0/1 CrashLoopBackOff 2 (10s ago) 52s | ||
longhorn-manager-zsph2 0/1 CrashLoopBackOff 2 (8s ago) 52s | ||
longhorn-manager-grhsf 0/1 CrashLoopBackOff 2 (8s ago) 51s | ||
``` | ||
And should see incompatible version error in longhorn-manager Pod logs | ||
``` | ||
time="2023-08-17T03:03:20Z" level=fatal msg="Error starting manager: failed checking Engine upgarde path: incompatible Engine ei-7fa7c208 client API version: found version 7 is below required minimal version 8" | ||
``` | ||
|
||
**When** downgraded Longhorn to v1.5.x | ||
**Then** Longhorn components should be running | ||
|
||
**When** upgraded v1.4.1 volume (volume-1) engine | ||
And upgraded Longhorn to v1.6.0 | ||
**Then** Longhorn components should be running | ||
And v1.4.x EngineImage state should be deployed and incompatible should be true. | ||
``` | ||
NAME INCOMPATIBLE STATE IMAGE REFCOUNT BUILDDATE AGE | ||
ei-74783864 false deployed longhornio/longhorn-engine:v1.5.1 10 28d 12m | ||
ei-7fa7c208 true deployed longhornio/longhorn-engine:v1.4.1 0 157d 13m | ||
ei-ad420081 false deployed c3y1huang/research:2017-lh-ei 0 44h 24s | ||
``` | ||
|
||
**When** update existing volume/engine/replica custom resourcs `spec.image` with `longhornio/longhorn-engine:v1.4.x` | ||
**Then** should be blocked |
18 changes: 18 additions & 0 deletions
18
...test-list-backup-when-cluster-has-node-cordoned-before-longhorn-installation.md
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,18 @@ | ||
--- | ||
title: Test list backup when cluster has node cordoned before Longhorn installation | ||
--- | ||
|
||
## Related issue | ||
https://github.com/longhorn/longhorn/issues/7619 | ||
|
||
## Test step | ||
|
||
**Given** a cluster has 3 worker nodes. | ||
**And** 2 worker nodes are cordoned. | ||
**And** Longhorn is installed. | ||
|
||
**When** Setting up a backup target. | ||
|
||
**Then** no error is observed on the UI Backup page. | ||
**And** Backup custom resources are created if the backup target has existing backups. | ||
|
47 changes: 47 additions & 0 deletions
47
...lease-specific/v1.6.0/test-pvc-name-and-namespace-included-in-volume-metrics.md
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,47 @@ | ||
--- | ||
title: Test PVC Name and Namespace included in the volume metrics | ||
--- | ||
|
||
## Related issues | ||
|
||
- https://github.com/longhorn/longhorn/issues/5297 | ||
- https://github.com/longhorn/longhorn-manager/pull/2284 | ||
|
||
## Test step | ||
|
||
**Given** created 2 volumes (volume-1, volume-2) | ||
|
||
**When** PVC created for volume (volume-1) | ||
And attached volumes (volume-1, volume-2) | ||
|
||
**Then** metrics with `longhorn_volume_` prefix should include `pvc="volume-1"` | ||
|
||
```bash | ||
curl -sSL http://10.0.2.212:32744/metrics | grep longhorn_volume | grep ip-10-0-2-151 | grep volume-1 | ||
longhorn_volume_actual_size_bytes{pvc_namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 0 | ||
longhorn_volume_capacity_bytes{pvc_namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 1.073741824e+09 | ||
longhorn_volume_read_iops{pvc_namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 0 | ||
longhorn_volume_read_latency{pvc_namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 0 | ||
longhorn_volume_read_throughput{pvc_namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 0 | ||
longhorn_volume_robustness{pvc_namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 1 | ||
longhorn_volume_state{pvc_namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 2 | ||
longhorn_volume_write_iops{pvc_namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 0 | ||
longhorn_volume_write_latency{pvc_namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 0 | ||
longhorn_volume_write_throughput{pvc_namespace="default",node="ip-10-0-2-151",pvc="volume-1",volume="volume-1"} 0 | ||
``` | ||
|
||
And metrics with `longhorn_volume_` prefix should include `pvc=""` for (volume-2) | ||
|
||
```bash | ||
> curl -sSL http://10.0.2.212:32744/metrics | grep longhorn_volume | grep ip-10-0-2-151 | grep volume-2 | ||
longhorn_volume_actual_size_bytes{pvc_namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 0 | ||
longhorn_volume_capacity_bytes{pvc_namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 1.073741824e+09 | ||
longhorn_volume_read_iops{pvc_namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 0 | ||
longhorn_volume_read_latency{pvc_namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 0 | ||
longhorn_volume_read_throughput{pvc_namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 0 | ||
longhorn_volume_robustness{pvc_namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 1 | ||
longhorn_volume_state{pvc_namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 2 | ||
longhorn_volume_write_iops{pvc_namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 0 | ||
longhorn_volume_write_latency{pvc_namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 0 | ||
longhorn_volume_write_throughput{pvc_namespace="",node="ip-10-0-2-151",pvc="",volume="volume-2"} 0 | ||
``` |
42 changes: 0 additions & 42 deletions
42
...tent/manual/release-specific/v1.6.0/test-pvc-name-included-in-volume-metrics.md
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.