Repository navigation
Closed
Labels
area/testscomponent/networkingkind/bugCategorizes issue or PR as related to a bug.kind/test-flakeCategorizes issue or PR as related to test flakes.priority/P1
Description
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.
Metadata
Metadata
Labels
area/testscomponent/networkingkind/bugCategorizes issue or PR as related to a bug.kind/test-flakeCategorizes issue or PR as related to test flakes.priority/P1
Activity
deads2k commentedon Apr 27, 2017
Check to make sure that
oc set envis working right. There was a bug (which I thought we fixed) that prevented it from working with origin resources.enj commentedon Apr 27, 2017
@deads2k So from 743a31d to d12e175 the decoder went from
kapi.Codecs.UniversalDecoder()tof.Decoder(toInternal=false)tof.Decoder(toInternal=true). Not really what should be used...liggitt commentedon Apr 27, 2017
oc set envis modifying the deployment config pod spec as expectedliggitt commentedon Apr 28, 2017
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.
liggitt commentedon Apr 28, 2017
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
enj commentedon Apr 28, 2017
@knobunc @danwinship In regards to our earlier conversations regarding the
hairpinissue:I have narrowed the problem down to essentially that our all-in-one:
hairpinsettingdockershim.NewDockerService*kubeGenericRuntimeManager.SyncPodwhich does nothing withhairpinhairpinvalue is completely ignored in this configurationIf we had some network plugins the value could be used. Or if CRI was disabled, then
*DockerManager.SyncPodwould use the value inhairpin.SetUpContainerPid.So, how do we fix our all-in-one?
xref:
#13932
kubernetes/kubernetes#44187
kubernetes/kubernetes#43966
kubernetes/kubernetes#42314
10 remaining items
dcbw commentedon May 30, 2017
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.
dcbw commentedon May 30, 2017
I would suggest instead of using no network plugin, and assuming networking will actually work, use --network-plugin=kubenet like upstream does.
liggitt commentedon May 30, 2017
What has to be present in order to make kubenet work? Can we still start etcd/api/node from the all-in-one process?
liggitt commentedon May 30, 2017
From upstream docs:
That's annoying... how do we preserve the
openshift startfrom a single binary experience?dcbw commentedon May 30, 2017
@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.
liggitt commentedon May 30, 2017
@smarterclayton ^
dcbw commentedon May 30, 2017
@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.
danwinship commentedon May 30, 2017
Icky.
Two ideas which I assume we can't currently do but maybe we could in the future with a bit of CNI hacking:
smarterclayton commentedon May 30, 2017
We may very well vendor CRI at some point.
smarterclayton commentedon May 30, 2017
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.
smarterclayton commentedon May 30, 2017
oc cluster updoesn't have a cri-o story yet anyway, so the blocker is primarily around making sure it's easy and possible to runopenshift starton a system that has the cri-o packages installed.smarterclayton commentedon May 30, 2017
And final thought in this stream of consciousness - we should vendor everything into our binary that is required to boot a successfully running system.
dcbw commentedon May 31, 2017
@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.
smarterclayton commentedon May 31, 2017