Bug 904134
| Summary: | [RHEL7] storage test can not restore swap | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Hardware Certification Program | Reporter: | Greg Nichols <gnichols> | ||||
| Component: | Test Suite (tests) | Assignee: | Greg Nichols <gnichols> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Petr Beňas <pbenas> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 1.7.0 | CC: | czhang, pbenas, pstehlik, rlandry | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | v7-1.7.0-R3 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-03-28 06:21:00 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 904887 | ||||||
| Attachments: |
|
||||||
|
Description
Greg Nichols
2013-01-25 14:23:44 UTC
RHEL7: RHEL-7.0-20130120.0 Server x86_64 Created attachment 689918 [details]
storage patch unmounting tested device in all cases
The problem on RHEL7 is that the the swap device appears in /proc/mounts with its LVM name, so the test assumes it's not mounted, and skips calling umount on it.
example log segment:
returns 0
skipping umount: device /dev/dm-0 not in /proc/mounts
umount ok
This patch calls umount on the device whether or not it is found in /proc/mounts.
The above patch also provides a way to skip lengthy test segments if debug is set, and mode is not set to auto by providing prompts to continue at key points. |