Bug 1546492
| Summary: | do not add mount details into /etc/fstab when mounting for performance tests which is temporary | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Nag Pavan Chilakam <nchilaka> | ||||
| Component: | gluster-colonizer | Assignee: | Dustin Black <dblack> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Rahul Hinduja <rhinduja> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | rhgs-3.3 | CC: | rcyriac, rhs-bugs, rreddy, sankarshan | ||||
| Target Milestone: | --- | Keywords: | ZStream | ||||
| Target Release: | RHGS 3.3.1 Async | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | gluster-colonizer-1.1-2.el7rhgs.noarch.rpm | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-05-03 08:27:12 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: | 1560066, 1564133 | ||||||
| Attachments: |
|
||||||
|
Description
Nag Pavan Chilakam
2018-02-18 09:34:43 UTC
This seems to be a quirk of the ansible mount module. Selecting a state of 'mounted' in the play both mounts the volume _and_ creates the fstab entry.
- name: Mount default Gluster volume
mount:
path: /mnt
src: "{{ play_hosts[0] }}:{{ default_volname }}"
fstype: glusterfs
opts: _netdev
state: mounted
In the tear-down plays, the 'unmounted' state is passed to the mount module, but this _only_ unmounts and does not destroy the fstab entry.
- name: Unmount Gluster default volume
mount:
path: /mnt
state: unmounted
I would argue that the ansible mount module is behaving incorrectly, but we can easily remedy the problem here by adding a play to remove the fstab entries.
Fix added in upstream merge commit https://github.com/gluster/gluster-colonizer/commit/e8cac3f9fb043bbb35ee612eae0818a6ead03157 on_qa validation: While I see we are still making a entry to /etc/fstab, which I feel is unnecessary for a temporary performance test, However, We are now making sure we are deleting this entry at the end of perf tests. Hence moving to verified. See attached screenshot, where /etc/fstab entries were listed down while perf test was in progress and at the end of perf test. testversion:gluster-colonizer-1.1-2.el7rhgs.noarch.rpm on rhl7.4+gluster-3.8.4-52 Created attachment 1419131 [details]
on_qa validation screenshot
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2018:1317 |