Skip to content

Deprecate DNS Poller in v1.8#10629

Merged
pchaigno merged 1 commit intocilium:masterfrom
soumynathan:deprecate-dns-poller
Apr 21, 2020
Merged

Deprecate DNS Poller in v1.8#10629
pchaigno merged 1 commit intocilium:masterfrom
soumynathan:deprecate-dns-poller

Conversation

@soumynathan
Copy link
Copy Markdown

This patch deprecates the use of --tofqdns-enable-poller and
--tofqdns-enable-poller-events option in v1.8.

Fixes: #8604
Signed-off-by: Swaminathan Vasudevan svasudevan@suse.com

@soumynathan soumynathan requested a review from a team March 19, 2020 04:39
@soumynathan soumynathan requested a review from a team as a code owner March 19, 2020 04:39
@maintainer-s-little-helper
Copy link
Copy Markdown

Please set the appropriate release note label.

@coveralls
Copy link
Copy Markdown

coveralls commented Mar 19, 2020

Coverage Status

Coverage decreased (-0.006%) to 44.667% when pulling 50ea33b on soumynathan:deprecate-dns-poller into 6bcbf2d on cilium:master.

@soumynathan soumynathan force-pushed the deprecate-dns-poller branch from ff98005 to 5665580 Compare March 19, 2020 05:16
Copy link
Copy Markdown
Member

@joestringer joestringer left a comment

Choose a reason for hiding this comment

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

Thanks for taking this on! I see that there's still some other policy page documentation which talks about this feature, could you please remove that documentation in this PR too? That way we won't be telling users how to configure an option that's already deprecated.

Also, how do you want to track the final removal in v1.9? If we mark the commit and PR here to "Fix" #8604 then that issue will be closed. Should we keep it open until we fully remove this functionality?

I'll also rope in @raybejjani in case he has any thoughts here.

@joestringer joestringer requested a review from raybejjani March 19, 2020 06:54
@joestringer joestringer added the release-note/minor This PR changes functionality that users may find relevant to operating Cilium. label Mar 19, 2020
Copy link
Copy Markdown
Member

@vadorovsky vadorovsky left a comment

Choose a reason for hiding this comment

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

@soumynathan
Copy link
Copy Markdown
Author

Apart from documentation, also this description needs to be changed:

https://github.com/soumynathan/cilium/blob/566558097bda1bd9615bd1950a00513dc09ecb1c/daemon/cmd/daemon_main.go#L683-L684

Regarding the documentation, it probably needs a change here:

https://github.com/soumynathan/cilium/blame/566558097bda1bd9615bd1950a00513dc09ecb1c/Documentation/policy/language.rst#L1041-L1042

will address your comments

@soumynathan
Copy link
Copy Markdown
Author

Thanks for taking this on! I see that there's still some other policy page documentation which talks about this feature, could you please remove that documentation in this PR too? That way we won't be telling users how to configure an option that's already deprecated.

Also, how do you want to track the final removal in v1.9? If we mark the commit and PR here to "Fix" #8604 then that issue will be closed. Should we keep it open until we fully remove this functionality?

I'll also rope in @raybejjani in case he has any thoughts here.

Sure will remove the fix tag and we can keep this bug open in that case.

@joestringer
Copy link
Copy Markdown
Member

Sure will remove the fix tag and we can keep this bug open in that case.

@soumynathan FYI you can use "Related: ..." tag to link the issue without autoclosing it.

@soumynathan
Copy link
Copy Markdown
Author

Sure will remove the fix tag and we can keep this bug open in that case.

@soumynathan FYI you can use "Related: ..." tag to link the issue without autoclosing it.

Thanks will do.

@soumynathan soumynathan force-pushed the deprecate-dns-poller branch 2 times, most recently from efa1f51 to d7a2723 Compare March 19, 2020 18:05
Copy link
Copy Markdown
Member

@vadorovsky vadorovsky left a comment

Choose a reason for hiding this comment

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

Only one nit. Otherwise looks good, thanks for addressing my previous comments!

Comment thread Documentation/policy/language.rst Outdated
@soumynathan soumynathan force-pushed the deprecate-dns-poller branch from d7a2723 to 09efe92 Compare March 19, 2020 20:10
Copy link
Copy Markdown
Member

@vadorovsky vadorovsky left a comment

Choose a reason for hiding this comment

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

Now looks awesome, thanks!

@vadorovsky
Copy link
Copy Markdown
Member

test-me-please

@vadorovsky
Copy link
Copy Markdown
Member

test-docs-please

@aanm
Copy link
Copy Markdown
Member

aanm commented Mar 20, 2020

test-me-please

Copy link
Copy Markdown
Member

@aanm aanm left a comment

Choose a reason for hiding this comment

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

Comment thread Documentation/policy/language.rst Outdated
Comment thread daemon/cmd/daemon_main.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm ok removing this but since one can still choose to enable the poller this logic still applies (at https://github.com/cilium/cilium/blob/master/pkg/option/config.go#L2149-L2156). It might be best to edit this comment once that logic is removed.

@aanm
Copy link
Copy Markdown
Member

aanm commented Apr 15, 2020

ping @soumynathan

Comment thread Documentation/policy/language.rst Outdated
@soumynathan
Copy link
Copy Markdown
Author

ping @soumynathan

@soumynathan soumynathan force-pushed the deprecate-dns-poller branch from 09efe92 to ff8435e Compare April 15, 2020 06:29
@soumynathan soumynathan force-pushed the deprecate-dns-poller branch from ff8435e to 6b19215 Compare April 15, 2020 06:35
Comment thread Documentation/policy/language.rst Outdated
@soumynathan soumynathan force-pushed the deprecate-dns-poller branch from 6b19215 to a8de096 Compare April 15, 2020 07:39
@joestringer
Copy link
Copy Markdown
Member

test-me-please

@joestringer
Copy link
Copy Markdown
Member

Cilium-Ginkgo-Tests hit this:

10:18:28      runtime: --- a/Documentation/cmdref/cilium-agent.md
10:18:28      runtime: +++ b/Documentation/cmdref/cilium-agent.md
10:18:28      runtime: @@ -167,7 +167,7 @@ cilium-agent [flags]
10:18:28      runtime:        --tofqdns-enable-dns-compression                Allow the DNS proxy to compress responses to endpoints that are larger than 512 Bytes or the EDNS0 option, if present (default true)
10:18:28      runtime:        --tofqdns-endpoint-max-ip-per-hostname int      Maximum number of IPs to maintain per FQDN name for each endpoint (default 50)
10:18:28      runtime:        --tofqdns-max-deferred-connection-deletes int   Maximum number of IPs to retain for expired DNS lookups with still-active connections (default 10000)
10:18:28      runtime: -      --tofqdns-min-ttl int                           The minimum time, in seconds, to use DNS data for toFQDNs policies (default 3600 )
10:18:28      runtime: +      --tofqdns-min-ttl int                           The minimum time, in seconds, to use DNS data for toFQDNs policies. (default 3600 )
10:18:28      runtime:        --tofqdns-pre-cache string                      DNS cache data at this path is preloaded on agent startup
10:18:28      runtime:        --tofqdns-proxy-port int                        Global port on which the in-agent DNS proxy should listen. Default 0 is a OS-assigned port.
10:18:28      runtime:        --tofqdns-proxy-response-max-delay duration     The maximum time the DNS proxy holds an allowed DNS response before sending it along. Responses are sent as soon as the datapath is updated with the new IP information. (default 100ms)
10:18:31      runtime: HINT: to fix this, run 'make -C Documentation update-cmdref ; git commit Documentation/cmdref --message "docs: Update cmdref"'
10:18:32      runtime: Makefile:30: recipe for target 'check' failed
10:18:32      runtime: make[1]: Leaving directory '/home/vagrant/go/src/github.com/cilium/cilium/Documentation'
10:18:32      runtime: make[1]: *** [check] Error 1
10:18:32      runtime: Makefile:478: recipe for target 'postcheck' failed
10:18:32      runtime: make: *** [postcheck] Error 2

https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-Validated/18980/execution/node/122/log/

(/cc @errordeveloper why wasn't this picked up by the GH helper? Seems like it should have been run 6 days ago if that makes any difference)

This patch deprecates the use of --tofqdns-enable-poller and
--tofqdns-enable-poller-events option in v1.8.

Related: cilium#8604
Signed-off-by: Swaminathan Vasudevan <svasudevan@suse.com>
@soumynathan soumynathan force-pushed the deprecate-dns-poller branch from a8de096 to 50ea33b Compare April 21, 2020 03:57
@pchaigno
Copy link
Copy Markdown
Member

test-me-please

@pchaigno pchaigno merged commit b8971ff into cilium:master Apr 21, 2020
@errordeveloper
Copy link
Copy Markdown
Contributor

@joestringer the GH Actions job doesn't build the binaries, it operates only on Documentation/Makefile right now.

tklauser added a commit that referenced this pull request Jul 22, 2020
The DNS poller was deprecated in the 1.8 release and all documentation
on how to configure it should have been removed as per [1]

[1] #10629 (review)

However, the respective helm option (which disables the DNS poller by
default) wasn't removed. Do so now.

Related: #8604
Fixes: b8971ff ("Deprecate DNS Poller in v1.8")

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
christarazi pushed a commit that referenced this pull request Jul 22, 2020
The DNS poller was deprecated in the 1.8 release and all documentation
on how to configure it should have been removed as per [1]

[1] #10629 (review)

However, the respective helm option (which disables the DNS poller by
default) wasn't removed. Do so now.

Related: #8604
Fixes: b8971ff ("Deprecate DNS Poller in v1.8")

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
pchaigno pushed a commit that referenced this pull request Jul 23, 2020
[ upstream commit 3591629 ]

The DNS poller was deprecated in the 1.8 release and all documentation
on how to configure it should have been removed as per [1]

[1] #10629 (review)

However, the respective helm option (which disables the DNS poller by
default) wasn't removed. Do so now.

Related: #8604
Fixes: b8971ff ("Deprecate DNS Poller in v1.8")

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Paul Chaignon <paul@cilium.io>
christarazi pushed a commit that referenced this pull request Jul 23, 2020
[ upstream commit 3591629 ]

The DNS poller was deprecated in the 1.8 release and all documentation
on how to configure it should have been removed as per [1]

[1] #10629 (review)

However, the respective helm option (which disables the DNS poller by
default) wasn't removed. Do so now.

Related: #8604
Fixes: b8971ff ("Deprecate DNS Poller in v1.8")

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Paul Chaignon <paul@cilium.io>
tklauser added a commit that referenced this pull request Sep 21, 2020
The DNS Poller was deprecated in v1.8 in #10629 and announced to be
removed in v1.9. Remove it now.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
@tklauser tklauser mentioned this pull request Sep 21, 2020
qmonnet pushed a commit that referenced this pull request Sep 22, 2020
The DNS Poller was deprecated in v1.8 in #10629 and announced to be
removed in v1.9. Remove it now.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/minor This PR changes functionality that users may find relevant to operating Cilium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate DNS Poller in v1.8, remove in v1.9

8 participants