Skip to content

Hairpin does not work with the all-in-one #14031

Closed

Description

@enj
  1. Start an all-in-one server
  2. Create a pod that runs a server, and a service selecting the pod
  3. From within the pod, attempt to contact the service

Hairpin is not set up by the all-in-one, so the pod is unable to reach itself. Needs to be fixed and a test added to ensure we don't regress.

Currently a service cannot loopback to itself using its service DNS name with the all-in-one configuration.

cc @openshift/networking @liggitt

Activity

  1. added this to the 3.6.0 milestone on May 3, 2017
  2. enj commented on May 3, 2017

    @enj
    ContributorAuthor

    xref: #13927 (comment)

    @knobunc @danwinship In regards to our earlier conversations regarding the `hairpin` issue:
    
    I have narrowed the problem down to essentially that our all-in-one:
    
    1. Has no network plugins, thus no plugins look at the `hairpin` setting
    2. CRI is enabled
    3. We thus use `dockershim.NewDockerService`
    4. This is used by `*kubeGenericRuntimeManager.SyncPod` which does nothing with `hairpin`
    5. Thus the `hairpin` value is completely ignored in this configuration
    
    If we had some network plugins the value could be used.  Or if CRI was disabled, then `*DockerManager.SyncPod` would use the value in `hairpin.SetUpContainerPid`.
    
    So, how do we fix our all-in-one?
    
    xref:
    https://github.com/openshift/origin/pull/13932
    https://github.com/kubernetes/kubernetes/issues/44187
    https://github.com/kubernetes/kubernetes/issues/43966
    https://github.com/kubernetes/kubernetes/issues/42314
    
  3. liggitt commented on May 3, 2017

    @liggitt
    Contributor

    or even a merge-blocking test... this seems fundamental enough that we'd want high visibility if it didn't work

  4. liggitt commented on May 23, 2017

    @liggitt
    Contributor

    @danwinship @dcbw what's the status on getting hairpin working again with the all-in-one?

  5. changed the title [-]Need extended test for service loopback using all-in-one[/-] [+]Hairpin does not work with the all-in-one[/+] on May 23, 2017
  6. added
    kind/bug
    and removed on May 23, 2017
  7. enj commented on Jun 12, 2017

    @enj
    ContributorAuthor

    So what is the plan for this in 3.6?

  8. david-martin commented on Jul 3, 2017

    @david-martin
    Member

    @enj I have seen a similar issue with oc cluster up on 3.6.0 alpha2 (on Fedora 25)
    The pod can curl itself OK if it uses the PodIP or localhost.

    sh-4.2$ curl -I 172.17.0.4:8080                                                                         
    HTTP/1.1 200 OK       
    
    sh-4.2$ curl -I localhost:8080                                                                          
    HTTP/1.1 200 OK                                                                                                                                                                           
    

    But curling the service name doesn't work. (Service name is testa)
    The request seems to timeout.

    sh-4.2$ curl -I testa:8080                                                                              
    curl: (7) Failed connect to testa:8080; Connection timed out                                            
    

    Other pods can be accessed OK by their service name. Its just when a pod is talking to itself that there's a problem.

    sh-4.2$ curl -I testb:8080                                                                              
    HTTP/1.1 200 OK                                                                                         
    
  9. sttts commented on Jul 12, 2017

    @sttts
    Contributor

    How critical is this? We marked it as blocker in #13732 (comment). /cc @mfojtik

  10. 13 remaining items

  11. added
    lifecycle/stale
    on Jul 19, 2018
  12. riuvshin commented on Jul 20, 2018

    @riuvshin

    /remove-lifecycle stale

  13. openshift-bot commented on Aug 19, 2018

    @openshift-bot
    Contributor

    Stale issues rot after 30d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Rotten issues close after an additional 30d of inactivity.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle rotten
    /remove-lifecycle stale

  14. riuvshin commented on Aug 20, 2018

    @riuvshin

    /remove-lifecycle stale

  15. removed
    lifecycle/stale
    on Aug 20, 2018
  16. garagatyi commented on Aug 20, 2018

    @garagatyi

    @eivantsov found a workaround - reconfigure docker daemon not to use userland proxy. Here is the link to the explanation.
    So, we might consider closing this issue since it seems it is not prioritized enough to find a better solution.

  17. openshift-bot commented on Nov 18, 2018

    @openshift-bot
    Contributor

    Issues go stale after 90d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle stale.
    Stale issues rot after an additional 30d of inactivity and eventually close.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle stale

  18. added
    lifecycle/stale
    on Nov 18, 2018
  19. l0rd commented on Nov 18, 2018

    @l0rd

    On kubernetes 1.11 I cannot reproduce this issue anymore

  20. openshift-bot commented on Dec 18, 2018

    @openshift-bot
    Contributor

    Stale issues rot after 30d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Rotten issues close after an additional 30d of inactivity.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle rotten
    /remove-lifecycle stale

  21. added
    lifecycle/rotten
    and removed
    lifecycle/stale
    on Dec 18, 2018
  22. openshift-bot commented on Jan 17, 2019

    @openshift-bot
    Contributor

    Rotten issues close after 30d of inactivity.

    Reopen the issue by commenting /reopen.
    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Exclude this issue from closing again by commenting /lifecycle frozen.

    /close

  23. openshift-ci-robot commented on Jan 17, 2019

    @openshift-ci-robot

    @openshift-bot: Closing this issue.

    Details

    In response to this:

    Rotten issues close after 30d of inactivity.

    Reopen the issue by commenting /reopen.
    Mark the issue as fresh by commenting /remove-lifecycle rotten.
    Exclude this issue from closing again by commenting /lifecycle frozen.

    /close

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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

Metadata

Metadata

Assignees

Labels

area/testscomponent/networkingkind/buglifecycle/rottenpriority/P1sig/networking

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions