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

can't deregister service-id that contains slashes #1333

Closed
pmbauer opened this issue Oct 24, 2015 · 4 comments
Closed

can't deregister service-id that contains slashes #1333

pmbauer opened this issue Oct 24, 2015 · 4 comments

Comments

@pmbauer
Copy link

pmbauer commented Oct 24, 2015

We are using registrator and made the mistake of using a /namespace/deploy-area/logical-name pattern for our service ids and are trying to clean up.
v1/agent/service/deregister/<service-id> fails if service-id contains slashes. (see #1096)
We've tried deregistering with v1/catalog/deregsiter but within 2 minutes, that service re-appears in the catalog.
Is there a way around this?

@ccl0326
Copy link

ccl0326 commented Nov 24, 2015

I have the same problem.The service can be removed.any idea?

@slackpad
Copy link
Contributor

Yeah the catalog will get synced with the agent's state so that can't be used to remove it. If you registered the service via the agent API then I think it will be persisted in a json file inside the services directory of your agent's data-dir. If you delete it from there and restart the agent it should be gone (the agent will remove it from the catalog for you).

@josegonzalez
Copy link

@slackpad can confirm, removing everything from /var/lib/consul/ seemed to fix a service that was registered by registrator. We ran registrator against the local consul-agent, so I'm assuming moving it to hit the consul-cluster instead may fix the issue...

@slackpad
Copy link
Contributor

I'll close this since the slash issue is covered under #1096. Please let me know if you run into any other problems!

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

No branches or pull requests

4 participants