Bug 1329179

Summary: sshd port conflict on RHGS container image.
Product: 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: amainkar, annair, hchiramm, lpabon, 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:
Cause: Host and container use same port(22) for sshd. Consequence: So creates conflicts. Fix: Change the sshd port configuration in container to listen port 2222. Result: Resolves port conflicts between host and container.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-14 13:39:21 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:
Bug Depends On:    
Bug Blocks: 1332128    

Description Neha 2016-04-21 10:43:42 UTC
Description of problem:

By default host system sshd is running on 22 port. To access RHGS container using Heketi need to stop sshd service on host system and start on RHGS container.

Using host Networking for RHGS containers.

on RHGS conatiner:
journalctl -u sshd

Apr 20 05:24:35 hostname sshd[445]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Apr 20 05:24:35 hostname sshd[445]: error: Bind to port 22 on :: failed: Address already in use.


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


How reproducible:
Always 

Steps to Reproduce:
1] Create two RHGS container
2] Try to load topology file using heketi-cli

Actual results:
Trying to access host system and failing with 
[sshexec] ERROR 2016/04/21 11:43:29 /builddir/build/BUILD/heketi-6563551111f7178b679866e85a0682325929d037/src/github.com/heketi/heketi/utils/ssh/ssh.go:155: Failed to run command [sudo gluster peer probe 10.70.34.60] on 10.70.34.54:22: Err[Process exited with: 1. Reason was:  ()]: Stdout []: Stderr [sudo: gluster: command not found

Expected results:
Should load topology file 

Additional info:

Comment 2 Luis Pabón 2016-04-25 20:15:48 UTC
Upstream: https://github.com/heketi/heketi/issues/289

Comment 3 Luis Pabón 2016-04-28 04:48:38 UTC
This looks like incorrect configuration.  Only one RHGS container is supported per node.  Running two container will cause the port conflict which is shown above.  I think this bug is invalid, right?

Comment 4 Neha 2016-04-28 05:01:30 UTC
It has only one RHGS container running, its conflicting with the port used by Host system.

Comment 5 Humble Chirammal 2016-05-24 09:25:16 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.