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

18723 - pass some of advisor config via --scheduler-config #20331

Closed
wants to merge 13 commits into from
Closed

18723 - pass some of advisor config via --scheduler-config #20331

wants to merge 13 commits into from

Conversation

linsun
Copy link

@linsun linsun commented Jan 29, 2016

@jdef -- reworked the patch based on your late last night's comment. thank you for your help!

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@k8s-bot
Copy link

k8s-bot commented Jan 29, 2016

Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist")

If this message is too spammy, please complain to ixdy.

1 similar comment
@k8s-bot
Copy link

k8s-bot commented Jan 29, 2016

Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist")

If this message is too spammy, please complain to ixdy.

@k8s-github-robot
Copy link

Labelling this PR as size/S

@k8s-github-robot k8s-github-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 29, 2016
@linsun
Copy link
Author

linsun commented Jan 29, 2016

I have signed the IBM corporate CLA -- My ibm email is linsun@us.ibm.com

@@ -351,7 +361,7 @@ func (s *SchedulerServer) serveFrameworkArtifactWithFilename(path string, filena
}

func (s *SchedulerServer) prepareExecutorInfo(hks hyperkube.Interface) (*mesos.ExecutorInfo, error) {
ci := &mesos.CommandInfo{
ci := &mesos.CommandInfo{
Copy link
Member

Choose a reason for hiding this comment

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

Lin, did your git commit trigger a go syntax checker? If not then you need to upgrade your methodology.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

@MikeSpreitzer I just added the hooks - thanks! Looking at the kubernetes master tree, the code was not correctly formatted: https://github.com/kubernetes/kubernetes/blob/master/contrib/mesos/pkg/scheduler/service/service.go -- line 354, so the patch is ok.

Copy link
Contributor

Choose a reason for hiding this comment

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

this still isn't properly formatted

@jdef
Copy link
Contributor

jdef commented Jan 29, 2016

looking better. good rule of thumb: pushed code should compile and pass unit tests.

@jdef
Copy link
Contributor

jdef commented Jan 29, 2016

@ixdy not sure what's going on with the CLA bot here

@googlebot
Copy link

CLAs look good, thanks!

@jdef
Copy link
Contributor

jdef commented Jan 29, 2016

try naming the flags with - and see if the problem goes away. i think
there's some flag munging magic happening somewhere..

On Fri, Jan 29, 2016 at 2:49 PM, googlebot notifications@github.com wrote:

CLAs look good, thanks!


Reply to this email directly or view it on GitHub
#20331 (comment)
.

@jdef
Copy link
Contributor

jdef commented Jan 29, 2016

check out the docs here:
https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/mesos-docker.md

On Fri, Jan 29, 2016 at 2:57 PM, James DeFelice james@mesosphere.io wrote:

try naming the flags with - and see if the problem goes away. i think
there's some flag munging magic happening somewhere..

On Fri, Jan 29, 2016 at 2:49 PM, googlebot notifications@github.com
wrote:

CLAs look good, thanks!


Reply to this email directly or view it on GitHub
#20331 (comment)
.

MikeSpreitzer referenced this pull request in MikeSpreitzer/kubernetes Jan 29, 2016
The executor passes flags on to cadvisor, so it they should
pass through the filtering done in server.go.

Fixes issue kubernetes#18723
@linsun
Copy link
Author

linsun commented Feb 2, 2016

@jdef sorry for the delay. I've reworked for the "_" issue. It took me quite long to get through running the smoke-test locally on my MacOS. I ran into a few issues (opened as JIRA) that I was able to resolve, but a few I could not. So at the end, I was able to run the test on a ubuntu VM. Here is the output, looks good:

root@linsun3:~/kubernetes# ./contrib/mesos/ci/test-smoke.sh -v=2
Cleaning work dir
/root/tmp/kubernetes
Detecting docker client
/usr/bin/docker

  • make clean all
    build/make-clean.sh
    +++ [0202 20:28:33] Verifying Prerequisites....
    !!! [0202 20:28:34] Build image not built. Cannot clean via docker build image.
    +++ [0202 20:28:34] Removing data container
    +++ [0202 20:28:34] Cleaning out local _output directory
    +++ [0202 20:28:34] Deleting docker image kube-build:build-f76adbc52b
    +++ [0202 20:28:34] Cleaning all other untagged docker images
    Deleted: ba1677efed510dec66c1d742103f76b43bb418ce244ab5ba6c80dba6d66274f9
    Deleted: 875d004ee6597a34b5525b183959e28df22ba48dcc01b43f0c18fdb1d3a8eb03
    Deleted: 99153bb5b2cf27c8b51485e452071e37ddb26a2d5b789c0845c72a607a3d20fc
    Deleted: 6d68ea22f393ee43b212907b8968b58b4d5f7a4ab4de4c0ca49a9bb833f7a93e
    Deleted: 8ad6758385b1a2ff8f284ac5914f48501cba240a73956462ccc89df96c1cf5ac
    Deleted: b3685df6252ebbcd67416d78e22986e03953368fe053de226472afb7631555f5
    Deleted: 4cd6a96cfe656498bbf32058ffaaa69ce4ae69d896b4629757610a4bc43db3aa
    Deleted: a93d2ef00ae9abcd38002fa566201d335771a1e7566b5c51dbc2b9bf3fb7bd5f
    Deleted: 2d5960ddd81d6a1711d6bb8b1f68c54e1377c5fb15df9b8e865cdeb23cb696e7
    Deleted: 38741b71be8687ab24f412c003a6d30753c497c078f8932b361142cb8756c745
    Deleted: fb0ba56c2d7844b28464b530cf61e5bdf0fdaf0d65c021b43023151e93df1651
    Deleted: 764bc9c15e70e45bf163710f8b71cbabcfe15e661426c4c673613101c203996d
    Deleted: 414bfa7216615ad4ee873001c7ff4379426e97b47813f3c149548cd64779f2af
    Deleted: 79cd02447b4db7b4e68f784410fb0452ce886cf773ba5f288be4960c72a39614
    Deleted: 63d1729bdcc92e4ff84aa55026ca8f14a85e968c225df09fa732620774f3ee5c
    Deleted: 43f00c01b3a28a220bbc8579cdae9aa462f966b17c59d8d6b46541d121c69ab4
    Deleted: ce6fcdb5c008215409b7944f393f82a9e635aeec94a38a1ee2960cac68b86783
    Deleted: 91f2eb3bc0392f5b43c722cfd0fc99e0b49c44d94ff221fd040d8d79bece8874
    Deleted: 0d376a88d592a91381c4e09fd93b63f57bae20f83678d494a2ca355e596de6f4
    Deleted: 96078bbbd1133a7af654b85a2219273eeac3a85e4e60e45b9fdf4fd048ad8106
    Deleted: 123bb2b94eceaec275718da18e7f5bcd992e699ba62142754ee7b0826b6cb135
    Deleted: afc814718fc08e54a3ee3220fc52ea30301ca308281154192178fffe84049de8
    Deleted: 96da4bbafa3a05bf063d3f4ed4b52380c4b9e5351ab8aa04214817e7b0485688
    Deleted: 4972f75c2dee6b440555c373e61d6f1fd48bbb105b6f97fa96c227870de04c7a
    Deleted: e94a21a29063f83eed34bd448426cd78dd78dc4b66509a3c429027ff958d1d21
    Deleted: 0f4e2d3ead09cf0fde830ef214bcca12c94771e6dbe10dfbba5b422ed0c98d3c
    Deleted: 798e241a59714e76809a59ca0d2e5a0efbc41d99917121bf65e445daedd7afef
    Deleted: 73051696f5f0e8df70eb19f3182f1b983b7c2652121c14f044592bd5d92c955c
    Deleted: 5c099df10e506f43adf9724c50ee051b64fd2d4fa40bdb41dcaa5ba91c3c4615
    rm -rf _output
    rm -rf Godeps/_workspace/pkg
    hack/build-go.sh
    +++ [0202 20:28:36] Building go targets for linux/amd64:
    cmd/kube-proxy
    cmd/kube-apiserver
    cmd/kube-controller-manager
    cmd/kubelet
    cmd/kubemark
    cmd/hyperkube
    cmd/linkcheck
    plugin/cmd/kube-scheduler
    contrib/mesos/cmd/k8sm-scheduler
    contrib/mesos/cmd/k8sm-executor
    contrib/mesos/cmd/k8sm-controller-manager
    contrib/mesos/cmd/km
    cmd/kubectl
    cmd/integration
    cmd/gendocs
    cmd/genkubedocs
    cmd/genman
    cmd/mungedocs
    cmd/genbashcomp
    cmd/genconversion
    cmd/gendeepcopy
    cmd/genswaggertypedocs
    examples/k8petstore/web-server/src
    github.com/onsi/ginkgo/ginkgo
    test/e2e/e2e.test
    +++ [0202 20:30:24] Placing binaries
  • trap 'timeout 5m ./cluster/kube-down.sh' EXIT
  • ./cluster/kube-down.sh
    Bringing down cluster using provider: mesos/docker
    Verifying required commands
    Stopping mesos/docker cluster
    No stopped containers
    Done
  • ./cluster/kube-up.sh
    ... Starting cluster using provider: mesos/docker
    ... calling verify-prereqs
    Verifying required commands
    ... calling kube-up
    Creating Mesos Work Dir: /root/tmp/kubernetes/mesosslave
    Pulling Docker images
    Building Docker images
    Installing nsenter to /target
    Installing docker-enter to /target
    Installing importenv to /target
    Workspace created: /go/src/github.com/GoogleCloudPlatform/kubernetes/k8sm-workspace-X0c6MM
    Copying files to workspace
    ./
    ./bin/
    ./bin/socat
    ./bin/nsenter
    /go/src/github.com/GoogleCloudPlatform/kubernetes
    Building docker image mesosphere/kubernetes-mesos:latest
  • docker build -t mesosphere/kubernetes-mesos:latest .
    Sending build context to Docker daemon 80.02 MB
    Step 1 : FROM ubuntu:14.04.3
    ---> 6cc0fc2a5ee3
    Step 2 : MAINTAINER Mesosphere support@mesosphere.io
    ---> Using cache
    ---> 31f6beb01e53
    Step 3 : RUN locale-gen en_US.UTF-8
    ---> Using cache
    ---> 7d1b96880cef
    Step 4 : RUN dpkg-reconfigure locales
    ---> Using cache
    ---> 670d08e556e3
    Step 5 : ENV LANG en_US.UTF-8
    ---> Using cache
    ---> 67705219cdfb
    Step 6 : ENV LC_ALL en_US.UTF-8
    ---> Using cache
    ---> 006885c46ca3
    Step 7 : RUN apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -qqy ca-certificates wget curl && apt-get clean
    ---> Using cache
    ---> 68c9fd3c883d
    Step 8 : RUN curl -o- https://raw.githubusercontent.com/karlkfi/resolveip/v1.0.2/install.sh | bash
    ---> Using cache
    ---> ac238fa132af
    Step 9 : COPY ./bin/* /usr/local/bin/
    ---> e5494e320db5
    Removing intermediate container 012b6da2a597
    Step 10 : COPY ./opt/* /opt/
    ---> 168c719e9b73
    Removing intermediate container 2b139b79e543
    Successfully built 168c719e9b73
  • set +o xtrace
    Built docker image mesosphere/kubernetes-mesos:latest
    Workspace deleted: /go/src/github.com/GoogleCloudPlatform/kubernetes/k8sm-workspace-X0c6MM
    Workspace created: /go/src/github.com/GoogleCloudPlatform/kubernetes/k8sm-test-workspace-rWY0iv
  • echo 'Copying files to workspace'
    Copying files to workspace
  • mkdir -p /go/src/github.com/GoogleCloudPlatform/kubernetes/k8sm-test-workspace-rWY0iv/bin
  • cp -a /go/src/github.com/GoogleCloudPlatform/kubernetes/cluster/mesos/docker/common/bin/await-file /go/src/github.com/GoogleCloudPlatform/kubernetes/cluster/mesos/docker/common/bin/await-health-check /go/src/github.com/GoogleCloudPlatform/kubernetes/cluster/mesos/docker/common/bin/health-check /go/src/github.com/GoogleCloudPlatform/kubernetes/k8sm-test-workspace-rWY0iv/bin/
  • cp -a /go/src/github.com/GoogleCloudPlatform/kubernetes/cluster/mesos/docker/test/bin/install-etcd.sh /go/src/github.com/GoogleCloudPlatform/kubernetes/k8sm-test-workspace-rWY0iv/bin/
  • cp -a /go/src/github.com/GoogleCloudPlatform/kubernetes/cluster/mesos/docker/test/Dockerfile /go/src/github.com/GoogleCloudPlatform/kubernetes/k8sm-test-workspace-rWY0iv/
  • cd /go/src/github.com/GoogleCloudPlatform/kubernetes/k8sm-test-workspace-rWY0iv
  • echo 'Building docker image mesosphere/kubernetes-mesos-test:latest'
    Building docker image mesosphere/kubernetes-mesos-test:latest
  • set -o xtrace
  • docker build -t mesosphere/kubernetes-mesos-test:latest .
    Sending build context to Docker daemon 11.78 kB
    Step 1 : FROM golang:1.4.3
    ---> da0462d15648
    Step 2 : MAINTAINER Mesosphere support@mesosphere.io
    ---> Using cache
    ---> 97bfca9c13d2
    Step 3 : RUN apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -qqy wget curl g++ make mercurial git rsync patch python python-pip apt-transport-https && apt-get clean
    ---> Using cache
    ---> 5b0a4bbee3ce
    Step 4 : RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D && mkdir -p /etc/apt/sources.list.d && echo deb https://apt.dockerproject.org/repo ubuntu-trusty main > /etc/apt/sources.list.d/docker.list && apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -qqy docker-engine=1.8.1-0~trusty && apt-get clean
    ---> Using cache
    ---> d5beb7eb0c1c
    Step 5 : RUN pip install -U docker-compose==1.5.0
    ---> Using cache
    ---> f3bbe87aeabd
    Step 6 : RUN go get github.com/tools/godep
    ---> Using cache
    ---> 77a1a8fe19b0
    Step 7 : RUN mkdir -p /go/src/github.com/GoogleCloudPlatform/kubernetes
    ---> Using cache
    ---> 5987e2c4ea4c
    Step 8 : WORKDIR /go/src/github.com/GoogleCloudPlatform/kubernetes
    ---> Using cache
    ---> ef9b243ab28e
    Step 9 : COPY ./bin/* /usr/local/bin/
    ---> Using cache
    ---> 3f11a691b898
    Step 10 : RUN install-etcd.sh
    ---> Using cache
    ---> 42ef3e4929e5
    Step 11 : ENTRYPOINT bash
    ---> Using cache
    ---> a85ff5c12886
    Successfully built a85ff5c12886
  • set +o xtrace
    Built docker image mesosphere/kubernetes-mesos-test:latest
    Workspace deleted: /go/src/github.com/GoogleCloudPlatform/kubernetes/k8sm-test-workspace-rWY0iv
    Creating Auth Dir: /root/tmp/kubernetes/auth
    Creating Certificate Authority
    Certificate Authority Key: /root/tmp/kubernetes/auth/root-ca.key
    Certificate Authority Cert: /root/tmp/kubernetes/auth/root-ca.crt
    Creating Service Account RSA Key
    Service Account Key: /root/tmp/kubernetes/auth/service-accounts.key
    Creating User Accounts
    Token Users: /root/tmp/kubernetes/auth/token-users
    Basic-Auth Users: /root/tmp/kubernetes/auth/basic-users
    Starting mesos/docker cluster
    Creating docker_ambassador_1
    Creating docker_etcd_1
    Creating docker_mesosmaster1_1
    Creating docker_apiserver_1
    Creating docker_keygen_1
    Creating docker_controller_1
    Creating docker_mesosslave_1
    Creating docker_scheduler_1
    Scaling mesos/docker cluster to 2 slaves
    Creating and starting 2 ... done
    Waiting (up to 180s) for http://apiserver:8888/healthz to be healthy
    Health check of http://apiserver:8888/healthz succeeded!
    KUBE_MASTER_IP: 172.17.0.5:6443
    KUBE_NODE_IP_ADDRESSES: [172.17.0.10 172.17.0.8]
    cluster "mesos/docker" set.
    context "mesos/docker" set.
    user "cluster-admin" set.
    switched to context "mesos/docker".
    Wrote config for mesos/docker to /root/.kube/config
    Deploying Addons
    namespace "kube-system" created
    namespace "static-pods" created
    Deploying DNS Addon
    Workspace created: /tmp/kube-dns.lmVBfI
    replicationcontroller "kube-dns-v10" created
    service "kube-dns" created
    Workspace deleted: /tmp/kube-dns.lmVBfI
    Deploying UI Addon
    replicationcontroller "kube-ui-v4" created
    service "kube-ui" created
    kube-dns: ....................................................................................................................................................................................Pending
    Dumping logs to '/root/tmp/kubernetes/log'
  • timeout 5m ./cluster/kube-down.sh
    Bringing down cluster using provider: mesos/docker
    Verifying required commands
    Stopping mesos/docker cluster
    Killing docker_mesosslave_2 ... done
    Killing docker_scheduler_1 ... done
    Killing docker_mesosslave_1 ... done
    Killing docker_controller_1 ... done
    Killing docker_apiserver_1 ... done
    Killing docker_mesosmaster1_1 ... done
    Killing docker_etcd_1 ... done
    Killing docker_ambassador_1 ... done
    Going to remove docker_mesosslave_2, docker_scheduler_1, docker_mesosslave_1, docker_controller_1, docker_keygen_1, docker_apiserver_1, docker_mesosmaster1_1, docker_etcd_1, docker_ambassador_1
    Removing docker_mesosslave_2 ... done
    Removing docker_scheduler_1 ... done
    Removing docker_mesosslave_1 ... done
    Removing docker_controller_1 ... done
    Removing docker_keygen_1 ... done
    Removing docker_apiserver_1 ... done
    Removing docker_mesosmaster1_1 ... done
    Removing docker_etcd_1 ... done
    Removing docker_ambassador_1 ... done
    Done

@linsun
Copy link
Author

linsun commented Feb 2, 2016

I'm checking on the above failure from "Travis CI build failed".

@linsun
Copy link
Author

linsun commented Feb 2, 2016

@jdef looking at the latest CI test result, it seems cadvisor is expecting "_" like housekeeping_interval, after I change it to housekeeping-interval. Any advice?

@jdef
Copy link
Contributor

jdef commented Feb 5, 2016

Perhaps we try this approach? Since the _ flags are present in every km binary I think we should write a helper (perhaps in contrib/mesos/pkg/cadvisor) to simplify access to the global flags of cadvisor, along the lines of what the example scheduler from mesos-go does.

For example:

func HousekeepingInterval(defaultValue time.Duration) (v time.Duration) {
    v = defaultValue
    if f := flag.Lookup("housekeeping_interval"); f != nil && f.Value != nil {
        if vstr := f.Value.String(); vstr != "" {
            v = // ... attempt to parse it here
        }
    }
    return
}
  • The scheduler would invoke the above func and pass housekeeping_interval flag to the executor, always
  • The minion would invoke the above func and pass housekeeping_interval flag to the kubelet-executor process
  • The scheduler and minion xxxServer structs don't require any additional fields
  • No additional flags are required at all by k8sm
  • Should add a nice big TODO near these funcs in the new contrib/mesos/pkg/cadvisor package that says how the code should die once cadvisor is more properly integrated into the kubelet
    • we'll know exactly when this happens because smoke tests will consistently fail since the _ flags will have disappeared from the km binary

@k8s-github-robot
Copy link

PR needs rebase

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 8, 2016
@linsun
Copy link
Author

linsun commented Feb 9, 2016

@jdef, thank you for your comment! I'm looking into that and will provide update.

@k8s-github-robot k8s-github-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 9, 2016
@k8s-github-robot
Copy link

Labelling this PR as size/XS

@k8s-github-robot k8s-github-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 9, 2016
@k8s-github-robot
Copy link

PR needs rebase

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 10, 2016
@jdef
Copy link
Contributor

jdef commented Feb 16, 2016

were there any additional questions/concerns with the approach I suggested?

@linsun
Copy link
Author

linsun commented Feb 16, 2016

Sorry for the delayed reply! My priority has changed, and I hope to look at this soon!

@k8s-bot
Copy link

k8s-bot commented Feb 17, 2016

Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist")

If this message is too spammy, please complain to ixdy.

@linsun
Copy link
Author

linsun commented Mar 10, 2016

Sorry for the super long delay - just started to look at this. @jdef, I don't fully understand your comment on Feb5. Are you saying creating a new pkg contrib/mesos/pkg/cadvisor and put the helper go class in there? If so, how does this helper method getting the flags passed from user from the Kubernetes scheduler?

Also, why cannot I simply not use -, e.g. just use housekeeping_interval and remove the need for housekeeping-interval?

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@k8s-github-robot k8s-github-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 10, 2016
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@linsun
Copy link
Author

linsun commented Mar 14, 2016

@jdef with my latest change, the km scheduler output looks ok, i.e. I no longer get 2 entries for each.

  --global_housekeeping_interval=1m0s: Interval between container global housekeepings
  --housekeeping_interval=1s: Interval between container housekeepings

I'm checking on my CLA, and check if I can test this. Thanks.

@jdef
Copy link
Contributor

jdef commented Mar 15, 2016

sorry it's taken me a while to get back to this. thanks for revising this PR. i think there's a way forward without adding flags to the k8sm servers the "normal" way, but instead to just leverage the fact that the cadvisor flags are global and use that to more simply forward the values from process to process. this is what i was trying to say back in Feb (from your response it seems that my writing did not properly convey the idea).

the cadvisor flags are being refactored and will, at some point, no longer be global. we're still waiting to see what form that will take. in the meantime, i'm trying to avoid changes to the scheduler and minion flag sets for this.

see #22974

@linsun
Copy link
Author

linsun commented Mar 15, 2016

@jdef thank you for the code change and other pointers! Sorry I didn't quite understand how the util class can get the two flags earlier. I'm going to close this pull request and give your changes a try!

@linsun linsun closed this Mar 15, 2016
@jdef
Copy link
Contributor

jdef commented Mar 15, 2016

great - let me know if it works for you. if so, maybe we can squeeze this
changeset into the 1.2 release

On Tue, Mar 15, 2016 at 1:54 PM, Lin Sun notifications@github.com wrote:

@jdef https://github.com/jdef thank you for the code change and other
pointers! Sorry I didn't quite understand how the util class can get the
two flags earlier. I'm going to close this pull request and give your
changes a try!


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#20331 (comment)

@linsun
Copy link
Author

linsun commented Mar 29, 2016

This issue can be closed now, given @jdef has merged in this commit (thanks much!): #22974

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform/mesos 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.

7 participants