Bug 1330562 - Volume creation failed using Heketi due to missing fstab file
Summary: Volume creation failed using Heketi due to missing fstab file
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: rhgs-server-container
Version: rhgs-3.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHGS Container Converged 1.0
Assignee: Mohamed Ashiq
QA Contact: Sachin
URL:
Whiteboard:
Depends On:
Blocks: 1332128
TreeView+ depends on / blocked
 
Reported: 2016-04-26 13:12 UTC by Neha
Modified: 2016-11-18 04:08 UTC (History)
8 users (show)

Fixed In Version: rhgs-server-docker-3.1.3-8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-14 13:39:47 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:1493 0 normal SHIPPED_LIVE RHGS 3.1.3 container docker image 2016-08-04 18:06:18 UTC

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


Note You need to log in before you can comment on or make changes to this bug.