You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-cn@cloudstack.apache.org by 朱兴雄 <zh...@centrin.com.cn> on 2013/01/10 08:17:10 UTC

怎样生成 API Key 和 Secret Key?

怎样生成 API Key 和 Secret Key?

 

谢谢


Re: Re: 新添加了一个节点,启动实例或者迁移vm都失败?

Posted by 马营 <br...@gmail.com>.
非常之有可能

2013/1/11 yangpengtao.slyt <ya...@gmail.com>

>
> 进程启动着,防火墙也关闭了,但是这两个节点在同一个cluster里,但是IP地址分别是168.160.6.12和192.168.17.13,是不是在不同vlan的原因??
>
>
>
>
> yangpengtao.slyt
> 2013-01-11
>
>
>
> 发件人: tanthalas
> 发送时间: 2013-01-11 13:39:41
> 收件人: cloudstack-users-cn
> 抄送:
> 主题: Re: 新添加了一个节点,启动实例或者迁移vm都失败?
>
> Unable to get answer that is of class com.cloud.agent.api.StartAnswer
> 可以怀疑是装在host上的agent没有返回结果。看看新节点的是不是agent的进程挂掉,或者是防火墙之类的问题。
> 2013-01-11
> 刘宇超  Richard Liu
> 发件人: yangpengtao.slyt
> 发送时间: 2013-01-11  10:13:56
> 收件人: cloudstack-users-cn
> 抄送:
> 主题: 新添加了一个节点,启动实例或者迁移vm都失败?
>
> 请各位看看log文件,帮忙找找原因
> se,moveToReserveredfalse
> 2013-01-11 10:21:00,865 DEBUG [cloud.capacity.CapacityManagerImpl]
> (Job-Executor-4:job-4) VM state transitted from :Stopped to Error with
> event: OperationFailedToErrorvm's original host id: null new host id: null
> host id before state transition: null
> 2013-01-11 10:21:00,931 WARN  [api.commands.DeployVMCmd]
> (Job-Executor-4:job-4) Exception:
> com.cloud.exception.AgentUnavailableException: Resource [Host:1] is
> unreachable: Host 1: Unable to start instance due to Unable to get answer
> that is of class com.cloud.agent.api.StartAnswer
>         at
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:828)
>         at
> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:461)
>         at
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2580)
>         at
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2517)
>         at
> com.cloud.event.ActionEventCallback.intercept(ActionEventCallback.java:32)
>         at com.cloud.api.commands.DeployVMCmd.execute(DeployVMCmd.java:317)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:132)
>         at
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:427)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:679)
> Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to get
> answer that is of class com.cloud.agent.api.StartAnswer
>         at com.cloud.agent.manager.Commands.getAnswer(Commands.java:76)
>         at
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:766)
>         ... 17 more
> 2013-01-11 10:21:00,933 WARN  [cloud.api.ApiDispatcher]
> (Job-Executor-4:job-4) class com.cloud.api.ServerApiException : Resource
> [Host:1] is unreachable: Host 1: Unable to start instance due to Unable to
> get answer that is of class com.cloud.agent.api.StartAnswer
> 2013-01-11 10:21:00,933 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-4:job-4) Complete async job-4, jobStatus: 2, resultCode: 530,
> result: com.cloud.api.response.ExceptionResponse@518f7f05
> yangpengtao.slyt
> 2013-01-11
>

Re: Re: 新添加了一个节点,启动实例或者迁移vm都失败?

Posted by "yangpengtao.slyt" <ya...@gmail.com>.
进程启动着,防火墙也关闭了,但是这两个节点在同一个cluster里,但是IP地址分别是168.160.6.12和192.168.17.13,是不是在不同vlan的原因??




yangpengtao.slyt
2013-01-11



发件人: tanthalas
发送时间: 2013-01-11 13:39:41
收件人: cloudstack-users-cn
抄送: 
主题: Re: 新添加了一个节点,启动实例或者迁移vm都失败?

Unable to get answer that is of class com.cloud.agent.api.StartAnswer 
可以怀疑是装在host上的agent没有返回结果。看看新节点的是不是agent的进程挂掉,或者是防火墙之类的问题。
2013-01-11 
刘宇超  Richard Liu
发件人: yangpengtao.slyt 
发送时间: 2013-01-11  10:13:56 
收件人: cloudstack-users-cn 
抄送: 
主题: 新添加了一个节点,启动实例或者迁移vm都失败? 

请各位看看log文件,帮忙找找原因
se,moveToReserveredfalse
2013-01-11 10:21:00,865 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-4:job-4) VM state transitted from :Stopped to Error with event: OperationFailedToErrorvm's original host id: null new host id: null host id before state transition: null
2013-01-11 10:21:00,931 WARN  [api.commands.DeployVMCmd] (Job-Executor-4:job-4) Exception: 
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host 1: Unable to start instance due to Unable to get answer that is of class com.cloud.agent.api.StartAnswer
        at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:828)
        at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:461)
        at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2580)
        at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2517)
        at com.cloud.event.ActionEventCallback.intercept(ActionEventCallback.java:32)
        at com.cloud.api.commands.DeployVMCmd.execute(DeployVMCmd.java:317)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:132)
        at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:427)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to get answer that is of class com.cloud.agent.api.StartAnswer
        at com.cloud.agent.manager.Commands.getAnswer(Commands.java:76)
        at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:766)
        ... 17 more
2013-01-11 10:21:00,933 WARN  [cloud.api.ApiDispatcher] (Job-Executor-4:job-4) class com.cloud.api.ServerApiException : Resource [Host:1] is unreachable: Host 1: Unable to start instance due to Unable to get answer that is of class com.cloud.agent.api.StartAnswer
2013-01-11 10:21:00,933 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-4:job-4) Complete async job-4, jobStatus: 2, resultCode: 530, result: com.cloud.api.response.ExceptionResponse@518f7f05
yangpengtao.slyt
2013-01-11

Re: 新添加了一个节点,启动实例或者迁移vm都失败?

Posted by tanthalas <ta...@hotmail.com>.
Unable to get answer that is of class com.cloud.agent.api.StartAnswer 
可以怀疑是装在host上的agent没有返回结果。看看新节点的是不是agent的进程挂掉,或者是防火墙之类的问题。


2013-01-11 



刘宇超  Richard Liu



发件人: yangpengtao.slyt 
发送时间: 2013-01-11  10:13:56 
收件人: cloudstack-users-cn 
抄送: 
主题: 新添加了一个节点,启动实例或者迁移vm都失败? 
 
请各位看看log文件,帮忙找找原因
se,moveToReserveredfalse
2013-01-11 10:21:00,865 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-4:job-4) VM state transitted from :Stopped to Error with event: OperationFailedToErrorvm's original host id: null new host id: null host id before state transition: null
2013-01-11 10:21:00,931 WARN  [api.commands.DeployVMCmd] (Job-Executor-4:job-4) Exception: 
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host 1: Unable to start instance due to Unable to get answer that is of class com.cloud.agent.api.StartAnswer
        at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:828)
        at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:461)
        at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2580)
        at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2517)
        at com.cloud.event.ActionEventCallback.intercept(ActionEventCallback.java:32)
        at com.cloud.api.commands.DeployVMCmd.execute(DeployVMCmd.java:317)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:132)
        at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:427)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to get answer that is of class com.cloud.agent.api.StartAnswer
        at com.cloud.agent.manager.Commands.getAnswer(Commands.java:76)
        at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:766)
        ... 17 more
2013-01-11 10:21:00,933 WARN  [cloud.api.ApiDispatcher] (Job-Executor-4:job-4) class com.cloud.api.ServerApiException : Resource [Host:1] is unreachable: Host 1: Unable to start instance due to Unable to get answer that is of class com.cloud.agent.api.StartAnswer
2013-01-11 10:21:00,933 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-4:job-4) Complete async job-4, jobStatus: 2, resultCode: 530, result: com.cloud.api.response.ExceptionResponse@518f7f05
yangpengtao.slyt
2013-01-11

新添加了一个节点,启动实例或者迁移vm都失败?

Posted by "yangpengtao.slyt" <ya...@gmail.com>.
请各位看看log文件,帮忙找找原因
se,moveToReserveredfalse
2013-01-11 10:21:00,865 DEBUG [cloud.capacity.CapacityManagerImpl] (Job-Executor-4:job-4) VM state transitted from :Stopped to Error with event: OperationFailedToErrorvm's original host id: null new host id: null host id before state transition: null
2013-01-11 10:21:00,931 WARN  [api.commands.DeployVMCmd] (Job-Executor-4:job-4) Exception: 
com.cloud.exception.AgentUnavailableException: Resource [Host:1] is unreachable: Host 1: Unable to start instance due to Unable to get answer that is of class com.cloud.agent.api.StartAnswer
        at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:828)
        at com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:461)
        at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2580)
        at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2517)
        at com.cloud.event.ActionEventCallback.intercept(ActionEventCallback.java:32)
        at com.cloud.api.commands.DeployVMCmd.execute(DeployVMCmd.java:317)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:132)
        at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:427)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to get answer that is of class com.cloud.agent.api.StartAnswer
        at com.cloud.agent.manager.Commands.getAnswer(Commands.java:76)
        at com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:766)
        ... 17 more
2013-01-11 10:21:00,933 WARN  [cloud.api.ApiDispatcher] (Job-Executor-4:job-4) class com.cloud.api.ServerApiException : Resource [Host:1] is unreachable: Host 1: Unable to start instance due to Unable to get answer that is of class com.cloud.agent.api.StartAnswer
2013-01-11 10:21:00,933 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-4:job-4) Complete async job-4, jobStatus: 2, resultCode: 530, result: com.cloud.api.response.ExceptionResponse@518f7f05



yangpengtao.slyt
2013-01-11

Re: 怎样生成 API Key 和 Secret Key?

Posted by Chunyang Liu <li...@chinaskycloud.com>.
帐号 -》 查看用户 -》 操作图标中有一个“生成Key”

于 2013/1/10 15:17, 朱兴雄 写道:
> 怎样生成 API Key 和 Secret Key?
>
>  
>
> 谢谢
>