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

Instances stuck in "networking" state when rancher-server ip address was changed. #1963

Closed
sangeethah opened this issue Sep 3, 2015 · 2 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

Server version - V0.35.0-rc5

Had a setup with 1 host that had instances running successfully.

Rebooted rancher-server. This resulted in rancher-server getting a new ip address in my case. Rancher server was an Ubuntu instance in GCE.

After this hosts went into "reconnecting" state.

Did host registration again to set the ip address to the current rancher-server ip address.
Got the rancher-agent command to add custom host from UI and execute this on the host.

Host got to "active" state.

But I was not able to starting any new containers on the host. Containers got stuck in "networking" state.

"CATTLE_CONFIG_URL" parameter in the Network agent was still pointing to the old ipaddress of rancher-server.

Deleted the network agent from UI. This resulted in a new Network agent being created.

"CATTLE_CONFIG_URL" parameter in the Network agent now points to the new rancher-server ip address.

Attempting to start new instances still fails. Instances are stuck in "networking" state forever.

@sangeethah sangeethah added the kind/bug Issues that are defects reported by users or that we know have reached a real release label Sep 3, 2015
@sangeethah sangeethah added this to the Milestone 9/2/2015 milestone Sep 3, 2015
@sangeethah
Copy link
Contributor Author

The use case is very similar to #1958 , though there is no upgrade involved in my setup.

@sangeethah
Copy link
Contributor Author

Tested with server version - v0.37.0-rc1

Had a setup with 2 hosts that had multiple instances running and had 1 LB agent.

Rebooted rancher-server. This resulted in rancher-server getting a new ip address in my case. Rancher server was an Ubuntu instance in GCE.

After this hosts went into "reconnecting" state.

Did host registration again to set the ip address to the current rancher-server ip address.
Got the rancher-agent command to add custom host from UI and execute this on both the hosts.

Host get to "active" state.

Able to start new containers on the host.
Able to stop existing containers on the host , which restarts on service reconcile.
LB service continues to work.
Scale up Lb service . New LB agent is also functional.

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

3 participants