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:
By default setup rpm is available in container. Tried to bind mount fstab but facing issue with gluster service start.
https://github.com/heketi/heketi/issues/305
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.
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