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

Distinguish between reporting probes and controlling probes #1043

Merged
merged 3 commits into from
Feb 26, 2016

Conversation

2opremio
Copy link
Contributor

Fixes #1040

@2opremio
Copy link
Contributor Author

It would be good to know why go vet and friends didn't catch the errors not being returned.

@2opremio 2opremio changed the title Return response errors Distinguish between reporting probes and controlling probes Feb 26, 2016
@2opremio
Copy link
Contributor Author

We should also distinguish between reporting hosts and containing hosts, otherwise we get strange stuff in the UI like this container details pane:

screen shot 2016-02-26 at 02 06 28

(note the three hosts on the top). I will create a separate ticket for this.

@tomwilkie
Copy link
Contributor

Its not go vet that catches that, its errcheck.

@tomwilkie tomwilkie self-assigned this Feb 26, 2016
@@ -209,4 +209,6 @@ const (
HostNodeID = "host_node_id"
// ProbeID is the random ID of the probe which generated the specific node.
ProbeID = "probe_id"
// ControlProbeID is the random ID of the probe which controls the specific node.
ControlProbeID = "control_probe_id"

This comment was marked as abuse.

@tomwilkie
Copy link
Contributor

I'd remove the extra ControlProbeID, its redundant - ProbeID is only used from controls, and it was getting added where it shouldn't - by the host tagger, on container nodes the kubernetes reported is reporting.

I would stop the host tagger from adding the ProbeID to all nodes that probe reports, and instead make the docker report add it to the nodes it controls. And update the comment on ProbeID constant. Does that make sense?

@tomwilkie
Copy link
Contributor

I'm Tom and I approve of this change.

tomwilkie added a commit that referenced this pull request Feb 26, 2016
Distinguish between reporting probes and controlling probes
@tomwilkie tomwilkie merged commit ef1fc2a into master Feb 26, 2016
@tomwilkie tomwilkie deleted the 1040-docker-exec-crash branch February 26, 2016 15:23
davkal added a commit that referenced this pull request Feb 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants