tests/integration/test_storage.sh#1008
Conversation
|
|
So this is interesting. To be helpful, the ephemeral disk that OpenStack attaches already has a filesystem on it. E.g. And then to make sure that all partitions on the device are unmounted, do something like (untested): findmnt -o SOURCE | grep "^$TEST_STORAGE_DEV" | xargs umount |
|
Getting closer: |
| @@ -35,10 +35,13 @@ setup () { | |||
| # Perform setup routines here. | |||
| copy /etc/sysconfig/docker-storage-setup /etc/sysconfig/docker-storage-setup.atomic-tests-backup | |||
| TEST_DEV_1=/dev/vdb | |||
There was a problem hiding this comment.
What I mean is, this should be defined externally rather than hardcoded. It's not guaranteed to be /dev/vdb on every machine where this test is going to run.
There was a problem hiding this comment.
I understood, we just aren't there quite yet. Because this is a destructive test, it usually is only run under vagrant and here. @jlebon i'm actually wondering that if the device isn't declared as an environment variable, the test should just be skipped as well.
There was a problem hiding this comment.
i guess that is the point of the destructive env variable
tests/integration/test_storage.sh
Outdated
| # umount $MNT | ||
| #fi | ||
| findmnt -n $TEST_DEV_1 -o TARGET | xargs umount | ||
| #findmnt -o SOURCE | grep "^$TEST_DEV_1" | xargs umount |
There was a problem hiding this comment.
Try something like:
findmnt -o SOURCE | grep "^$TEST_DEV_1" | uniq | xargs -r umount
|
☔ The latest upstream changes (presumably d4fd659) made this pull request unmergeable. Please resolve the merge conflicts. |
Use findmnt to detect mounts.
|
☀️ Test successful - status-redhatci |
Description
Use findmnt to detect mounts.