RE: cloudstack的返回码

2014-11-06 文章 YUAN, GUI -HBIS
很有可能是这儿的

  F:\git\cloudstack\api\src\org\apache\cloudstack\api\ApiErrorCode.java(33):
INSUFFICIENT_CAPACITY_ERROR(533),

///
package org.apache.cloudstack.api;

/**
 * Enum class for various API error code used in CloudStack
 *
 */
public enum ApiErrorCode {

MALFORMED_PARAMETER_ERROR(430),
PARAM_ERROR(431),
UNSUPPORTED_ACTION_ERROR(432),
API_LIMIT_EXCEED(429),

INTERNAL_ERROR(530),
ACCOUNT_ERROR(531),
ACCOUNT_RESOURCE_LIMIT_ERROR(532),
INSUFFICIENT_CAPACITY_ERROR(533),
RESOURCE_UNAVAILABLE_ERROR(534),
RESOURCE_ALLOCATION_ERROR(535),
RESOURCE_IN_USE_ERROR(536),
NETWORK_RULE_CONFLICT_ERROR(537);

private int httpCode;

private ApiErrorCode(int httpStatusCode){
httpCode = httpStatusCode;
}

public int getHttpCode() {
return httpCode;
}

public void setHttpCode(int httpCode) {
this.httpCode = httpCode;
}

public String toString(){
return String.valueOf(this.httpCode);
}


}

>-Original Message-
>From: java...@126.com [mailto:java...@126.com]
>Sent: Friday, November 07, 2014 11:57 AM
>To: users-cn
>Subject: cloudstack的返回码
>
>大家好,
> cloudstack的接口调用后,errorcode及的含义,有谁知道吗?请不吝赐
>教,谢谢!
>
>如:
>返回结果:{ "queryasyncjobresultresponse" :
>{"accountid":"9abf7fa4-d35f-11e3-8041-e03f49a17d5d","userid":"9acaf74
>4-d35f-11e3-8041-e03f49a17d5d","cmd":"org.apache.cloudstack.api.comma
>nd.user.vm.DeployVMCmd","jobstatus":2,"jobprocstatus":0,"jobresultcod
>e":530,"jobresulttype":"object","jobresult":{"errorcode":533,"errorte
>xt":"Unable to create a deployment for
>VM[User|YZZQ-L0005162]"},"created":"2014-11-07T10:40:10+0800","jobid"
>:"41b03abf-b812-4896-9d75-c57a91fdabd1"} }
>
>
>
>java...@126.com

Disclaimer:
The contents of this e-mail, and its attachments, if any, are confidential and 
may be protected
by law against any unauthorized use.  If you have received this e-mail by 
mistake or have
reason to believe that you are not the intended recipient, please notify the 
sender by reply
e-mail as soon as possible and delete it from your computer system immediately 
thereafter.
If you are not the intended recipient, you must not copy this e-mail or 
attachment or disclose
the contents to any other person.  While we have made every effort to keep our 
network virus free,
we take no responsibility for any computer virus which might be transferred by 
way of this e-mail.


cloudstack的返回码

2014-11-06 文章 java...@126.com
大家好,
 cloudstack的接口调用后,errorcode及的含义,有谁知道吗?请不吝赐教,谢谢!

如:
返回结果:{ "queryasyncjobresultresponse" : 
{"accountid":"9abf7fa4-d35f-11e3-8041-e03f49a17d5d","userid":"9acaf744-d35f-11e3-8041-e03f49a17d5d","cmd":"org.apache.cloudstack.api.command.user.vm.DeployVMCmd","jobstatus":2,"jobprocstatus":0,"jobresultcode":530,"jobresulttype":"object","jobresult":{"errorcode":533,"errortext":"Unable
 to create a deployment for 
VM[User|YZZQ-L0005162]"},"created":"2014-11-07T10:40:10+0800","jobid":"41b03abf-b812-4896-9d75-c57a91fdabd1"}
 }



java...@126.com


cloudstack4.4.0+hyper-v开发

2014-11-06 文章 w...@landhightech.com

大家好:
  我使用的版本是cloudstack4.4.0,我想进行Hyper-v 的安装配置,我在编辑 cloudstack 
Hyper-V代理这里,遇到了困难,大家能否提供一下Hyper-v在Linux环境下的编译生成的资料,或者能否为我提供一下可供使用的AgentShell.exe文件,谢谢大家了。


w...@landhightech.com


答复: cloudstack添加主机问题

2014-11-06 文章 张仕博
我测试成功的环境是xenserver 6.2,后续会验证下vmware

-邮件原件-
发件人: Star Guo [mailto:st...@ceph.me] 
发送时间: 2014年11月6日 18:02
收件人: '张仕博'; users-cn@cloudstack.apache.org
主题: 答复: cloudstack添加主机问题

Hi,
由于Cloudstack+VMware vCenter采用是单独的数据库,而且暂时不明确通过在vmware
vsphere client添加主机到群集后,是否会让cloudstack主动发现主机信息,如果你验
证了步骤,那保持这个步骤。大致只能这样。

Best Regards,
Star Guo


-邮件原件-
发件人: 张仕博 [mailto:zhang...@neusoft.com]
发送时间: 2014年11月6日 17:56
收件人: 'Star Guo'; users-cn@cloudstack.apache.org
主题: 答复: cloudstack添加主机问题

就是在虚拟化资源池中先把主机添加进去,这时候cloudstack是不知道资源池中多出一
台主机的,在cloudstack中再把这台主机加一次。

经过测试可以了



-邮件原件-
发件人: Star Guo [mailto:st...@ceph.me]
发送时间: 2014年11月6日 17:52
收件人: '张仕博'; users-cn@cloudstack.apache.org
主题: 答复: cloudstack添加主机问题

你好!
请你把问题详细描述清楚?

Best Regards,
Star Guo

-邮件原件-
发件人: 张仕博 [mailto:zhang...@neusoft.com]
发送时间: 2014年11月6日 16:49
收件人: users-cn
主题: cloudstack添加主机问题

有人试过先在虚拟化环境中把主机添加进集群,然后在cloudstack中把主机加进去么?

 


---
Confidentiality Notice: The information contained in this e-mail and any
accompanying attachment(s) is intended only for the use of the intended
recipient and may be confidential and/or privileged of Neusoft Corporation,
its subsidiaries and/or its affiliates. If any reader of this communication
is not the intended recipient, unauthorized use, forwarding, printing,
storing, disclosure or copying is strictly prohibited, and may be
unlawful.If you have received this communication in error,please immediately
notify the sender by return e-mail, and delete the original message and all
copies from your system. Thank you. 

---

---
Confidentiality Notice: The information contained in this e-mail and any
accompanying attachment(s) is intended only for the use of the intended
recipient and may be confidential and/or privileged of Neusoft Corporation,
its subsidiaries and/or its affiliates. If any reader of this communication
is not the intended recipient, unauthorized use, forwarding, printing,
storing, disclosure or copying is strictly prohibited, and may be
unlawful.If you have received this communication in error,please immediately
notify the sender by return e-mail, and delete the original message and all
copies from your system. Thank you. 

---
---
Confidentiality Notice: The information contained in this e-mail and any 
accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential 
and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of 
this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, 
disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this 
communication in error,please 
immediately notify the sender by return e-mail, and delete the original message 
and all copies from 
your system. Thank you. 
---


答复: cloudstack添加主机问题

2014-11-06 文章 Star Guo
Hi,
由于Cloudstack+VMware vCenter采用是单独的数据库,而且暂时不明确通过在vmware
vsphere client添加主机到群集后,是否会让cloudstack主动发现主机信息,如果你验
证了步骤,那保持这个步骤。大致只能这样。

Best Regards,
Star Guo


-邮件原件-
发件人: 张仕博 [mailto:zhang...@neusoft.com] 
发送时间: 2014年11月6日 17:56
收件人: 'Star Guo'; users-cn@cloudstack.apache.org
主题: 答复: cloudstack添加主机问题

就是在虚拟化资源池中先把主机添加进去,这时候cloudstack是不知道资源池中多出一
台主机的,在cloudstack中再把这台主机加一次。

经过测试可以了



-邮件原件-
发件人: Star Guo [mailto:st...@ceph.me]
发送时间: 2014年11月6日 17:52
收件人: '张仕博'; users-cn@cloudstack.apache.org
主题: 答复: cloudstack添加主机问题

你好!
请你把问题详细描述清楚?

Best Regards,
Star Guo

-邮件原件-
发件人: 张仕博 [mailto:zhang...@neusoft.com]
发送时间: 2014年11月6日 16:49
收件人: users-cn
主题: cloudstack添加主机问题

有人试过先在虚拟化环境中把主机添加进集群,然后在cloudstack中把主机加进去么?

 


---
Confidentiality Notice: The information contained in this e-mail and any
accompanying attachment(s) is intended only for the use of the intended
recipient and may be confidential and/or privileged of Neusoft Corporation,
its subsidiaries and/or its affiliates. If any reader of this communication
is not the intended recipient, unauthorized use, forwarding, printing,
storing, disclosure or copying is strictly prohibited, and may be
unlawful.If you have received this communication in error,please immediately
notify the sender by return e-mail, and delete the original message and all
copies from your system. Thank you. 

---

---
Confidentiality Notice: The information contained in this e-mail and any
accompanying attachment(s) is intended only for the use of the intended
recipient and may be confidential and/or privileged of Neusoft Corporation,
its subsidiaries and/or its affiliates. If any reader of this communication
is not the intended recipient, unauthorized use, forwarding, printing,
storing, disclosure or copying is strictly prohibited, and may be
unlawful.If you have received this communication in error,please immediately
notify the sender by return e-mail, and delete the original message and all
copies from your system. Thank you. 

---


答复: cloudstack添加主机问题

2014-11-06 文章 张仕博
就是在虚拟化资源池中先把主机添加进去,这时候cloudstack是不知道资源池中多出一
台主机的,在cloudstack中再把这台主机加一次。

经过测试可以了



-邮件原件-
发件人: Star Guo [mailto:st...@ceph.me] 
发送时间: 2014年11月6日 17:52
收件人: '张仕博'; users-cn@cloudstack.apache.org
主题: 答复: cloudstack添加主机问题

你好!
请你把问题详细描述清楚?

Best Regards,
Star Guo

-邮件原件-
发件人: 张仕博 [mailto:zhang...@neusoft.com]
发送时间: 2014年11月6日 16:49
收件人: users-cn
主题: cloudstack添加主机问题

有人试过先在虚拟化环境中把主机添加进集群,然后在cloudstack中把主机加进去么?

 


---
Confidentiality Notice: The information contained in this e-mail and any
accompanying attachment(s) is intended only for the use of the intended
recipient and may be confidential and/or privileged of Neusoft Corporation,
its subsidiaries and/or its affiliates. If any reader of this communication
is not the intended recipient, unauthorized use, forwarding, printing,
storing, disclosure or copying is strictly prohibited, and may be
unlawful.If you have received this communication in error,please immediately
notify the sender by return e-mail, and delete the original message and all
copies from your system. Thank you. 

---
---
Confidentiality Notice: The information contained in this e-mail and any 
accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential 
and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of 
this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, 
disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this 
communication in error,please 
immediately notify the sender by return e-mail, and delete the original message 
and all copies from 
your system. Thank you. 
---


答复: cloudstack添加主机问题

2014-11-06 文章 Star Guo
你好!
请你把问题详细描述清楚?

Best Regards,
Star Guo

-邮件原件-
发件人: 张仕博 [mailto:zhang...@neusoft.com] 
发送时间: 2014年11月6日 16:49
收件人: users-cn
主题: cloudstack添加主机问题

有人试过先在虚拟化环境中把主机添加进集群,然后在cloudstack中把主机加进去么?

 


---
Confidentiality Notice: The information contained in this e-mail and any
accompanying attachment(s) is intended only for the use of the intended
recipient and may be confidential and/or privileged of Neusoft Corporation,
its subsidiaries and/or its affiliates. If any reader of this communication
is not the intended recipient, unauthorized use, forwarding, printing,
storing, disclosure or copying is strictly prohibited, and may be
unlawful.If you have received this communication in error,please immediately
notify the sender by return e-mail, and delete the original message and all
copies from your system. Thank you. 

---



cloudstack添加主机问题

2014-11-06 文章 张仕博
有人试过先在虚拟化环境中把主机添加进集群,然后在cloudstack中把主机加进去么?

 

---
Confidentiality Notice: The information contained in this e-mail and any 
accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential 
and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of 
this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, 
disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this 
communication in error,please 
immediately notify the sender by return e-mail, and delete the original message 
and all copies from 
your system. Thank you. 
---


Unable to create a deployment for VM

2014-11-06 文章 xool

 1.??UI??
Job failed due to exception Unable to create a deployment for VM[User|i-2-7-VM]
 2.??UI??
Unable to create a deployment for VM[User|i-2-19-VM], Please check the affinity 
groups provided, there may not be sufficient capacity to follow them
 
UI 
(not suitable)??
??LINUX??  ??
 
cloudstack??
1.cloudstack4.4 ?? 192.168.10.1/24 ??
 2.node1 ??node2
node1 192.168.10.2/24  6G CPU 4*3.3G ,( 1G CPU 1G)  

node2 192.168.10.3/24 32G CPU 8*2.5G ,( 1G CPU 1G) 

 3.??(NFS)NFS??node2??1TB??
 4.Centos 6.5
  
 
 2014-11-06 14:57:51,098 DEBUG [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-14:null) Ping from 5
2014-11-06 14:57:52,477 DEBUG [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-1:null) SeqA 6-1904: Processing Seq 6-1904:  { Cmd , 
MgmtId: -1, via: 6, Ver: v1, Flags: 11, 
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":16,"_loadInfo":"{\n
  \"connections\": []\n}","wait":0}}] }
2014-11-06 14:57:52,490 DEBUG [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-1:null) SeqA 6-1904: Sending Seq 6-1904:  { Ans: , 
MgmtId: 233916160448482, via: 6, Ver: v1, Flags: 100010, 
[{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2014-11-06 14:57:56,161 DEBUG [c.c.a.ApiServlet] 
(catalina-exec-14:ctx-b0f5ac29) ===START===  192.168.10.223 -- GET  
command=deployVirtualMachine&response=json&sessionkey=NZGSe2vvRNJmVzxlhqoSjOoMIOw%3D&zoneid=af89fee6-74b6-4f43-b971-d7159eb00a4b&templateid=97585d8e-51d5-46c4-b43a-071b69dee618&hypervisor=KVM&serviceofferingid=c756d147-2e19-49bb-a0d5-38e009b4b8fa&diskofferingid=bfb3caf6-0306-479b-b819-f54238e533e9&affinitygroupids=67670c73-a76f-49b1-91db-7150520376d7&securitygroupids=63406080-6008-11e4-8bad-51d63eb3c8ce&displayname=VPNSER&name=VPNSER&_=1415257074042
2014-11-06 14:57:56,221 DEBUG [c.c.v.UserVmManagerImpl] 
(catalina-exec-14:ctx-b0f5ac29 ctx-68cde18c) Allocating in the DB for vm
2014-11-06 14:57:56,230 DEBUG [c.c.v.VirtualMachineManagerImpl] 
(catalina-exec-14:ctx-b0f5ac29 ctx-68cde18c) Allocating entries for VM: 
VM[User|i-2-20-VM]
2014-11-06 14:57:56,230 DEBUG [c.c.v.VirtualMachineManagerImpl] 
(catalina-exec-14:ctx-b0f5ac29 ctx-68cde18c) Allocating nics for 
VM[User|i-2-20-VM]
2014-11-06 14:57:56,231 DEBUG [o.a.c.e.o.NetworkOrchestrator] 
(catalina-exec-14:ctx-b0f5ac29 ctx-68cde18c) Allocating nic for vm 
VM[User|i-2-20-VM] in network 
Ntwk[f0420e4e-f018-409a-ad21-606a77170f80|Guest|6] with requested profile 
NicProfile[0-0-null-null-null
2014-11-06 14:57:56,237 DEBUG [c.c.v.VirtualMachineManagerImpl] 
(catalina-exec-14:ctx-b0f5ac29 ctx-68cde18c) Allocating disks for 
VM[User|i-2-20-VM]
2014-11-06 14:57:56,244 DEBUG [c.c.v.VirtualMachineManagerImpl] 
(catalina-exec-14:ctx-b0f5ac29 ctx-68cde18c) Allocation completed for VM: 
VM[User|i-2-20-VM]
2014-11-06 14:57:56,244 DEBUG [c.c.v.UserVmManagerImpl] 
(catalina-exec-14:ctx-b0f5ac29 ctx-68cde18c) Successfully allocated DB entry 
for VM[User|i-2-20-VM]
2014-11-06 14:57:56,391 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(catalina-exec-14:ctx-b0f5ac29 ctx-68cde18c) submit async job-211, details: 
AsyncJobVO {id:211, userId: 2, accountId: 2, instanceType: VirtualMachine, 
instanceId: 20, cmd: 
org.apache.cloudstack.api.command.admin.vm.DeployVMCmdByAdmin, cmdInfo: 
{"sessionkey":"NZGSe2vvRNJmVzxlhqoSjOoMIOw\u003d","serviceofferingid":"c756d147-2e19-49bb-a0d5-38e009b4b8fa","cmdEventType":"VM.CREATE","ctxUserId":"2","zoneid":"af89fee6-74b6-4f43-b971-d7159eb00a4b","affinitygroupids":"67670c73-a76f-49b1-91db-7150520376d7","httpmethod":"GET","templateid":"97585d8e-51d5-46c4-b43a-071b69dee618","securitygroupids":"63406080-6008-11e4-8bad-51d63eb3c8ce","id":"20","response":"json","ctxDetails":"{\"org.apache.cloudstack.affinity.AffinityGroup\":\"67670c73-a76f-49b1-91db-7150520376d7\",\"com.cloud.template.VirtualMachineTemplate\":\"97585d8e-51d5-46c4-b43a-071b69dee618\",\"com.cloud.vm.VirtualMachine\":\"c76dba75-5d67-40d2-8eec-b31825e1b849\",\"com.cloud.network.security.SecurityGroup\":\"63406080-6008-11e4-8bad-51d63eb3c8ce\",\"com.cloud.offering.DiskOffering\":\"bfb3caf6-0306-479b-b819-f54238e533e9\",\"com.cloud.dc.DataCenter\":\"af89fee6-74b6-4f43-b971-d7159eb00a4b\",\"com.cloud.offering.ServiceOffering\":\"c756d147-2e19-49bb-a0d5-38e009b4b8fa\"}","hypervisor":"KVM","name":"VPNSER","_":"1415257074042","uuid":"c76dba75-5d67-40d2-8eec-b31825e1b849","ctxAccountId":"2","diskofferingid":"bfb3caf6-0306-479b-b819-f54238e533e9","ctxStartEventId":"385","displayname":"VPNSER"},
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 233916160448482, completeMsid: null, lastUpdated: null, 
lastPolled: