Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Remove -disable-host-node-id=false flag #936

Merged
merged 1 commit into from
Apr 29, 2021
Merged

Conversation

lkysow
Copy link
Member

@lkysow lkysow commented Apr 29, 2021

Don't set -disable-host-node-id=false on Consul Clients because it causes Clients to
not be able to join the cluster on certain hypervisor or Kind setups. This flag was
added in 0.30.0 to stop Consul logging an error when a Client pod was force deleted
but this error does not affect the pod restarting so removing the flag will have
no real effect.

Fixes #901

Checklist:

  • Bats tests added
  • CHANGELOG entry added (HashiCorp engineers only, community PRs should not add a changelog entry)

@lkysow lkysow force-pushed the lkysow/host-node-id branch from 7d7a7f6 to d7c5778 Compare April 29, 2021 17:02
@lkysow lkysow requested review from a team, ndhanushkodi and ishustava and removed request for a team April 29, 2021 17:02
Copy link
Contributor

@ishustava ishustava left a comment

Choose a reason for hiding this comment

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

🙏

Copy link
Contributor

@ndhanushkodi ndhanushkodi left a comment

Choose a reason for hiding this comment

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

🎉

@lkysow lkysow closed this Apr 29, 2021
@lkysow lkysow reopened this Apr 29, 2021
@lkysow lkysow closed this Apr 29, 2021
@lkysow lkysow reopened this Apr 29, 2021
Don't set `-disable-host-node-id=false` on Consul Clients because it causes Clients to
not be able to join the cluster on certain hypervisor or Kind setups. This flag was
added in 0.30.0 to stop Consul logging an error when a Client pod was force deleted
but this error does not affect the pod restarting so removing the flag will have
no real effect.
@lkysow lkysow force-pushed the lkysow/host-node-id branch from d7c5778 to 3e7ddb0 Compare April 29, 2021 18:50
@lkysow lkysow merged commit fbb122c into master Apr 29, 2021
@lkysow lkysow deleted the lkysow/host-node-id branch April 29, 2021 21:25
thisisnotashwin pushed a commit that referenced this pull request May 4, 2021
Don't set `-disable-host-node-id=false` on Consul Clients because it causes Clients to
not be able to join the cluster on certain hypervisor or Kind setups. This flag was
added in 0.30.0 to stop Consul logging an error when a Client pod was force deleted
but this error does not affect the pod restarting so removing the flag will have
no real effect.
thisisnotashwin pushed a commit that referenced this pull request May 4, 2021
Don't set `-disable-host-node-id=false` on Consul Clients because it causes Clients to
not be able to join the cluster on certain hypervisor or Kind setups. This flag was
added in 0.30.0 to stop Consul logging an error when a Client pod was force deleted
but this error does not affect the pod restarting so removing the flag will have
no real effect.
thisisnotashwin pushed a commit that referenced this pull request May 4, 2021
Don't set `-disable-host-node-id=false` on Consul Clients because it causes Clients to
not be able to join the cluster on certain hypervisor or Kind setups. This flag was
added in 0.30.0 to stop Consul logging an error when a Client pod was force deleted
but this error does not affect the pod restarting so removing the flag will have
no real effect.
@ilhaan
Copy link
Contributor

ilhaan commented May 18, 2021

Kind and other hypervisor types that you mentioned need to set -disable-host-node-id to true in order to get Consul Clients working correctly (refer to issues: 9467 and 848).

As per Consul docs here, -disable-host-node-id is false by default, which is what #901 had set in values.yaml and templates/client-daemonset.yaml.

The changelog for this PR states:

This flag was added in 0.30.0 to stop Consul logging an error when a Client pod was force deleted but this error does not affect the pod restarting so removing the flag will have no real effect.

That is incorrect. This was introduced in #901 to allow the override of disableHostNodeID to true for Kind and other hypervisor types (such as OpenNebula 5.12 launched LXD containers as mentioned here)

@lkysow
Copy link
Member Author

lkysow commented May 20, 2021

Hi, please see my comment here #848 (comment).

As per Consul docs here, -disable-host-node-id is false by default

The docs are a bit confusing, the relevant section is:

This defaults to false in Consul prior to version 0.8.5 and in 0.8.5 and later defaults to true

I'm assuming you're running Consul version > 0.8.5 so the default is true.

@ilhaan
Copy link
Contributor

ilhaan commented May 21, 2021

I am running Consul version > 0.8.5. Thanks for the clarification!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants