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

MESOS: don't attempt to schedule static pods #13943

Merged
merged 1 commit into from Nov 16, 2015

Conversation

jdef
Copy link
Contributor

@jdef jdef commented Sep 14, 2015

TODO:

  • add static pod to mesos-docker cluster for testing
  • restructure static pod config/zipper code to be more amenable to munging
  • modify static pod configs to include the proper binding annotation
  • switch from zip archive to gzip'd api.PodList for static pods
  • write the host binding annotation in the executor, not the scheduler; clean up procurement!
  • unit tests
  • e2e test for static pods

xref mesosphere/kubernetes-mesos#493

was BLOCKED by:

@jdef jdef added kind/bug Categorizes issue or PR as related to a bug. area/platform/mesos team/mesosphere labels Sep 14, 2015
@jdef jdef self-assigned this Sep 14, 2015
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

staticPodCPUs += float64(cpu)
staticPodMem += float64(mem)

// TODO(jdef) add binding annotation so that static pods aren't picked up by the scheduler
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is where we'd add the missing binding annotation

@k8s-bot
Copy link

k8s-bot commented Sep 14, 2015

GCE e2e build/test failed for commit 8d748482417f59c41ec1f20f690c9c1f71674963.

@k8s-github-robot k8s-github-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 15, 2015
@k8s-github-robot
Copy link

Labelling this PR as size/L

@sttts sttts deleted the static-pods branch September 16, 2015 07:14
@jdef jdef restored the static-pods branch September 16, 2015 18:09
@k8s-bot
Copy link

k8s-bot commented Sep 17, 2015

GCE e2e build/test passed for commit b24523b0f13f7d77cf17d5fe38c1b3909d4c0f9b.

@jdef
Copy link
Contributor Author

jdef commented Sep 17, 2015

@sttts why did you delete this branch?

@sttts
Copy link
Contributor

sttts commented Sep 17, 2015

Oops. Sorry. I thought that's the old static-pods implementation branch.

@sttts
Copy link
Contributor

sttts commented Sep 17, 2015

We should think about some branch naming scheme.

@jdef
Copy link
Contributor Author

jdef commented Sep 17, 2015

agreed. for example, if it's tied one of our k8sm issues, perhaps something
like k8sm-{issueId}-{shortName}

On Thu, Sep 17, 2015 at 11:21 AM, Dr. Stefan Schimanski <
notifications@github.com> wrote:

We should think about some branch naming scheme.


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

@sttts
Copy link
Contributor

sttts commented Sep 17, 2015

[k8sm-{issueid}]-{feature|cleanup|bug}-{shortName}

"k8s.io/kubernetes/pkg/api/resource"
client "k8s.io/kubernetes/pkg/client/unversioned"
clientauth "k8s.io/kubernetes/pkg/client/unversioned/auth"
"k8s.io/kubernetes/pkg/master/ports"
etcdstorage "k8s.io/kubernetes/pkg/storage/etcd"
"k8s.io/kubernetes/pkg/tools"

// lock to this API version, compilation will fail when this becomes unsupported
_ "k8s.io/kubernetes/pkg/api/v1"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should probably invoke an empty/noop func in v1 to really force the compiler to pick up on this (endpoints controller used to do something similar with the old v1beta1, v1beta2)

@k8s-bot
Copy link

k8s-bot commented Sep 18, 2015

GCE e2e build/test passed for commit 22378430a65e627cec496c992fdd30d71174c9ef.

@jdef
Copy link
Contributor Author

jdef commented Sep 18, 2015

@sttts @s-urbaniak PTAL (yes, I still need to write unit tests)

@k8s-bot
Copy link

k8s-bot commented Sep 18, 2015

GCE e2e build/test passed for commit b5978f3341dd94e8c21d7d74ae24871d3cadbb8a.

@k8s-github-robot k8s-github-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 18, 2015
@k8s-github-robot
Copy link

Labelling this PR as size/XL

@@ -158,6 +158,7 @@ scheduler:
--mesos-master=mesosmaster1:5050
--cluster-dns=10.10.10.10
--cluster-domain=cluster.local
--static-pods-config=/static-pods
Copy link
Contributor

Choose a reason for hiding this comment

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

Before merging we should remove this commit again.

@k8s-bot
Copy link

k8s-bot commented Nov 13, 2015

GCE e2e build/test failed for commit e08e4564df0371bf6c113f2799d1c95f4ce15b80.

@k8s-bot
Copy link

k8s-bot commented Nov 13, 2015

GCE e2e build/test failed for commit 2429fb2da3450d24731bc972deb55fb09332277c.

@googlebot
Copy link

CLAs look good, thanks!

1 similar comment
@googlebot
Copy link

CLAs look good, thanks!

- add busybox static pod to mesos-docker cluster
- customize static pods with binding annotations
- code cleanup
- removed hacky podtask.And func; support minimal resources for static pods when resource accounting is disabled
- removed zip archive of static pods, changed to gzip of PodList json
- pod utilities moved to package podutil
- added e2e test
- merge watched mirror pods into the mesos pod config stream
@googlebot
Copy link

CLAs look good, thanks!

@k8s-bot
Copy link

k8s-bot commented Nov 13, 2015

GCE e2e build/test failed for commit f8517c2067632f979296ba106ed13ab8e5c03055.

@k8s-bot
Copy link

k8s-bot commented Nov 13, 2015

GCE e2e build/test failed for commit 3d3577b.

@jdef
Copy link
Contributor Author

jdef commented Nov 16, 2015

@k8s-bot please test this

@sttts
Copy link
Contributor

sttts commented Nov 16, 2015

@k8s-bot test this please

@k8s-bot
Copy link

k8s-bot commented Nov 16, 2015

GCE e2e test build/test passed for commit 3d3577b.

Op: kubetypes.UPDATE,
Pods: []*api.Pod{oldPod},
})
k.sendPodsSnapshot()
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a comment that we send the first birth cry here with an empty pod list?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is more like a death-cry. is your comment misplaced?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh right. Didn't see the context in the diff.

@sttts
Copy link
Contributor

sttts commented Nov 16, 2015

Small nit. Otherwise, looks good to me.

@@ -240,10 +251,7 @@ func (k *Executor) Registered(driver bindings.ExecutorDriver,
// emit an empty update to allow the mesos "source" to be marked as seen
Copy link
Contributor

Choose a reason for hiding this comment

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

here we have the birth cry 👍

@jdef jdef added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 16, 2015
@k8s-github-robot
Copy link

Continuous integration appears to have missed, closing and re-opening to trigger it

@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 Nov 16, 2015

GCE e2e test build/test passed for commit 3d3577b.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

k8s-github-robot pushed a commit that referenced this pull request Nov 16, 2015
@k8s-github-robot k8s-github-robot merged commit a999c0f into kubernetes:master Nov 16, 2015
sttts pushed a commit to mesosphere-backup/kubernetes that referenced this pull request Nov 17, 2015
@sttts sttts deleted the static-pods branch November 18, 2015 10:29
sttts pushed a commit to mesosphere-backup/kubernetes that referenced this pull request Nov 30, 2015
s-urbaniak pushed a commit to mesosphere-backup/kubernetes that referenced this pull request Dec 10, 2015
jdef pushed a commit to mesosphere-backup/kubernetes that referenced this pull request Jan 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform/mesos kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants