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

Re registering a service already registered with a check deregisters the service #216

Closed
XavM opened this issue Jun 17, 2014 · 0 comments
Closed

Comments

@XavM
Copy link

XavM commented Jun 17, 2014

List existing services :

$> curl -sS 127.0.0.1:8500/v1/agent/services | jq .
{
"service1": {
"Port": 8080,
"Tags": [
"tag1"
],
"Service": "service1",
"ID": "service1"
}
}

Re register the service again,changing something or not, but including the existing check :

$> curl -X PUT 127.0.0.1:8500/v1/agent/service/register -d '
{
"Name": "service1",
"Tags": [
"tag2"
],
"Port": 8080,
"Check": {
"Script": "curl -sS localhost:8080/status",
"Interval": "60s"
}
}'
CheckID is already registered

List existing services :

$> curl -sS 127.0.0.1:8500/v1/agent/services | jq .
{}


I could understand that checkIDs must be unique and that the Re register fails, but the service should not be entirely deregistred, (I guess it should be left intact)

@armon armon closed this as completed in 10c120b Jun 17, 2014
duckhan pushed a commit to duckhan/consul that referenced this issue Oct 24, 2021
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

1 participant