update zstacak from 1.0 to1.0.4,it is sucessful,but after restart zstack , it can not connet host

{
"org.zstack.header.host.APIReconnectHostEvent": {
"success": false,
"apiId": "f8262b3af7b041c084553961c0905115",
"headers": {
"schema": {}
},
"error": {
"code": "HOST.1002",
"cause": {
"code": "HOST.1002",
"cause": {
"code": "HOST.1003",
"cause": {
"code": "SYS.1006",
"description": "An operation failed",
"details": "invalid literal for long() with base 10: ''"
},
"description": "An error happened when connecting to host",
"details": "invalid literal for long() with base 10: ''"
},
"description": "Unable to reconnect host",
"details": "invalid literal for long() with base 10: ''"
},
"description": "Unable to reconnect host",
"details": "invalid literal for long() with base 10: ''"
},
"id": "da1897ae4ef449d88af2e6466e208d7d",
"creatingTime":<PHONE_NUMBER>393
}
}

@fudingsheng could you join ZStack QQ group 410185063 . We need the Exception log in management-server.log to analyze the issue.

ok ,this is the Exception log

2016-03-23 05:55:31,186 DEBUG [HostBase] (zs-thread-31) Host HOST03 [uuid:ede4ffe9a0044daf9fcce84f7c673d2c] changed connection state from Disconnected to Connecting
2016-03-23 05:55:31,186 DEBUG [SimpleFlowChain] (zs-thread-31) [FlowChain: run-ansible-for-kvm-ede4ffe9a0044daf9fcce84f7c673d2c] starts
2016-03-23 05:55:31,186 DEBUG [SimpleFlowChain] (zs-thread-31) [FlowChain: run-ansible-for-kvm-ede4ffe9a0044daf9fcce84f7c673d2c] start executing flow[apply-ansible-playbook]
2016-03-23 05:55:31,194 DEBUG [HostBase] (zs-thread-25) Host HOST2 [uuid:7efe5ae38aed4aa49def6d80bfed1141] changed connection state from Disconnected to Connecting
2016-03-23 05:55:31,195 DEBUG [SimpleFlowChain] (zs-thread-25) [FlowChain: run-ansible-for-kvm-7efe5ae38aed4aa49def6d80bfed1141] starts
2016-03-23 05:55:31,195 DEBUG [SimpleFlowChain] (zs-thread-25) [FlowChain: run-ansible-for-kvm-7efe5ae38aed4aa49def6d80bfed1141] start executing flow[apply-ansible-playbook]
2016-03-23 05:55:31,213 TRACE [CloudBusImpl2] (pool-3-thread-1) [event received]: {"org.zstack.core.cloudbus.CanonicalEvent":{"path":"/vmTracer/vmStateChanged","content":{"vmUuid":"055e8e6e243146c9b08da392e275d171","from":"Unknown","to":"Running","originalHostUuid":"7efe5ae38aed4aa49def6d80bfed1141","currentHostUuid":"7efe5ae38aed4aa49def6d80bfed1141"},"type":{"_name":"key.event.LOCAL.canonicalEvent"},"headers":{"schema":{"org.zstack.header.vm.VmTracerCanonicalEvents$VmStateChangedData":["content"]}},"id":"7b2837baa37b4510baa25483f2ccb392","creatingTime":1458726791128}}
2016-03-23 05:55:31,221 TRACE [CloudBusImpl2] (pool-3-thread-2) [event received]: {"org.zstack.core.cloudbus.CanonicalEvent":{"path":"/vmTracer/vmStateChanged","content":{"vmUuid":"683e2a430d344be5a7a7667a44e49d4b","from":"Unknown","to":"Running","originalHostUuid":"7efe5ae38aed4aa49def6d80bfed1141","currentHostUuid":"7efe5ae38aed4aa49def6d80bfed1141"},"type":{"_name":"key.event.LOCAL.canonicalEvent"},"headers":{"schema":{"org.zstack.header.vm.VmTracerCanonicalEvents$VmStateChangedData":["content"]}},"id":"c90432014f6c4a0495ecd1fec4fb8ec4","creatingTime":1458726791136}}
2016-03-23 05:55:31,222 TRACE [CloudBusImpl2] (pool-3-thread-2) [event received]: {"org.zstack.core.cloudbus.CanonicalEvent":{"path":"/vmTracer/vmStateChanged","content":{"vmUuid":"21b1b7b6248548c1a9cb04e2c055222c","from":"Unknown","to":"Running","originalHostUuid":"7efe5ae38aed4aa49def6d80bfed1141","currentHostUuid":"7efe5ae38aed4aa49def6d80bfed1141"},"type":{"_name":"key.event.LOCAL.canonicalEvent"},"headers":{"schema":{"org.zstack.header.vm.VmTracerCanonicalEvents$VmStateChangedData":["content"]}},"id":"a2897b1980e942bba8695b9318345681","creatingTime":1458726791136}}
2016-03-23 05:55:31,223 TRACE [CloudBusImpl2] (pool-3-thread-3) [event received]: {"org.zstack.core.cloudbus.CanonicalEvent":{"path":"/vmTracer/vmStateChanged","content":{"vmUuid":"654388dac9da47738d11a3d66970d742","from":"Unknown","to":"Running","originalHostUuid":"ede4ffe9a0044daf9fcce84f7c673d2c","currentHostUuid":"ede4ffe9a0044daf9fcce84f7c673d2c"},"type":{"_name":"key.event.LOCAL.canonicalEvent"},"headers":{"schema":{"org.zstack.header.vm.VmTracerCanonicalEvents$VmStateChangedData":["content"]}},"id":"453e58a7c3be4ce091598bc1ac92987d","creatingTime":1458726791137}}
2016-03-23 05:55:31,224 TRACE [CloudBusImpl2] (pool-3-thread-3) [event received]: {"org.zstack.core.cloudbus.CanonicalEvent":{"path":"/vmTracer/vmStateChanged","content":{"vmUuid":"a188bac4cbbd4cd081a741508843d484","from":"Unknown","to":"Running","originalHostUuid":"ede4ffe9a0044daf9fcce84f7c673d2c","currentHostUuid":"ede4ffe9a0044daf9fcce84f7c673d2c"},"type":{"_name":"key.event.LOCAL.canonicalEvent"},"headers":{"schema":{"org.zstack.header.vm.VmTracerCanonicalEvents$VmStateChangedData":["content"]}},"id":"138d86d1ada3446aa036bf56149465d2","creatingTime":1458726791137}}
2016-03-23 05:55:31,224 TRACE [CloudBusImpl2] (pool-3-thread-3) [event received]: {"org.zstack.core.cloudbus.CanonicalEvent":{"path":"/vmTracer/vmStateChanged","content":{"vmUuid":"33157dee412847a590d713cdea0144bc","from":"Unknown","to":"Running","originalHostUuid":"7efe5ae38aed4aa49def6d80bfed1141","currentHostUuid":"7efe5ae38aed4aa49def6d80bfed1141"},"type":{"_name":"key.event.LOCAL.canonicalEvent"},"headers":{"schema":{"org.zstack.header.vm.VmTracerCanonicalEvents$VmStateChangedData":["content"]}},"id":"25b89b7b670347d68338ec7d1db3bb83","creatingTime":1458726791137}}
2016-03-23 05:55:31,224 TRACE [CloudBusImpl2] (pool-3-thread-3) [event received]: {"org.zstack.core.cloudbus.CanonicalEvent":{"path":"/vmTracer/vmStateChanged","content":{"vmUuid":"651e379d283a47728b307315ba22654c","from":"Unknown","to":"Running","originalHostUuid":"ede4ffe9a0044daf9fcce84f7c673d2c","currentHostUuid":"ede4ffe9a0044daf9fcce84f7c673d2c"},"type":{"_name":"key.event.LOCAL.canonicalEvent"},"headers":{"schema":{"org.zstack.header.vm.VmTracerCanonicalEvents$VmStateChangedData":["content"]}},"id":"a7c0cbf9343e4b8ba93239f84cc6a1fb","creatingTime":1458726791137}}
2016-03-23 05:55:31,225 TRACE [CloudBusImpl2] (pool-3-thread-3) [event received]: {"org.zstack.core.cloudbus.CanonicalEvent":{"path":"/vmTracer/vmStateChanged","content":{"vmUuid":"cee4e1d63a214c33a0e0ed6856c0506b","from":"Unknown","to":"Running","originalHostUuid":"7efe5ae38aed4aa49def6d80bfed1141","currentHostUuid":"7efe5ae38aed4aa49def6d80bfed1141"},"type":{"_name":"key.event.LOCAL.canonicalEvent"},"headers":{"schema":{"org.zstack.header.vm.VmTracerCanonicalEvents$VmStateChangedData":["content"]}},"id":"9f8f6767bf7d42de888003fd1ebddb3e","creatingTime":1458726791137}}
2016-03-23 05:55:31,225 TRACE [CloudBusImpl2] (pool-3-thread-3) [event received]: {"org.zstack.core.cloudbus.CanonicalEvent":{"path":"/vmTracer/vmStateChanged","content":{"vmUuid":"d67955ab30b44775a4a7d90c5b4d1d16","from":"Unknown","to":"Running","originalHostUuid":"ede4ffe9a0044daf9fcce84f7c673d2c","currentHostUuid":"ede4ffe9a0044daf9fcce84f7c673d2c"},"type":{"_name":"key.event.LOCAL.canonicalEvent"},"headers":{"schema":{"org.zstack.header.vm.VmTracerCanonicalEvents$VmStateChangedData":["content"]}},"id":"ea10f009d67e45d99de9cdcb7b23433c","creatingTime":1458726791137}}
2016-03-23 05:55:31,226 TRACE [CloudBusImpl2] (pool-3-thread-3) [event received]: {"org.zstack.core.cloudbus.CanonicalEvent":{"path":"/vmTracer/vmStateChanged","content":{"vmUuid":"ec7a5eb78a6e46e0916dd82102b694c0","from":"Unknown","to":"Running","originalHostUuid":"ede4ffe9a0044daf9fcce84f7c673d2c","currentHostUuid":"ede4ffe9a0044daf9fcce84f7c673d2c"},"type":{"_name":"key.event.LOCAL.canonicalEvent"},"headers":{"schema":{"org.zstack.header.vm.VmTracerCanonicalEvents$VmStateChangedData":["content"]}},"id":"1ce5807c9cc44b02aa137f8dc137e4a8","creatingTime":1458726791137}}
2016-03-23 05:55:31,226 TRACE [CloudBusImpl2] (pool-3-thread-3) [event received]: {"org.zstack.core.cloudbus.CanonicalEvent":{"path":"/vmTracer/vmStateChanged","content":{"vmUuid":"cbba610a17db4e7eb414314a36cca6da","from":"Unknown","to":"Running","originalHostUuid":"ede4ffe9a0044daf9fcce84f7c673d2c","currentHostUuid":"ede4ffe9a0044daf9fcce84f7c673d2c"},"type":{"_name":"key.event.LOCAL.canonicalEvent"},"headers":{"schema":{"org.zstack.header.vm.VmTracerCanonicalEvents$VmStateChangedData":["content"]}},"id":"390b93e7145142038b54ac9d34a15989","creatingTime":1458726791137}}
2016-03-23 05:55:31,229 TRACE [CloudBusImpl2] (pool-3-thread-2) [event received]: {"org.zstack.core.cloudbus.CanonicalEvent":{"path":"/vmTracer/vmStateChanged","content":{"vmUuid":"fe3d090f07934661891b25e1d6aea9ea","from":"Unknown","to":"Running","originalHostUuid":"7efe5ae38aed4aa49def6d80bfed1141","currentHostUuid":"7efe5ae38aed4aa49def6d80bfed1141"},"type":{"_name":"key.event.LOCAL.canonicalEvent"},"headers":{"schema":{"org.zstack.header.vm.VmTracerCanonicalEvents$VmStateChangedData":["content"]}},"id":"872a8a10e89e4b2fab19cfdaf033819a","creatingTime":1458726791145}}
2016-03-23 05:55:31,556 TRACE [Ssh] (zs-thread-25) [start SSH] md5sum /var/lib/zstack/kvm/zstacklib-1.0.tar.gz
2016-03-23 05:55:31,580 TRACE [Ssh] (zs-thread-25) [end SSH] md5sum /var/lib/zstack/kvm/zstacklib-1.0.tar.gz
2016-03-23 05:55:31,581 TRACE [Ssh] (zs-thread-25)
ssh execution[host: <IP_ADDRESS>, port:22]
command: md5sum /var/lib/zstack/kvm/zstacklib-1.0.tar.gz
cost time: 384ms
2016-03-23 05:55:31,582 DEBUG [ShellUtils] (zs-thread-25) exec shell command[sudo md5sum /usr/local/zstack/apache-tomcat-7.0.35/webapps/zstack/WEB-INF/classes/ansible/zstacklib/zstacklib-1.0.tar.gz]
2016-03-23 05:55:31,599 TRACE [ShellUtils] (zs-thread-25) shell command[sudo md5sum /usr/local/zstack/apache-tomcat-7.0.35/webapps/zstack/WEB-INF/classes/ansible/zstacklib/zstacklib-1.0.tar.gz] costs 18ms to finish
2016-03-23 05:55:31,607 DEBUG [VolumeManagerImpl] (zs-thread-2) [Volume Expunging Task]: no volume to expunge
2016-03-23 05:55:31,619 DEBUG [VmInstanceManagerImpl] (zs-thread-26) [VM Expunging Task]: no vm to expunge
2016-03-23 05:55:31,620 TRACE [Ssh] (zs-thread-25) [start SSH] md5sum /var/lib/zstack/kvm/kvmagent-1.0.tar.gz
2016-03-23 05:55:31,637 DEBUG [ImageManagerImpl] (zs-thread-78) [Image Expunge Task]: no images to expunge
2016-03-23 05:55:31,637 TRACE [Ssh] (zs-thread-25) [end SSH] md5sum /var/lib/zstack/kvm/kvmagent-1.0.tar.gz
2016-03-23 05:55:31,637 TRACE [Ssh] (zs-thread-25)
ssh execution[host: <IP_ADDRESS>, port:22]
command: md5sum /var/lib/zstack/kvm/kvmagent-1.0.tar.gz
cost time: 38ms

2016-03-23 05:55:31,638 DEBUG [ShellUtils] (zs-thread-25) exec shell command[sudo md5sum /usr/local/zstack/apache-tomcat-7.0.35/webapps/zstack/WEB-INF/classes/ansible/kvm/kvmagent-1.0.tar.gz]
2016-03-23 05:55:31,651 TRACE [ShellUtils] (zs-thread-25) shell command[sudo md5sum /usr/local/zstack/apache-tomcat-7.0.35/webapps/zstack/WEB-INF/classes/ansible/kvm/kvmagent-1.0.tar.gz] costs 14ms to finish
2016-03-23 05:55:31,651 DEBUG [AnsibleRunner] (zs-thread-25) agent port[7070] on target ip[<IP_ADDRESS>] is opened, ansible module[kvm.yaml] is not changed, skip to run ansible
2016-03-23 05:55:31,651 DEBUG [SimpleFlowChain] (zs-thread-25) [FlowChain: run-ansible-for-kvm-7efe5ae38aed4aa49def6d80bfed1141] successfully executed flow[apply-ansible-playbook]
2016-03-23 05:55:31,651 DEBUG [SimpleFlowChain] (zs-thread-25) [FlowChain: run-ansible-for-kvm-7efe5ae38aed4aa49def6d80bfed1141] start executing flow[echo-host]
2016-03-23 05:55:31,651 TRACE [RESTFacadeImpl] (zs-thread-25) json post[http://<IP_ADDRESS>:7070/host/echo], <,{Content-Type=[application/json], Content-Length=[0]}>
2016-03-23 05:55:31,670 DEBUG [RESTFacadeImpl] (zs-thread-25) successfully echo http://<IP_ADDRESS>:7070/host/echo
2016-03-23 05:55:31,670 DEBUG [SimpleFlowChain] (zs-thread-25) [FlowChain: run-ansible-for-kvm-7efe5ae38aed4aa49def6d80bfed1141] successfully executed flow[echo-host]
2016-03-23 05:55:31,670 DEBUG [SimpleFlowChain] (zs-thread-25) [FlowChain: run-ansible-for-kvm-7efe5ae38aed4aa49def6d80bfed1141] start executing flow[collect-kvm-host-facts]
2016-03-23 05:55:31,670 TRACE [RESTFacadeImpl] (zs-thread-25) json post[http://<IP_ADDRESS>:7070/host/fact], <{},{Content-Type=[application/json], Content-Length=[2], taskuuid=[7ddfafc801ee4323ac5a18399b2c1865], callbackurl=[http://<IP_ADDRESS>:8080/zstack/asyncrest/callback]}>
2016-03-23 05:55:31,737 TRACE [RESTFacadeImpl] (zs-thread-75) [http response(url: http://<IP_ADDRESS>:7070/host/fact)] {"libvirtVersion": "1.2.17", "hvmCpuFlag": "vmx", "qemuImgVersion": "1.5.3", "success": true, "error": ""}
2016-03-23 05:55:31,819 DEBUG [SimpleFlowChain] (zs-thread-75) [FlowChain: run-ansible-for-kvm-7efe5ae38aed4aa49def6d80bfed1141] successfully executed flow[collect-kvm-host-facts]
2016-03-23 05:55:31,820 TRACE [RESTFacadeImpl] (zs-thread-75) json post[http://<IP_ADDRESS>:7070/host/connect], <{"hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","sendCommandUrl":"http://<IP_ADDRESS>:8080/zstack/asyncrest/sendcommand"},{Content-Type=[application/json], Content-Length=[121]}>
2016-03-23 05:55:31,836 TRACE [CloudBusImpl2] (zs-thread-75) [msg send]: {"org.zstack.kvm.KVMHostAsyncHttpCallMsg":{"path":"/vm/vmsync","command":"{}","hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","noStatusCheck":true,"commandTimeout":300,"timeout":1800000,"headers":{"correlationId":"a97b10a83fe24342be4182bd13c3c402","replyTo":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","noReply":"false","schema":{}},"id":"a97b10a83fe24342be4182bd13c3c402","serviceId":"host.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726931835}}
2016-03-23 05:55:31,837 TRACE [CloudBusImpl2] (pool-3-thread-5) [msg received]: {"org.zstack.kvm.KVMHostAsyncHttpCallMsg":{"path":"/vm/vmsync","command":"{}","hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","noStatusCheck":true,"commandTimeout":300,"timeout":1800000,"headers":{"correlationId":"a97b10a83fe24342be4182bd13c3c402","replyTo":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","noReply":"false","schema":{}},"id":"a97b10a83fe24342be4182bd13c3c402","serviceId":"host.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726931835}}
2016-03-23 05:55:31,845 TRACE [RESTFacadeImpl] (zs-thread-87) json post[http://<IP_ADDRESS>:7070/vm/vmsync], <{},{Content-Type=[application/json], Content-Length=[2], taskuuid=[4e5901171046434991f0adb7b7c7212f], callbackurl=[http://<IP_ADDRESS>:8080/zstack/asyncrest/callback]}>
2016-03-23 05:55:31,858 TRACE [RESTFacadeImpl] (zs-thread-93) [http response(url: http://<IP_ADDRESS>:7070/vm/vmsync)] {"states": {"33157dee412847a590d713cdea0144bc": "Running", "cee4e1d63a214c33a0e0ed6856c0506b": "Running", "21b1b7b6248548c1a9cb04e2c055222c": "Running", "fe3d090f07934661891b25e1d6aea9ea": "Running", "683e2a430d344be5a7a7667a44e49d4b": "Running", "055e8e6e243146c9b08da392e275d171": "Running"}, "success": true, "error": ""}
2016-03-23 05:55:31,858 TRACE [CloudBusImpl2] (zs-thread-93) [msg send]: {"org.zstack.kvm.KVMHostAsyncHttpCallReply":{"response":{"states":{"33157dee412847a590d713cdea0144bc":"Running","cee4e1d63a214c33a0e0ed6856c0506b":"Running","21b1b7b6248548c1a9cb04e2c055222c":"Running","fe3d090f07934661891b25e1d6aea9ea":"Running","683e2a430d344be5a7a7667a44e49d4b":"Running","055e8e6e243146c9b08da392e275d171":"Running"},"success":true,"error":""},"success":true,"headers":{"isReply":"true","correlationId":"a97b10a83fe24342be4182bd13c3c402","schema":{}},"id":"46031db781eb4810b134e05fb6f05696","serviceId":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726931858}}
2016-03-23 05:55:31,859 TRACE [CloudBusImpl2] (zs-thread-48) [msg received]: {"org.zstack.kvm.KVMHostAsyncHttpCallReply":{"response":{"states":{"33157dee412847a590d713cdea0144bc":"Running","cee4e1d63a214c33a0e0ed6856c0506b":"Running","21b1b7b6248548c1a9cb04e2c055222c":"Running","fe3d090f07934661891b25e1d6aea9ea":"Running","683e2a430d344be5a7a7667a44e49d4b":"Running","055e8e6e243146c9b08da392e275d171":"Running"},"success":true,"error":""},"success":true,"headers":{"isReply":"true","correlationId":"a97b10a83fe24342be4182bd13c3c402","schema":{}},"id":"46031db781eb4810b134e05fb6f05696","serviceId":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726931858}}
2016-03-23 05:55:31,864 TRACE [CloudBusImpl2] (zs-thread-75) [msg send]: {"org.zstack.storage.primary.local.InitPrimaryStorageOnHostConnectedMsg":{"primaryStorageUuid":"9c058be62eb94aaea3618da3a5ef75e3","hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","timeout":1800000,"headers":{"correlationId":"ab49015af22a4c9ca8de2a0b0ec59ced","replyTo":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","noReply":"false","schema":{}},"id":"ab49015af22a4c9ca8de2a0b0ec59ced","serviceId":"storage.primary.5529ff5dd13b4978bf086174fee3de7d","creatingTime":1458726931864}}
2016-03-23 05:55:31,874 TRACE [CloudBusImpl2] (pool-3-thread-5) [msg received]: {"org.zstack.kvm.KVMHostAsyncHttpCallMsg":{"path":"/localstorage/init","command":"{"path":"/home/pri_storage","hostUuid":"7efe5ae38aed4aa49def6d80bfed1141"}","hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","noStatusCheck":true,"commandTimeout":300,"timeout":330000,"headers":{"correlationId":"31e2242ea26041da8089380624f66e46","replyTo":"zstack.message.cloudbus.5529ff5dd13b4978bf086174fee3de7d","noReply":"false","schema":{}},"id":"31e2242ea26041da8089380624f66e46","serviceId":"host.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726791789}}
2016-03-23 05:55:31,882 TRACE [RESTFacadeImpl] (zs-thread-39) json post[http://<IP_ADDRESS>:7070/localstorage/init], <{"path":"/home/pri_storage","hostUuid":"7efe5ae38aed4aa49def6d80bfed1141"},{Content-Type=[application/json], Content-Length=[74], taskuuid=[d5dcb1693d7647f18542a8dea803733d], callbackurl=[http://<IP_ADDRESS>:8080/zstack/asyncrest/callback]}>
2016-03-23 05:55:31,919 TRACE [RESTFacadeImpl] (zs-thread-33) [http response(url: http://<IP_ADDRESS>:7070/localstorage/init)] {"availableCapacity":<PHONE_NUMBER>88, "totalCapacity":<PHONE_NUMBER>60}
2016-03-23 05:55:31,919 TRACE [CloudBusImpl2] (zs-thread-33) [msg send]: {"org.zstack.kvm.KVMHostAsyncHttpCallReply":{"response":{"availableCapacity":8.85014233088E11,"totalCapacity":9.2010377216E11},"success":true,"headers":{"isReply":"true","correlationId":"31e2242ea26041da8089380624f66e46","schema":{}},"id":"997de303eede4150bd34c3e681020e2b","serviceId":"zstack.message.cloudbus.5529ff5dd13b4978bf086174fee3de7d","creatingTime":1458726931919}}
2016-03-23 05:55:31,936 TRACE [CloudBusImpl2] (zs-thread-36) [msg received]: {"org.zstack.storage.primary.local.InitPrimaryStorageOnHostConnectedReply":{"success":true,"headers":{"isReply":"true","correlationId":"ab49015af22a4c9ca8de2a0b0ec59ced","schema":{}},"id":"b8c724157b4043c09dad5230c03839fd","serviceId":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726791787}}
2016-03-23 05:55:31,940 DEBUG [SimpleFlowChain] (zs-thread-75) [FlowChain: prepare-l2-26810b7d6a8f44b19489c1c6a7af231e-for-kvm-7efe5ae38aed4aa49def6d80bfed1141-connect] starts

2016-03-23 05:55:31,940 DEBUG [SimpleFlowChain] (zs-thread-75) [FlowChain: prepare-l2-26810b7d6a8f44b19489c1c6a7af231e-for-kvm-7efe5ae38aed4aa49def6d80bfed1141-connect] start executing flow[org.zstack.kvm.KVMConnectExtensionForL2Network$1]
2016-03-23 05:55:31,941 TRACE [CloudBusImpl2] (zs-thread-75) [msg send]: {"org.zstack.header.network.l2.CheckNetworkPhysicalInterfaceMsg":{"physicalInterface":"enp1s0f0","hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","timeout":1800000,"headers":{"correlationId":"375eacede50d48b6a1f5dedd8c71ce98","replyTo":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","noReply":"false","schema":{}},"id":"375eacede50d48b6a1f5dedd8c71ce98","serviceId":"host.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726931940}}
2016-03-23 05:55:31,943 TRACE [CloudBusImpl2] (pool-3-thread-4) [msg received]: {"org.zstack.header.network.l2.CheckNetworkPhysicalInterfaceMsg":{"physicalInterface":"enp1s0f0","hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","timeout":1800000,"headers":{"correlationId":"375eacede50d48b6a1f5dedd8c71ce98","replyTo":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","noReply":"false","schema":{}},"id":"375eacede50d48b6a1f5dedd8c71ce98","serviceId":"host.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726931940}}
2016-03-23 05:55:31,951 TRACE [RESTFacadeImpl] (zs-thread-56) json post[http://<IP_ADDRESS>:7070/network/checkphysicalnetworkinterface], <{"interfaceNames":["enp1s0f0"]},{Content-Type=[application/json], Content-Length=[31]}>
2016-03-23 05:55:31,977 TRACE [CloudBusImpl2] (zs-thread-56) [msg send]: {"org.zstack.header.network.l2.CheckNetworkPhysicalInterfaceReply":{"success":true,"headers":{"isReply":"true","correlationId":"375eacede50d48b6a1f5dedd8c71ce98","schema":{}},"id":"8e20f19d03de41059e21ef16f6ce3cb3","serviceId":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726931951}}
2016-03-23 05:55:31,979 TRACE [CloudBusImpl2] (zs-thread-16) [msg received]: {"org.zstack.header.network.l2.CheckNetworkPhysicalInterfaceReply":{"success":true,"headers":{"isReply":"true","correlationId":"375eacede50d48b6a1f5dedd8c71ce98","schema":{}},"id":"8e20f19d03de41059e21ef16f6ce3cb3","serviceId":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726931951}}
2016-03-23 05:55:31,979 DEBUG [SimpleFlowChain] (zs-thread-16) [FlowChain: prepare-l2-26810b7d6a8f44b19489c1c6a7af231e-for-kvm-7efe5ae38aed4aa49def6d80bfed1141-connect] successfully executed flow[org.zstack.kvm.KVMConnectExtensionForL2Network$1]
2016-03-23 05:55:31,979 DEBUG [SimpleFlowChain] (zs-thread-16) [FlowChain: prepare-l2-26810b7d6a8f44b19489c1c6a7af231e-for-kvm-7efe5ae38aed4aa49def6d80bfed1141-connect] start executing flow[org.zstack.kvm.KVMConnectExtensionForL2Network$2]
2016-03-23 05:55:31,979 TRACE [CloudBusImpl2] (zs-thread-16) [msg send]: {"org.zstack.kvm.KVMHostAsyncHttpCallMsg":{"path":"/network/l2novlan/createbridge","command":"{"physicalInterfaceName":"enp1s0f0","bridgeName":"br_enp1s0f0"}","hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","noStatusCheck":true,"commandTimeout":300,"timeout":1800000,"headers":{"correlationId":"301a9f45c8614fe699051b0518c279a4","replyTo":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","noReply":"false","schema":{}},"id":"301a9f45c8614fe699051b0518c279a4","serviceId":"host.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726931979}}
2016-03-23 05:55:31,981 TRACE [CloudBusImpl2] (pool-3-thread-5) [msg received]: {"org.zstack.kvm.KVMHostAsyncHttpCallMsg":{"path":"/network/l2novlan/createbridge","command":"{"physicalInterfaceName":"enp1s0f0","bridgeName":"br_enp1s0f0"}","hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","noStatusCheck":true,"commandTimeout":300,"timeout":1800000,"headers":{"correlationId":"301a9f45c8614fe699051b0518c279a4","replyTo":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","noReply":"false","schema":{}},"id":"301a9f45c8614fe699051b0518c279a4","serviceId":"host.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726931979}}
2016-03-23 05:55:31,989 TRACE [RESTFacadeImpl] (zs-thread-74) json post[http://<IP_ADDRESS>:7070/network/l2novlan/createbridge], <{"physicalInterfaceName":"enp1s0f0","bridgeName":"br_enp1s0f0"},{Content-Type=[application/json], Content-Length=[63], taskuuid=[4b8fc5a4388d41beb6107f40d2aa50fe], callbackurl=[http://<IP_ADDRESS>:8080/zstack/asyncrest/callback]}>
2016-03-23 05:55:32,055 TRACE [RESTFacadeImpl] (zs-thread-15) [http response(url: http://<IP_ADDRESS>:7070/network/l2novlan/createbridge)] {"success": true, "error": ""}
2016-03-23 05:55:32,055 TRACE [CloudBusImpl2] (zs-thread-15) [msg send]: {"org.zstack.kvm.KVMHostAsyncHttpCallReply":{"response":{"success":true,"error":""},"success":true,"headers":{"isReply":"true","correlationId":"301a9f45c8614fe699051b0518c279a4","schema":{}},"id":"aff836294a994e1288e73650c662ca8c","serviceId":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932055}}
2016-03-23 05:55:32,057 TRACE [CloudBusImpl2] (zs-thread-54) [msg received]: {"org.zstack.kvm.KVMHostAsyncHttpCallReply":{"response":{"success":true,"error":""},"success":true,"headers":{"isReply":"true","correlationId":"301a9f45c8614fe699051b0518c279a4","schema":{}},"id":"aff836294a994e1288e73650c662ca8c","serviceId":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932055}}
2016-03-23 05:55:32,057 DEBUG [KVMRealizeL2NoVlanNetworkBackend] (zs-thread-54) successfully realize bridge[br_enp1s0f0] for l2Network[uuid:26810b7d6a8f44b19489c1c6a7af231e, type:L2NoVlanNetwork] on kvm host[uuid:7efe5ae38aed4aa49def6d80bfed1141]
2016-03-23 05:55:32,062 DEBUG [SimpleFlowChain] (zs-thread-54) [FlowChain: prepare-l2-26810b7d6a8f44b19489c1c6a7af231e-for-kvm-7efe5ae38aed4aa49def6d80bfed1141-connect] successfully executed flow[org.zstack.kvm.KVMConnectExtensionForL2Network$2]
2016-03-23 05:55:32,062 DEBUG [SimpleFlowChain] (zs-thread-54) [FlowChain: prepare-l2-26810b7d6a8f44b19489c1c6a7af231e-for-kvm-7efe5ae38aed4aa49def6d80bfed1141-connect] successfully completed
2016-03-23 05:55:32,062 TRACE [CloudBusImpl2] (zs-thread-75) [msg send]: {"org.zstack.network.securitygroup.RefreshSecurityGroupRulesOnHostMsg":{"hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","headers":{"correlationId":"d0dc82bbc7c14997928719f05917936e","replyTo":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","schema":{}},"id":"d0dc82bbc7c14997928719f05917936e","serviceId":"securityGroup.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932062}}
2016-03-23 05:55:32,063 TRACE [CloudBusImpl2] (zs-thread-75) [msg send]: {"org.zstack.kvm.KVMHostSyncHttpCallMsg":{"path":"/host/capacity","command":"{}","hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","noStatusCheck":true,"timeout":1800000,"headers":{"correlationId":"40d80faca3c04bd3a9f440cbbd98cb89","replyTo":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","noReply":"false","schema":{}},"id":"40d80faca3c04bd3a9f440cbbd98cb89","serviceId":"host.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932062}}
2016-03-23 05:55:32,064 TRACE [CloudBusImpl2] (pool-3-thread-2) [msg received]: {"org.zstack.network.securitygroup.RefreshSecurityGroupRulesOnHostMsg":{"hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","headers":{"correlationId":"d0dc82bbc7c14997928719f05917936e","replyTo":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","schema":{}},"id":"d0dc82bbc7c14997928719f05917936e","serviceId":"securityGroup.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932062}}
2016-03-23 05:55:32,064 TRACE [CloudBusImpl2] (pool-3-thread-5) [msg received]: {"org.zstack.kvm.KVMHostSyncHttpCallMsg":{"path":"/host/capacity","command":"{}","hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","noStatusCheck":true,"timeout":1800000,"headers":{"correlationId":"40d80faca3c04bd3a9f440cbbd98cb89","replyTo":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","noReply":"false","schema":{}},"id":"40d80faca3c04bd3a9f440cbbd98cb89","serviceId":"host.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932062}}
2016-03-23 05:55:32,071 DEBUG [SecurityGroupManagerImpl] (zs-thread-97) required to refresh rules on host[uuid:7efe5ae38aed4aa49def6d80bfed1141]
2016-03-23 05:55:32,071 TRACE [CloudBusImpl2] (zs-thread-97) [msg send]: {"org.zstack.kvm.KVMHostAsyncHttpCallMsg":{"path":"/securitygroup/refreshrulesonhost","command":"{"ruleTOs":[{"vmNicInternalName":"vnic31.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"149407a353484819855f68a30ae5663b","vmNicMac":"fa:f9:93:3d:4b:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic159.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"3ffa90abe4d74ed48117db97c07c2603","vmNicMac":"fa:51:d5:3a:e7:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic72.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"63772f5bb84045e5ba3e7a3963b5340d","vmNicMac":"fa:4a:9e:2c:da:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic139.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"74ff245ce1d5430284f74ddf25c11c19","vmNicMac":"fa:b6:7b:83:9a:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic144.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"8587b06ecc5d4225bc98ee0850b3382a","vmNicMac":"fa:7e:63:f8:07:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic74.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"92dd285aa6b24b40ac3b0b31151076cf","vmNicMac":"fa:86:51:c4:e6:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"}]}","hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","noStatusCheck":true,"commandTimeout":300,"timeout":1800000,"headers":{"correlationId":"0465584655744a1c950291172e2bb2c4","replyTo":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","noReply":"false","schema":{}},"id":"0465584655744a1c950291172e2bb2c4","serviceId":"host.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932071}}
2016-03-23 05:55:32,073 TRACE [RESTFacadeImpl] (zs-thread-95) json post[http://<IP_ADDRESS>:7070/host/capacity], <{},{Content-Type=[application/json], Content-Length=[2]}>
2016-03-23 05:55:32,073 TRACE [CloudBusImpl2] (pool-3-thread-4) [msg received]: {"org.zstack.kvm.KVMHostAsyncHttpCallMsg":{"path":"/securitygroup/refreshrulesonhost","command":"{"ruleTOs":[{"vmNicInternalName":"vnic31.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"149407a353484819855f68a30ae5663b","vmNicMac":"fa:f9:93:3d:4b:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic159.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"3ffa90abe4d74ed48117db97c07c2603","vmNicMac":"fa:51:d5:3a:e7:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic72.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"63772f5bb84045e5ba3e7a3963b5340d","vmNicMac":"fa:4a:9e:2c:da:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic139.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"74ff245ce1d5430284f74ddf25c11c19","vmNicMac":"fa:b6:7b:83:9a:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic144.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"8587b06ecc5d4225bc98ee0850b3382a","vmNicMac":"fa:7e:63:f8:07:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic74.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"92dd285aa6b24b40ac3b0b31151076cf","vmNicMac":"fa:86:51:c4:e6:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"}]}","hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","noStatusCheck":true,"commandTimeout":300,"timeout":1800000,"headers":{"correlationId":"0465584655744a1c950291172e2bb2c4","replyTo":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","noReply":"false","schema":{}},"id":"0465584655744a1c950291172e2bb2c4","serviceId":"host.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932071}}
2016-03-23 05:55:32,082 TRACE [RESTFacadeImpl] (zs-thread-79) json post[http://<IP_ADDRESS>:7070/securitygroup/refreshrulesonhost], <{"ruleTOs":[{"vmNicInternalName":"vnic31.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"149407a353484819855f68a30ae5663b","vmNicMac":"fa:f9:93:3d:4b:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic159.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"3ffa90abe4d74ed48117db97c07c2603","vmNicMac":"fa:51:d5:3a:e7:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic72.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"63772f5bb84045e5ba3e7a3963b5340d","vmNicMac":"fa:4a:9e:2c:da:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic139.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"74ff245ce1d5430284f74ddf25c11c19","vmNicMac":"fa:b6:7b:83:9a:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic144.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"8587b06ecc5d4225bc98ee0850b3382a","vmNicMac":"fa:7e:63:f8:07:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic74.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"92dd285aa6b24b40ac3b0b31151076cf","vmNicMac":"fa:86:51:c4:e6:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"}]},{Content-Type=[application/json], Content-Length=[1432], taskuuid=[4b79ffc24b4342a19e9d622502f035b0], callbackurl=[http://<IP_ADDRESS>:8080/zstack/asyncrest/callback]}>
2016-03-23 05:55:32,162 TRACE [RESTFacadeImpl] (zs-thread-49) [http response(url: http://<IP_ADDRESS>:7070/securitygroup/refreshrulesonhost)] {"success": true, "error": ""}
2016-03-23 05:55:32,163 TRACE [CloudBusImpl2] (zs-thread-49) [msg send]: {"org.zstack.kvm.KVMHostAsyncHttpCallReply":{"response":{"success":true,"error":""},"success":true,"headers":{"isReply":"true","correlationId":"0465584655744a1c950291172e2bb2c4","schema":{}},"id":"1505a1ef8aa44ec99d017fa97341cd17","serviceId":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932162}}
2016-03-23 05:55:32,164 TRACE [CloudBusImpl2] (zs-thread-2) [msg received]: {"org.zstack.kvm.KVMHostAsyncHttpCallReply":{"response":{"success":true,"error":""},"success":true,"headers":{"isReply":"true","correlationId":"0465584655744a1c950291172e2bb2c4","schema":{}},"id":"1505a1ef8aa44ec99d017fa97341cd17","serviceId":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932162}}
2016-03-23 05:55:32,164 DEBUG [KVMSecurityGroupBackend] (zs-thread-2) successfully applied rules of security group rules to kvm host[uuid:7efe5ae38aed4aa49def6d80bfed1141]
2016-03-23 05:55:32,164 DEBUG [SecurityGroupManagerImpl] (zs-thread-2) successfully applied security rules on host[uuid:7efe5ae38aed4aa49def6d80bfed1141]
2016-03-23 05:55:32,203 TRACE [CloudBusImpl2] (zs-thread-95) [msg send]: {"org.zstack.kvm.KVMHostSyncHttpCallReply":{"response":{"cpuNum":16.0,"usedCpu":10752.0,"success":true,"cpuSpeed":2401.0,"totalMemory":5.0468950016E10,"usedMemory":4.7798288384E10,"error":""},"success":true,"headers":{"isReply":"true","correlationId":"40d80faca3c04bd3a9f440cbbd98cb89","schema":{}},"id":"6efbfe7338d74c99b1eb8c3954b0b044","serviceId":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932203}}
2016-03-23 05:55:32,205 TRACE [CloudBusImpl2] (zs-thread-3) [msg received]: {"org.zstack.kvm.KVMHostSyncHttpCallReply":{"response":{"cpuNum":16.0,"usedCpu":10752.0,"success":true,"cpuSpeed":2401.0,"totalMemory":5.0468950016E10,"usedMemory":4.7798288384E10,"error":""},"success":true,"headers":{"isReply":"true","correlationId":"40d80faca3c04bd3a9f440cbbd98cb89","schema":{}},"id":"6efbfe7338d74c99b1eb8c3954b0b044","serviceId":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932203}}
2016-03-23 05:55:32,205 TRACE [CloudBusImpl2] (zs-thread-75) [msg send]: {"org.zstack.header.cluster.ReportHostCapacityMessage":{"totalCpu":38416,"totalMemory":50468950016,"usedCpu":10752,"usedMemory":47798288384,"hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","headers":{"correlationId":"77bf81dd6fcc4038886665bb72a7db6c","replyTo":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","schema":{}},"id":"77bf81dd6fcc4038886665bb72a7db6c","serviceId":"host.allocator.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932205}}
2016-03-23 05:55:32,207 TRACE [CloudBusImpl2] (pool-3-thread-1) [msg received]: {"org.zstack.header.cluster.ReportHostCapacityMessage":{"totalCpu":38416,"totalMemory":50468950016,"usedCpu":10752,"usedMemory":47798288384,"hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","headers":{"correlationId":"77bf81dd6fcc4038886665bb72a7db6c","replyTo":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","schema":{}},"id":"77bf81dd6fcc4038886665bb72a7db6c","serviceId":"host.allocator.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932205}}
2016-03-23 05:55:32,209 TRACE [CloudBusImpl2] (zs-thread-75) [msg send]: {"org.zstack.kvm.KVMHostSyncHttpCallMsg":{"path":"/nfsprimarystorage/mount","command":"{"url":"<IP_ADDRESS>:/mnt/fuse","mountPath":"/opt/zstack/nfsprimarystorage/prim-a68616a39c224a419266975406d56370","uuid":"a68616a39c224a419266975406d56370"}","hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","noStatusCheck":true,"timeout":1800000,"headers":{"correlationId":"eac5f46e07b44b538d4d8205316720ca","replyTo":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","noReply":"false","schema":{}},"id":"eac5f46e07b44b538d4d8205316720ca","serviceId":"host.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932209}}
2016-03-23 05:55:32,210 TRACE [CloudBusImpl2] (pool-3-thread-5) [msg received]: {"org.zstack.kvm.KVMHostSyncHttpCallMsg":{"path":"/nfsprimarystorage/mount","command":"{"url":"<IP_ADDRESS>:/mnt/fuse","mountPath":"/opt/zstack/nfsprimarystorage/prim-a68616a39c224a419266975406d56370","uuid":"a68616a39c224a419266975406d56370"}","hostUuid":"7efe5ae38aed4aa49def6d80bfed1141","noStatusCheck":true,"timeout":1800000,"headers":{"correlationId":"eac5f46e07b44b538d4d8205316720ca","replyTo":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","noReply":"false","schema":{}},"id":"eac5f46e07b44b538d4d8205316720ca","serviceId":"host.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932209}}
2016-03-23 05:55:32,218 TRACE [RESTFacadeImpl] (zs-thread-24) json post[http://<IP_ADDRESS>:7070/nfsprimarystorage/mount], <{"url":"<IP_ADDRESS>:/mnt/fuse","mountPath":"/opt/zstack/nfsprimarystorage/prim-a68616a39c224a419266975406d56370","uuid":"a68616a39c224a419266975406d56370"},{Content-Type=[application/json], Content-Length=[157]}>
2016-03-23 05:55:32,293 TRACE [CloudBusImpl2] (zs-thread-24) [msg send]: {"org.zstack.kvm.KVMHostSyncHttpCallReply":{"response":{"success":false,"error":"invalid literal for long() with base 10: \u0027\u0027"},"success":true,"headers":{"isReply":"true","correlationId":"eac5f46e07b44b538d4d8205316720ca","schema":{}},"id":"5296bcce82db480bb68cded4170f38c1","serviceId":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932293}}
2016-03-23 05:55:32,295 TRACE [CloudBusImpl2] (zs-thread-37) [msg received]: {"org.zstack.kvm.KVMHostSyncHttpCallReply":{"response":{"success":false,"error":"invalid literal for long() with base 10: \u0027\u0027"},"success":true,"headers":{"isReply":"true","correlationId":"eac5f46e07b44b538d4d8205316720ca","schema":{}},"id":"5296bcce82db480bb68cded4170f38c1","serviceId":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932293}}
2016-03-23 05:55:32,296 DEBUG [SimpleFlowChain] (zs-thread-75) [FlowChain: connect-host-7efe5ae38aed4aa49def6d80bfed1141] start to rollback
2016-03-23 05:55:32,296 DEBUG [SimpleFlowChain] (zs-thread-75) [FlowChain: connect-host-7efe5ae38aed4aa49def6d80bfed1141] start to rollback flow[connect-host]
2016-03-23 05:55:32,296 DEBUG [SimpleFlowChain] (zs-thread-75) [FlowChain: connect-host-7efe5ae38aed4aa49def6d80bfed1141] rolled back all flows because errorErrorCode [code = HOST.1003, description = An error happened when connecting to host, details = invalid literal for long() with base 10: '']
2016-03-23 05:55:32,310 DEBUG [HostBase] (zs-thread-75) Host HOST2 [uuid:7efe5ae38aed4aa49def6d80bfed1141] changed connection state from Connecting to Disconnected
2016-03-23 05:55:32,310 TRACE [CloudBusImpl2] (zs-thread-75) [msg send]: {"org.zstack.header.host.ConnectHostReply":{"success":false,"error":{"code":"HOST.1003","description":"An error happened when connecting to host","details":"invalid literal for long() with base 10: \u0027\u0027","cause":{"code":"SYS.1006","description":"An operation failed","details":"invalid literal for long() with base 10: \u0027\u0027"}},"headers":{"isReply":"true","correlationId":"efafc703d880454989dd5a9f5e3e377f","schema":{}},"id":"8058d0f62f8542488110446dd21752f5","serviceId":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726931170}}
2016-03-23 05:55:32,311 DEBUG [SimpleFlowChain] (zs-thread-75) [FlowChain: run-ansible-for-kvm-7efe5ae38aed4aa49def6d80bfed1141] successfully completed
2016-03-23 05:55:32,312 TRACE [CloudBusImpl2] (zs-thread-68) [msg received]: {"org.zstack.header.host.ConnectHostReply":{"success":false,"error":{"code":"HOST.1003","description":"An error happened when connecting to host","details":"invalid literal for long() with base 10: \u0027\u0027","cause":{"code":"SYS.1006","description":"An operation failed","details":"invalid literal for long() with base 10: \u0027\u0027"}},"headers":{"isReply":"true","correlationId":"efafc703d880454989dd5a9f5e3e377f","schema":{}},"id":"8058d0f62f8542488110446dd21752f5","serviceId":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726931170}}
2016-03-23 05:55:32,312 DEBUG [HostBase] (zs-thread-68) Failed to reconnect host[uuid:7efe5ae38aed4aa49def6d80bfed1141] because ErrorCode [code = HOST.1003, description = An error happened when connecting to host, details = invalid literal for long() with base 10: '']
2016-03-23 05:55:32,312 TRACE [CloudBusImpl2] (zs-thread-68) [msg send]: {"org.zstack.header.host.ReconnectHostReply":{"success":false,"error":{"code":"HOST.1002","description":"Unable to reconnect host","details":"invalid literal for long() with base 10: \u0027\u0027","cause":{"code":"HOST.1003","description":"An error happened when connecting to host","details":"invalid literal for long() with base 10: \u0027\u0027","cause":{"code":"SYS.1006","description":"An operation failed","details":"invalid literal for long() with base 10: \u0027\u0027"}}},"headers":{"isReply":"true","correlationId":"b69f6245194c44ad95bd6ab70a45cadc","schema":{}},"id":"bb8d16bedd4a41768a5f48d28f8e8575","serviceId":"zstack.message.cloudbus.aa4594e164d04f6ba00bb35cc6268b5a","creatingTime":1458726932312}}

Thanks @fudingsheng , looks like the kvmagent report some errors. Please also find the "invalid literal for long" in /var/log/zstack/zstack-kvmagent.log  in your physical host and upload the related Trace back logs.

ok ,this is the log in the  /var/log/zstack/zstack-kvmagent.log.Thanks

DEBUG:zstacklib.utils.http:async http call[task uuid: 1e68da06385e4e3e9a62554e0f11bf01], body: {"ruleTOs":[{"vmNicInternalName":"vnic31.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"149407a353484819855f68a30ae5663b","vmNicMac":"fa:f9:93:3d:4b:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic159.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"3ffa90abe4d74ed48117db97c07c2603","vmNicMac":"fa:51:d5:3a:e7:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic72.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"63772f5bb84045e5ba3e7a3963b5340d","vmNicMac":"fa:4a:9e:2c:da:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic139.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"74ff245ce1d5430284f74ddf25c11c19","vmNicMac":"fa:b6:7b:83:9a:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic144.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"8587b06ecc5d4225bc98ee0850b3382a","vmNicMac":"fa:7e:63:f8:07:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"},{"vmNicInternalName":"vnic74.0","rules":[],"ingressDefaultPolicy":"deny","egressDefaultPolicy":"accept","vmNicUuid":"92dd285aa6b24b40ac3b0b31151076cf","vmNicMac":"fa:86:51:c4:e6:00","vmNicIp":"<IP_ADDRESS>","actionCode":"deleteChain"}]}
DEBUG:zstacklib.utils.shell:cat /proc/cpuinfo | grep 'processor' | wc -l
2016-03-23 21:07:56,369 INFO [zstacklib.utils.http] <IP_ADDRESS> - - [23/Mar/2016:21:07:56] "POST /securitygroup/refreshrulesonhost HTTP/1.1" 200 - "" "Java/1.7.0_91"
2016-03-23 21:07:56,369 INFO [zstacklib.utils.http] <IP_ADDRESS> - - [23/Mar/2016:21:07:56] "POST /securitygroup/refreshrulesonhost HTTP/1.1" 200 - "" "Java/1.7.0_91"
2016-03-23 21:07:56,369 INFO [zstacklib.utils.http] <IP_ADDRESS> - - [23/Mar/2016:21:07:56] "POST /securitygroup/refreshrulesonhost HTTP/1.1" 200 - "" "Java/1.7.0_91"
INFO:zstacklib.utils.http:<IP_ADDRESS> - - [23/Mar/2016:21:07:56] "POST /securitygroup/refreshrulesonhost HTTP/1.1" 200 - "" "Java/1.7.0_91"
DEBUG:zstacklib.utils.shell:cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
DEBUG:zstacklib.utils.shell:/sbin/iptables-save
2016-03-23 21:07:56,405 DEBUG [securitygroup_plugin] deleted default chain
DEBUG:securitygroup_plugin:deleted default chain
DEBUG:zstacklib.utils.iptables:removed empty chains:[]
DEBUG:zstacklib.utils.shell:/sbin/iptables-restore < /tmp/tmp6vGUlW
INFO:urllib3.connectionpool:Starting new HTTP connection (1): <IP_ADDRESS>
DEBUG:urllib3.connectionpool:"POST /zstack/asyncrest/callback HTTP/1.1" 200 0
DEBUG:zstacklib.utils.shell:cat /proc/meminfo | grep 'MemTotal'
2016-03-23 21:07:56,470 DEBUG [host_plugin] get host capacity: {"cpuNum": 16, "usedCpu": 10752, "success": true, "cpuSpeed": 2401, "totalMemory":<PHONE_NUMBER>6, "usedMemory":<PHONE_NUMBER>4, "error": ""}
DEBUG:host_plugin:get host capacity: {"cpuNum": 16, "usedCpu": 10752, "success": true, "cpuSpeed": 2401, "totalMemory":<PHONE_NUMBER>6, "usedMemory":<PHONE_NUMBER>4, "error": ""}
2016-03-23 21:07:56,475 INFO [zstacklib.utils.http] <IP_ADDRESS> - - [23/Mar/2016:21:07:56] "POST /host/capacity HTTP/1.1" 200 135 "" "Java/1.7.0_91"
2016-03-23 21:07:56,475 INFO [zstacklib.utils.http] <IP_ADDRESS> - - [23/Mar/2016:21:07:56] "POST /host/capacity HTTP/1.1" 200 135 "" "Java/1.7.0_91"
2016-03-23 21:07:56,475 INFO [zstacklib.utils.http] <IP_ADDRESS> - - [23/Mar/2016:21:07:56] "POST /host/capacity HTTP/1.1" 200 135 "" "Java/1.7.0_91"
INFO:zstacklib.utils.http:<IP_ADDRESS> - - [23/Mar/2016:21:07:56] "POST /host/capacity HTTP/1.1" 200 135 "" "Java/1.7.0_91"
2016-03-23 21:07:56,498 DEBUG [zstacklib.utils.http] sync http call: {"url":"<IP_ADDRESS>:/mnt/fuse","mountPath":"/opt/zstack/nfsprimarystorage/prim-a68616a39c224a419266975406d56370","uuid":"a68616a39c224a419266975406d56370"}
2016-03-23 21:07:56,498 DEBUG [zstacklib.utils.http] sync http call: {"url":"<IP_ADDRESS>:/mnt/fuse","mountPath":"/opt/zstack/nfsprimarystorage/prim-a68616a39c224a419266975406d56370","uuid":"a68616a39c224a419266975406d56370"}
2016-03-23 21:07:56,498 DEBUG [zstacklib.utils.http] sync http call: {"url":"<IP_ADDRESS>:/mnt/fuse","mountPath":"/opt/zstack/nfsprimarystorage/prim-a68616a39c224a419266975406d56370","uuid":"a68616a39c224a419266975406d56370"}
DEBUG:zstacklib.utils.http:sync http call: {"url":"<IP_ADDRESS>:/mnt/fuse","mountPath":"/opt/zstack/nfsprimarystorage/prim-a68616a39c224a419266975406d56370","uuid":"a68616a39c224a419266975406d56370"}
DEBUG:zstacklib.utils.shell:mount | grep '<IP_ADDRESS>:/mnt/fuse' | grep '/opt/zstack/nfsprimarystorage/prim-a68616a39c224a419266975406d56370'
2016-03-23 21:07:56,520 DEBUG [nfs_primarystorage_plugin] /nfsprimarystorage/mount mounted <IP_ADDRESS>:/mnt/fuse on /opt/zstack/nfsprimarystorage/prim-a68616a39c224a419266975406d56370
DEBUG:nfs_primarystorage_plugin:/nfsprimarystorage/mount mounted <IP_ADDRESS>:/mnt/fuse on /opt/zstack/nfsprimarystorage/prim-a68616a39c224a419266975406d56370
DEBUG:zstacklib.utils.shell:df /opt/zstack/nfsprimarystorage/prim-a68616a39c224a419266975406d56370|tail -1|awk '{print $(NF-4)}'
DEBUG:zstacklib.utils.shell:df /opt/zstack/nfsprimarystorage/prim-a68616a39c224a419266975406d56370|tail -1|awk '{print $(NF-2)}'
2016-03-23 21:07:56,561 WARNING [kvmagent.kvmagent] invalid literal for long() with base 10: ''
Traceback (most recent call last):
File "/var/lib/zstack/virtualenv/kvm/lib/python2.7/site-packages/kvmagent/kvmagent.py", line 116, in wrap
return func(*args, **kwargs)
File "/var/lib/zstack/virtualenv/kvm/lib/python2.7/site-packages/kvmagent/plugins/nfs_primarystorage_plugin.py", line 318, in mount
self._set_capacity_to_response(cmd.uuid, rsp)
File "/var/lib/zstack/virtualenv/kvm/lib/python2.7/site-packages/kvmagent/plugins/nfs_primarystorage_plugin.py", line 170, in _set_capacity_to_response
rsp.totalCapacity, rsp.availableCapacity = self._get_disk_capacity(uuid)
File "/var/lib/zstack/virtualenv/kvm/lib/python2.7/site-packages/kvmagent/plugins/nfs_primarystorage_plugin.py", line 164, in _get_disk_capacity
return linux.get_disk_capacity_by_df(path)
File "/var/lib/zstack/virtualenv/kvm/lib/python2.7/site-packages/zstacklib/utils/linux.py", line 159, in get_disk_capacity_by_df
return long(total) * 1024, long(avail) * 1024
ValueError: invalid literal for long() with base 10: ''
args:[(<nfs_primarystorage_plugin.NfsPrimaryStoragePlugin object at 0x2483b10>,
{'body': '{"url":"<IP_ADDRESS>:/mnt/fuse","mountPath":"/opt/zstack/nfsprimarystorage/prim-a68616a39c224a419266975406d56370","uuid":"a68616a39c224a419266975406d56370"}',
'header': {'Accept': 'text/plain, /',
'Accept-Charset': 'big5, big5-hkscs, euc-jp, euc-kr, gb18030, gb2312, gbk, ibm-thai, ibm00858, ibm01140, ibm01141, ibm01142, ibm01143, ibm01144, ibm01145, ibm01146, ibm01147, ibm01148, ibm01149, ibm037, ibm1026, ibm1047, ibm273, ibm277, ibm278, ibm280, ibm284, ibm285, ibm290, ibm297, ibm420, ibm424, ibm437, ibm500, ibm775, ibm850, ibm852, ibm855, ibm857, ibm860, ibm861, ibm862, ibm863, ibm864, ibm865, ibm866, ibm868, ibm869, ibm870, ibm871, ibm918, iso-2022-cn, iso-2022-jp, iso-2022-jp-2, iso-2022-kr, iso-8859-1, iso-8859-13, iso-8859-15, iso-8859-2, iso-8859-3, iso-8859-4, iso-8859-5, iso-8859-6, iso-8859-7, iso-8859-8, iso-8859-9, jis_x0201, jis_x0212-1990, koi8-r, koi8-u, shift_jis, tis-620, us-ascii, utf-16, utf-16be, utf-16le, utf-32, utf-32be, utf-32le, utf-8, windows-1250, windows-1251, windows-1252, windows-1253, windows-1254, windows-1255, windows-1256, windows-1257, windows-1258, windows-31j, x-big5-hkscs-2001, x-big5-solaris, x-compound_text, x-euc-jp-linux, x-euc-tw, x-eucjp-open, x-ibm1006, x-ibm1025, x-ibm1046, x-ibm1097, x-ibm1098, x-ibm1112, x-ibm1122, x-ibm1123, x-ibm1124, x-ibm1364, x-ibm1381, x-ibm1383, x-ibm300, x-ibm33722, x-ibm737, x-ibm833, x-ibm834, x-ibm856, x-ibm874, x-ibm875, x-ibm921, x-ibm922, x-ibm930, x-ibm933, x-ibm935, x-ibm937, x-ibm939, x-ibm942, x-ibm942c, x-ibm943, x-ibm943c, x-ibm948, x-ibm949, x-ibm949c, x-ibm950, x-ibm964, x-ibm970, x-iscii91, x-iso-2022-cn-cns, x-iso-2022-cn-gb, x-iso-8859-11, x-jis0208, x-jisautodetect, x-johab, x-macarabic, x-maccentraleurope, x-maccroatian, x-maccyrillic, x-macdingbat, x-macgreek, x-machebrew, x-maciceland, x-macroman, x-macromania, x-macsymbol, x-macthai, x-macturkish, x-macukraine, x-ms932_0213, x-ms950-hkscs, x-ms950-hkscs-xp, x-mswin-936, x-pck, x-sjis_0213, x-utf-16le-bom, x-utf-32be-bom, x-utf-32le-bom, x-windows-50220, x-windows-50221, x-windows-874, x-windows-949, x-windows-950, x-windows-iso2022jp',
'Cache-Control': 'no-cache',
'Connection': 'keep-alive',
'Content-Length': '157',
'Content-Type': 'application/json',
'Host': '<IP_ADDRESS>:7070',
'Pragma': 'no-cache',
'Remote-Addr': '<IP_ADDRESS>',
'User-Agent': 'Java/1.7.0_91'}}),
{}]
WARNING:kvmagent.kvmagent:invalid literal for long() with base 10: ''
Traceback (most recent call last):
File "/var/lib/zstack/virtualenv/kvm/lib/python2.7/site-packages/kvmagent/kvmagent.py", line 116, in wrap
return func(*args, **kwargs)
File "/var/lib/zstack/virtualenv/kvm/lib/python2.7/site-packages/kvmagent/plugins/nfs_primarystorage_plugin.py", line 318, in mount
self._set_capacity_to_response(cmd.uuid, rsp)
File "/var/lib/zstack/virtualenv/kvm/lib/python2.7/site-packages/kvmagent/plugins/nfs_primarystorage_plugin.py", line 170, in _set_capacity_to_response
rsp.totalCapacity, rsp.availableCapacity = self._get_disk_capacity(uuid)
File "/var/lib/zstack/virtualenv/kvm/lib/python2.7/site-packages/kvmagent/plugins/nfs_primarystorage_plugin.py", line 164, in _get_disk_capacity
return linux.get_disk_capacity_by_df(path)
File "/var/lib/zstack/virtualenv/kvm/lib/python2.7/site-packages/zstacklib/utils/linux.py", line 159, in get_disk_capacity_by_df
return long(total) * 1024, long(avail) * 1024
ValueError: invalid literal for long() with base 10: ''
args:[(<nfs_primarystorage_plugin.NfsPrimaryStoragePlugin object at 0x2483b10>,
{'body': '{"url":"<IP_ADDRESS>:/mnt/fuse","mountPath":"/opt/zstack/nfsprimarystorage/prim-a68616a39c224a419266975406d56370","uuid":"a68616a39c224a419266975406d56370"}',
'header': {'Accept': 'text/plain, /',
'Accept-Charset': 'big5, big5-hkscs, euc-jp, euc-kr, gb18030, gb2312, gbk, ibm-thai, ibm00858, ibm01140, ibm01141, ibm01142, ibm01143, ibm01144, ibm01145, ibm01146, ibm01147, ibm01148, ibm01149, ibm037, ibm1026, ibm1047, ibm273, ibm277, ibm278, ibm280, ibm284, ibm285, ibm290, ibm297, ibm420, ibm424, ibm437, ibm500, ibm775, ibm850, ibm852, ibm855, ibm857, ibm860, ibm861, ibm862, ibm863, ibm864, ibm865, ibm866, ibm868, ibm869, ibm870, ibm871, ibm918, iso-2022-cn, iso-2022-jp, iso-2022-jp-2, iso-2022-kr, iso-8859-1, iso-8859-13, iso-8859-15, iso-8859-2, iso-8859-3, iso-8859-4, iso-8859-5, iso-8859-6, iso-8859-7, iso-8859-8, iso-8859-9, jis_x0201, jis_x0212-1990, koi8-r, koi8-u, shift_jis, tis-620, us-ascii, utf-16, utf-16be, utf-16le, utf-32, utf-32be, utf-32le, utf-8, windows-1250, windows-1251, windows-1252, windows-1253, windows-1254, windows-1255, windows-1256, windows-1257, windows-1258, windows-31j, x-big5-hkscs-2001, x-big5-solaris, x-compound_text, x-euc-jp-linux, x-euc-tw, x-eucjp-open, x-ibm1006, x-ibm1025, x-ibm1046, x-ibm1097, x-ibm1098, x-ibm1112, x-ibm1122, x-ibm1123, x-ibm1124, x-ibm1364, x-ibm1381, x-ibm1383, x-ibm300, x-ibm33722, x-ibm737, x-ibm833, x-ibm834, x-ibm856, x-ibm874, x-ibm875, x-ibm921, x-ibm922, x-ibm930, x-ibm933, x-ibm935, x-ibm937, x-ibm939, x-ibm942, x-ibm942c, x-ibm943, x-ibm943c, x-ibm948, x-ibm949, x-ibm949c, x-ibm950, x-ibm964, x-ibm970, x-iscii91, x-iso-2022-cn-cns, x-iso-2022-cn-gb, x-iso-8859-11, x-jis0208, x-jisautodetect, x-johab, x-macarabic, x-maccentraleurope, x-maccroatian, x-maccyrillic, x-macdingbat, x-macgreek, x-machebrew, x-maciceland, x-macroman, x-macromania, x-macsymbol, x-macthai, x-macturkish, x-macukraine, x-ms932_0213, x-ms950-hkscs, x-ms950-hkscs-xp, x-mswin-936, x-pck, x-sjis_0213, x-utf-16le-bom, x-utf-32be-bom, x-utf-32le-bom, x-windows-50220, x-windows-50221, x-windows-874, x-windows-949, x-windows-950, x-windows-iso2022jp',
'Cache-Control': 'no-cache',
'Connection': 'keep-alive',
'Content-Length': '157',
'Content-Type': 'application/json',
'Host': '<IP_ADDRESS>:7070',
'Pragma': 'no-cache',
'Remote-Addr': '<IP_ADDRESS>',
'User-Agent': 'Java/1.7.0_91'}}),
{}]
2016-03-23 21:07:56,566 INFO [zstacklib.utils.http] <IP_ADDRESS> - - [23/Mar/2016:21:07:56] "POST /nfsprimarystorage/mount HTTP/1.1" 200 74 "" "Java/1.7.0_91"
2016-03-23 21:07:56,566 INFO [zstacklib.utils.http] <IP_ADDRESS> - - [23/Mar/2016:21:07:56] "POST /nfsprimarystorage/mount HTTP/1.1" 200 74 "" "Java/1.7.0_91"
2016-03-23 21:07:56,566 INFO [zstacklib.utils.http] <IP_ADDRESS> - - [23/Mar/2016:21:07:56] "POST /nfsprimarystorage/mount HTTP/1.1" 200 74 "" "Java/1.7.0_91"
INFO:zstacklib.utils.http:<IP_ADDRESS> - - [23/Mar/2016:21:07:56] "POST /nfsprimarystorage/mount HTTP/1.1" 200 74 "" "Java/1.7.0_91"

I think i have already  found the problems from the log  ,it maybe i do not mount <IP_ADDRESS>:/mnt/fuse successfully. I will  go to try it ,Thank you .


Create task cli

Based on #61
Add a procrastinate defer <task name> <json args>.
I believe that with that, we don't need to provide a complicated cron-like feature: people can now directly use cron (or systemd equivalent) to run tasks, without having to write custom python scripts.
We keep doing what we do best, not overcomplicate the codebase, while providing the best interface to ease integration.

😮 Coverage went down and codecov didn't warn 😭


feat/refactor_args

Refactor completed.
This will be useful/needed for Riemann mTLS.
Goal is to define args on the exporters to allow a maximum
flexibility. (usage of various options like group options etc...)
Avoid the code in main to choose between args with default values and
no default values as this is not flexible at all.

 if let Some(default_value) = &opt.default_value {
                let arg = Arg::with_name(key)
                    .required(opt.required)
                    .takes_value(opt.takes_value)
                    .default_value(default_value)
                    .short(&opt.short)
                    .long(&opt.long)
                    .help(&opt.help);
                subcmd = subcmd.arg(arg);
            } else {
                let arg = Arg::with_name(key)
                    .required(opt.required)
                    .takes_value(opt.takes_value)
                    .short(&opt.short)
                    .long(&opt.long)
                    .help(&opt.help);
                subcmd = subcmd.arg(arg);
            }

All help outputs have been checked and are identical as the ones before the refactoring.

Finally I did it completely, it makes the code simple and more flexible. However it will conflict with #98.
@bpetit, I don't know which MR should be merged first between #98 and #100, but maybe this one first will cause less rework.

This is great, thanks. I agree on merging this one too before merging #98
The CI server has a weird behavior, I have to fix that. In the meantime, I just ran the whole test procedure on a machine of mine. If it's successful, I'll merge this one tomorrow morning.

👍 😸


Night CI 2023-01-22: Failed

action url: https://github.com/spidernet-io/spiderpool/actions/runs/3981365649

The same issue as #1289.


FancyZones doesn't work with Keyboard Manager remaps

Microsoft PowerToys version
0.53.3
Running as admin

[X] Yes

Area(s) with issue?
FancyZones, Keyboard Manager
Steps to reproduce

Enable FancyZones.
In FancyZones, enable "Hold Shift key to activate zones while dragging".
Enable Keyboard Manager.
In Keyboard Manager, remap a key (e.g. Caps Lock) to any variation of Shift.
Use FancyZones by dragging a window and hold the remapped key (e.g. Caps Lock).

✔ Expected Behavior
FancyZones activates the zones, because you're holding a key that's remapped to Shift (and works like Shift everywhere else).
❌ Actual Behavior
Nothing happens when holding the remapped key, even though it is supposed to be functionally equivalent to Shift.
Other Software
No response

Can you confirm this issue is still relevant in v0.73? /needinfo


FPGA latency control sample readme

Existing Sample Changes
Description
Restructured to match the new template, with differences for FPGA templates. Made minor changes to some formatting. Updated some branding. Added category to sample readme. Corrected some grammar and spelling issues.
Fixes Issue#
External Dependencies
N/A
Type of change
Please delete options that are not relevant. Add a 'X' to the one that is applicable.

[x] Documentation

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[x] Command Line
[x] VSCode

You mention in the comment that you " Added category to sample readme. "
I can't see a sample.json file attached, did you forget to add it to this PR?
I can see it already has: ```"expertise": "Concepts and Functionality"```` so I guess that it's the PR comment that is incorrect - can you confirm?
Thanks!

Confirmed. That was a mistake. I changed only the readme. Sorry for the confusion.

No problem, merging!


updated translations

Merge with https://github.com/sulu-cmf/sulu/pull/935

Updated translations in other PR, as this one conflicts.


Fixes the default HF model name

Fixes the default HF model name. On HF model is named fixie-ai/ultravox and not fixie-ai/ultravox-v0.1.
Also fixes small misspelling for the env setup for just : The create-env command does not exist but create-venv does :-).

Will land this once #16 lands, which should fix the CI issues.


✨ Consider ko-build/setup-ko as a packaging workflow

What kind of change does this PR introduce?
Slight feature / bug fix. The imjasonh/setup-ko workflow was moved to https://github.com/ko-build, and thanks to GitHub redirect magic, both names can be used in a workflow -- the imjasonh ref redirects to the ko-build one.

[x] PR title follows the guidelines defined in our pull request documentation

What is the current behavior?
Workflows using the old imjasonh/setup-ko will not be matched as using a packaging workflow.
What is the new behavior (if this is a feature change)?**

[ ] Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes
NONE
Special notes for your reviewer
NONE
Does this PR introduce a user-facing change?
ko-build/setup-ko is detected as a packaging workflow

Thank you, @imjasonh!


surface vulnerable images

Describe the solution you'd like
should we surface vulnerabilities for running images? perhaps as a new CR or use https://aquasecurity.github.io/trivy-operator/v0.1.5/crds/vulnerability-report/

I've had a FSI customer ask me about this as well.  They want to see the list of CVEs for the vulnerable images.

It seems that the target date is Jun 30 for this. Any update?


Adds support for enableTLSAcme

Adds support for placing enableTLSAcme: true at the provider level of a service to get the auto-ssl certificates from cert-manager.

is there something similar for the AWS or openwhisk providers that we could use to standardize the keys in the serverless.yml file ?


Need to bump pyzmq to 15.0.0 or latest

I tried to install ssbench with pip on Ubuntu 14.04(python 2.7) and CentOS 6.6(python 2.6), it ran into a socket issue (not suport IPV6). When I upgrade pyzmq to 15.2.0, it works on Ubuntu (python 2.7), but CentOS (python 2.6) still have the same problem.
python 2.7 on Ubuntu 14.04
$ ssbench-master run-scenario -f /opt/benchmark/normal/1KB-PUT.sc -S http://<IP_ADDRESS>/v1/AUTH_demo -T X -u 100 -p Standard-Replica -r 30 --keep-objects --worker 10
INFO:SwiftStack Benchmark (ssbench version 0.3.8)
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-0.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 0
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-1.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 1
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-2.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 2
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-3.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 3
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-4.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 4
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-5.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 5
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-6.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 6
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-7.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 7
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-8.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 8
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-9.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 9
Traceback (most recent call last):
  File "/usr/local/bin/ssbench-master", line 614, in <module>
    args.func(args)
  File "/usr/local/bin/ssbench-master", line 223, in run_scenario
    master = master_from_args(args)
  File "/usr/local/bin/ssbench-master", line 51, in master_from_args
    network_timeout=getattr(args, 'network_timeout', None))
  File "/usr/local/lib/python2.7/dist-packages/ssbench/master.py", line 91, in __init__
    self.work_push.ipv6 = ipv6
  File "/usr/local/lib/python2.7/dist-packages/zmq/sugar/attrsettr.py", line 38, in __setattr__
    self.__class__.__name__, upper_key)
AttributeError: _Socket has no such option: IPV6

Python 2.6 in CentOS 6.6
$ sudo pip install ssbench
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Requirement already satisfied (use --upgrade to upgrade): ssbench in /usr/lib/python2.6/site-packages
Requirement already satisfied (use --upgrade to upgrade): Cython in /usr/lib64/python2.6/site-packages (from ssbench)
Requirement already satisfied (use --upgrade to upgrade): gevent==1.0.2 in /usr/lib64/python2.6/site-packages (from ssbench)
Requirement already satisfied (use --upgrade to upgrade): geventhttpclient>=1.0a in /usr/lib64/python2.6/site-packages (from ssbench)
Collecting pyzmq==14.0.1 (from ssbench)
  Using cached pyzmq-14.0.1.tar.gz
Requirement already satisfied (use --upgrade to upgrade): msgpack-python>=0.3.0 in /usr/lib64/python2.6/site-packages (from ssbench)
Requirement already satisfied (use --upgrade to upgrade): Mako in /usr/lib/python2.6/site-packages (from ssbench)
Requirement already satisfied (use --upgrade to upgrade): greenlet>=0.4.7 in /usr/lib64/python2.6/site-packages (from gevent==1.0.2->ssbench)
Requirement already satisfied (use --upgrade to upgrade): certifi in /usr/lib/python2.6/site-packages (from geventhttpclient>=1.0a->ssbench)
Requirement already satisfied (use --upgrade to upgrade): backports.ssl-match-hostname in /usr/lib/python2.6/site-packages (from geventhttpclient>=1.0a->ssbench)
Requirement already satisfied (use --upgrade to upgrade): Beaker>=1.1 in /usr/lib/python2.6/site-packages (from Mako->ssbench)
Requirement already satisfied (use --upgrade to upgrade): MarkupSafe>=0.9.2 in /usr/lib64/python2.6/site-packages (from Mako->ssbench)
Installing collected packages: pyzmq
  Found existing installation: pyzmq 15.2.0
    Uninstalling pyzmq-15.2.0:
      Successfully uninstalled pyzmq-15.2.0
  Running setup.py install for pyzmq ... done
Successfully installed pyzmq-14.0.1

$ sudo ssbench-master run-scenario -f /opt/benchmark/normal/1KB-PUT.sc -A http://<IP_ADDRESS>/auth/v1.0 -U ssbench1 -K password -u 100 -p Standard-Replica -r 30 --keep-objects --worker 10
/usr/lib/python2.6/site-packages/ssbench/worker.py:23: DeprecationWarning: gevent.coros has been renamed to gevent.lock
  import gevent.coros
INFO:SwiftStack Benchmark (ssbench version 0.3.8)
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-0.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 0
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-1.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 1
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-2.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 2
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-3.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 3
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-4.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 4
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-5.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 5
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-6.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 6
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-7.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 7
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-8.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 8
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-9.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 9
Traceback (most recent call last):
  File "/usr/bin/ssbench-master", line 614, in <module>
    args.func(args)
  File "/usr/bin/ssbench-master", line 223, in run_scenario
    master = master_from_args(args)
  File "/usr/bin/ssbench-master", line 51, in master_from_args
    network_timeout=getattr(args, 'network_timeout', None))
  File "/usr/lib/python2.6/site-packages/ssbench/master.py", line 91, in __init__
    self.work_push.ipv6 = ipv6
  File "/usr/lib64/python2.6/site-packages/zmq/sugar/attrsettr.py", line 38, in __setattr__
    self.__class__.__name__, upper_key)
AttributeError: _Socket has no such option: IPV6

@charz I cannot reproduce what you observe on Ubuntu 14.04 or CentOS 6.7 (I don't have immediate access to a CentOS 6.6 box, but 6.7 also ships with python 2.6).
I am concerned that in the above errors, ssbench was not installed in virtualenv and we are attempting to use the system libzmq. Specifically, this points to ssbench not being installed within virtualenv:
$ sudo pip install ssbench

In the Ubuntu 14.04 case, it's referencing systemwide libraries:
"/usr/local/lib/python2.7/dist-packages/zmq/sugar/attrsettr.py"

With virtualenv, you should never have to use the systemwide pip or sudo.
For example, here are the steps I took on 14.04:
sudo apt-get install python-dev python-virtualenv gcc g++
virtualenv ssbench
ssbench/bin/pip install ssbench
PATH=/home/<user>/ssbench/bin:$PATH ssbench/bin/ssbench-master run-scenario -f scenario.json -A http://<IP_ADDRESS>/auth/v1.0 -U <user> -K <key> -u 2 -r 10 --worker 2

CentOS 6.7 (I had to add the EPEL repository to get virtualenv -- wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm):
sudo yum install python-devel python-virtualenv gcc gcc-c++
virtualenv ssbench
ssbench/bin/pip install ssbench
PATH=/home/<user>/ssbench/bin:$PATH ssbench/bin/ssbench-master run-scenario -f scenario.json -A http://<IP_ADDRESS>/auth/v1.0 -U <user> -K <key> -u 2 -r 10 --worker 2

Note: I did have to add the ssbench virtualenv bin directory to the PATH variable, as otherwise the ssbench-worker script will not be found (used when we supply the --worker option).
Can you attempt to reproduce the problem with the above steps? We should not have to change the pyzmq version and should not use the system-wide installed version of libzmq (pyzmq bundles libzmq and will compile the appropriate version).

@charz I also updated the ssbench README to point users to using virtualenv. This was done because of the problem you've run into with system libraries: it's very difficult to support the four distributions we claim to support as they ship vastly different libraries. Please try this using the virtualenv setup. I mentioned above.

I believe it depends on libzmq version in system, if you use older version zeromq < 3 and pyzmq < 15.0.0. You'll run into IPV6 issue.
And it seems pyzmq v15.0.0 takes care older libzmq and recompile hook library in python level.

https://pyzmq.readthedocs.org/en/latest/changelog.html#id3

libzmq version
### Ubuntu 14.04
swiftstack@bm01:~$ ls -al /usr/lib/libzmq.**
-rw-r--r-- 1 root root 750954 Feb 19  2012 /usr/lib/libzmq.a
lrwxrwxrwx 1 root root     15 Feb 19  2012 /usr/lib/libzmq.so -> libzmq.so.1.0.0
lrwxrwxrwx 1 root root     15 Feb 19  2012 /usr/lib/libzmq.so.1 -> libzmq.so.1.0.0
-rw-r--r-- 1 root root 240984 Feb 19  2012 /usr/lib/libzmq.so.1.0.0

###  CentOS 6.6
[vagrant@dev32 ~]$ ls -al /usr/lib64/libzmq.*
lrwxrwxrwx. 1 root root     15 Mar 15 02:31 /usr/lib64/libzmq.so -> libzmq.so.1.0.1
lrwxrwxrwx. 1 root root     15 Mar 15 02:31 /usr/lib64/libzmq.so.1 -> libzmq.so.1.0.1
-rwxr-xr-x. 1 root root 237312 Jan 14  2013 /usr/lib64/libzmq.so.1.0.1

###  CentOS 6.7 (I upgraded it to latest version)
[vagrant@dev34 ~]$ ls -al /usr/lib64/libzmq.*
lrwxrwxrwx. 1 root root     15 Mar 15 02:25 /usr/lib64/libzmq.so -> libzmq.so.4.0.0
lrwxrwxrwx. 1 root root     15 Mar 15 01:57 /usr/lib64/libzmq.so.4 -> libzmq.so.4.0.0
-rwxr-xr-x. 1 root root 382728 Jun 14  2015 /usr/lib64/libzmq.so.4.0.0

CentOS 6.7
[vagrant@dev34 ~]$ yum list installed |grep zeromq
zeromq.x86_64                           4.0.5-4.el7                    @epel
zeromq-devel.x86_64                     4.0.5-4.el7                    @epel

[vagrant@dev34 ~]$ pip freeze |grep pyzmq
pyzmq==14.0.1

[vagrant@dev34 ~]$ ssbench-master run-scenario -f /opt/benchmark/normal/1KB-PUT.sc -A http://<IP_ADDRESS>/auth/v1.0 -U demo -K demo -u 10 -r 5 --keep-objects --worker 2
INFO:SwiftStack Benchmark (ssbench version 0.3.8)
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-0.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 5 --batch-size 1 0
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-1.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 5 --batch-size 1 1
INFO:Starting scenario run for "1KB-PUT test scenario"
INFO:Ensuring 100 containers (ssbench_<IP_ADDRESS>_*) exist; concurrency=2...

CentOS 6.6
##
## system ssbench
##
[vagrant@dev32 ~]$ ssbench-master run-scenario -f /opt/benchmark/normal/1KB-PUT.sc -A http://<IP_ADDRESS>/auth/v1.0 -U demo -K demo -u 10 -r 5 --keep-objects --worker 2
/usr/lib/python2.6/site-packages/ssbench/worker.py:23: DeprecationWarning: gevent.coros has been renamed to gevent.lock
  import gevent.coros
INFO:SwiftStack Benchmark (ssbench version 0.3.8)
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-0.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 5 --batch-size 1 0
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-1.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 5 --batch-size 1 1
Traceback (most recent call last):
  File "/usr/bin/ssbench-master", line 614, in <module>
    args.func(args)
  File "/usr/bin/ssbench-master", line 223, in run_scenario
    master = master_from_args(args)
  File "/usr/bin/ssbench-master", line 51, in master_from_args
    network_timeout=getattr(args, 'network_timeout', None))
  File "/usr/lib/python2.6/site-packages/ssbench/master.py", line 91, in __init__
    self.work_push.ipv6 = ipv6
  File "/usr/lib64/python2.6/site-packages/zmq/sugar/attrsettr.py", line 38, in __setattr__
    self.__class__.__name__, upper_key)
AttributeError: _Socket has no such option: IPV6

[vagrant@dev32 ~]$ yum list installed |grep zeromq
zeromq.x86_64          2.2.0-4.el6      @epel
zeromq-devel.x86_64    2.2.0-4.el6      @epel

##
## Use virtualenv
##
[vagrant@dev32 ~]$ PATH=/home/vagrant/ssbench/bin:$PATH ssbench-master run-scenario -f /opt/benchmark/normal/1KB-PUT.sc -A http://<IP_ADDRESS>/auth/v1.0 -U demo -K demo -u 10 -r 5 --keep-objects --worker 2
/home/vagrant/ssbench/lib/python2.6/site-packages/ssbench/worker.py:23: DeprecationWarning: gevent.coros has been renamed to gevent.lock
  import gevent.coros
INFO:SwiftStack Benchmark (ssbench version 0.3.8)
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-0.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 5 --batch-size 1 0
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-1.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 5 --batch-size 1 1
Traceback (most recent call last):
  File "/home/vagrant/ssbench/bin/ssbench-master", line 614, in <module>
    args.func(args)
  File "/home/vagrant/ssbench/bin/ssbench-master", line 223, in run_scenario
    master = master_from_args(args)
  File "/home/vagrant/ssbench/bin/ssbench-master", line 51, in master_from_args
    network_timeout=getattr(args, 'network_timeout', None))
  File "/home/vagrant/ssbench/lib/python2.6/site-packages/ssbench/master.py", line 91, in __init__
    self.work_push.ipv6 = ipv6
  File "/home/vagrant/ssbench/lib/python2.6/site-packages/zmq/sugar/attrsettr.py", line 38, in __setattr__
    self.__class__.__name__, upper_key)
AttributeError: _Socket has no such option: IPV6

[vagrant@dev32 ~]$ ssbench/bin/pip freeze|grep zmq
pyzmq==14.0.1

##
## Upgrade system pyzmq to 15.0.0
##
[vagrant@dev32 ~]$ pip freeze |grep pyzmq
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
pyzmq==15.0.0

[vagrant@dev32 ~]$ ssbench-master run-scenario -f /opt/benchmark/normal/1KB-PUT.sc -A http://<IP_ADDRESS>/auth/v1.0 -U demo -K demo -u 10 -r 5 --keep-objects --worker 2
/usr/lib/python2.6/site-packages/ssbench/worker.py:23: DeprecationWarning: gevent.coros has been renamed to gevent.lock
  import gevent.coros
INFO:SwiftStack Benchmark (ssbench version 0.3.8)
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-0.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 5 --batch-size 1 0
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-1.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 5 --batch-size 1 1
INFO:Starting scenario run for "1KB-PUT test scenario"
INFO:Ensuring 100 containers (ssbench_<IP_ADDRESS>_*) exist; concurrency=2...

###
### try virutalenv ssbench again
###
[vagrant@dev32 ~]$ PATH=/home/vagrant/ssbench/bin:$PATH ssbench-master run-scenario -f /opt/benchmark/normal/1KB-PUT.sc -A http://<IP_ADDRESS>/auth/v1.0 -U demo -K demo -u 10 -r 5 --keep-objects --worker 2
/home/vagrant/ssbench/lib/python2.6/site-packages/ssbench/worker.py:23: DeprecationWarning: gevent.coros has been renamed to gevent.lock
  import gevent.coros
INFO:SwiftStack Benchmark (ssbench version 0.3.8)
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-0.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 5 --batch-size 1 0
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-1.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 5 --batch-size 1 1
Traceback (most recent call last):
  File "/home/vagrant/ssbench/bin/ssbench-master", line 614, in <module>
    args.func(args)
  File "/home/vagrant/ssbench/bin/ssbench-master", line 223, in run_scenario
    master = master_from_args(args)
  File "/home/vagrant/ssbench/bin/ssbench-master", line 51, in master_from_args
    network_timeout=getattr(args, 'network_timeout', None))
  File "/home/vagrant/ssbench/lib/python2.6/site-packages/ssbench/master.py", line 91, in __init__
    self.work_push.ipv6 = ipv6
  File "/home/vagrant/ssbench/lib/python2.6/site-packages/zmq/sugar/attrsettr.py", line 38, in __setattr__
    self.__class__.__name__, upper_key)
AttributeError: _Socket has no such option: IPV6

[vagrant@dev32 ~]$ PATH=/home/vagrant/ssbench/bin:$PATH pip freeze |grep zmq
pyzmq==14.0.1

vagrant@dev32 ~]$ PATH=/home/vagrant/ssbench/bin:$PATH pip install pyzmq==15.0.0
Downloading/unpacking pyzmq==15.0.0
  Downloading pyzmq-15.0.0.tar.gz (1.1MB): 1.1MB downloaded
  Running setup.py egg_info for package pyzmq
    warning: no files found matching 'tox.ini'
    no previously-included directories found matching 'docs/build'
    no previously-included directories found matching 'docs/gh-pages'
    warning: no previously-included files found matching 'bundled/zeromq/src/Makefile*'
    warning: no previously-included files found matching 'bundled/zeromq/src/platform.hpp'
    warning: no previously-included files found matching 'setup.cfg'
    warning: no previously-included files found matching 'zmq/libzmq*'
    warning: no previously-included files matching '__pycache__/*' found anywhere in distribution
    warning: no previously-included files matching '.deps/*' found anywhere in distribution
    warning: no previously-included files matching '*.so' found anywhere in distribution
    warning: no previously-included files matching '*.pyd' found anywhere in distribution
    warning: no previously-included files matching '.git*' found anywhere in distribution
    warning: no previously-included files matching '.DS_Store' found anywhere in distribution
    warning: no previously-included files matching '.mailmap' found anywhere in distribution
    warning: no previously-included files matching 'Makefile.am' found anywhere in distribution
    warning: no previously-included files matching 'Makefile.in' found anywhere in distribution
Installing collected packages: pyzmq
  Found existing installation: pyzmq 14.0.1
    Uninstalling pyzmq:
      Successfully uninstalled pyzmq
  Running setup.py install for pyzmq
    Settings obtained from pkg-config: {'libraries': [u'zmq'], 'library_dirs': [], 'include_dirs': []}
    {'libraries': [u'zmq'], 'extra_link_args': [], 'runtime_library_dirs': [], 'library_dirs': [], 'include_dirs': []}
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -c build/temp.linux-x86_64-2.6/scratch/check_sys_un.c -o build/temp.linux-x86_64-2.6/scratch/check_sys_un.o
    gcc -pthread build/temp.linux-x86_64-2.6/scratch/check_sys_un.o -o build/temp.linux-x86_64-2.6/scratch/check_sys_un
    Configure: Autodetecting ZMQ settings...
        Custom ZMQ dir:
    ************************************************
    cc -c /tmp/timer_create404xJu.c -o build/temp.linux-x86_64-2.6/scratch/tmp/timer_create404xJu.o
    cc build/temp.linux-x86_64-2.6/scratch/tmp/timer_create404xJu.o -o build/temp.linux-x86_64-2.6/scratch/a.out
    build/temp.linux-x86_64-2.6/scratch/tmp/timer_create404xJu.o: In function `main':
    timer_create404xJu.c:(.text+0x15): undefined reference to `timer_create'
    collect2: ld returned 1 exit status
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Izmq/utils -Izmq/backend/cython -Izmq/devices -c build/temp.linux-x86_64-2.6/scratch/vers.c -o build/temp.linux-x86_64-2.6/scratch/vers.o
    gcc -pthread build/temp.linux-x86_64-2.6/scratch/vers.o -lzmq -lrt -o build/temp.linux-x86_64-2.6/scratch/vers
        ZMQ version detected: 2.2.0

    Bad libzmq version: Detected ZMQ version: 2.2.0, but require ZMQ >= 3.2
        Explicitly allow legacy zmq by specifying `--zmq=/zmq/prefix`

    Failed with default libzmq, trying again with /usr/local
    {'libraries': ['zmq'], 'extra_link_args': [], 'runtime_library_dirs': [], 'library_dirs': ['/usr/local/lib'], 'include_dirs': ['/usr/local/include']}
    Configure: Autodetecting ZMQ settings...
        Custom ZMQ dir:       /usr/local
    ************************************************
.
.
.
    warning: no files found matching 'tox.ini'
    no previously-included directories found matching 'docs/build'
    no previously-included directories found matching 'docs/gh-pages'
    warning: no previously-included files found matching 'bundled/zeromq/src/Makefile*'
    warning: no previously-included files found matching 'setup.cfg'
    warning: no previously-included files found matching 'zmq/libzmq*'
    warning: no previously-included files matching '__pycache__/*' found anywhere in distribution
    warning: no previously-included files matching '.deps/*' found anywhere in distribution
    warning: no previously-included files matching '*.so' found anywhere in distribution
    warning: no previously-included files matching '*.pyd' found anywhere in distribution
    warning: no previously-included files matching '.git*' found anywhere in distribution
    warning: no previously-included files matching '.DS_Store' found anywhere in distribution
    warning: no previously-included files matching '.mailmap' found anywhere in distribution
    warning: no previously-included files matching 'Makefile.am' found anywhere in distribution
    warning: no previously-included files matching 'Makefile.in' found anywhere in distribution
Successfully installed pyzmq
Cleaning up...
[vagrant@dev32 ~]$ PATH=/home/vagrant/ssbench/bin:$PATH ssbench-master run-scenario -f /opt/benchmark/normal/1KB-PUT.sc -A http://<IP_ADDRESS>/auth/v1.0 -U demo -K demo -u 10 -r 5 --keep-objects --worker 2
/home/vagrant/ssbench/lib/python2.6/site-packages/ssbench/worker.py:23: DeprecationWarning: gevent.coros has been renamed to gevent.lock
  import gevent.coros
INFO:SwiftStack Benchmark (ssbench version 0.3.8)
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-0.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 5 --batch-size 1 0
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-1.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 5 --batch-size 1 1
INFO:Starting scenario run for "1KB-PUT test scenario"
INFO:Ensuring 100 containers (ssbench_<IP_ADDRESS>_*) exist; concurrency=2...

ubuntu
swiftstack@bm01:~$ sudo ssbench-master run-scenario -f /opt/benchmark/normal/1KB-PUT.sc -S http://<IP_ADDRESS>/v1/AUTH_demo -T X -u 100 -p Standard-Replica -r 30 --keep-objects --worker 10
INFO:SwiftStack Benchmark (ssbench version 0.3.8)
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-0.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 0
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-1.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 1
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-2.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 2
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-3.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 3
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-4.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 4
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-5.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 5
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-6.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 6
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-7.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 7
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-8.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 8
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-9.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 9
Traceback (most recent call last):
  File "/usr/local/bin/ssbench-master", line 614, in <module>
    args.func(args)
  File "/usr/local/bin/ssbench-master", line 223, in run_scenario
    master = master_from_args(args)
  File "/usr/local/bin/ssbench-master", line 51, in master_from_args
    network_timeout=getattr(args, 'network_timeout', None))
  File "/usr/local/lib/python2.7/dist-packages/ssbench/master.py", line 91, in __init__
    self.work_push.ipv6 = ipv6
  File "/usr/local/lib/python2.7/dist-packages/zmq/sugar/attrsettr.py", line 38, in __setattr__
    self.__class__.__name__, upper_key)
AttributeError: _Socket has no such option: IPV6
swiftstack@bm01:~$ dpkg -l |grep libzmq
ii  libzmq-dev                        2.1.11-1ubuntu1                     ZeroMQ lightweight messaging kernel (development libraries and header files)
ii  libzmq1                           2.1.11-1ubuntu1                     ZeroMQ lightweight messaging kernel (shared library)
swiftstack@bm01:~$ pip freeze |grep pyzmq
pyzmq==14.0.1

#
# Upgrade pyzmq to 15.0.0
#
swiftstack@bm01:~$ sudo pip install pyzmq==15.0.0
The directory '/home/swiftstack/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/swiftstack/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pyzmq==15.0.0
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading pyzmq-15.0.0.tar.gz (1.1MB)
    100% |████████████████████████████████| 1.1MB 1.0MB/s
Installing collected packages: pyzmq
  Found existing installation: pyzmq 14.7.0
    Uninstalling pyzmq-14.7.0:
      Successfully uninstalled pyzmq-14.7.0
  Running setup.py install for pyzmq ... done
Successfully installed pyzmq-15.0.0
swiftstack@bm01:~$ sudo ssbench-master run-scenario -f /opt/benchmark/normal/1KB-PUT.sc -S http://<IP_ADDRESS>/v1/AUTH_demo -T X -u 100 -p Standard-Replica -r 30 --keep-objects --worker 10
INFO:SwiftStack Benchmark (ssbench version 0.3.8)
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-0.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 0
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-1.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 1
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-2.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 2
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-3.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 3
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-4.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 4
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-5.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 5
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-6.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 6
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-7.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 7
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-8.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 8
INFO:Spawning local ssbench-worker (logging to /tmp/ssbench-worker-local-9.log) with ssbench-worker --zmq-host <IP_ADDRESS> --zmq-work-port 13579 --zmq-results-port 13580 --concurrency 10 --batch-size 1 9
INFO:Starting scenario run for "1KB-PUT test scenario"
INFO:Ensuring 100 containers (ssbench_<IP_ADDRESS>_*) exist; concurrency=2...

@charz that's right. Unfortunately, it's very difficult to control the exact libzmq version on each of the setups. However, pyzmq bundles libzmq with it. When installing with virtualenv, it will build the bundled version and use it (if the system version does not match the bundled one). Can you try to see if using virtualenv resolves the problem?

@charz Thanks for your help! It appears that installing libzmq-dev as a system library may prevent the bundled version of libzmq being built (which results in the errors you reported). I'll try to figure out the best way to get around that (aside from removing the system installs of libzmq-dev, which may not be possible).


Hydro update

Updating hydro constructors

Adding a new implementation of  Budget / energy limit constraint

the constraint now enforces that the average of all the power dispatch variables has to be less than dispatch variable passed.
https://github.com/NREL/PowerSimulations.jl/blob/57a339ba75701919e5cf7ae7340ff153f575fa66/src/devices_models/devices/hydro_generation.jl#L365-L366
Current limitation:
It won't work if few of the variables belong to a different hour or have different limits, currently all variables in the problem are subject to the same limit.
Only work if the stage has a horizon of a Hour or Day ( in which case the limit can be interpreted as a daily or hourly energy limit. Not sure if there is a clean solution for this
Does not carry forward overage or leftover energy/water from one simulation to the next. Suggested solution : adding initial conditions  for energy and slack variable to the constraint

Adding a new Feed Forward EnergyLimitFF

It's similar to UpperBoundFF but a slightly different in implementation as its upper bound on the sum of variable, not sure if its enough justification to create a new type.
https://github.com/NREL/PowerSimulations.jl/blob/57a339ba75701919e5cf7ae7340ff153f575fa66/src/core/feed_forward.jl#L26-L30

Updating hydro constructors

Adding a new implementation of Budget / energy limit constraint

the constraint now enforces that the average of all the power dispatch variables has to be less than dispatch variable passed.
https://github.com/NREL/PowerSimulations.jl/blob/57a339ba75701919e5cf7ae7340ff153f575fa66/src/devices_models/devices/hydro_generation.jl#L365-L366
Current limitation:
It wont work if few of the varibales below to a different hour or have different limits, currently all variables in the problem are subject to this limit.
Can you clarify? below what?

Only work if the stage has a horizon of a Hour or Day ( in which case the limit can be interpreted as a daily or hourly energy limit. Not sure if there is a clean solution for this

Which stage? Why?

Does not carry forward overage or leftover energy/water from one simulation to the next. Suggested solution : adding initial conditions  for energy and slack variable to the constraint

You can implement a cache for this.

Adding a new Feed Forward EnergyLimitFF

It's similar to UpperBoundFF but a slightly different in implementation as its upper bound on the sum of variable, not sure if its enough justification to create a new type.
https://github.com/NREL/PowerSimulations.jl/blob/57a339ba75701919e5cf7ae7340ff153f575fa66/src/core/feed_forward.jl#L26-L30

Current limitation:
It wont work if few of the variables belong to a different hour or have different limits, currently all variables in the problem are subject to this limit.

Can you clarify? below what?

I meant if the variables belong to two different hour or there is look-ahead such that you need to enforce two different limits this wont do it.

Only work if the stage has a horizon of a Hour or Day ( in which case the limit can be interpreted as a daily or hourly energy limit. Not sure if there is a clean solution for this

Which stage? Why?

The to_stage to which your feeding forward the energy limit

Does not carry forward overage or leftover energy/water from one simulation to the next. Suggested solution : adding initial conditions  for energy and slack variable to the constraint

You can implement a cache for this.

Agree


persist the selected quest upon relogging

reopens the previously active quest upon logging in.
added a new boolean flag because we need to differentiate between the runescape profile changing and being logged out. we can be logged out but be logging in to the same runescape profile.
case 1: log out and log into same runescape profile -> reopen previous quest
case 2: log out and log into different runescape profile -> dont open previous quest
case 3: don't log out but hop to a different runescape profile -> dont open previous quest
could also potentially add a config option for this.

I'm not sure if this should be the default (i.e. it should require a config option). If a user is doing a quest, and then moves to a different activity, on their next login it shouldn't be opening the quest helper plugin. It seems a bit invasive of the quest helper plugin to move from one plugin to itself.