Bug 1329179 - sshd port conflict on RHGS container image.
Summary: sshd port conflict on RHGS container image.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
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-21 10:43 UTC by Neha
Modified: 2016-11-18 04:08 UTC (History)
9 users (show)

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.
Clone Of:
Environment:
Last Closed: 2016-10-14 13:39:21 UTC
Target Upstream Version:


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-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.


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