Skip to content

Conversation

@gmarek
Copy link
Contributor

@gmarek gmarek commented Aug 19, 2015

Fixes to #12912. Depends on #12655, currently includes #12913

cc @dchen1107 @yujuhong @wojtek-t @fgrzadkowski @bgrant0607 @davidopp

@gmarek gmarek added team/master sig/node Categorizes an issue or PR as relevant to SIG Node. labels Aug 19, 2015
@gmarek gmarek changed the title Use KubeletPort reporeted in NodeStatus instead of cluster-wide master config. WIP: Use KubeletPort reporeted in NodeStatus instead of cluster-wide master config. Aug 19, 2015
@k8s-bot
Copy link

k8s-bot commented Aug 19, 2015

GCE e2e build/test failed for commit dc13a043f66d5a880cf23e415861b61bf569c56d.

@k8s-bot
Copy link

k8s-bot commented Aug 19, 2015

GCE e2e build/test failed for commit 9ec22afab43f3fc712419f132e7c35e5f1685d68.

pkg/api/types.go Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

What still uses the read-only port? When I created it (for heapster), @vishh told me that heapster would move to use the secured port and that we could quickly deprecated the RO port. I know that monit was using it as well -- does supervisord need it or can it make an https connection?

Copy link
Contributor

Choose a reason for hiding this comment

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

(If it wasn't clear, I'd really hate for this to become part of the stable v1 API so that we can't remove it)

Copy link
Contributor

Choose a reason for hiding this comment

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

Why is the var named Porty instead of Port?

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see the ReadOnlyPort used anywhere else in this CL (only the KubeletPort). Nor do I see the CadvisorProxy port used. Why are they being added to the node info?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Porty is a typo. The idea behind this change is to make Node object everything's that needed to interact with 'things' (currently Kubelet/CAdvisor, I may add KubeProxy there as well) running on the Node. Adding RO and CAdvisor was pretty straightforward, so I did this. KubeProxy is a bit more tricky, so I left it for later. Those informations are generally for external consumption.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Opened #12968

@gmarek
Copy link
Contributor Author

gmarek commented Aug 20, 2015

Fixes #9325

@k8s-bot
Copy link

k8s-bot commented Aug 20, 2015

GCE e2e build/test failed for commit 3c18a206668edccfab43f10caf09de72c65c6a1c.

@gmarek
Copy link
Contributor Author

gmarek commented Aug 20, 2015

port-forward failure seems related.

@k8s-bot
Copy link

k8s-bot commented Aug 20, 2015

GCE e2e build/test failed for commit 0e2be56aebf5b0291b6b256c128575581450f724.

@k8s-bot
Copy link

k8s-bot commented Aug 20, 2015

GCE e2e build/test failed for commit 559c4bbf018e7922ba71db854bd8fbb9241ccf24.

@k8s-bot
Copy link

k8s-bot commented Aug 20, 2015

GCE e2e build/test failed for commit fe2d46add69aaa80d09bb0af3625032bfdf16042.

@k8s-bot
Copy link

k8s-bot commented Aug 20, 2015

GCE e2e build/test failed for commit f7b04a9a9c1da7b284927518371b96176256ceea.

Copy link
Member

Choose a reason for hiding this comment

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

This is stale.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, but this PR is built on top of #12655, so you needn't worry about the first commit.

@gmarek
Copy link
Contributor Author

gmarek commented Aug 21, 2015

I run an upgrade test:

  • I created a cluster from the head
  • I upgraded the master to the new version (from this PR): everything kept running correctly
  • I upgraded the node to the new version (from this PR) and changed the kubelet port to 10260: everything kept running correctly ('old' Kubelet was serving from port 10250, 'new' one from 10260, daemonPorts were filled only in the 'new' Kubelets Node object)

@gmarek gmarek force-pushed the use_api_ports branch 2 times, most recently from 985a6bd to 059ca2d Compare August 21, 2015 10:10
@k8s-bot
Copy link

k8s-bot commented Oct 21, 2015

GCE e2e test build/test passed for commit f3feff51384e573c03e07a5aa5b5ab35a5d11ba1.

@k8s-bot
Copy link

k8s-bot commented Oct 21, 2015

GCE e2e test build/test passed for commit 26b2f40331f480f8880b3bae146852e6a36e2061.

@k8s-bot
Copy link

k8s-bot commented Oct 21, 2015

GCE e2e test build/test passed for commit 90fb7ed433efa78aab45102d363aaecbe27cb3e1.

@k8s-bot
Copy link

k8s-bot commented Oct 21, 2015

GCE e2e test build/test passed for commit 4e0dea91bbea692e5f7b37c410e122e2b34462db.

@k8s-bot
Copy link

k8s-bot commented Oct 21, 2015

GCE e2e test build/test passed for commit 60404a5.

@lavalamp
Copy link
Contributor

OK, looks like you got rid of the imports I didn't like, so LGTM

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

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

@k8s-bot
Copy link

k8s-bot commented Oct 22, 2015

GCE e2e test build/test passed for commit 60404a5.

@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 Oct 22, 2015

GCE e2e build/test failed for commit 60404a5.

@wojtek-t
Copy link
Member

Jenkins failure is flake:
"Kubectl client Guestbook application should create and stop a working application [Conformance]"

@k8s-bot test this please

@k8s-bot
Copy link

k8s-bot commented Oct 22, 2015

GCE e2e test build/test passed for commit 60404a5.

@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 Oct 23, 2015

GCE e2e test build/test passed for commit 60404a5.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

k8s-github-robot pushed a commit that referenced this pull request Oct 23, 2015
@k8s-github-robot k8s-github-robot merged commit a6b8e11 into kubernetes:master Oct 23, 2015
@saad-ali
Copy link
Member

I suspect this may have broken the build:

20:00:12 Flag shorthand -c has been deprecated, please use --client instead.
20:00:16 +++ [1022 20:00:16] Staging release artifacts to /jenkins-master-data/jobs/kubernetes-build/workspace/_output/gcs-stage
20:00:19 tar: node.yaml: Cannot stat: No such file or directory
20:00:19 tar: Exiting with failure status due to previous errors
20:00:26 +++ [1022 20:00:26] Staging release artifacts to /jenkins-master-data/jobs/kubernetes-build/workspace/_output/gcs-stage
20:00:28 tar: node.yaml: Cannot stat: No such file or directory
20:00:28 tar: Exiting with failure status due to previous errors
20:00:35 +++ [1022 20:00:35] Staging release artifacts to /jenkins-master-data/jobs/kubernetes-build/workspace/_output/gcs-stage
20:00:36 tar: node.yaml: Cannot stat: No such file or directory
20:00:36 tar: Exiting with failure status due to previous errors

I'm going to revert it.

@saad-ali
Copy link
Member

Verified that this broke the build. PR has been reverted.
Please see these builds for details:

  • Jenkins kubernetes-build/5708
  • Jenkins kubernetes-build/5709

Copy link
Member

Choose a reason for hiding this comment

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

sorry for commenting late, only saw this PR when it merged... I think the ConnectionInfoGetter interface that is already responsible for returning the kubelet port should be updated to provide this info...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The problem is that we actually need to read data from etcd to get the Port for a given Kubelet, as it's no longer 'static' (in a sense that each Kubelet may be able to choose it's own port to run on), while we have a single 'KubeletClient' in master. We'll need to remove Port from it eventually, but it needs to stay there for backward compatibility.

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. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/node Categorizes an issue or PR as relevant to SIG Node. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.