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 create session without health checks in v1.0.0+ #3732

Closed
Vanav opened this issue Dec 8, 2017 · 1 comment
Closed

Can't create session without health checks in v1.0.0+ #3732

Vanav opened this issue Dec 8, 2017 · 1 comment
Labels
theme/api Relating to the HTTP API interface type/bug Feature does not function as expected
Milestone

Comments

@Vanav
Copy link

Vanav commented Dec 8, 2017

I want to create a session without health check serfHealth, but seems it doesn't work in Consul v1.0.0+:

# curl -X PUT -d '{"name": "dbservice", "checks": []}' http://localhost:8500/v1/session/create
{"ID":"3e6ea5b2-ab34-b890-878c-52cd057e3cf3"}

# curl -s http://localhost:8500/v1/session/info/3e6ea5b2-ab34-b890-878c-52cd057e3cf3 | jq
[
  {
    "ID": "3e6ea5b2-ab34-b890-878c-52cd057e3cf3",
    "Name": "dbservice",
    "Node": "bal1test.aes128.com",
    "Checks": [
      "serfHealth"
    ],
    "LockDelay": 15000000000,
    "Behavior": "release",
    "TTL": "",
    "CreateIndex": 1354967,
    "ModifyIndex": 1354967
  }
]

# consul members
Node                 Address              Status  Type    Build  Protocol  DC   Segment
bal1test.aes128.com  192.168.241.21:8301  alive   server  1.0.1  2         dc1  <all>
bal2test.aes128.com  192.168.241.22:8301  alive   server  1.0.1  2         dc1  <all>
db1test.aes128.com   192.168.241.27:8301  alive   server  1.0.1  2         dc1  <all>
db2test.aes128.com   192.168.241.28:8301  alive   server  1.0.1  2         dc1  <all>

Consul v0.9.3 works correctly.

@slackpad slackpad added type/bug Feature does not function as expected theme/api Relating to the HTTP API interface labels Dec 8, 2017
@slackpad slackpad modified the milestones: 1.0.3, 1.0.2 Dec 8, 2017
@slackpad
Copy link
Contributor

slackpad commented Dec 8, 2017

Hi @Vanav that does look like a regression - thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/api Relating to the HTTP API interface type/bug Feature does not function as expected
Projects
None yet
Development

No branches or pull requests

2 participants