Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make logdump support kubemark and support gke with 'use_custom_instance_list' #51834

Merged
merged 2 commits into from
Sep 2, 2017

Conversation

shyamjvs
Copy link
Member

@shyamjvs shyamjvs commented Sep 1, 2017

@shyamjvs shyamjvs added the release-note-none Denotes a PR that doesn't merit a release note. label Sep 1, 2017
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 1, 2017
@ericchiang ericchiang added this to the v1.8 milestone Sep 1, 2017
@ericchiang ericchiang added priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. sig/testing Categorizes an issue or PR as relevant to SIG Testing. queue/fix labels Sep 1, 2017
@ericchiang
Copy link
Contributor

cc @kubernetes/release-maintainers bumped the queue priority because this is enables our ability to fix other upgrade tests.

@krzyzacy
Copy link
Member

krzyzacy commented Sep 1, 2017

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 1, 2017
@fejta
Copy link
Contributor

fejta commented Sep 1, 2017

/assign @eparis @mikedanese

@krzyzacy
Copy link
Member

krzyzacy commented Sep 1, 2017

/test pull-kubernetes-unit

@shyamjvs
Copy link
Member Author

shyamjvs commented Sep 1, 2017

/retest
(seems unrelated)

@mikedanese
Copy link
Member

/approve

@shyamjvs
Copy link
Member Author

shyamjvs commented Sep 1, 2017

/retest

@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: krzyzacy, mikedanese, shyamjvs

Associated issue: 4321

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 1, 2017
@ericchiang
Copy link
Contributor

/retest

@shyamjvs
Copy link
Member Author

shyamjvs commented Sep 2, 2017

@ericchiang We don't need kops-aws to pass... It's not a required presubmit
kubernetes/test-infra#4293

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 99154f6 into kubernetes:master Sep 2, 2017
@k8s-ci-robot
Copy link
Contributor

@shyamjvs: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws a317036 link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@fejta
Copy link
Contributor

fejta commented Sep 5, 2017

/sig cluster-lifecycle

/test pull-kubernetes-unit
/test pull-kubernetes-kubemark-e2e-gce
/test pull-kubernetes-e2e-kops-aws

@k8s-ci-robot k8s-ci-robot added the sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. label Sep 5, 2017
@shyamjvs
Copy link
Member Author

shyamjvs commented Sep 7, 2017

@wojtek-t Could you mark this as a cherrypick-candidate for 1.7? This is needed for getting logs in our GKE tests.
Ref kubernetes/test-infra#4323

I'm happy to create the cherrypick PR if need be.

@abgworrall
Copy link
Contributor

Hi, @wojtek-t ! This is breaking OS image testing on GKE / 1.7, so I'm super keen to see a fix get cherrypicked ...

@eparis eparis added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Sep 7, 2017
@eparis
Copy link
Contributor

eparis commented Sep 7, 2017

I added release-note because the bot is loosing it's little mind in the cherry pick #51834
I'll file an issue against the bot.

k8s-github-robot pushed a commit that referenced this pull request Sep 8, 2017
…34-upstream-release-1.7

Automatic merge from submit-queue

Automated cherry pick of #51834

Cherry pick of #51834 on release-1.7.

#51834: Make logdump for kubemark logs independent of
@wojtek-t wojtek-t modified the milestones: v1.7, v1.8 Sep 8, 2017
@wojtek-t wojtek-t added cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. cherrypick-candidate labels Sep 8, 2017
@k8s-cherrypick-bot
Copy link

Commit found in the "release-1.7" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked.

@abgworrall
Copy link
Contributor

This did indeed fixup GKE testing for the 1.7 branch. Wahoo !

Now we'll need a cherrypick into the 1.6 branch ... and maybe the 1.5 branch too, which is still supported.

@shyamjvs
Copy link
Member Author

shyamjvs commented Sep 8, 2017

^ cc @mwielgus @enisoc (forgive me if my memory is weak)

@enisoc
Copy link
Member

enisoc commented Sep 8, 2017

SGTM for 1.6. @shyamjvs would you mind running the cherrypick script against release-1.6?

@shyamjvs
Copy link
Member Author

shyamjvs commented Sep 12, 2017

@enisoc Created the cherry-pick - #52361. Could you please approve it?

@@ -68,6 +64,8 @@ function setup() {
source "${KUBE_ROOT}/cluster/kube-util.sh"
echo "Detecting project"
detect-project 2>&1
elif [[ "${KUBERNETES_PROVIDER}" == "gke" ]]; then
echo "Using 'use_custom_instance_list' with gke, skipping check for LOG_DUMP_SSH_KEY and LOG_DUMP_SSH_USER"
Copy link
Member

@zmerlynn zmerlynn Sep 12, 2017

Choose a reason for hiding this comment

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

Er, no. This is wrong. If there's no LOG_DUMP_SSH_KEY, use_custom_instance_list can't work. Can we undo this PR instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

Please see below. We don't need the the ssh key in case of gke (even if we're using use_custom_instances_list).

Copy link
Member

Choose a reason for hiding this comment

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

I'm not going to argue this anymore, but we really shouldn't be using the gcloud assumptions.

if [[ -n "${use_custom_instance_list}" ]]; then
if [[ "${gcloud_supported_providers}" =~ "${KUBERNETES_PROVIDER}" ]]; then
# get-serial-port-output lets you ask for ports 1-4, but currently (11/21/2016) only port 1 contains useful information
gcloud compute instances get-serial-port-output --project "${PROJECT}" --zone "${ZONE}" --port 1 "${node}" > "${dir}/serial-1.log" || true
Copy link
Member

Choose a reason for hiding this comment

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

I wish this wasn't also part of the PR. One issue at at a time, please. :)

Copy link
Member Author

Choose a reason for hiding this comment

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

This is part of the same issue. The point was to use 'gcloud ssh' for all gcloud supported providers (even though there's a custom_instance_list).
And this is the right behaviour - we shouldn't use gcloud just because we're using custom instance list (as the provider might be some non-gcloud one like aws).

k8s-github-robot pushed a commit that referenced this pull request Sep 16, 2017
…34-upstream-release-1.6

Automatic merge from submit-queue.

Automated cherry pick of #51834

Cherry pick of #51834 on release-1.6.

#51834: Make logdump for kubemark logs independent of
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. release-note Denotes a PR that will be considered when it comes time to generate release notes. release-note-none Denotes a PR that doesn't merit a release note. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.