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

reconnAddr not being honored by some iCommands #4339

Open
tedgin opened this issue Apr 5, 2019 · 1 comment
Open

reconnAddr not being honored by some iCommands #4339

tedgin opened this issue Apr 5, 2019 · 1 comment

Comments

@tedgin
Copy link

tedgin commented Apr 5, 2019

Bug Report

iRODS Version, OS and Version

The server is version 4.1.10 running on CentOS 6. I'm not certain about our users' iCommands versions.

What did you try to do?

We have HAProxy set up in front of our single IES. Our IES doesn't host any resources. Other servers do that. Our HAProxy is named data.cyverse.org, and the IES is named ares.iplantcollaborative.org. We tell all of our users to use data.cyverse.org as their iRODS host. HAProxy is configured to forward all connections on ports 1247 and ports 20000-20399 to the IES.

Expected behavior

Clients should reconnect directly to the IES, ares.iplantcollaborative.org using one of the ports in the range 20000-20399.

If we were load balancing over multiple IES, reconnect attempts would only work sometimes.

Observed behavior (including steps to reproduce, if applicable)

At least some clients reconnect to the HAProxy, data.cyverse.org.

@tedgin
Copy link
Author

tedgin commented Jun 28, 2019

It looks like problem is that calls to the rcReconnect function often pass the host from rods env, myRodsEmv->rodsHost instead of the reconnection host, conn->svrVersion->reconnAddr. For example, putUtil does this. See

status = rcReconnect( myConn, myRodsEnv->rodsHost, myRodsEnv,
reconnFlag );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant