-
Notifications
You must be signed in to change notification settings - Fork 6
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
Followers not joining cluster #66
Comments
@Narragansett Could you describe your running configuration and which version of the module are you using? |
I'm not using any configuration. I'm using latest master branch from here - https://github.com/binlab/terraform-aws-vault-ha-raft |
I tried pulling master again, minimal non-important changes, e.g. enable debug, declare private_key as sensitive=true, etc. Same result, only the leader is part of the cluster. Followers are absent. Can you try it, We need to build it from master. Should be close but isn't working. ty! node2 node2.vault.int:8201 leader true |
Has anyone else tried this from master? I keep trying, clone master, but all I get is one leader and no followers. Please help! |
you need at least some Terraform code to call module, that's what I mean
for a cluster mode you need at least 3 nodes, it's correct. But for testing, even one node should work |
Vault module from Then you need to initialise a cluster, manual here: Initializing the newly created cluster. After successful initialization and login, you should see the following screen by the link (example): |
Interesting. I pulled master again, minimal changes and I still get only one node joined the cluster, attachment. I'm also attaching the minimal changes needed to get it running with Terraform v1.0.4. cluster_count is default = 3 Let me think what else to do. We can't be very far apart. thank you, |
I notice your testing screenshot, token login at bottom of initialization page, shows c 2021 Hashicorp Vault 1.4.2. How can this be? 1.4.2 was released early in 2020. Now when I pull master and build, variables.tf, line 562: default = "1.8.1". That is the difference. Could you try current master please? That is what is not working, e.g. has only one active node in a cluster of 3. Thank you, |
I tried Vault 1.4.1 with same result, only one node in the cluster. I don't see any significant differences between us, indeed I made only the few necessary changes to get it to work, now using Terraform v1.0.5. Let me think what else it could be, ty I need it to work in a cluster to work on HA concerns. |
this is really very interesting but seems I guess what could be the reason. Did you try a fresh install from an example or just update the existing deployment? This is important because some resources are not updated, and if my guesses are correct then this may be the reason |
I am doing a fresh install each time. My deploy cycle is - terraform init (once) --> terraform apply --> terraform destroy. I'm back using Vault 1.8.1 as its better to stay with latest. All resources are new, then destroyed. If I try again I start over, everything new each time. And I initialize (1:1) just as you've done. Still thinking - what could it be? Still doesn't work, thank you! |
I tried with an example what I advised you and yes from the last |
Okay, we have to be close. Can you share your minimal Terraform changes to get it to work, similar to what I shared with you. We have to be close, not sure what else I can change to get it working, ty |
nice, then to understand the reason, you need to check the logs. Could you go to the instance via ssh and check the logs with the command |
I will do it tonight, investigate, reply back. Again, thank you so much for the advisory. |
My Terraform versions are
and this example from scratch with no changes |
@Narragansett btw, a similar issue was recently fixed by this PR #52, and more details here #51 but anyway, to help you I need to see a logs |
Great! I see the error, I know what it means and why its happening. I just am not certain how to fix it, or why it would be happening to me alone. node-2 is the leader and it is alone in the cluster. Thank you! vault-node-0.log.zip | * Vault is sealed |
Also, I am following this example diligently, using master of today - The master doesn't quite do all of what the example says, but I trust that's not significant right now ... Additional I had to change variables.tf - |
It appears you must be using autounseal using KMS keys. I will next try to set that up. thanks! |
Okay! Using autounseal it works! I get a cluster of 3x. Thanks for guiding me through it, and pointing me to the logs. It was better that way as I learned a lot lot more. Thank you so much for such nice project work! User error, auto unseal made it work. |
glad to hear that the issue was solved! |
yes, values from |
I can only ever get this result, how to get followers to join the cluster?
vault operator raft list-peers
Node Address State Voter
node1 node1.vault.int:8201 leader true
The text was updated successfully, but these errors were encountered: