soabase / exhibitor

ZooKeeper co-process for instance monitoring, backup/recovery, cleanup and visualization.

Home Page:https://groups.google.com/forum/#!topic/exhibitor-users/PVkcd88mk8c

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

REST API set-rolling does not work

itsolutionsprovider opened this issue · comments

Fixed: I was passing malformed json request. This is not a defect.

Below is the request and response invoking the REST method to rolling update the exhibitor config.
Apparently I am experiencing that the rolling update starts but does not update the Ports and stops rolling. The exhibitor logs do not say much, nor there is any documentation out there.
Any idea what could be the problem?

POST http://hostname:8080/exhibitor/v1/config/set-rolling HTTP/1.1
Host: hostname:8080
Connection: keep-alive
Content-Length: 880
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36
Origin: chrome-extension://hgmloofddffdnphfgcellkdfbfbjeloo
Content-Type: text/plain
Accept: /
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8

{"rollInProgress":true,"rollStatus":"yes","rollPercentDone":1,"hostname":"erpintzk1.pmienvs.pmihq.org","serverId":1,"logIndexDirectory":"","zookeeperInstallDirectory":"/opt/zookeeper","zookeeperDataDirectory":"/var/lib/zookeeper","zookeeperLogDirectory":"/var/lib/zookeeper/logs","serversSpec":"S:1:zk1,S:2:zk2,S:3:zk3","backupExtra":"","zooCfgExtra":{"syncLimit":"8","tickTime":"2000","initLimit":"10"},"javaEnvironment":"","log4jProperties":""
,"clientPort":2181,"connectPort":2888,"electionPort":3888,"checkMs":30000,"cleanupPeriodMs":43200000,"cleanupMaxFiles":3,"backupMaxStoreMs":86400000,"backupPeriodMs":60000,"autoManageInstances":0,"autoManageInstancesSettlingPeriodMs":180000,"observerThreshold":999,"autoManageInstancesFixedEnsembleSize":3,"autoManageInstancesApplyAllAtOnce":1,"controlPanel":{}}}

HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Server: Jetty(1.5.5)

21
{"message":"OK","succeeded":true}
0
exhibitor-setrolling