Re: Status of CloudStack DBaaS

2015-09-05 Thread Yitao Jiang
AFAIK, cloudstack much like Nova of Openstack mainly focus on
Infrastructure , but  i think you can integrate Cloudstack with Trove
easily as it is just a scheduler talking to IaaS with api

On Sat, Sep 5, 2015 at 12:23 AM, Traiano Welcome  wrote:

> Hi List
>
>  What is the current status of Cloudstack DBaaS ?
>  Is there anything like OpenStack's Trove on the roadmap?
>
> Thanks,
> Traiano
>



-- 

Regards,

Yitao
jiangyt.github.io


Re: question about ha.tag

2015-06-19 Thread Yitao Jiang
How many hosts do you have?
AS 4.2.1, if host and ha tag set, the system vm will be created on none
tagged hosts. And if you only have one host, i suppose that is correct
problem.
BTW, what allocate algorithm are you using?


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Thu, Jun 18, 2015 at 9:59 AM, Firxiaowork firxiaow...@gmail.com wrote:

 Hi all:
 My test environment is  4.4.3 + kvm . and only has one agent.
 I am in a puzzle about the ha.tag.

 when I set ha.tag to “ha” and set host tag to “ha” too.
 the systemvm just can’t start, and can’t crete new vm which use no
 host tag offering.
 log like this:
… Checking resources in Cluster: 1 under Pod: 1
 ...ctx-51a5fe9e FirstFitRoutingAllocator) Looking for hosts in dc: 1
 pod:1  cluster:1
 ... FirstFitAllocator has 0 hosts to check for allocation: []
 ...Found 0 hosts for allocation after prioritization: []
 ...Looking for speed=500Mhz, Ram=256
 ...Host Allocator returning 0 suitable hosts
 ...No suitable hosts found
 ...No suitable hosts found under this Cluster: 1
 ...Could not find suitable Deployment Destination for this VM under
 any clusters, returning.



 I have tried to clear host tag, everything worked well!
 and I have tried with clear ha.tag and keep host tag to “ha” .
 everything worked well!!

 but I saw this in
 https://cwiki.apache.org/confluence/display/CLOUDSTACK/Host+tags+and+Storage+tags
 
 https://cwiki.apache.org/confluence/display/CLOUDSTACK/Host+tags+and+Storage+tags
 
 “If  offerings are tagged, then only the host with matching tag
 will be chosen.
  But while deploying a VM with a non-tagged service offering,
  we consider both untagged and tagged hosts.
  So a VM with non-tagged offering may reside on a tagged host.
 Same goes with storage pools.”

  maybe I don’t fully understood the ha.tag ,
   is there must have untagged ha.tag hosts and tagged.ha hosts in
 cluster if I set ha.tag?
  or If I let all hosts tagged ha tag ,I have to change all
 offering with host tag ?





 thank you!

 --
 Firxiao








Re: 我遇到一个在yum重装也没解决的问题

2015-06-10 Thread Yitao Jiang
Hi,
Mysql 和mgmt在一台机器上么?状态如何?可以清空下cs的日志,重新启动下mgmt服务


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Wed, Jun 10, 2015 at 3:07 PM, 范 sharefant...@163.com wrote:



 大家好!
 我安装cloudstack management的机子,/目录下空间过少,有天报出low disk
 error后,即使已经留出空间,也无法正常启动。重装management后,访问管理页面会出现404。打开catalina.out则出现了以下错误。尽管它说不影响运行但是这是在catalina.out中唯一的错误。打开management-server.log也没有显示错误。
 我做过 1.cloud-setup-database
2.cloud-setup-management
3. 在yum中重装cloudstack 4.4.3和tomcat6
 都没有效果。


 还请各位大牛不吝赐教。感谢!


 Jun 09, 2015 10:14:56 PM org.apache.catalina.loader.WebappClassLoader
 loadClass
 INFO: Illegal access: this web application instance has been stopped
 already.  Could not load
 org.apache.cloudstack.managed.context.ManagedContextTimerTask$1.  The
 eventual following stack trace is caused by an error thrown for debugging
 purposes as well as to attempt to terminate the thread which caused the
 illegal access, and has no functional impact.
 java.lang.IllegalStateException
 at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1369)
 at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
 at
 org.apache.cloudstack.managed.context.ManagedContextTimerTask.run(ManagedContextTimerTask.java:27)
 at java.util.TimerThread.mainLoop(Timer.java:555)
 at java.util.TimerThread.run(Timer.java:505)


 Exception in thread Timer-2 java.lang.NoClassDefFoundError:
 org/apache/cloudstack/managed/context/ManagedContextTimerTask$1
 at
 org.apache.cloudstack.managed.context.ManagedContextTimerTask.run(ManagedContextTimerTask.java:27)
 at java.util.TimerThread.mainLoop(Timer.java:555)
 at java.util.TimerThread.run(Timer.java:505)
 Caused by: java.lang.ClassNotFoundException:
 org.apache.cloudstack.managed.context.ManagedContextTimerTask$1
 at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1483)
 at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
 ... 3 more


 范啟能


 --



Re: Trouble Attaching Volume

2015-04-03 Thread Yitao Jiang
But obviously ACS4.1.0 with vmware hypervisor and fc-san storage , the
mechanism not working for me.


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Fri, Apr 3, 2015 at 1:14 PM, Koushik Das koushik@citrix.com wrote:

 There is already a vm-sync mechanism to synchronise states between
 hypervisor and CS DB. When VMs get moved from one host to another outside
 of CS, vm-sync is supposed to update the DB with the new host id.


 On 03-Apr-2015, at 7:13 AM, Yitao Jiang willier...@gmail.com wrote:

  Synchronisation work need to be done. I will do some hacking when i am
 free.
  On Apr 2, 2015 10:27 PM, Steve Searles ssear...@zimcom.net wrote:
 
  That was it.  Thanks!.  What is the best practice for DRS and HA with
  vmware for use with Cloudstack? Disabled?
 
  Steven Searles
 
 
 
  On Apr 2, 2015, at 2:17 AM, Sanjeev N sanj...@apache.orgmailto:
  sanj...@apache.org wrote:
 
  Also make sure that vm is actually running on the host
 
  On Thu, Apr 2, 2015 at 6:11 AM, Yitao Jiang willier...@gmail.com
 mailto:
  willier...@gmail.com wrote:
 
  I met the same issue before. Cause under vmware cluster ha enabled, so
 the
  vm mirgrated among hosts. You can check the host which vm lives in cloud
  databases, and compare to the actual host, if mismatchrd, changing the
 db
  table, thrn all works fine.
  On Apr 1, 2015 9:52 PM, Steve Searles ssear...@zimcom.netmailto:
  ssear...@zimcom.net wrote:
 
  I am having trouble attaching a volume to an existing VM.  Adding an
  extra
  volume during the instance creation works fine.  It does not seem to
  matter
  what state the VM is in eg. stopped or running I receive the same error.
  Anyone know what this means? I can not find any further information on
  Message: Unable to find the VM to execute AttachVolumeCommand”, ‘
 
 
  Cloudstack 4.4.2
  Vmware 5.5
 
 
 
  Any help would be appreciated.
 
 
  INFO  [o.a.c.f.j.i.AsyncJobMonitor] (Work-Job-Executor-1:ctx-4e1f0aca
  job-484/job-485) Add job-485 into job monitoring
  INFO  [c.c.s.VolumeApiServiceImpl] (Work-Job-Executor-1:ctx-4e1f0aca
  job-484/job-485 ctx-3e014d23) Trying to attaching volume 175 to vm
  instance:154, update async job-485 progress status
  ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-1:ctx-4e1f0aca
  job-484/job-485 ctx-3e014d23) Invocation exception, caused by:
  com.cloud.utils.exception.CloudRuntimeException: Failed to attach volume
  test-cvg to VM RESIZE-TEST-2012; AttachVolumeCommand failed due to
  Exception: java.lang.Exception
  Message: Unable to find the VM to execute AttachVolumeCommand, vmName:
  i-2-154-VM
 
  INFO  [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-1:ctx-4e1f0aca
  job-484/job-485 ctx-3e014d23) Rethrow exception
  com.cloud.utils.exception.CloudRuntimeException: Failed to attach volume
  test-cvg to VM RESIZE-TEST-2012; AttachVolumeCommand failed due to
  Exception: java.lang.Exception
  Message: Unable to find the VM to execute AttachVolumeCommand, vmName:
  i-2-154-VM
 
  ERROR [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-1:ctx-4e1f0aca
  job-484/job-485) Unable to complete AsyncJobVO {id:485, userId: 2,
  accountId: 2, instanceType: null, instanceId: null, cmd:
  com.cloud.storage.VmWorkAttachVolume, cmdInfo:
 
 
 
 rO0ABXNyACRjb20uY2xvdWQuc3RvcmFnZS5WbVdvcmtBdHRhY2hWb2x1bWUHra_5YYfiHAIAAkwACGRldmljZUlkdAAQTGphdmEvbGFuZy9Mb25nO0wACHZvbHVtZUlkcQB-AAF4cgATY29tLmNsb3VkLnZtLlZtV29ya5-ZtlbwJWdrAgAESgAJYWNjb3VudElkSgAGdXNlcklkSgAEdm1JZEwAC2hhbmRsZXJOYW1ldAASTGphdmEvbGFuZy9TdHJpbmc7eHAAAgACAJp0ABRWb2x1bWVBcGlTZXJ2aWNlSW1wbHBzcgAOamF2YS5sYW5nLkxvbmc7i-SQzI8j3wIAAUoABXZhbHVleHIAEGphdmEubGFuZy5OdW1iZXKGrJUdC5TgiwIAAHhwAK8,
  cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0,
  result: null, initMsid: 345049815164, completeMsid: null, lastUpdated:
  null, lastPolled: null, created: Wed Apr 01 09:47:24 EDT 2015}, job
  origin:484
  com.cloud.utils.exception.CloudRuntimeException: Failed to attach volume
  test-cvg to VM RESIZE-TEST-2012; AttachVolumeCommand failed due to
  Exception: java.lang.Exception
  Message: Unable to find the VM to execute AttachVolumeCommand, vmName:
  i-2-154-VM
 
  at
 
 
 
 com.cloud.storage.VolumeApiServiceImpl.sendAttachVolumeCommand(VolumeApiServiceImpl.java:2110)
  at
 
 
 
 com.cloud.storage.VolumeApiServiceImpl.attachVolumeToVM(VolumeApiServiceImpl.java:1247)
  at
 
 
 
 com.cloud.storage.VolumeApiServiceImpl.orchestrateAttachVolumeToVM(VolumeApiServiceImpl.java:1091)
  at
 
 
 
 com.cloud.storage.VolumeApiServiceImpl.orchestrateAttachVolumeToVM(VolumeApiServiceImpl.java:2476)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 
 
 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at
 
 
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:606)
  at
 
 
 
 com.cloud.vm.VmWorkJobHandlerProxy.handleVmWorkJob(VmWorkJobHandlerProxy.java:107

Re: Trouble Attaching Volume

2015-04-02 Thread Yitao Jiang
Synchronisation work need to be done. I will do some hacking when i am free.
On Apr 2, 2015 10:27 PM, Steve Searles ssear...@zimcom.net wrote:

 That was it.  Thanks!.  What is the best practice for DRS and HA with
 vmware for use with Cloudstack? Disabled?

 Steven Searles



 On Apr 2, 2015, at 2:17 AM, Sanjeev N sanj...@apache.orgmailto:
 sanj...@apache.org wrote:

 Also make sure that vm is actually running on the host

 On Thu, Apr 2, 2015 at 6:11 AM, Yitao Jiang willier...@gmail.commailto:
 willier...@gmail.com wrote:

 I met the same issue before. Cause under vmware cluster ha enabled, so the
 vm mirgrated among hosts. You can check the host which vm lives in cloud
 databases, and compare to the actual host, if mismatchrd, changing the db
 table, thrn all works fine.
 On Apr 1, 2015 9:52 PM, Steve Searles ssear...@zimcom.netmailto:
 ssear...@zimcom.net wrote:

 I am having trouble attaching a volume to an existing VM.  Adding an
 extra
 volume during the instance creation works fine.  It does not seem to
 matter
 what state the VM is in eg. stopped or running I receive the same error.
 Anyone know what this means? I can not find any further information on
 Message: Unable to find the VM to execute AttachVolumeCommand”, ‘


 Cloudstack 4.4.2
 Vmware 5.5



 Any help would be appreciated.


 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (Work-Job-Executor-1:ctx-4e1f0aca
 job-484/job-485) Add job-485 into job monitoring
 INFO  [c.c.s.VolumeApiServiceImpl] (Work-Job-Executor-1:ctx-4e1f0aca
 job-484/job-485 ctx-3e014d23) Trying to attaching volume 175 to vm
 instance:154, update async job-485 progress status
 ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-1:ctx-4e1f0aca
 job-484/job-485 ctx-3e014d23) Invocation exception, caused by:
 com.cloud.utils.exception.CloudRuntimeException: Failed to attach volume
 test-cvg to VM RESIZE-TEST-2012; AttachVolumeCommand failed due to
 Exception: java.lang.Exception
 Message: Unable to find the VM to execute AttachVolumeCommand, vmName:
 i-2-154-VM

 INFO  [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-1:ctx-4e1f0aca
 job-484/job-485 ctx-3e014d23) Rethrow exception
 com.cloud.utils.exception.CloudRuntimeException: Failed to attach volume
 test-cvg to VM RESIZE-TEST-2012; AttachVolumeCommand failed due to
 Exception: java.lang.Exception
 Message: Unable to find the VM to execute AttachVolumeCommand, vmName:
 i-2-154-VM

 ERROR [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-1:ctx-4e1f0aca
 job-484/job-485) Unable to complete AsyncJobVO {id:485, userId: 2,
 accountId: 2, instanceType: null, instanceId: null, cmd:
 com.cloud.storage.VmWorkAttachVolume, cmdInfo:


 rO0ABXNyACRjb20uY2xvdWQuc3RvcmFnZS5WbVdvcmtBdHRhY2hWb2x1bWUHra_5YYfiHAIAAkwACGRldmljZUlkdAAQTGphdmEvbGFuZy9Mb25nO0wACHZvbHVtZUlkcQB-AAF4cgATY29tLmNsb3VkLnZtLlZtV29ya5-ZtlbwJWdrAgAESgAJYWNjb3VudElkSgAGdXNlcklkSgAEdm1JZEwAC2hhbmRsZXJOYW1ldAASTGphdmEvbGFuZy9TdHJpbmc7eHAAAgACAJp0ABRWb2x1bWVBcGlTZXJ2aWNlSW1wbHBzcgAOamF2YS5sYW5nLkxvbmc7i-SQzI8j3wIAAUoABXZhbHVleHIAEGphdmEubGFuZy5OdW1iZXKGrJUdC5TgiwIAAHhwAK8,
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0,
 result: null, initMsid: 345049815164, completeMsid: null, lastUpdated:
 null, lastPolled: null, created: Wed Apr 01 09:47:24 EDT 2015}, job
 origin:484
 com.cloud.utils.exception.CloudRuntimeException: Failed to attach volume
 test-cvg to VM RESIZE-TEST-2012; AttachVolumeCommand failed due to
 Exception: java.lang.Exception
 Message: Unable to find the VM to execute AttachVolumeCommand, vmName:
 i-2-154-VM

 at


 com.cloud.storage.VolumeApiServiceImpl.sendAttachVolumeCommand(VolumeApiServiceImpl.java:2110)
 at


 com.cloud.storage.VolumeApiServiceImpl.attachVolumeToVM(VolumeApiServiceImpl.java:1247)
 at


 com.cloud.storage.VolumeApiServiceImpl.orchestrateAttachVolumeToVM(VolumeApiServiceImpl.java:1091)
 at


 com.cloud.storage.VolumeApiServiceImpl.orchestrateAttachVolumeToVM(VolumeApiServiceImpl.java:2476)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at


 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at


 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at


 com.cloud.vm.VmWorkJobHandlerProxy.handleVmWorkJob(VmWorkJobHandlerProxy.java:107)
 at


 com.cloud.storage.VolumeApiServiceImpl.handleVmWorkJob(VolumeApiServiceImpl.java:2511)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at


 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at


 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at


 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
 at


 org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183

Re: Trouble Attaching Volume

2015-04-01 Thread Yitao Jiang
I met the same issue before. Cause under vmware cluster ha enabled, so the
vm mirgrated among hosts. You can check the host which vm lives in cloud
databases, and compare to the actual host, if mismatchrd, changing the db
table, thrn all works fine.
On Apr 1, 2015 9:52 PM, Steve Searles ssear...@zimcom.net wrote:

 I am having trouble attaching a volume to an existing VM.  Adding an extra
 volume during the instance creation works fine.  It does not seem to matter
 what state the VM is in eg. stopped or running I receive the same error.
 Anyone know what this means? I can not find any further information on
 Message: Unable to find the VM to execute AttachVolumeCommand”, ‘


 Cloudstack 4.4.2
 Vmware 5.5



 Any help would be appreciated.


 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (Work-Job-Executor-1:ctx-4e1f0aca
 job-484/job-485) Add job-485 into job monitoring
 INFO  [c.c.s.VolumeApiServiceImpl] (Work-Job-Executor-1:ctx-4e1f0aca
 job-484/job-485 ctx-3e014d23) Trying to attaching volume 175 to vm
 instance:154, update async job-485 progress status
 ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-1:ctx-4e1f0aca
 job-484/job-485 ctx-3e014d23) Invocation exception, caused by:
 com.cloud.utils.exception.CloudRuntimeException: Failed to attach volume
 test-cvg to VM RESIZE-TEST-2012; AttachVolumeCommand failed due to
 Exception: java.lang.Exception
 Message: Unable to find the VM to execute AttachVolumeCommand, vmName:
 i-2-154-VM

 INFO  [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-1:ctx-4e1f0aca
 job-484/job-485 ctx-3e014d23) Rethrow exception
 com.cloud.utils.exception.CloudRuntimeException: Failed to attach volume
 test-cvg to VM RESIZE-TEST-2012; AttachVolumeCommand failed due to
 Exception: java.lang.Exception
 Message: Unable to find the VM to execute AttachVolumeCommand, vmName:
 i-2-154-VM

 ERROR [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-1:ctx-4e1f0aca
 job-484/job-485) Unable to complete AsyncJobVO {id:485, userId: 2,
 accountId: 2, instanceType: null, instanceId: null, cmd:
 com.cloud.storage.VmWorkAttachVolume, cmdInfo:
 rO0ABXNyACRjb20uY2xvdWQuc3RvcmFnZS5WbVdvcmtBdHRhY2hWb2x1bWUHra_5YYfiHAIAAkwACGRldmljZUlkdAAQTGphdmEvbGFuZy9Mb25nO0wACHZvbHVtZUlkcQB-AAF4cgATY29tLmNsb3VkLnZtLlZtV29ya5-ZtlbwJWdrAgAESgAJYWNjb3VudElkSgAGdXNlcklkSgAEdm1JZEwAC2hhbmRsZXJOYW1ldAASTGphdmEvbGFuZy9TdHJpbmc7eHAAAgACAJp0ABRWb2x1bWVBcGlTZXJ2aWNlSW1wbHBzcgAOamF2YS5sYW5nLkxvbmc7i-SQzI8j3wIAAUoABXZhbHVleHIAEGphdmEubGFuZy5OdW1iZXKGrJUdC5TgiwIAAHhwAK8,
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0,
 result: null, initMsid: 345049815164, completeMsid: null, lastUpdated:
 null, lastPolled: null, created: Wed Apr 01 09:47:24 EDT 2015}, job
 origin:484
 com.cloud.utils.exception.CloudRuntimeException: Failed to attach volume
 test-cvg to VM RESIZE-TEST-2012; AttachVolumeCommand failed due to
 Exception: java.lang.Exception
 Message: Unable to find the VM to execute AttachVolumeCommand, vmName:
 i-2-154-VM

 at
 com.cloud.storage.VolumeApiServiceImpl.sendAttachVolumeCommand(VolumeApiServiceImpl.java:2110)
 at
 com.cloud.storage.VolumeApiServiceImpl.attachVolumeToVM(VolumeApiServiceImpl.java:1247)
 at
 com.cloud.storage.VolumeApiServiceImpl.orchestrateAttachVolumeToVM(VolumeApiServiceImpl.java:1091)
 at
 com.cloud.storage.VolumeApiServiceImpl.orchestrateAttachVolumeToVM(VolumeApiServiceImpl.java:2476)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 com.cloud.vm.VmWorkJobHandlerProxy.handleVmWorkJob(VmWorkJobHandlerProxy.java:107)
 at
 com.cloud.storage.VolumeApiServiceImpl.handleVmWorkJob(VolumeApiServiceImpl.java:2511)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
 at
 org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
 at
 org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
 at
 org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
 at
 org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
 at
 org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
 at com.sun.proxy.$Proxy183.handleVmWorkJob(Unknown Source)
 at com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:102)
 at
 

Re: 打开控制台窗口,一直显示黑屏,过一会超时,查看cpvm的日志,报错信息:error occurred in connecting to socket [AprSocketWrapper(socket)] ERROR: Cannot make SSL handshake with server(104): error:00000000:lib(0):func(0):reason(0)

2015-03-31 Thread Yitao Jiang
默认流量是通过https进行通信的,如果是内网不太需要这种安全的的话,可以将secstorage.encrypt.copy 改为false​  试试


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

On Tue, Mar 31, 2015 at 3:49 PM, shaofeng.ch...@gamil.com 
shaofeng.ch...@gmail.com wrote:

 大家好!!

 打开控制台窗口,一直显示黑屏,过一会超时,查看cpvm的日志,
 报错信息:error occurred in connecting to socket
 [AprSocketWrapper(socket)] ERROR: Cannot make SSL handshake with
 server(104): error::lib(0):func(0):reason(0)
具体日志如下,辛苦了,多谢!!

[BEGIN] 2015/3/26 15:56:37
 2015-03-26 08:03:42,175 DEBUG [cloud.consoleproxy.ConsoleProxyGCThread]
 (Console Proxy GC Thread:null) connMap={}
 2015-03-26 08:03:42,177 DEBUG [resource.consoleproxy.ConsoleProxyResource]
 (Console Proxy GC Thread:null) Report proxy load info, proxy : 10, load: {
 connections: []
 }
 2015-03-26 08:03:42,177 DEBUG [cloud.consoleproxy.ConsoleProxyGCThread]
 (Console Proxy GC Thread:null) Report load change : {
 connections: []
 }
 2015-03-26 08:03:42,235 DEBUG [cloud.agent.Agent] (Agent-Handler-4:null)
 Received response: Seq 5-828: { Ans: , MgmtId: 2450559922832, via: 5, Ver:
 v1, Flags: 100010,
 [{com.cloud.agent.api.AgentControlAnswer:{result:true,wait:0}}] }
 2015-03-26 08:03:47,185 DEBUG [cloud.consoleproxy.ConsoleProxyGCThread]
 (Console Proxy GC Thread:null) connMap={}
 2015-03-26 08:03:47,186 DEBUG [resource.consoleproxy.ConsoleProxyResource]
 (Console Proxy GC Thread:null) Report proxy load info, proxy : 10, load: {
 connections: []
 }
 2015-03-26 08:03:47,187 DEBUG [cloud.consoleproxy.ConsoleProxyGCThread]
 (Console Proxy GC Thread:null) Report load change : {
 connections: []
 }
 2015-03-26 08:03:47,248 DEBUG [cloud.agent.Agent] (Agent-Handler-3:null)
 Received response: Seq 5-829: { Ans: , MgmtId: 2450559922832, via: 5, Ver:
 v1, Flags: 100010,
 [{com.cloud.agent.api.AgentControlAnswer:{result:true,wait:0}}] }
 2015-03-26 08:03:47,284 DEBUG
 [cloud.consoleproxy.ConsoleProxyHttpHandlerHelper] (Thread-299:null) decode
 token. host: C8948337-5798-4CCE-AF70-88A492DBFC59
 2015-03-26 08:03:47,285 DEBUG
 [cloud.consoleproxy.ConsoleProxyHttpHandlerHelper] (Thread-299:null) decode
 token. port: 2179
 2015-03-26 08:03:47,285 DEBUG
 [cloud.consoleproxy.ConsoleProxyHttpHandlerHelper] (Thread-299:null) decode
 token. tag: e8b6b638-c242-4967-9c6c-31e713ec9e4e
 2015-03-26 08:03:47,343 DEBUG [cloud.agent.Agent] (Agent-Handler-5:null)
 Received response: Seq 5-830: { Ans: , MgmtId: 2450559922832, via: 5, Ver:
 v1, Flags: 100010,
 [{com.cloud.agent.api.ConsoleAccessAuthenticationAnswer:{_success:true,_isReauthenticating:false,_port:0,result:true,wait:0}}]
 }
 2015-03-26 08:03:47,346 INFO [cloud.consoleproxy.ConsoleProxyRdpClient]
 (Thread-299:null) connecting to instance
 C8948337-5798-4CCE-AF70-88A492DBFC59 on host 192.168.212.175
 2015-03-26 08:03:47,348 INFO [cloud.consoleproxy.ConsoleProxy]
 (Thread-299:null) Added viewer object
 com.cloud.consoleproxy.ConsoleProxyRdpClient@5c9c2c33
 2015-03-26 08:03:47,350 DEBUG [resource.consoleproxy.ConsoleProxyResource]
 (Thread-299:null) Report proxy load info, proxy : 10, load: {
 connections: [
 {
 id: 3,
 clientInfo: ,
 host: C8948337-5798-4CCE-AF70-88A492DBFC59,
 port: 2179,
 tag: e8b6b638-c242-4967-9c6c-31e713ec9e4e,
 createTime: 1427357027344,
 lastUsedTime: 1427357027344
 }
 ]
 }
 2015-03-26 08:03:47,351 DEBUG [cloud.consoleproxy.ConsoleProxy]
 (Thread-299:null) Report load change : {
 connections: [
 {
 id: 3,
 clientInfo: ,
 host: C8948337-5798-4CCE-AF70-88A492DBFC59,
 port: 2179,
 tag: e8b6b638-c242-4967-9c6c-31e713ec9e4e,
 createTime: 1427357027344,
 lastUsedTime: 1427357027344
 }
 ]
 }
 2015-03-26 08:03:47,351 DEBUG [cloud.consoleproxy.ConsoleProxyAjaxHandler]
 (Thread-299:null) Ajax request indicates a fresh client start
 2015-03-26 08:03:47,353 DEBUG [resource.consoleproxy.ConsoleProxyResource]
 (Thread-300:null) Ensure route for 192.168.212.175 via 192.168.212.254
 2015-03-26 08:03:47,357 DEBUG [resource.consoleproxy.ConsoleProxyResource]
 (Thread-300:null) addRouteToInternalIp: localgw=192.168.212.254,
 eth1ip=192.168.212.248, eth1mask=255.255.255.0,destIp=192.168.212.175
 2015-03-26 08:03:47,357 DEBUG [resource.consoleproxy.ConsoleProxyResource]
 (Thread-300:null) addRouteToInternalIp: dest ip 192.168.212.175 is in the
 same subnet as eth1 ip 192.168.212.248
 2015-03-26 08:03:47,358 INFO [cloud.consoleproxy.ConsoleProxyRdpClient]
 (Thread-300:null) Connecting socket to remote server and run main loop(s)
 2015-03-26 08:03:47,446 DEBUG [cloud.agent.Agent] (Agent-Handler-1:null)
 Received response: Seq 5-831: { Ans: , MgmtId: 2450559922832, via: 5, Ver:
 v1, Flags: 100010,
 [{com.cloud.agent.api.AgentControlAnswer:{result:true,wait:0}}] }
 2015-03-26 08:03:47,690 DEBUG
 [cloud.consoleproxy.ConsoleProxyAjaxImageHandler] (Thread-302:null)
 AjaxImageHandler
 

Re: CS日志时间和系统时间一致

2015-03-31 Thread Yitao Jiang
cs 的时间是通过java取的时间。​


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io

2015-03-31 10:35 GMT+08:00 shaofeng.ch...@gamil.com 
shaofeng.ch...@gmail.com:

 大家好!

 在修改了系统时区后,如何让CS的日志时间和系统时间一致?


 尝试过,重置数据库

 重新安装
cloudstack-common-4.4.2-NONOSS_1.el6.x86_64
 cloudstack-awsapi-4.4.2-NONOSS_1.el6.x86_64
 cloudstack-management-4.4.2-NONOSS_1.el6.x86_64


 辛苦了,多谢!!



Integrate Cloudstack With Jclouds Issues

2014-10-31 Thread Yitao Jiang
Hi, guys

 I wonder if anyone using jclouds to access cloudstack(4.2.1), I googled
but found only a few documents but only a blog about example how
accessing cloudstack version 2.2, and i don't know how to login into
cloudstack to obtain other API


---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io