11:46:27.102 [main] INFO  [CloudPoolRestApiImpl:<init>:103] - CloudPoolRestApiImpl created
11:46:27.105 [main] INFO  [CloudPoolRestApiImpl:prepareStorageDir:125] - creating storage directory /home/peterg/dev/git/scale.cloudpool/target/checkout/api/target/cloudpool/storage
11:46:27.107 [main] INFO  [CloudPoolServer:restoreConfig:169] - restoring cloudpool config from /home/peterg/dev/git/scale.cloudpool/target/checkout/api/target/cloudpool/storage/config.json
11:46:27.107 [main] INFO  [CloudPoolServer:restoreConfig:171] - no cloud pool configuration found at /home/peterg/dev/git/scale.cloudpool/target/checkout/api/target/cloudpool/storage/config.json. starting without config ...
11:46:27.186 [main] INFO  [Log:initialized:192] - Logging initialized @981ms to org.eclipse.jetty.util.log.Slf4jLog
11:46:27.300 [main] DEBUG [ServletServerBuilder:createServletHandler:209] - adding servlet 'org.glassfish.jersey.servlet.ServletContainer@c2f7c63' at context path '/' with path spec '/*' and init-params {}
11:46:27.300 [main] DEBUG [ServletServerBuilder:addCrossOriginFilter:116] - enabling CORS support
11:46:27.308 [main] INFO  [Server:doStart:372] - jetty-9.4.0.v20161208
11:46:27.345 [main] INFO  [DefaultSessionIdManager:doStart:354] - DefaultSessionIdManager workerName=node0
11:46:27.346 [main] INFO  [DefaultSessionIdManager:doStart:359] - No SessionScavenger set, using defaults
11:46:27.348 [main] INFO  [HouseKeeper:startScavenging:146] - Scavenging every 600000ms
11:46:27.993 [main] INFO  [ContextHandler:doStart:791] - Started o.e.j.s.ServletContextHandler@6c9fe061{/,null,AVAILABLE}
11:46:28.045 [main] INFO  [SslContextFactory:load:288] - x509=X509@3d1ecf3b(1,h=[],w=[]) for SslContextFactory@204bd52d(file:///home/peterg/dev/git/scale.cloudpool/target/checkout/api/target/test-classes/security/server/server_keystore.p12,file:///home/peterg/dev/git/scale.cloudpool/target/checkout/api/target/test-classes/security/server/server_keystore.p12)
11:46:28.066 [main] INFO  [AbstractConnector:doStart:280] - Started ServerConnector@2c635953{SSL,[ssl, http/1.1]}{0.0.0.0:33989}
11:46:28.066 [main] INFO  [Server:doStart:444] - Started @1862ms
11:46:28.190 [main] DEBUG [Http:execute:85] - sending request (GET https://localhost:33989/pool/size HTTP/1.1)
11:46:28.415 [qtp222088774-26] INFO  [RequestLogFilter:filter:26] - GET https://localhost:33989/pool/size by 127.0.0.1
11:46:28.529 [main] DEBUG [Http:execute:85] - sending request (POST https://localhost:33989/config HTTP/1.1)
11:46:28.538 [qtp222088774-26] INFO  [RequestLogFilter:filter:26] - POST https://localhost:33989/config by 127.0.0.1
11:46:28.549 [qtp222088774-26] ERROR [CloudPoolRestApiImpl:setConfig:155] - illegal input: bad config!
java.lang.IllegalArgumentException: bad config!
	at com.elastisys.scale.cloudpool.api.restapi.impl.CloudPoolRestApiImpl.setConfig(CloudPoolRestApiImpl.java:150)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
	at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)
	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
	at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
	at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
	at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
	at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)
	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
	at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
	at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
	at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
	at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
	at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)
	at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
	at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)
	at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:838)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1634)
	at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:308)
	at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:262)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1621)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:541)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1584)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1228)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:481)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1553)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1130)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.Server.handle(Server.java:564)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:318)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:112)
	at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:261)
	at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:150)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:112)
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
	at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:122)
	at org.eclipse.jetty.util.thread.strategy.ExecutingExecutionStrategy.invoke(ExecutingExecutionStrategy.java:58)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:201)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:133)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590)
	at java.lang.Thread.run(Thread.java:748)
11:46:28.564 [main] DEBUG [Http:execute:85] - sending request (GET https://localhost:33989/pool HTTP/1.1)
11:46:28.572 [qtp222088774-16] INFO  [RequestLogFilter:filter:26] - GET https://localhost:33989/pool by 127.0.0.1
11:46:28.582 [main] DEBUG [Http:execute:85] - sending request (POST https://localhost:33989/config HTTP/1.1)
11:46:28.589 [qtp222088774-20] INFO  [RequestLogFilter:filter:26] - POST https://localhost:33989/config by 127.0.0.1
11:46:28.611 [main] DEBUG [Http:execute:85] - sending request (POST https://localhost:33989/pool/terminate HTTP/1.1)
11:46:28.618 [qtp222088774-26] INFO  [RequestLogFilter:filter:26] - POST https://localhost:33989/pool/terminate by 127.0.0.1
11:46:28.625 [main] DEBUG [Http:execute:85] - sending request (POST https://localhost:33989/pool/detach HTTP/1.1)
11:46:28.630 [qtp222088774-25] INFO  [RequestLogFilter:filter:26] - POST https://localhost:33989/pool/detach by 127.0.0.1
11:46:28.637 [main] DEBUG [Http:execute:85] - sending request (POST https://localhost:33989/pool/membershipStatus HTTP/1.1)
11:46:28.642 [qtp222088774-28] INFO  [RequestLogFilter:filter:26] - POST https://localhost:33989/pool/membershipStatus by 127.0.0.1
11:46:28.647 [main] DEBUG [Http:execute:85] - sending request (GET https://localhost:33989/config HTTP/1.1)
11:46:28.652 [qtp222088774-18] INFO  [RequestLogFilter:filter:26] - GET https://localhost:33989/config by 127.0.0.1
11:46:28.657 [main] DEBUG [Http:execute:85] - sending request (POST https://localhost:33989/pool/serviceState HTTP/1.1)
11:46:28.663 [qtp222088774-18] INFO  [RequestLogFilter:filter:26] - POST https://localhost:33989/pool/serviceState by 127.0.0.1
11:46:28.669 [main] DEBUG [Http:execute:85] - sending request (POST https://localhost:33989/stop HTTP/1.1)
11:46:28.674 [qtp222088774-18] INFO  [RequestLogFilter:filter:26] - POST https://localhost:33989/stop by 127.0.0.1
11:46:28.678 [main] DEBUG [Http:execute:85] - sending request (POST https://localhost:33989/pool/membershipStatus HTTP/1.1)
11:46:28.683 [qtp222088774-18] INFO  [RequestLogFilter:filter:26] - POST https://localhost:33989/pool/membershipStatus by 127.0.0.1
11:46:28.689 [main] DEBUG [Http:execute:85] - sending request (POST https://localhost:33989/pool/attach HTTP/1.1)
11:46:28.693 [qtp222088774-18] INFO  [RequestLogFilter:filter:26] - POST https://localhost:33989/pool/attach by 127.0.0.1
11:46:28.698 [main] DEBUG [Http:execute:85] - sending request (POST https://localhost:33989/start HTTP/1.1)
11:46:28.702 [qtp222088774-28] INFO  [RequestLogFilter:filter:26] - POST https://localhost:33989/start by 127.0.0.1
11:46:28.705 [main] DEBUG [Http:execute:85] - sending request (POST https://localhost:33989/pool/serviceState HTTP/1.1)
11:46:28.710 [qtp222088774-14] INFO  [RequestLogFilter:filter:26] - POST https://localhost:33989/pool/serviceState by 127.0.0.1
11:46:28.714 [main] DEBUG [Http:execute:85] - sending request (GET https://localhost:33989/config HTTP/1.1)
11:46:28.720 [qtp222088774-28] INFO  [RequestLogFilter:filter:26] - GET https://localhost:33989/config by 127.0.0.1
11:46:28.724 [main] DEBUG [Http:execute:85] - sending request (GET https://localhost:33989/status HTTP/1.1)
11:46:28.730 [qtp222088774-26] INFO  [RequestLogFilter:filter:26] - GET https://localhost:33989/status by 127.0.0.1
11:46:28.735 [main] DEBUG [Http:execute:85] - sending request (POST https://localhost:33989/pool/attach HTTP/1.1)
11:46:28.739 [qtp222088774-18] INFO  [RequestLogFilter:filter:26] - POST https://localhost:33989/pool/attach by 127.0.0.1
11:46:28.744 [main] DEBUG [Http:execute:85] - sending request (POST https://localhost:33989/pool/terminate HTTP/1.1)
11:46:28.748 [qtp222088774-20] INFO  [RequestLogFilter:filter:26] - POST https://localhost:33989/pool/terminate by 127.0.0.1
11:46:28.752 [main] DEBUG [Http:execute:85] - sending request (POST https://localhost:33989/pool/size HTTP/1.1)
11:46:28.756 [qtp222088774-26] INFO  [RequestLogFilter:filter:26] - POST https://localhost:33989/pool/size by 127.0.0.1
11:46:28.762 [main] DEBUG [Http:execute:85] - sending request (POST https://localhost:33989/pool/detach HTTP/1.1)
11:46:28.766 [qtp222088774-26] INFO  [RequestLogFilter:filter:26] - POST https://localhost:33989/pool/detach by 127.0.0.1
11:46:28.770 [main] DEBUG [Http:execute:85] - sending request (POST https://localhost:33989/pool/size HTTP/1.1)
11:46:28.773 [qtp222088774-14] INFO  [RequestLogFilter:filter:26] - POST https://localhost:33989/pool/size by 127.0.0.1
11:46:28.776 [main] DEBUG [Http:execute:85] - sending request (POST https://localhost:33989/start HTTP/1.1)
11:46:28.780 [qtp222088774-16] INFO  [RequestLogFilter:filter:26] - POST https://localhost:33989/start by 127.0.0.1
11:46:28.781 [qtp222088774-16] ERROR [CloudPoolRestApiImpl:start:170] - no config set!
11:46:28.786 [main] INFO  [AbstractConnector:doStop:320] - Stopped ServerConnector@2c635953{SSL,[ssl, http/1.1]}{0.0.0.0:33989}
11:46:28.786 [main] INFO  [HouseKeeper:stopScavenging:164] - Stopped scavenging
11:46:28.789 [main] INFO  [ContextHandler:doStop:932] - Stopped o.e.j.s.ServletContextHandler@6c9fe061{/,null,UNAVAILABLE}
