Skip to content

kube proxy not handling OpenShift master restarts #1126

Closed

Description

@brenton

Here's what I do to reproduce this:

  1. revert commit 914315f since it was breaking sti builds in my environment.
  2. Run the latest Master / Node in separate processes
  3. Install the docker-registry
  4. Use 'ex generate' on https://github.com/ryanj/node-echo
  5. Start a build
  6. When it finished you will be able to curl the service created by the kube proxy.
  7. At this stop the the master only. Wait a few seconds and then start it up.
  8. You will be able to curl the node-echo app service for a little while (usually < 10 seconds) then it will appear to hang.

Here's what I have in the logs:

# curl 172.30.17.59:9292
I0224 09:36:04.682990   10901 proxier.go:107] Accepted TCP connection from 192.168.133.2:44722 to 192.168.133.2:38952
I0224 09:36:04.683083   10901 proxier.go:77] Mapped service "node-echo" to endpoint 10.1.0.35:9292
E0224 09:36:05.683396   10901 proxier.go:82] Dial failed: dial tcp 10.1.0.35:9292: i/o timeout

After a few retries the kube proxy will return a TCP RST. Eventually we'll see:

I0224 09:45:46.580664   10901 proxier.go:463] Received update notice: ...

Then it will start working again. This can take several minutes. When you run curl to the application's service you'll see the endpoint has changed:

I0224 09:47:58.869859   10901 proxier.go:107] Accepted TCP connection from 192.168.133.2:46707 to 192.168.133.2:38952
I0224 09:47:58.870040   10901 proxier.go:77] Mapped service "node-echo" to endpoint 10.1.0.40:9292
I0224 09:47:58.870303   10901 proxier.go:124] Creating proxy between 192.168.133.2:46707 <-> 192.168.133.2:38952 <-> 10.1.0.1:38370 <-> 10.1.0.40:9292
I0224 09:47:58.870339   10901 proxier.go:134] Copying from backend: 10.1.0.40:9292 -> 192.168.133.2:46707
I0224 09:47:58.870374   10901 proxier.go:134] Copying to backend: 192.168.133.2:46707 -> 10.1.0.40:9292
I0224 09:47:58.882205   10901 proxier.go:139] Copied 265 bytes from backend: 10.1.0.40:9292 -> 192.168.133.2:46707

Activity

  1. added this to the 0.4.0 (beta2) milestone on Feb 24, 2015
  2. brenton commented on Feb 24, 2015

    @brenton
    ContributorAuthor

    It doesn't seem like reverting the commit in step 1 is needed now. It shouldn't have been related anyway.

  3. added
    kind/bug
    on Feb 25, 2015
  4. brenton commented on Mar 18, 2015

    @brenton
    ContributorAuthor

    As best I can tell this has greatly improved with the latest rebase. I'm going to close this for now.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions