Skip to content

Suppress node configuration details during tests#10688

Merged
openshift-bot merged 1 commit intoopenshift:masterfrom
enj:enj/i/node_config_noise/7193
Oct 9, 2016
Merged

Suppress node configuration details during tests#10688
openshift-bot merged 1 commit intoopenshift:masterfrom
enj:enj/i/node_config_noise/7193

Conversation

@enj
Copy link
Copy Markdown
Contributor

@enj enj commented Aug 27, 2016

Fixes #7193

@enj
Copy link
Copy Markdown
Contributor Author

enj commented Aug 27, 2016

[test]

@stevekuznetsov
Copy link
Copy Markdown
Contributor

I think you need it in hack/test-cmd.sh as it's still not been refactored to use the normal setup process.

@stevekuznetsov
Copy link
Copy Markdown
Contributor

I think you need it in hack/test-cmd.sh

Disregard me ... no nodes in that test.

Instead of using the wait_for_url, though, let's pick up the new patttern with oc get --raw: #10542

@stevekuznetsov
Copy link
Copy Markdown
Contributor

stevekuznetsov commented Aug 30, 2016

test flake unrelated, these bits look good

@enj
Copy link
Copy Markdown
Contributor Author

enj commented Aug 30, 2016

@stevekuznetsov Don't you want me to squash first?

@stevekuznetsov
Copy link
Copy Markdown
Contributor

@enj yeah, squash down and we can merge it

@enj enj force-pushed the enj/i/node_config_noise/7193 branch from b47cb55 to 15762a3 Compare August 30, 2016 13:17
@liggitt
Copy link
Copy Markdown
Contributor

liggitt commented Aug 30, 2016

Post 1.3

@enj enj added the lgtm Indicates that a PR is ready to be merged. label Sep 8, 2016
@enj
Copy link
Copy Markdown
Contributor Author

enj commented Sep 22, 2016

@stevekuznetsov merge plz.

hack/util.sh Outdated
wait_for_url "${API_SCHEME}://${API_HOST}:${API_PORT}/api/v1/nodes/${KUBELET_HOST}" "apiserver(nodes): " 0.25 80
os::test::junit::declare_suite_start "util/start_os_server"
os::cmd::try_until_text "oc get --raw /healthz --config='${MASTER_CONFIG_DIR}/admin.kubeconfig'" 'ok'
os::cmd::try_until_text "oc get --raw ${KUBELET_SCHEME}://${KUBELET_HOST}:${KUBELET_PORT}/healthz --config='${MASTER_CONFIG_DIR}/admin.kubeconfig'" 'ok'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using --raw against a kubelet threw errors trying to fetch discovery information from the kubelet for me

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignoring the rebase flakes the tests seem to be fine.

@enj enj force-pushed the enj/i/node_config_noise/7193 branch from 15762a3 to a3a35d1 Compare September 22, 2016 19:52
@enj
Copy link
Copy Markdown
Contributor Author

enj commented Sep 23, 2016

re[test] flake #11016

@enj
Copy link
Copy Markdown
Contributor Author

enj commented Sep 27, 2016

re[test] flake on #11109 #11058

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 29, 2016
@enj enj force-pushed the enj/i/node_config_noise/7193 branch from a3a35d1 to 9f3f501 Compare October 5, 2016 23:02
@enj enj removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. lgtm Indicates that a PR is ready to be merged. labels Oct 5, 2016
@stevekuznetsov
Copy link
Copy Markdown
Contributor

@liggitt any last comments or was this good to go?

@liggitt
Copy link
Copy Markdown
Contributor

liggitt commented Oct 6, 2016

no other comments from me but I didn't review in detail

Copy link
Copy Markdown
Contributor

@stevekuznetsov stevekuznetsov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most comments are generic and apply to all diffs.


wait_for_url "${API_SCHEME}://${API_HOST}:${API_PORT}/healthz" "apiserver: " 0.25 160
wait_for_url "${API_SCHEME}://${API_HOST}:${API_PORT}/healthz/ready" "apiserver(ready): " 0.25 160
os::test::junit::declare_suite_start "os::start::master"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use colons as separators in the jUnit suites - we can just have setup/start-master

wait_for_url "${API_SCHEME}://${API_HOST}:${API_PORT}/healthz/ready" "apiserver(ready): " 0.25 80
wait_for_url "${API_SCHEME}://${API_HOST}:${API_PORT}/api/v1/nodes/${KUBELET_HOST}" "apiserver(nodes): " 0.25 80
os::test::junit::declare_suite_start "os::start::all_in_one"
os::cmd::try_until_text "oc get --raw /healthz --config='${MASTER_CONFIG_DIR}/admin.kubeconfig'" 'ok'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to lose the poll & timeout info from before.

hack/util.sh Outdated
echo "ERROR: gave up waiting for ${url}"
echo $(${cmd})
echo "ERROR: gave up waiting for ${url}" 1>&2
echo $(${cmd}) 1>&2
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be written:

${cmd} 1>&2

wait_for_url "${API_SCHEME}://${API_HOST}:${API_PORT}/healthz" "apiserver: " 0.25 80
wait_for_url "${API_SCHEME}://${API_HOST}:${API_PORT}/healthz/ready" "apiserver(ready): " 0.25 80
wait_for_url "${API_SCHEME}://${API_HOST}:${API_PORT}/api/v1/nodes/${KUBELET_HOST}" "apiserver(nodes): " 0.25 80
wait_for_command "oc get --raw ${KUBELET_SCHEME}://${KUBELET_HOST}:${KUBELET_PORT}/healthz --config='${MASTER_CONFIG_DIR}/admin.kubeconfig' | grep ok"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't touch these scripts, they should reflect the previous state to enforce backwards compat.

@enj enj force-pushed the enj/i/node_config_noise/7193 branch from 9f3f501 to 69ae428 Compare October 6, 2016 22:01
@enj
Copy link
Copy Markdown
Contributor Author

enj commented Oct 6, 2016

@stevekuznetsov PTAL

Copy link
Copy Markdown
Contributor

@stevekuznetsov stevekuznetsov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One remaining nit, rest LGTM

hack/util.sh Outdated
echo "ERROR: gave up waiting for ${url}"
echo $(${cmd})
echo "ERROR: gave up waiting for ${url}" 1>&2
echo ${cmd} 1>&2
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, not what I meant.

When you do something like:

echo "$( ${commands} )"

You are:

  • spawning a subshell $()
  • running ${commands} in that subshell
  • collecting stdout from it
  • asking echo to take that and put it into stdout

Instead, if you do simply:

${commands}

You then are:

  • running the ${commands} and letting them touch std{out,err} as it would

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

echo ${commands}

Won't actually run the ${commands}.

Signed-off-by: Monis Khan <mkhan@redhat.com>
@enj enj force-pushed the enj/i/node_config_noise/7193 branch from 69ae428 to b86eca7 Compare October 7, 2016 13:15
@openshift-bot
Copy link
Copy Markdown
Contributor

Evaluated for origin test up to b86eca7

@stevekuznetsov
Copy link
Copy Markdown
Contributor

[merge]

@openshift-bot
Copy link
Copy Markdown
Contributor

openshift-bot commented Oct 7, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9738/) (Image: devenv-rhel7_5156)

@openshift-bot
Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to b86eca7

@openshift-bot
Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9738/)

@openshift-bot openshift-bot merged commit 56719d6 into openshift:master Oct 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants