Bug 1330562

Summary: Volume creation failed using Heketi due to missing fstab file
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Neha <nerawat>
Component: rhgs-server-containerAssignee: Mohamed Ashiq <mliyazud>
Status: CLOSED CURRENTRELEASE QA Contact: Sachin <sashinde>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: hchiramm, lpabon, mliyazud, mzywusko, pprakash, rcyriac, sankarshan, sashinde
Target Milestone: ---Keywords: ZStream
Target Release: RHGS Container Converged 1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhgs-server-docker-3.1.3-8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-14 13:39:47 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: 1332128    

Description Neha 2016-04-26 13:12:49 UTC
Description of problem:
RHGS container does not include /etc/fstab file. Due to that volume creation failed using Heketi.

[sshexec] ERROR 2016/04/26 18:34:36 /builddir/build/BUILD/heketi-6563551111f7178b679866e85a0682325929d037/src/github.com/heketi/heketi/utils/ssh/ssh.go:155: Failed to run command [sudo sed -i.save '/brick_fcf5c9c8ae2eb0f4ca7030d00c697bde/d' /etc/fstab] on 10.70.42.45:22: Err[Process exited with: 2. Reason was:  ()]: Stdout []: Stderr [sed: can't read /etc/fstab: No such file or directory
]


Version-Release number of selected component (if applicable):
3.1.3

How reproducible:
Always

Steps to Reproduce:
Try to create volume using Heketi

Actual results:
Volume creation fail 

Expected results:
Volume creation should be successful

Additional info:

Comment 2 Neha 2016-04-26 14:48:51 UTC
By default setup rpm is available in container. Tried to bind mount fstab but facing issue with gluster service start.

Comment 4 Luis Pabón 2016-05-03 19:34:29 UTC
https://github.com/heketi/heketi/issues/305

Comment 8 Humble Chirammal 2016-05-24 09:23:48 UTC
Updated RHGS 3 layered docker image based on RHGS 3.1.3 and RHEL 7.2.2 available (rhgs-server-docker-3.1.3-8). Brew build @ https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=496477 . This has '3.7.9-6.el7rhgs' gluster package and the fix for this issue.

Comment 12 Neha 2016-06-13 09:17:35 UTC
Moving it to verified, able to create volumes on RHGS cluster using Heketi.

Tested with templates, using /var/lib/heketi/fstab.

cat /var/lib/heketi/fstab
/dev/vg_3ddeb7775674ce76b9e6f97914b815bd/brick_b9d3a017f7d2329f5183a200698422b3 /var/lib/heketi/mounts/vg_3ddeb7775674ce76b9e6f97914b815bd/brick_b9d3a017f7d2329f5183a200698422b3 xfs rw,inode64,noatime,nouuid 1 2
/dev/vg_3ddeb7775674ce76b9e6f97914b815bd/brick_cb8fe4f5314e28d735a8d543eb42e6b9 /var/lib/heketi/mounts/vg_3ddeb7775674ce76b9e6f97914b815bd/brick_cb8fe4f5314e28d735a8d543eb42e6b9 xfs rw,inode64,noatime,nouuid 1 2