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

Fix working_set calculation in kubelet #29153

Merged
merged 2 commits into from
Jul 20, 2016

Conversation

vishh
Copy link
Contributor

@vishh vishh commented Jul 18, 2016

Bump cadvisor dependencies to latest head.

Fixes #28619

@vishh vishh added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Jul 18, 2016
@vishh vishh changed the title Bump cadvisor dependencies to v0.23.7 tag. Fix working_set calculation in cAdvisor Jul 18, 2016
@vishh vishh changed the title Fix working_set calculation in cAdvisor Fix working_set calculation in kubelet Jul 19, 2016
@vishh vishh added this to the v1.3 milestone Jul 19, 2016
@vishh vishh added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Jul 19, 2016
@vishh
Copy link
Contributor Author

vishh commented Jul 19, 2016

cc @timstclair

@k8s-github-robot k8s-github-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 19, 2016
@vishh vishh force-pushed the cadvisor-bump branch 2 times, most recently from d5cb7b2 to ce722fe Compare July 19, 2016 19:42
@@ -2160,6 +2160,481 @@
"ImportPath": "k8s.io/heapster/metrics/apis/metrics/v1alpha1",
"Comment": "v1.1.0-beta2",
"Rev": "9cb18ac0ceb193eb530a1fe339355c94ea454d85"
},
{
"ImportPath": "github.com/google/cadvisor/vendor/github.com/golang/glog",

Choose a reason for hiding this comment

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

Why are the vendor dependencies getting pulled in?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure why godep is doing that. I'm trying to figure out why.

@timstclair
Copy link

@Random-Liu

@vishh vishh force-pushed the cadvisor-bump branch 2 times, most recently from 12ea7a7 to c0b482a Compare July 20, 2016 00:33
@Random-Liu
Copy link
Member

@vishh If you run godep save twice, the dlopen will be in.
Seems similar with kubernetes/node-problem-detector#7

@vishh
Copy link
Contributor Author

vishh commented Jul 20, 2016

@Random-Liu that seems plausible. Maybe godep is not detecting recursive dependencies in the first run.

@vishh
Copy link
Contributor Author

vishh commented Jul 20, 2016

However, the godep-verify.sh script is going to run godep save just once. I wonder if the script will be happy with running godep save twice.

@vishh
Copy link
Contributor Author

vishh commented Jul 20, 2016

I ran godep-save.sh again and noticed no changes on top of my PR.

@Random-Liu
Copy link
Member

@vishh It's wired. It works for me, maybe because I changed runc to the same version align with docker v1.11.2? https://github.com/docker/docker/tree/v1.11.2/vendor/src/github.com/opencontainers/runc

@Random-Liu
Copy link
Member

Random-Liu commented Jul 20, 2016

@vishh However, I just run godep-verify.sh and it also failed and told me to remove dlopen from Godeps...

Your Godeps.json is different:
--- /usr/local/google/home/lantaol/workspace/src/k8s.io/kubernetes/Godeps/Godeps.json   2016-07-19 18:11:32.692929121 -0700
+++ /tmp/gopath.ppLOVU/src/k8s.io/kubernetes/Godeps/Godeps.json 2016-07-19 20:40:34.219648761 -0700
@@ -497,11 +497,6 @@
            "Rev": "8b320e7c550067b1dfb37bd1682e8067023e0751"
        },
        {
-           "ImportPath": "github.com/coreos/go-etcd/etcd",
-           "Comment": "v2.0.0-38-g003851b",
-           "Rev": "003851be7bb0694fe3cc457a49529a19388ee7cf"
-       },
-       {
            "ImportPath": "github.com/coreos/go-oidc/http",
            "Rev": "5cf2aa52da8c574d3aa4458f471ad6ae2240fe6b"
        },
@@ -560,11 +555,6 @@
            "Comment": "v2",
            "Rev": "7f080b6c11ac2d2347c3cd7521e810207ea1a041"
        },
-       {
-           "ImportPath": "github.com/coreos/pkg/dlopen",
-           "Comment": "v2",
-           "Rev": "7f080b6c11ac2d2347c3cd7521e810207ea1a041"
-       },
        {
            "ImportPath": "github.com/coreos/pkg/health",
            "Comment": "v2",

@Random-Liu
Copy link
Member

@vishh BTW, I don't know why my local godep keeps trying to add go-etcd/etcd...

I've to go home now. Will have another try after I get home and finish dinner. :)

@vishh
Copy link
Contributor Author

vishh commented Jul 20, 2016

@Random-Liu I have updated the presubmit script to run godep twice. I hope this works for now.

@vishh
Copy link
Contributor Author

vishh commented Jul 20, 2016

@k8s-bot test this github issue #IGNORE

@Random-Liu
Copy link
Member

Random-Liu commented Jul 20, 2016

@freeformz We encountered the same issue again. We have to run godep save twice to include the dependency github.com/coreos/pkg/dlopen.

Any suggestions will be appreciate. :'(

Signed-off-by: Vishnu kannan <vishnuk@google.com>
@vishh
Copy link
Contributor Author

vishh commented Jul 20, 2016

For some reason the ginkgo dependencies were also updated as part of this PR and resulted in an older version of ginkgo as a dep. I tried to fix it now.

@vishh
Copy link
Contributor Author

vishh commented Jul 20, 2016

@timstclair @Random-Liu This PR is finally ready to be merged. PTAL

@@ -31,4 +31,5 @@ REQUIRED_BINS=(

pushd "${KUBE_ROOT}" > /dev/null
GO15VENDOREXPERIMENT=1 ${GODEP} save "${REQUIRED_BINS[@]}"
GO15VENDOREXPERIMENT=1 ${GODEP} save "${REQUIRED_BINS[@]}"
Copy link
Member

Choose a reason for hiding this comment

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

Is this for temporary walkaround? If so, maybe we need some comments here to explain or add a TODO.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@Random-Liu
Copy link
Member

Fixes #28997.

Signed-off-by: Vishnu kannan <vishnuk@google.com>
@Random-Liu
Copy link
Member

LGTM. :)

@k8s-bot
Copy link

k8s-bot commented Jul 20, 2016

GCE e2e build/test passed for commit feb7321.

@Random-Liu Random-Liu added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 20, 2016
@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Jul 20, 2016

GCE e2e build/test passed for commit feb7321.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 115ae62 into kubernetes:master Jul 20, 2016
@apelisse
Copy link
Member

This seem to have broken the build.

@vishh
Copy link
Contributor Author

vishh commented Jul 21, 2016

I wonder why this PR was even merged in the first place? Is cross
compilation not required to succeed before merging?
cc @lavalamp

On Wed, Jul 20, 2016 at 4:57 PM, Antoine Pelisse notifications@github.com
wrote:

This seem to have broken the build.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#29153 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGvIKC7WbkzGXQ0GallJQm22ZiD3jCueks5qXrXsgaJpZM4JPQQa
.

@lavalamp
Copy link
Member

it was too slow-- we need a separate presubmit to test that.

@vishh
Copy link
Contributor Author

vishh commented Jul 21, 2016

Just the cross-compilation part or make release? Can we try
cross-compiling just cmd/kubectl as part of presubmit?

On Wed, Jul 20, 2016 at 6:00 PM, Daniel Smith notifications@github.com
wrote:

it was too slow-- we need a separate presubmit to test that.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#29153 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGvIKFgSyz7KwJrJOTuN-dDWvo_ufol_ks5qXsS9gaJpZM4JPQQa
.

@lavalamp
Copy link
Member

cross-compile specifically. Can't make existing presubmits slower than they already are. Single-platform make quick-release is already run.

k8s-github-robot pushed a commit that referenced this pull request Jul 28, 2016
Automatic merge from submit-queue

Bump cadvisor dependencies to latest head. 

Fixes #28619 
Fixes #28997 

This is another try of #29153.

To update cadvisor godeps, we did:
* Bump up docker version to v1.11.2 for both cadvisor [google/cadvisor#1388] and k8s.
* Bump up cadvisor `go-systemd` version to be the same with k8s [google/cadvisor#1390]. Or else, a package `github.com/coreos/pkg/dlopen` will be removed by Godep, because it is used by new `go-systemd` in k8s, but not used by old `go-systemd` in cadvisor.
* Bump up runc version to be the same with docker v1.11.2 just in case.
* Add `github.com/Azure/go-ansiterm` dependency which is needed by docker v1.11.2.
* Change `pkg/util/term/`, because `SetWinsSize` is removed from windows platform in docker v1.11.2. [The first commit]

@vishh 
/cc @ncdc for the `pkg/util/term` change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants