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

API for purging nodes #3444

Closed
diptanu opened this issue Oct 25, 2017 · 3 comments
Closed

API for purging nodes #3444

diptanu opened this issue Oct 25, 2017 · 3 comments
Labels
theme/api HTTP API and SDK issues type/enhancement

Comments

@diptanu
Copy link
Contributor

diptanu commented Oct 25, 2017

We need an API to purge nodes on the servers. The use case is we run Nomad on bare metal machines and sometimes when the machine fails because of hardware issues and is fixed by data-center operators we have to re-image the machine and have them join back in. The machines have the same host name and IP addresses so re-registration with servers fail because of mismatch in secret IDs.

I am thinking an API to purging the node in the server should help in this case. The security side of things are handled in our case by secure introduction of the machines(can't go into the details but a machine can't simply appear in the DC or join a cluster).

@dadgar want to weigh in your thoughts? I can work on the implementation since we need this right away.

@diptanu diptanu added theme/api HTTP API and SDK issues type/enhancement labels Oct 25, 2017
@dadgar
Copy link
Contributor

dadgar commented Oct 25, 2017

@diptanu I am not opposed to the method, I think it can reuse the existing Node.Deregister RPC. As for your immediate problem, what version of Nomad are you running? If you have cleared the data_dir, the node should come back with a new (node_id, secret_id) pair and re-registartion should work. We don't use the host based uuid by default anymore. You can force this by setting this: https://www.nomadproject.io/docs/agent/configuration/client.html#no_host_uuid

Older versions of Nomad, defaulted this to false.

@diptanu
Copy link
Contributor Author

diptanu commented Oct 25, 2017

@dadgar Sounds good, I will get started on that API. We are on 0.5.6 + some code for the ipv6 fixes, the team is going to roll out a new version when 0.7 comes out.

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
theme/api HTTP API and SDK issues type/enhancement
Projects
None yet
Development

No branches or pull requests

2 participants