Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No backends are associated with TCP frontend when there are host routing rules configured w/o specifying sourcePorts #1762

Closed
sangeethah opened this issue Aug 7, 2015 · 3 comments
Assignees
Labels
kind/bug Issues that are defects reported by users or that we know have reached a real release

Comments

@sangeethah
Copy link
Contributor

No backends are associated with TCP frontend when there are host routing rules configured for http frontends.

Server version - v0.32.0-rc2

Created LB rules with the tcp and http listening ports with the following configuration:
screen shot 2015-08-07 at 3 37 44 pm

haproxy config has no backends associated with TCP frontend:
screen shot 2015-08-07 at 3 37 25 pm

Lb rules does not work because of this:

Sangeethas-MacBook-Pro:testwget sangeethahariharan1$ wget http://162.222.181.214:9081/service3.html
--2015-08-07 15:32:59--  http://162.222.181.214:9081/service3.html
Connecting to 162.222.181.214:9081... connected.
HTTP request sent, awaiting response... No data received.
Retrying.

--2015-08-07 15:33:00--  (try: 2)  http://162.222.181.214:9081/service3.html
Connecting to 162.222.181.214:9081... connected.
HTTP request sent, awaiting response... No data received.
Retrying.

--2015-08-07 15:33:03--  (try: 3)  http://162.222.181.214:9081/service3.html
Connecting to 162.222.181.214:9081... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

@sangeethah sangeethah added the kind/bug Issues that are defects reported by users or that we know have reached a real release label Aug 7, 2015
@sangeethah
Copy link
Contributor Author

Workaround for this issue is to have specific source port associated with the services.

@alena1108 alena1108 changed the title No backends are associated with TCP frontend when there are host routing rules configured for http frontends. No backends are associated with TCP frontend when there are host routing rules configured w/o specifying sourcePorts Aug 7, 2015
@alena1108 alena1108 assigned sangeethah and unassigned alena1108 Aug 14, 2015
@alena1108
Copy link

hostname routing rules will be ignored for tcp listeners now, and you should see them all merged to the same backend assigned to the source port

@sangeethah
Copy link
Contributor Author

Tested with build from master - Aug 14th.
hostname routing rules is ignored for tcp listeners and accessing the LB for tcp port with/without headers , results in traffic routed to all the targets associated both the services.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues that are defects reported by users or that we know have reached a real release
Projects
None yet
Development

No branches or pull requests

4 participants