-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add longhorn storage test #6445
Add longhorn storage test #6445
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one nit, LGTM otherwise!
Do we want to also test the CNI snapshotter functionality? That requires installing some extra bits I guess...
Looking at the CI failure, you may need to A) bump the timeout time on some of your checks or B) reduce the request size of the storage. The GH runners don't have that much space on them. |
just to short circuit some troubleshooting attempts the following error was thrown:
|
The pvc was successfully generated in the previous test:
|
Looking at the debug log it appears to have timed out attempting to ssh into the container:
It says "web shell", does that mean it is attempting on port 80? |
8b5db25
to
ba559de
Compare
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
c735d2d
to
471f7f3
Compare
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
return nil | ||
}, "60s", "5s").Should(Succeed()) | ||
}) | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a section that tests deleting the longhorn pvc? Also doubles as cleanup for test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, it looks like this test cleans up the storage replicas.
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]> (cherry picked from commit bbda54b)
Signed-off-by: Brooks Newberry <[email protected]> (cherry picked from commit bbda54b) Signed-off-by: Ian Cardoso <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]> Signed-off-by: Ian Cardoso <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]> (cherry picked from commit bbda54b)
Signed-off-by: Brooks Newberry <[email protected]> (cherry picked from commit bbda54b) Signed-off-by: Ian Cardoso <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]> (cherry picked from commit bbda54b)
Signed-off-by: Brooks Newberry <[email protected]> (cherry picked from commit bbda54b) Signed-off-by: Ian Cardoso <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]> (cherry picked from commit bbda54b) Signed-off-by: Ian Cardoso <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]> (cherry picked from commit bbda54b) Signed-off-by: Ian Cardoso <[email protected]>
Signed-off-by: Brooks Newberry <[email protected]> Signed-off-by: Ian Cardoso <[email protected]>
|
||
var _ = BeforeSuite(func() { | ||
if _, err := exec.LookPath("iscsiadm"); err != nil { | ||
Skip("Test needs open-iscsi to be installed") |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please open a discussion if you have questions. Year old PRs are not the correct place.
Proposed Changes
Adds a basic test for the Longhorn setup steps in the k3s documentation:
https://docs.k3s.io/storage#setting-up-longhorn
Types of Changes
Verification
Testing
Linked Issues
#6061
User-Facing Change
Further Comments