Skip to content

GSSAPI extended test failure on deployment config change after 1.6.1 rebase #13927

Closed

Description

@enj

First seen after 1.6.1 rebase merge https://ci.openshift.redhat.com/jenkins/job/test_branch_origin_extended_gssapi/48/

=== BEGIN TEST CASE ===
test/extended/gssapi.sh:116: executing 'oc get pods -l deploymentconfig=gssapiproxy-server -o jsonpath='{.items[0].spec.containers[0].env[?(@.name=="SERVER")].value}_{.items[0].status.conditions[?(@.type=="Ready")].status}'' expecting any result and text '^SERVER_GSSAPI_BASIC_FALLBACK_True$'; re-trying every 0.2s until completion or 60.000s
FAILURE after 59.077s: test/extended/gssapi.sh:116: executing 'oc get pods -l deploymentconfig=gssapiproxy-server -o jsonpath='{.items[0].spec.containers[0].env[?(@.name=="SERVER")].value}_{.items[0].status.conditions[?(@.type=="Ready")].status}'' expecting any result and text '^SERVER_GSSAPI_BASIC_FALLBACK_True$'; re-trying every 0.2s until completion or 60.000s: the command timed out
Standard output from the command:
SERVER_GSSAPI_ONLY_True
... repeated 75 times
SERVER_GSSAPI_ONLY_False
... repeated 17 times
SERVER_GSSAPI_BASIC_FALLBACK_False
... repeated 41 times
Standard error from the command:
=== END TEST CASE ===

Re-ran https://ci.openshift.redhat.com/jenkins/job/test_branch_origin_extended_gssapi/49/ and it failed again on the same line but slightly differently.

=== BEGIN TEST CASE ===
test/extended/gssapi.sh:116: executing 'oc get pods -l deploymentconfig=gssapiproxy-server -o jsonpath='{.items[0].spec.containers[0].env[?(@.name=="SERVER")].value}_{.items[0].status.conditions[?(@.type=="Ready")].status}'' expecting any result and text '^SERVER_GSSAPI_ONLY_True$'; re-trying every 0.2s until completion or 60.000s
FAILURE after 60.231s: test/extended/gssapi.sh:116: executing 'oc get pods -l deploymentconfig=gssapiproxy-server -o jsonpath='{.items[0].spec.containers[0].env[?(@.name=="SERVER")].value}_{.items[0].status.conditions[?(@.type=="Ready")].status}'' expecting any result and text '^SERVER_GSSAPI_ONLY_True$'; re-trying every 0.2s until completion or 60.000s: the command timed out
Standard output from the command:
_True
... repeated 74 times
_False
... repeated 26 times
Error executing template: array index out of bounds: index 0, length 0. Printing more information for debugging the template:
	template was:
		{.items[0].spec.containers[0].env[?(@.name=="SERVER")].value}_{.items[0].status.conditions[?(@.type=="Ready")].status}
	object given to jsonpath engine was:
		map[string]interface {}{"items":[]interface {}{}, "kind":"List", "apiVersion":"v1", "metadata":map[string]interface {}{}, "selfLink":"", "resourceVersion":""}
SERVER_GSSAPI_ONLY_False
... repeated 31 times
Standard error from the command:
error: error executing jsonpath "{.items[0].spec.containers[0].env[?(@.name==\"SERVER\")].value}_{.items[0].status.conditions[?(@.type==\"Ready\")].status}": array index out of bounds: index 0, length 0
=== END TEST CASE ===

The update_auth_proxy_config does a set env

function update_auth_proxy_config() {
    local server_config="${1}"
    local spec='{.items[0].spec.containers[0].env[?(@.name=="SERVER")].value}'
    spec+='_'
    spec+='{.items[0].status.conditions[?(@.type=="Ready")].status}'

    os::cmd::expect_success "oc set env dc/gssapiproxy-server SERVER='${server_config}'"
    os::cmd::try_until_text "oc get pods -l deploymentconfig=gssapiproxy-server -o jsonpath='${spec}'" "^${server_config}_True$"
}

which triggers the deployment config:

kind: "DeploymentConfig"
apiVersion: "v1"
metadata:
  name: "gssapiproxy-server"
spec:
  strategy:
    type: "Recreate"
    resources: {}
  triggers:
    -
      type: "ImageChange"
      imageChangeParams:
        automatic: true
        containerNames:
          - "gssapiproxy-server"
        from:
          kind: "ImageStreamTag"
          name: "gssapiproxy:latest"
        lastTriggeredImage: ""
    -
      type: "ConfigChange"
...

It seems like pod does not come back up with the new configuration.

cc @stevekuznetsov @liggitt @smarterclayton @deads2k

Activity

  1. added
    kind/test-flake
    on Apr 27, 2017
  2. deads2k commented on Apr 27, 2017

    @deads2k
    Contributor

    The update_auth_proxy_config does a set env

    Check to make sure that oc set env is working right. There was a bug (which I thought we fixed) that prevented it from working with origin resources.

  3. enj commented on Apr 27, 2017

    @enj
    ContributorAuthor

    @deads2k So from 743a31d to d12e175 the decoder went from kapi.Codecs.UniversalDecoder() to f.Decoder(toInternal=false) to f.Decoder(toInternal=true). Not really what should be used...

  4. liggitt commented on Apr 27, 2017

    @liggitt
    Contributor

    oc set env is modifying the deployment config pod spec as expected

  5. liggitt commented on Apr 28, 2017

    @liggitt
    Contributor

    looks like the deployment was ~53-54 seconds prior to the rebase. The wait times out at 1 minute, so taking slightly longer could have failed this step.

  6. liggitt commented on Apr 28, 2017

    @liggitt
    Contributor

    after getting past the deployment timeout, we're hitting an issue where a pod cannot make a network call to a service IP that routes back to itself

    @enj is tracking down an issue with setting hairpin mode

    might be
    kubernetes/kubernetes#44187

  7. enj commented on Apr 28, 2017

    @enj
    ContributorAuthor

    @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:
    #13932
    kubernetes/kubernetes#44187
    kubernetes/kubernetes#43966
    kubernetes/kubernetes#42314

  8. added
    kind/bug
    on Apr 28, 2017
  9. 10 remaining items

  10. dcbw commented on May 30, 2017

    @dcbw
    Contributor

    Upstream bug for this issue is kubernetes/kubernetes#45790, specifically see kubernetes/kubernetes#45790 (comment).

    If you're not using a network plugin, well, then nothing handles hairpin for you when CRI is enabled. And I guess that's by design because kubelet is getting out of the business of doing anything network-related.

  11. dcbw commented on May 30, 2017

    @dcbw
    Contributor

    I would suggest instead of using no network plugin, and assuming networking will actually work, use --network-plugin=kubenet like upstream does.

  12. liggitt commented on May 30, 2017

    @liggitt
    Contributor

    I would suggest instead of using no network plugin, and assuming networking will actually work, use --network-plugin=kubenet like upstream does.

    What has to be present in order to make kubenet work? Can we still start etcd/api/node from the all-in-one process?

  13. liggitt commented on May 30, 2017

    @liggitt
    Contributor

    From upstream docs:

    The standard CNI bridge, lo and host-local plugins are required, at minimum version 0.2.0. Kubenet will first search for them in /opt/cni/bin. Specify network-plugin-dir to supply additional search path. The first found match will take effect.

    That's annoying... how do we preserve the openshift start from a single binary experience?

  14. dcbw commented on May 30, 2017

    @dcbw
    Contributor

    @liggitt I get the wish there, I really do. But when CRI-O hits, there's no "backup" docker networking, it's all CNI network plugins. So we should figure out how to do not-single-binary openshift networking now.

    Or figure out why all-in-one is trying to do networking in the first place, and make it not do that, or something to that effect.

  15. liggitt commented on May 30, 2017

    @liggitt
    Contributor
  16. dcbw commented on May 30, 2017

    @dcbw
    Contributor

    @liggitt an icky alternative is to vendor in the CNI lo/host-local plugin sources, symlink openshift to 'lo' and 'host-local' names and then inspect arg[0] and run the right plugin code.

  17. danwinship commented on May 30, 2017

    @danwinship
    Contributor

    Icky.

    Two ideas which I assume we can't currently do but maybe we could in the future with a bit of CNI hacking:

    1. Make it possible to build plugins directly into OpenShift and invoke them via function calls rather than fork+exec.
    2. Make it possible to run plugin binaries out of a superprivileged container rather than the host filesystem, so that we could ship the plugins in an "origin-cni-plugins" image rather than needing them as separate binaries.
  18. smarterclayton commented on May 30, 2017

    @smarterclayton
    Contributor

    We may very well vendor CRI at some point.

  19. smarterclayton commented on May 30, 2017

    @smarterclayton
    Contributor

    In the short term, you need docker to run. If we replace that with cri-o and you need to have kubenet installed for openshift start to work (cri-o should prerequisite kubenet), that's fine. We need to include all required CNI plugins into the origin image.

  20. smarterclayton commented on May 30, 2017

    @smarterclayton
    Contributor

    oc cluster up doesn't have a cri-o story yet anyway, so the blocker is primarily around making sure it's easy and possible to run openshift start on a system that has the cri-o packages installed.

  21. smarterclayton commented on May 30, 2017

    @smarterclayton
    Contributor

    And final thought in this stream of consciousness - we should vendor everything into our binary that is required to boot a successfully running system.

  22. dcbw commented on May 31, 2017

    @dcbw
    Contributor

    @danwinship @smarterclayton we already vendor 'loopback' and 'host-local' into Origin, so we're halfway on that. And it's not that hard to call those plugins at the right times. The problem I see is figuring out when we want to call them in-process as opposed to out-of-process, since we almost always want to do OOP. IP would be the special-case when it's One Giant Binary.

  23. smarterclayton commented on May 31, 2017

    @smarterclayton
    Contributor
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/bugkind/test-flakepriority/P1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions