回复: Re: cloudstack基本网络

2013-09-17 Thread toudsf
那怎么隔离了?

2013-09-17



toudsf



发件人:Hongtu Zang zanghongtu2...@gmail.com
发送时间:2013-09-17 13:53
主题:Re: cloudstack基本网络
收件人:users-cnusers-cn@cloudstack.apache.org
抄送:

不能 


在 2013年9月17日下午1:37,toudsf 18600601...@163.com写道: 

 大家好: 
 
 在使用cloudstack基本网络时,安全组能隔离vmware吗? 
 
 2013-09-17 
 
 
 
 toudsf 

我在创建完域以后启动SSVM出以下错误,请各位大拿帮忙看看啥情况。

2013-09-17 Thread toudsf
WARN  [xen.resource.CitrixResourceBase] (DirectAgent-61:) destoryVDIbyNameLabel 
failed due to there are 0 VDIs with name 
cloud-54f75385-8bc5-490b-bee7-7485a65ae1b8
WARN  [xen.resource.CitrixResourceBase] (DirectAgent-61:) can not create vdi in 
sr cfe7b609-d80a-796b-852b-12882ab5c57d
WARN  [xen.resource.CitrixResourceBase] (DirectAgent-61:) Catch Exception 
com.cloud.utils.exception.CloudRuntimeException on 
host:1a331a5f-74be-443f-8c3a-39e622858044 for template: 
nfs://192.168.40.128/export/secondary/template/tmpl/1/1/ due to 
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
cfe7b609-d80a-796b-852b-12882ab5c57d
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
cfe7b609-d80a-796b-852b-12882ab5c57d
at 
com.cloud.hypervisor.xen.resource.CitrixResourceBase.copy_vhd_from_secondarystorage(CitrixResourceBase.java:2707)
at 
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:2729)
at 
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:501)
at 
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
at 
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
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.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
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)
WARN  [xen.resource.CitrixResourceBase] (DirectAgent-62:) destoryVDIbyNameLabel 
failed due to there are 0 VDIs with name 
cloud-46c29a05-7668-4585-9c47-25a548839b2b
WARN  [xen.resource.CitrixResourceBase] (DirectAgent-62:) can not create vdi in 
sr cfe7b609-d80a-796b-852b-12882ab5c57d
WARN  [xen.resource.CitrixResourceBase] (DirectAgent-62:) Catch Exception 
com.cloud.utils.exception.CloudRuntimeException on 
host:1a331a5f-74be-443f-8c3a-39e622858044 for template: 
nfs://192.168.40.128/export/secondary/template/tmpl/1/1/ due to 
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
cfe7b609-d80a-796b-852b-12882ab5c57d
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
cfe7b609-d80a-796b-852b-12882ab5c57d
at 
com.cloud.hypervisor.xen.resource.CitrixResourceBase.copy_vhd_from_secondarystorage(CitrixResourceBase.java:2707)
at 
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:2729)
at 
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:501)
at 
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
at 
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
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.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
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)
INFO  [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:) Unable to contact 
resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:201] is 
unreachable: Unable to create Vol[14|vm=14|ROOT]
at 
com.cloud.storage.StorageManagerImpl.prepare(StorageManagerImpl.java:3488)
at 
com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:748)
at 
com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:471)
at 
com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:464)
at 
com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:269)
at 
com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:696)
at 
com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1307)
at 

Re: 我在创建完域以后启动SSVM出以下错误,请各位大拿帮忙看看啥情况。

2013-09-17 Thread Wei ZHOU
没有vhd-util文件吧


2013/9/17 toudsf 18600601...@163.com

 WARN  [xen.resource.CitrixResourceBase] (DirectAgent-61:)
 destoryVDIbyNameLabel failed due to there are 0 VDIs with name
 cloud-54f75385-8bc5-490b-bee7-7485a65ae1b8
 WARN  [xen.resource.CitrixResourceBase] (DirectAgent-61:) can not create
 vdi in sr cfe7b609-d80a-796b-852b-12882ab5c57d
 WARN  [xen.resource.CitrixResourceBase] (DirectAgent-61:) Catch Exception
 com.cloud.utils.exception.CloudRuntimeException on
 host:1a331a5f-74be-443f-8c3a-39e622858044 for template: nfs://
 192.168.40.128/export/secondary/template/tmpl/1/1/ due to
 com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
 cfe7b609-d80a-796b-852b-12882ab5c57d
 com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
 cfe7b609-d80a-796b-852b-12882ab5c57d
 at
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.copy_vhd_from_secondarystorage(CitrixResourceBase.java:2707)
 at
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:2729)
 at
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:501)
 at
 com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
 at
 com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
 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.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
 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)
 WARN  [xen.resource.CitrixResourceBase] (DirectAgent-62:)
 destoryVDIbyNameLabel failed due to there are 0 VDIs with name
 cloud-46c29a05-7668-4585-9c47-25a548839b2b
 WARN  [xen.resource.CitrixResourceBase] (DirectAgent-62:) can not create
 vdi in sr cfe7b609-d80a-796b-852b-12882ab5c57d
 WARN  [xen.resource.CitrixResourceBase] (DirectAgent-62:) Catch Exception
 com.cloud.utils.exception.CloudRuntimeException on
 host:1a331a5f-74be-443f-8c3a-39e622858044 for template: nfs://
 192.168.40.128/export/secondary/template/tmpl/1/1/ due to
 com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
 cfe7b609-d80a-796b-852b-12882ab5c57d
 com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
 cfe7b609-d80a-796b-852b-12882ab5c57d
 at
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.copy_vhd_from_secondarystorage(CitrixResourceBase.java:2707)
 at
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:2729)
 at
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:501)
 at
 com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
 at
 com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
 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.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
 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)
 INFO  [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:) Unable to
 contact resource.
 com.cloud.exception.StorageUnavailableException: Resource
 [StoragePool:201] is unreachable: Unable to create Vol[14|vm=14|ROOT]
 at
 com.cloud.storage.StorageManagerImpl.prepare(StorageManagerImpl.java:3488)
 at
 com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:748)
 at
 com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:471)
 at
 com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:464)
 at
 com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:269)
 at
 com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:696)
 at
 

Re: Re: 我在创建完域以后启动SSVM出以下错误,请各位大拿帮忙看看啥情况。

2013-09-17 Thread tanthalas
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr 
cfe7b609-d80a-796b-852b-12882ab5c57d
 at  
com.cloud.hypervisor.xen.resource.CitrixResourceBase.copy_vhd_from_secondarystorage

没有办法吧二级存储上的系统虚拟机的模板考到主存储上。

刘宇超  Richard Liu



发件人: Wei ZHOU 
发送时间: 2013-09-17  16:18:50 
收件人: users-cn 
抄送: 
主题: Re: 我在创建完域以后启动SSVM出以下错误,请各位大拿帮忙看看啥情况。 
 
没有vhd-util文件吧
2013/9/17 toudsf 18600601...@163.com
 WARN  [xen.resource.CitrixResourceBase] (DirectAgent-61:)
 destoryVDIbyNameLabel failed due to there are 0 VDIs with name
 cloud-54f75385-8bc5-490b-bee7-7485a65ae1b8
 WARN  [xen.resource.CitrixResourceBase] (DirectAgent-61:) can not create
 vdi in sr cfe7b609-d80a-796b-852b-12882ab5c57d
 WARN  [xen.resource.CitrixResourceBase] (DirectAgent-61:) Catch Exception
 com.cloud.utils.exception.CloudRuntimeException on
 host:1a331a5f-74be-443f-8c3a-39e622858044 for template: nfs://
 192.168.40.128/export/secondary/template/tmpl/1/1/ due to
 com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
 cfe7b609-d80a-796b-852b-12882ab5c57d
 com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
 cfe7b609-d80a-796b-852b-12882ab5c57d
 at
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.copy_vhd_from_secondarystorage(CitrixResourceBase.java:2707)
 at
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:2729)
 at
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:501)
 at
 com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
 at
 com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
 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.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
 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)
 WARN  [xen.resource.CitrixResourceBase] (DirectAgent-62:)
 destoryVDIbyNameLabel failed due to there are 0 VDIs with name
 cloud-46c29a05-7668-4585-9c47-25a548839b2b
 WARN  [xen.resource.CitrixResourceBase] (DirectAgent-62:) can not create
 vdi in sr cfe7b609-d80a-796b-852b-12882ab5c57d
 WARN  [xen.resource.CitrixResourceBase] (DirectAgent-62:) Catch Exception
 com.cloud.utils.exception.CloudRuntimeException on
 host:1a331a5f-74be-443f-8c3a-39e622858044 for template: nfs://
 192.168.40.128/export/secondary/template/tmpl/1/1/ due to
 com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
 cfe7b609-d80a-796b-852b-12882ab5c57d
 com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
 cfe7b609-d80a-796b-852b-12882ab5c57d
 at
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.copy_vhd_from_secondarystorage(CitrixResourceBase.java:2707)
 at
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:2729)
 at
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:501)
 at
 com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:73)
 at
 com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
 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.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
 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)
 INFO  [cloud.vm.VirtualMachineManagerImpl] (secstorage-1:) Unable to
 contact resource.
 com.cloud.exception.StorageUnavailableException: Resource
 [StoragePool:201] is unreachable: Unable to create Vol[14|vm=14|ROOT]
 at
 com.cloud.storage.StorageManagerImpl.prepare(StorageManagerImpl.java:3488)
 at
 com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:748)
 at
 com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:471)
   

Re: Unable to register Windows Server 2012 ISO

2013-09-17 Thread Indra Pramana
Hi Rudel, Kirk and all,

Thanks for all the email replies.

Rudel, I have tried to use Windows Server 2008 R2 (64-bit) as OS Type, but
I am still not able to boot up from the ISO image, the Windows installer
always failed to run. Not too sure why.

I guess I have to wait for CloudStack 4.2.0 to be released and try again to
create the VM instance and the template after I upgrade?

Anyone has a working Windows Server 2012 template for CloudStack 4.1.1 and
KVM which I can use? :)

Looking forward to your reply, thank you.

Cheers.



On Mon, Sep 16, 2013 at 9:12 PM, Rudel Saldivar rudelsaldi...@gmail.comwrote:

 Hi Indra,

 I'm using CS 4.1.1 and KVM as my hypervisor. I confirm that Windows Server
 2012 is pretty much supported. Please use the following OS type when
 creating the template or update it if the template has been created.

 OS TypeWindows Server 2008 R2 (64-bit)

 For any Windows server higher than 2008, I always used this OS type and it
 works all the time.

 --
 Cheers


 -[ OpenSource, Open Ideas ]-


 On Mon, Sep 16, 2013 at 8:22 PM, Indra Pramana in...@sg.or.id wrote:

  Hi Kirk,
 
  Good day to you, and thank you for your e-mail.
 
  Will it be supported on Cloudstack version 4.2.0 which will be released
  soon?
 
  Looking forward to your reply, thank you.
 
  Cheers.
 
 
 
  On Mon, Sep 16, 2013 at 8:09 PM, Kirk Jantzer kirk.jant...@gmail.com
  wrote:
 
   I could be mistaken, but I don't think Windows Server 2012 is supported
   yet. I believe it is coming in future version though.
  
  
   Regards,
  
   Kirk Jantzer
   http://about.me/kirkjantzer
  
  
   On Mon, Sep 16, 2013 at 4:34 AM, Indra Pramana in...@sg.or.id wrote:
  
Dear all,
   
I am using CloudStack 4.1.1 and KVM hypervisor. I tried to
 add/register
   the
ISO for Windows Server 2012 into CloudStack and create a VM instance
   using
the ISO. However, after loading the installation files, the Windows
installation will encounter error and will reboot and going back to
 the
loading files step, causing non-stop reboot cycle.
   
The error message is something like the PC is ran into problems and
  need
   to
restart, and some other messages. I didn't manage to capture the
 whole
error message.
   
When I register the ISO into CloudStack, I chose Other (64-bit)
  because
there's no option for Windows Server 2012 (64-bit) on the list of OS
   Type.
Could that be the reason? Do I have to use another OS Type for this,
  e.g.
Windows PV or something else?
   
Looking forward to your reply, thank you.
   
Cheers.
   
  
 



Re: Help! After network outage, can't start System VMs; focused debug info attached

2013-09-17 Thread Kirk Kosinski
Hi, here is the error:

2013-09-16 15:08:17,168 DEBUG [agent.transport.Request]
(AgentManager-Handler-5:null) Seq 13-931004532: Processing:  { Ans: ,
MgmtId: 161340856362, via: 13, Ver: v1, Flags: 110,
[{storage.CreateAnswer:{requestTemplateReload:false,result:false,details:Exception:
com.cloud.utils.exception.CloudRuntimeException\nMessage:
org.libvirt.LibvirtException: Storage volume not found: no storage vol
with matching name 'f23a16e7-b628-429e-83e1-698935588465'\nStack:
com.cloud.utils.exception.CloudRuntimeException:
org.libvirt.LibvirtException: Storage volume not found: no storage vol
with matching name 'f23a16e7-b628-429e-83e1-698935588465'\n\tat
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getVolume(LibvirtStorageAdaptor.java:90)\n\tat
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getPhysicalDisk(LibvirtStorageAdaptor.java:437)\n\tat
com.cloud.hypervisor.kvm.storage.LibvirtStoragePool.getPhysicalDisk(LibvirtStoragePool.java:123)\n\tat
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(LibvirtComputingResource.java:1279)\n\tat
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1072)\n\tat
com.cloud.agent.Agent.processRequest(Agent.java:525)\n\tat
com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:852)\n\tat
com.cloud.utils.nio.Task.run(Task.java:83)\n\tat
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)\n\tat
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n\tat
java.lang.Thread.run(Thread.java:679)\n,wait:0}}] }

I'm not certain what volume it is complaining about, but I suspect
secondary storage.  Log on to a host (in particular host 13 [1] since it
is confirmed to suffer from the issue) and try to manually mount the
full path of the directory with the system VM template of the secondary
storage NFS share [2].  The idea is to confirm the share and
subdirectories of the share are mountable.  Maybe during the maintenance
some hosts changed IPs and/or the secondary storage NFS share
permissions (or other settings) were messed up.

If the mount doesn't work, fix whatever is causing it.  If it does work,
please collect additional info.  Enable DEBUG logging on the hosts [3]
(if necessary), wait for the error to occur, and upload the agent.log
from the host with the error.  It should have more details besides the
exception shown in the management-server.log.  If you have a lot of
hosts and don't want to enable DEBUG logging on every one, temporarily
disable most of them and do it on the remaining few.

Best regards,
Kirk

[1] 13 is the id of the host in the CloudStack database, so find out
which host it is with:
select * from `cloud`.`host` where id = 13 \G

[2] Something like:
nfshost:/share/template/tmpl/2/123

[3] In /etc/cloudstack/agent/log4j-cloud.xml, set the Threshold for FILE
and com.cloud to DEBUG.  Depending on the CloudStack version, it may or
may not be enabled by default, and the path may be /etc/cloud/agent/.


On 09/16/2013 07:36 PM, sriharsha work wrote:
 Replying on behalf of Matt. We are able to write data to the Nfs drives.
 That's not an issue.
 
 Thanks
 Sriharsha
 
 Sent from my iPhone
 
 On Sep 16, 2013, at 19:30, Ahmad Emneina aemne...@gmail.com wrote:

 Try to mount your primary storage to a compute host and try to write to it.
 Your NFS server might not have come back up properly (settings-wise or all
 the relevant services).
 On Sep 16, 2013 6:08 PM, Matt Foley mfo...@hortonworks.com wrote:

 Thank you Chiradeep.  Log snippet now available as http://apaste.info/qBIB
 --Matt

 On Mon, Sep 16, 2013 at 5:19 PM, Chiradeep Vittal 
 chiradeep.vit...@citrix.com wrote:

 Attachments are stripped. Can you paste (say at http://apaste.info/)

 From: Matt Foley mfo...@hortonworks.com
 Date: Monday, September 16, 2013 4:58 PM

 We had a planned network outage this weekend, which inadvertently
 resulted
 in making the NFS Shared Primary Storage (used by System VMs) unavailable
 for a day and a half.  (Guest VMs use local storage only, but System VMs
 use shared storage only.)  Cloudstack was not brought down prior to the
 outage.

 After network came back, we gracefully brought down all services
 including
 cloudstack-management, mysql, and NFS, then actually rebooted all servers
 in the cluster and the NFS server (to make sure no stale file handles),
 then brought up services in the appropriate order.  Also checked mysql
 for
 table corruption, and found none.  Confirmed that the NFS volumes are
 mountable from all hosts, and in fact Shared Primary Storage is being
 mounted by cloudstack on hosts as usual, under /mnt/uuid.

 Nevertheless, when try to bring up the cluster, we fail to start the
 system VMs, with errors InsufficientServerCapacityException: Unable to
 create a deployment for VM.  The cause is not really insufficient
 capacity, as actual usage of resources is tiny; these error messages are
 false explanations of the 

Re: Unable to register Windows Server 2012 ISO

2013-09-17 Thread Fernando Guillén Camba

Hi all.

Indra, I also have CS 4.1.1 and KVM and did as Rudel said and it worked.
Can it be because of the Windows Server 2012 edition? In my case I used 
the Datacenter Edition.


Regards,

El 17/09/13 10:08, Indra Pramana escribió:

Hi Rudel, Kirk and all,

Thanks for all the email replies.

Rudel, I have tried to use Windows Server 2008 R2 (64-bit) as OS Type, but
I am still not able to boot up from the ISO image, the Windows installer
always failed to run. Not too sure why.

I guess I have to wait for CloudStack 4.2.0 to be released and try again to
create the VM instance and the template after I upgrade?

Anyone has a working Windows Server 2012 template for CloudStack 4.1.1 and
KVM which I can use? :)

Looking forward to your reply, thank you.

Cheers.



On Mon, Sep 16, 2013 at 9:12 PM, Rudel Saldivar rudelsaldi...@gmail.comwrote:


Hi Indra,

I'm using CS 4.1.1 and KVM as my hypervisor. I confirm that Windows Server
2012 is pretty much supported. Please use the following OS type when
creating the template or update it if the template has been created.

OS TypeWindows Server 2008 R2 (64-bit)

For any Windows server higher than 2008, I always used this OS type and it
works all the time.

--
Cheers


-[ OpenSource, Open Ideas ]-


On Mon, Sep 16, 2013 at 8:22 PM, Indra Pramana in...@sg.or.id wrote:


Hi Kirk,

Good day to you, and thank you for your e-mail.

Will it be supported on Cloudstack version 4.2.0 which will be released
soon?

Looking forward to your reply, thank you.

Cheers.



On Mon, Sep 16, 2013 at 8:09 PM, Kirk Jantzer kirk.jant...@gmail.com

wrote:
I could be mistaken, but I don't think Windows Server 2012 is supported
yet. I believe it is coming in future version though.


Regards,

Kirk Jantzer
http://about.me/kirkjantzer


On Mon, Sep 16, 2013 at 4:34 AM, Indra Pramana in...@sg.or.id wrote:


Dear all,

I am using CloudStack 4.1.1 and KVM hypervisor. I tried to

add/register

the

ISO for Windows Server 2012 into CloudStack and create a VM instance

using

the ISO. However, after loading the installation files, the Windows
installation will encounter error and will reboot and going back to

the

loading files step, causing non-stop reboot cycle.

The error message is something like the PC is ran into problems and

need

to

restart, and some other messages. I didn't manage to capture the

whole

error message.

When I register the ISO into CloudStack, I chose Other (64-bit)

because

there's no option for Windows Server 2012 (64-bit) on the list of OS

Type.

Could that be the reason? Do I have to use another OS Type for this,

e.g.

Windows PV or something else?

Looking forward to your reply, thank you.

Cheers.




--
Fernando Guillén Camba
Unidade de Xestión de Infraestruturas TIC
Centro de Investigación en Tecnoloxías da Información (CITIUS)
Teléfono: 8818 16409
Correo: citius@usc.es



Re: Help! After network outage, can't start System VMs; focused debug info attached

2013-09-17 Thread sriharsha work
Does Reconfiguring CloudStack to use local storage for system VMs retain
all the VMs that are already in Cloudstack. There are about 200 vms running
in our cloudstack. How about the VM templates, snapshots and all other
stuff that were already in Cloudstack.

I mean would it still restore the Cloudstack's original behavior as we had
it before our maintenance. Also what are the disadvantages of using local
storage for System VMs.

Thanks
Sriharsha.

On Tue, Sep 17, 2013 at 2:52 AM, Kirk Kosinski kirkkosin...@gmail.comwrote:

 Okay, so system VMs are using NFS primary storage (I mis-read the OP,
 sorry).  Make sure the KVM hosts can mount and write to:

 10.42.1.101:/srv/nfs/eng/cs-primary

 Also check libvirtd.log for errors.

 If you're not making progress and want to get up and running ASAP, try
 reconfiguring CloudStack to use local storage for system VMs and
 (assuming this works) sort out the NFS primary storage problem later.

 Best regards,
 Kirk

 On 09/17/2013 02:22 AM, sriharsha work wrote:
  Hi Kirk,
 
  Thanks for your reply. This is a blocker for us and currently affected
  all of our work. It is very helpful to debug more into the issue. I have
  a question.
 
  1. What should the directory be when mounting [2] systemVM template
  location on the nfs drive.
 
 
  Error from agent.log on the host. Clearly it says some issue with the
  libvirt pools. Can you please help me understand if anything else needs
  to be addressed to get the issue resolved.
 
 
  2013-09-17 02:17:36,736 DEBUG [cloud.agent.Agent]
  (agentRequest-Handler-3:null) Request:Seq 14-1592393816:  { Cmd ,
  MgmtId: 161340856362, via: 14, Ver: v1, Flags: 100111,
  [{storage.CreateCommand:{vo
 
 lId:9817,pool:{id:201,uuid:9c6fd9a3-43e5-389a-9594-faecf178b4b9,host:10.42.1.101,path:/srv/nfs/eng/cs-primary,port:2049,type:NetworkFilesystem},diskCharacteristics:{size:725811200,tags:[],type:ROOT,name:ROOT-9736,useLocalStorage:false,recreatable:true,diskOfferingId:7,volumeId:9817,hyperType:KVM},templateUrl:f23a16e7-b628-429e-83e1-698935588465,wait:0}}]
  }
  2013-09-17 02:17:36,736 DEBUG [cloud.agent.Agent]
  (agentRequest-Handler-3:null) Processing command:
  com.cloud.agent.api.storage.CreateCommand
  2013-09-17 02:17:36,779 DEBUG [kvm.resource.LibvirtComputingResource]
  (agentRequest-Handler-3:null) Failed to create volume:
  com.cloud.utils.exception.CloudRuntimeException:
  org.libvirt.LibvirtException: Storage volume not found: no storage vol
  with matching name 'f23a16e7-b628-429e-83e1-698935588465'
  2013-09-17 02:17:36,781 DEBUG [cloud.agent.Agent]
  (agentRequest-Handler-3:null) Seq 14-1592393816:  { Ans: , MgmtId:
  161340856362, via: 14, Ver: v1, Flags: 110,
 
 [{storage.CreateAnswer:{requestTemplateReload:false,result:false,details:Exception:
  com.cloud.utils.exception.CloudRuntimeException\nMessage:
  org.libvirt.LibvirtException: Storage volume not found: no storage vol
  with matching name 'f23a16e7-b628-429e-83e1-698935588465'\nStack:
  com.cloud.utils.exception.CloudRuntimeException:
  org.libvirt.LibvirtException: Storage volume not found: no storage vol
  with matching name 'f23a16e7-b628-429e-83e1-698935588465'\n\tat
 
 com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getVolume(LibvirtStorageAdaptor.java:90)\n\tat
 
 com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getPhysicalDisk(LibvirtStorageAdaptor.java:437)\n\tat
 
 com.cloud.hypervisor.kvm.storage.LibvirtStoragePool.getPhysicalDisk(LibvirtStoragePool.java:123)\n\tat
 
 com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(LibvirtComputingResource.java:1279)\n\tat
 
 com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1072)\n\tat
  com.cloud.agent.Agent.processRequest(Agent.java:525)\n\tat
  com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:852)\n\tat
  com.cloud.utils.nio.Task.run(Task.java:83)\n\tat
 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)\n\tat
 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n\tat
  java.lang.Thread.run(Thread.java:679)\n,wait:0}}] }
  2013-09-17 02:17:36,888 DEBUG [cloud.agent.Agent]
  (agentRequest-Handler-4:null) Request:Seq 14-1592393817:  { Cmd ,
  MgmtId: 161340856362, via: 14, Ver: v1, Flags: 100111,
  [{StopCommand:{isProxy:false,vmName:s-9736-VM,wait:0}}] }
  2013-09-17 02:17:36,888 DEBUG [cloud.agent.Agent]
  (agentRequest-Handler-4:null) Processing command:
  com.cloud.agent.api.StopCommand
  2013-09-17 02:17:36,891 DEBUG [kvm.resource.LibvirtComputingResource]
  (agentRequest-Handler-4:null) Failed to get dom xml:
  org.libvirt.LibvirtException: Domain not found: no domain with matching
  uuid 'fba58267-2f0b-3249-8cca-d99c4f843b5a'
  2013-09-17 02:17:36,893 DEBUG [kvm.resource.LibvirtComputingResource]
  (agentRequest-Handler-4:null) Failed to get dom xml:
  org.libvirt.LibvirtException: Domain not found: no domain with matching
  uuid 

Re: Unable to register Windows Server 2012 ISO

2013-09-17 Thread Indra Pramana
Hi Fernando,

Good day to you, and thank you for your e-mail.

Yes, I am using the datacenter edition as well. In fact, the ISO file is
the same for both standard and datacenter edition. The ISO file name which
we got from Microsoft is:
SW_DVD5_Win_Svr_Std_and_DataCtr_2012_64Bit_English_Core_MLF_X18-27588.ISO,
is it the same which you are using?

Looking forward to your reply, thank you.

Cheers.


On Tue, Sep 17, 2013 at 5:02 PM, Fernando Guillén Camba 
fernando.guil...@usc.es wrote:

 Hi all.

 Indra, I also have CS 4.1.1 and KVM and did as Rudel said and it worked.
 Can it be because of the Windows Server 2012 edition? In my case I used
 the Datacenter Edition.

 Regards,

 El 17/09/13 10:08, Indra Pramana escribió:

  Hi Rudel, Kirk and all,

 Thanks for all the email replies.

 Rudel, I have tried to use Windows Server 2008 R2 (64-bit) as OS Type, but
 I am still not able to boot up from the ISO image, the Windows installer
 always failed to run. Not too sure why.

 I guess I have to wait for CloudStack 4.2.0 to be released and try again
 to
 create the VM instance and the template after I upgrade?

 Anyone has a working Windows Server 2012 template for CloudStack 4.1.1 and
 KVM which I can use? :)

 Looking forward to your reply, thank you.

 Cheers.



 On Mon, Sep 16, 2013 at 9:12 PM, Rudel Saldivar rudelsaldi...@gmail.com
 **wrote:

  Hi Indra,

 I'm using CS 4.1.1 and KVM as my hypervisor. I confirm that Windows
 Server
 2012 is pretty much supported. Please use the following OS type when
 creating the template or update it if the template has been created.

 OS TypeWindows Server 2008 R2 (64-bit)

 For any Windows server higher than 2008, I always used this OS type and
 it
 works all the time.

 --
 Cheers


 -[ OpenSource, Open Ideas ]-


 On Mon, Sep 16, 2013 at 8:22 PM, Indra Pramana in...@sg.or.id wrote:

  Hi Kirk,

 Good day to you, and thank you for your e-mail.

 Will it be supported on Cloudstack version 4.2.0 which will be released
 soon?

 Looking forward to your reply, thank you.

 Cheers.



 On Mon, Sep 16, 2013 at 8:09 PM, Kirk Jantzer kirk.jant...@gmail.com

 wrote:
 I could be mistaken, but I don't think Windows Server 2012 is supported
 yet. I believe it is coming in future version though.


 Regards,

 Kirk Jantzer
 http://about.me/kirkjantzer


 On Mon, Sep 16, 2013 at 4:34 AM, Indra Pramana in...@sg.or.id wrote:

  Dear all,

 I am using CloudStack 4.1.1 and KVM hypervisor. I tried to

 add/register

 the

 ISO for Windows Server 2012 into CloudStack and create a VM instance

 using

 the ISO. However, after loading the installation files, the Windows
 installation will encounter error and will reboot and going back to

 the

 loading files step, causing non-stop reboot cycle.

 The error message is something like the PC is ran into problems and

 need

 to

 restart, and some other messages. I didn't manage to capture the

 whole

 error message.

 When I register the ISO into CloudStack, I chose Other (64-bit)

 because

 there's no option for Windows Server 2012 (64-bit) on the list of OS

 Type.

 Could that be the reason? Do I have to use another OS Type for this,

 e.g.

 Windows PV or something else?

 Looking forward to your reply, thank you.

 Cheers.



 --
 Fernando Guillén Camba
 Unidade de Xestión de Infraestruturas TIC
 Centro de Investigación en Tecnoloxías da Información (CITIUS)
 Teléfono: 8818 16409
 Correo: citius@usc.es




Re: Unable to register Windows Server 2012 ISO

2013-09-17 Thread Fernando Guillén Camba

Hi Indra.

My ISO filename is:
SW_DVD5_Win_Svr_Std_and_DataCtr_2012_64Bit_Spanish_Core_MLF_X18-27600.ISO
Not sure of what the last number stands for but doesn't seem much of a 
difference.


Regards.


El 17/09/13 13:45, Indra Pramana escribió:

Hi Fernando,

Good day to you, and thank you for your e-mail.

Yes, I am using the datacenter edition as well. In fact, the ISO file is
the same for both standard and datacenter edition. The ISO file name which
we got from Microsoft is:
SW_DVD5_Win_Svr_Std_and_DataCtr_2012_64Bit_English_Core_MLF_X18-27588.ISO,
is it the same which you are using?

Looking forward to your reply, thank you.

Cheers.


On Tue, Sep 17, 2013 at 5:02 PM, Fernando Guillén Camba 
fernando.guil...@usc.es wrote:


Hi all.

Indra, I also have CS 4.1.1 and KVM and did as Rudel said and it worked.
Can it be because of the Windows Server 2012 edition? In my case I used
the Datacenter Edition.

Regards,

El 17/09/13 10:08, Indra Pramana escribió:

  Hi Rudel, Kirk and all,

Thanks for all the email replies.

Rudel, I have tried to use Windows Server 2008 R2 (64-bit) as OS Type, but
I am still not able to boot up from the ISO image, the Windows installer
always failed to run. Not too sure why.

I guess I have to wait for CloudStack 4.2.0 to be released and try again
to
create the VM instance and the template after I upgrade?

Anyone has a working Windows Server 2012 template for CloudStack 4.1.1 and
KVM which I can use? :)

Looking forward to your reply, thank you.

Cheers.



On Mon, Sep 16, 2013 at 9:12 PM, Rudel Saldivar rudelsaldi...@gmail.com
**wrote:

  Hi Indra,

I'm using CS 4.1.1 and KVM as my hypervisor. I confirm that Windows
Server
2012 is pretty much supported. Please use the following OS type when
creating the template or update it if the template has been created.

OS TypeWindows Server 2008 R2 (64-bit)

For any Windows server higher than 2008, I always used this OS type and
it
works all the time.

--
Cheers


-[ OpenSource, Open Ideas ]-


On Mon, Sep 16, 2013 at 8:22 PM, Indra Pramana in...@sg.or.id wrote:

  Hi Kirk,

Good day to you, and thank you for your e-mail.

Will it be supported on Cloudstack version 4.2.0 which will be released
soon?

Looking forward to your reply, thank you.

Cheers.



On Mon, Sep 16, 2013 at 8:09 PM, Kirk Jantzer kirk.jant...@gmail.com


wrote:
I could be mistaken, but I don't think Windows Server 2012 is supported
yet. I believe it is coming in future version though.


Regards,

Kirk Jantzer
http://about.me/kirkjantzer


On Mon, Sep 16, 2013 at 4:34 AM, Indra Pramana in...@sg.or.id wrote:

  Dear all,

I am using CloudStack 4.1.1 and KVM hypervisor. I tried to


add/register

the

ISO for Windows Server 2012 into CloudStack and create a VM instance


using


the ISO. However, after loading the installation files, the Windows
installation will encounter error and will reboot and going back to


the

loading files step, causing non-stop reboot cycle.

The error message is something like the PC is ran into problems and


need
to


restart, and some other messages. I didn't manage to capture the


whole

error message.

When I register the ISO into CloudStack, I chose Other (64-bit)


because
there's no option for Windows Server 2012 (64-bit) on the list of OS
Type.


Could that be the reason? Do I have to use another OS Type for this,


e.g.
Windows PV or something else?

Looking forward to your reply, thank you.

Cheers.



--
Fernando Guillén Camba
Unidade de Xestión de Infraestruturas TIC
Centro de Investigación en Tecnoloxías da Información (CITIUS)
Teléfono: 8818 16409
Correo: citius@usc.es





--
Fernando Guillén Camba
Unidade de Xestión de Infraestruturas TIC
Centro de Investigación en Tecnoloxías da Información (CITIUS)
Teléfono: 8818 16409
Correo: citius@usc.es



Re: some questions about snapshot

2013-09-17 Thread WXR
One month has passed.
Now I compile and installe cloudstack 4.2 from resouce code,but I find the 
issue is not resolved.
Old napshot files on server are still not deleted by snapshot schedule.

-- Original --
From:  Prasanna Santhanam;t...@apache.org;
Date:  Thu, Aug 8, 2013 02:43 PM
To:  usersusers@cloudstack.apache.org; 

Subject:  Re: some questions about snapshot



This is a bug with 4.0 and it has been fixed in the upcoming release:

https://issues.apache.org/jira/browse/CLOUDSTACK-643

On Thu, Aug 08, 2013 at 02:09:28PM +0800, WXR wrote:
 It can delete the older snapshots on the webUI,but the files are not deleted 
 actually.
 If I go to the snapshot folder of secondary storage,I can see all the 
 snapshot files.
 
 I use kvm as hypervisor,could you tell me how to let cloudstack create delta 
 snapshots daily and full snapshots every 7 days?
 
 Thank you.
 
 
 
 
 -- Original --
 From:  Venkata SwamyBabu Budumuruvenkataswamybabu.budum...@citrix.com;
 Date:  Thu, Aug 8, 2013 12:39 PM
 To:  users@cloudstack.apache.orgusers@cloudstack.apache.org; 
 
 Subject:  Re: some questions about snapshot
 
 
 
 About the first question:
 
 Are you talking about the recurring snapshot feature? If yes, AFAIK, It is
 supposed to delete the 1st snapshot when you take the 4th one.
 
 Regarding the second one,
 
 You are right about settings present in global category for full and delta
 and they are closely tied to hypervisor. What is the hypervisor you are
 using?
 
 
 Thanks,
 SWAMY
 
 On 08/08/13 8:45 AM, WXR 1485739...@qq.com wrote:
 
 1.I use snapshot schedule to create snapshots daily,keep 3 snapshots.Now
 I can see 3 snapshots on webUI,but all snapshot files created before are
 still on secondary storage.
 How to let cloudstack clean the old snapshots files?
 
 2.There are global settings about delta snapshot and full snapshot,I
 find that the default snapshot of volume a full snapshot,how to do a
 delta snapshot?
 
 .

-- 
Prasanna.,


Powered by BigRock.com

.

adding host error: ERROR:XENAPI_MISSING_PLUGIN: [ openvswitch-cfg-update ]

2013-09-17 Thread Rafael Weingartner
Hi guys,
I am trying to add a host but I keep getting this error on management
server.log:
other exceptions: java.lang.RuntimeException: can not get master ip
java.lang.RuntimeException: can not get master ip

Looking at the log file a little before this error I found this:
2013-09-17 10:14:11,890 INFO  [cloud.resource.ResourceManagerImpl]
(catalina-exec-10:null) Trying to add a new host at http://hostURL in data
center 1
2013-09-17 10:14:11,962 DEBUG [xen.resource.XenServerConnectionPool]
(catalina-exec-10:null) Failed to slave local login to host-IP-ADDRESS due
to org.apache.xmlrpc.XmlRpcException: Failed to create input stream:
Connection has been shutdown: javax.net.ssl.SSLException:
java.net.SocketException: Connection reset
2013-09-17 10:14:11,981 DEBUG [xen.resource.XenServerConnectionPool]
(catalina-exec-10:null) localLogout has problem Failed to create input
stream: Error writing to server

I was not getting this errors, so I went to the server to check the errors
there, and I found this:
[20130917T13:16:33.120Z| info|hostName|38 UNIX
/var/lib/xcp/xapi|host.call_plugin R:2e5846e9c88d|audit]
('trackid=0c8b0300222447edb2f4898246c03226' 'LOCAL_SUPERUSER'
'OpaqueRef:249c318b-1a2b-dbc3-99e4-5bb143e2a10e' 'ALLOWED'
'ERROR:XENAPI_MISSING_PLUGIN: [ openvswitch-cfg-update ]' 'API'
'host.call_plugin' (('host' 'hostName'
'aaa404ee-7829-8f58-ea97-eb2d47bb4d39'
'OpaqueRef:249c318b-1a2b-dbc3-99e4-5bb143e2a10e')))

I do not get this openvswitch missing plugin, I am not using it, I am using
the XAPI bridge configuration.

I am using the Xen hypervisor and XAPI over an Ubuntu server 12.10
the Xen version is 4.1 and the XAPI is 1.6

I googled this error, but sadly I could not find anything useful about it.

So, anyone has any clue about the error and how to work i around ?

-- 
Rafael Weingartner


Resizing ROOT volumes?

2013-09-17 Thread David Matteson

Hey everybody,

We ideally want to go with a Cloud VPS system where users only have to 
deal with a single volume (e.g. no DATADISK.) In CloudStack 4.1 
obviously this doesn't really work since you can't resize ROOT volumes. 
Is this available in 4.2?  Is there a good reason not to go this route?


Also has there been any talk about being able to specify a ROOT volume 
size on deploy?


Thanks,

Dave M.


Re: Unable to start DomR CS 4.1 VMware esxi 5.1

2013-09-17 Thread John Skinner
Still working on this. Here is a full trace from vCenter logs. Still unsure 
what is going on. 

http://fpaste.org/40151/ 

- Original Message -

From: John Skinner john.skin...@appcore.com 
To: users@cloudstack.apache.org 
Sent: Monday, September 16, 2013 6:08:09 PM 
Subject: Re: Unable to start DomR CS 4.1 VMware esxi 5.1 

Found this in the esxi logs, not sure what it means. I am still not sure which 
parameter was not correct. Not sure if this is of any help or not. 



2013-09-16T10:22:29.858-05:00 [02968 info 'commonvpxLro' opID=8a6a6788] 
[VpxLRO] -- FINISH task-46421 -- vm-4730 -- vim.VirtualMachine.reconfigure -- 
2013-09-16T10:22:29.859-05:00 [02968 info 'Default' opID=8a6a6788] [VpxLRO] -- 
ERROR task-46421 -- vm-4730 -- vim.VirtualMachine.reconfigure: 
vmodl.fault.InvalidArgument: 
-- Result: 
-- (vmodl.fault.InvalidArgument) { 
-- dynamicType = unset, 
-- faultCause = (vmodl.MethodFault) null, 
-- invalidProperty = unset, 
-- msg = A specified parameter was not correct. 
-- , 
-- } 

- Original Message -


From: John Skinner john.skin...@appcore.com 
To: users@cloudstack.apache.org 
Sent: Monday, September 16, 2013 3:56:10 PM 
Subject: Unable to start DomR CS 4.1 VMware esxi 5.1 

Having an issue getting domain routers to start in a VMware 5.1 environment 
with CS 4.1. The fun thing is, this was all working fine last week, and of 
course, no one changed anything . Has anyone seen anything like this: 



2013-09-16 15:46:16,927 TRACE [vmware.mo.ClusterMO] 
(DirectAgent-69:10.0.97.107) vCenter API trace - retrieveProperties() for VM 
properties. target MOR: domain-c3887, properties: 
[name,config.extraConfig[\RemoteDisplay.vnc.port\]] 
2013-09-16 15:46:17,222 TRACE [vmware.mo.ClusterMO] 
(DirectAgent-69:10.0.97.107) vCenter API trace - retrieveProperties() done 
2013-09-16 15:46:17,451 INFO [vmware.resource.VmwareResource] 
(DirectAgent-69:10.0.97.107) Configure VNC port for VM r-126-VM, port: 5905, 
host: 10.0.97.107 
2013-09-16 15:46:18,931 ERROR [vmware.mo.VirtualMachineMO] 
(DirectAgent-69:10.0.97.107) VMware reconfigVM_Task failed due to A specified 
parameter was not correct. 
com.vmware.vim25.InvalidArgument 
2013-09-16 15:46:18,933 WARN [vmware.resource.VmwareResource] 
(DirectAgent-69:10.0.97.107) StartCommand failed due to Exception: 
java.lang.Exception 
Message: Failed to configure VM before start. vmName: r-126-VM 

java.lang.Exception: Failed to configure VM before start. vmName: r-126-VM 
at 
com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:2315)
 
at 
com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:419)
 
at 
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
 
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.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
 
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
 
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) 
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
at java.lang.Thread.run(Thread.java:679) 
2013-09-16 15:46:18,938 TRACE [vmware.resource.VmwareResource] 
(DirectAgent-69:null) End executeRequest(), cmd: StartCommand 
2013-09-16 15:46:18,938 DEBUG [agent.manager.DirectAgentAttache] 
(DirectAgent-69:null) Seq 21-2006712339: Cancelling because one of the answers 
is false and it is stop on error. 




Thats just the tail end of the thread for the start of the domr. Let me know if 
you need more details. Any help would be appreciated. Thanks! 






Re: CPU/Memory Allocation

2013-09-17 Thread Mir Islam
Thanks, that was it !

On Sep 16, 2013, at 7:27 PM, Nitin Mehta nitin.me...@citrix.com wrote:

 I meant capacity.skipcounting.hours below
 
 On 17/09/13 7:55 AM, Nitin Mehta nitin.me...@citrix.com wrote:
 
 There should be a setting in the global config - Skip Config hours. This
 reserves the capacity for the stopped vm for this duration so that the
 user doesn't have to bother about the stopped vm not able to start again
 because of lack of capacity. You can set it to a smaller value or 0.
 
 On 17/09/13 7:29 AM, Mir Islam mis...@mirislam.com wrote:
 
 I saw that, but after reading about it on the wiki I was not sure if that
 is what I was looking for. Memory multiplier is not even available.
 Basically I want the resource (cpu and memory) to be available if
 instance is not running. Currently, it does not matter what state (other
 than destroyed) the instance is, a new instance can not be started. So no
 way to over subscribe the resource from what I can gather. Is that
 correct?
 
 
 On Sep 16, 2013, at 6:28 PM, John Skinner wrote:
 
 In global settings there is a setting for cpu over allocation
 multiplier, that will allow you to have more allocatable compute
 resources... I am not sure on memory however.
 
 
 - Original Message -
 From: Mir Islam mis...@mirislam.com
 To: users@cloudstack.apache.org
 Sent: Monday, September 16, 2013 3:41:45 PM
 Subject: CPU/Memory Allocation
 
 A simple question. Currently when I create new instance, available CPU
 and Memory resources go down. Even when the instance is not running.
 That prevents me to create new instance. Is there a setting somewhere
 where I can allocate/create new instances as long as the resources are
 not actually used?
 
 Thanks
 Mir
 
 
 



RE: How to reset admin password of CloudStack WebUI?

2013-09-17 Thread Demetrius Tsitrelis
I hope this does not mean that user passwords are stored in plain text in the 
database table.

-Original Message-
From: Ian Duffy [mailto:i...@ianduffy.ie] 
Sent: Saturday, September 14, 2013 6:02 AM
To: users@cloudstack.apache.org
Subject: Re: How to reset admin password of CloudStack WebUI?

Hi Diggy,

The passwords are stored in the user_view table. With the way the 
authentication works we can just insert a plain text password for the reset and 
then change it via the user panel once logged in.

Find your user:
select username, password from user_view;

Set a password of password for that user:
update user_view set password = 'password' where username='admin';

Login to Cloudstack with admin/password navigate over to accounts, admin, view 
users, admin, change password.


On 14 September 2013 04:15, Diggy Shuvy digg...@gmail.com wrote:

 Hello All,

 I got problem on login page of CS 4.1.1 web management.
 How to reset admin password of CloudStack 4.1.1 web management?

 Thank a lot.
 Diggy



Re: Management Server Networking Issue (Not in Docs)

2013-09-17 Thread Richard Chatterton
Gene,

As Chiradeep suggested, you could probably get away with running 
cloud-install-sys-tmplt on a server with a connection to your secondary storage 
network. This step is only one once when setting up a new CloudStack zone to 
seed the system VM template. You should only need your hosts and secondary 
storage providers to be accessible on that network, otherwise.

This will keep you from having to go install new NICs :)

Best,
Rich

- Original Message -
From: Gene Cooper gcoo...@sonoracomm.com
To: users@cloudstack.apache.org
Sent: Tuesday, September 17, 2013 2:07:29 PM
Subject: Re: Management Server Networking Issue (Not in Docs)

Hi and thanks, Chiradeep.

That's great info.

So, it sounds to me like my best course of action would be to install a 
fairly inexpensive 1Gbps NIC in my management server and connect it to 
the secondary storage network.

Thanks again,

G

On 09/16/2013 06:11 PM, Chiradeep Vittal wrote:
 I think the main (and only) reason for the MS to access SS is to download
 the system vm template.
 You can copy the cloud-install-sys-tmplt script to the NFS server
 (assuming that it is Linux)
 Execute the script from there and supply the '-t' flag to specify the
 template id.
 Template id can be determined by
 select max(id) from cloud.vm_template where type = 'SYSTEM' and
 hypervisor_type = 'XenServer' and removed is null

 On 9/16/13 12:03 PM, Gene Cooper gcoo...@sonoracomm.com wrote:

 Hi all,

 My first post...

 We are setting up a CS 4.1.1 environment in a new datacenter.

 On all CS virt hosts (XCP 1.6), we have 2x 1G NICs and 2x 10G NICs with
 Management, Public+Guest, Primary Storage and Secondary Storage networks
 on those NICs in that order.

 No VLANs are yet configured anywhere on the hosts or switches (beyond
 the default)

 The management server is running as a (CentOS 6.4) VM on another
 (non-CS) XCP 1.6 virt host.  This host currently has only 2x 1G NICs on
 the Management and Primary Storage networks respectively.

 It appears I need to also give the management server access to the
 Secondary Storage network as well and I'm trying to determine how to do
 that.

 Advice anyone?  I'm interested in keeping further expenditures to a
 minimum, but I don't want to make ($) compromises that don't make sense.

 1) Do I need more NICs?  ...and how many?

 I tried creating another virt host network in XenCenter using the same
 NIC the Primary Storage network is on (assigning VLAN 1) and configuring
 that in the Management Server guest.  After configuring the new
 interface in the Management Server (guest), there is still no
 connectivity.

 2) Can I make this work?  Is it a VLAN thing I need to adjust in the
 switch?

 3) What interfaces are needed in a management server and how are they
 connected to the rest of the CS environment?

 Sorry for the noob questions, but docs don't seem to discuss this and my
 Google-fu is failing me.

 G

 --

 ===
 Gene Cooper
 Sonora Communications, Inc.
 936 W. Prince Road
 Tucson, AZ 85705

 (520)407-2000 x101
 (520)888-4060 fax



-- 

===
Gene Cooper
Sonora Communications, Inc.
936 W. Prince Road
Tucson, AZ 85705

(520)407-2000 x101
(520)888-4060 fax




Re: How to reset admin password of CloudStack WebUI?

2013-09-17 Thread Ian Duffy
 I hope this does not mean that user passwords are stored in plain text in the 
 database table.

They are not. The authenticators support:
   - PlainText
   - SHA1
   - MD5
   - LDAP

I believe SHA1 is the default, but from my experience once one match
of any of the authenticators are found it will cause a successful
login.

More information on resetting the password can be found at:
http://support.citrix.com/article/CTX133469

On 17 September 2013 19:49, Demetrius Tsitrelis
demetrius.tsitre...@citrix.com wrote:
 I hope this does not mean that user passwords are stored in plain text in the 
 database table.

 -Original Message-
 From: Ian Duffy [mailto:i...@ianduffy.ie]
 Sent: Saturday, September 14, 2013 6:02 AM
 To: users@cloudstack.apache.org
 Subject: Re: How to reset admin password of CloudStack WebUI?

 Hi Diggy,

 The passwords are stored in the user_view table. With the way the 
 authentication works we can just insert a plain text password for the reset 
 and then change it via the user panel once logged in.

 Find your user:
 select username, password from user_view;

 Set a password of password for that user:
 update user_view set password = 'password' where username='admin';

 Login to Cloudstack with admin/password navigate over to accounts, admin, 
 view users, admin, change password.


 On 14 September 2013 04:15, Diggy Shuvy digg...@gmail.com wrote:

 Hello All,

 I got problem on login page of CS 4.1.1 web management.
 How to reset admin password of CloudStack 4.1.1 web management?

 Thank a lot.
 Diggy



AWS interface in CloudStack 4.1.1 with Advanced Networking

2013-09-17 Thread Richard Chatterton
Howdy, CloudStack users!

I'm wanting to set up the AWS interface in CloudStack 4.1.1 in an advanced 
networking zone. I noticed that section 11.1 of the CloudStack installation 
documents says the following about the AWS interface:

Supported only in zones that use basic networking

As I haven't yet gotten the AWS interface working, I'm curious if this is the 
reason, or if I just have it configured incorrectly. If this documentation is 
accurate, does anyone know of a workaround to get the AWS interface working in 
an advanced network zone in CloudStack 4.1.1, or is this a hard limitation in 
this version of CloudStack? Also, does anyone know if later versions of 
CloudStack are planned to support the AWS interface in advanced zones?

Thanks for the help!

Best,
Rich Chatterton


RE: How to reset admin password of CloudStack WebUI?

2013-09-17 Thread Demetrius Tsitrelis
The Knowledge Base article on the Citrix site looks like a good reference.

Still curious as to why one can enter a plain text value for the admin directly 
into the database.  Does CloudStack look for the password value explicitly or 
would any value do?

-Original Message-
From: Ian Duffy [mailto:i...@ianduffy.ie] 
Sent: Tuesday, September 17, 2013 12:28 PM
To: users@cloudstack.apache.org
Subject: Re: How to reset admin password of CloudStack WebUI?

 I hope this does not mean that user passwords are stored in plain text in the 
 database table.

They are not. The authenticators support:
   - PlainText
   - SHA1
   - MD5
   - LDAP

I believe SHA1 is the default, but from my experience once one match of any of 
the authenticators are found it will cause a successful login.

More information on resetting the password can be found at:
http://support.citrix.com/article/CTX133469

On 17 September 2013 19:49, Demetrius Tsitrelis 
demetrius.tsitre...@citrix.com wrote:
 I hope this does not mean that user passwords are stored in plain text in the 
 database table.

 -Original Message-
 From: Ian Duffy [mailto:i...@ianduffy.ie]
 Sent: Saturday, September 14, 2013 6:02 AM
 To: users@cloudstack.apache.org
 Subject: Re: How to reset admin password of CloudStack WebUI?

 Hi Diggy,

 The passwords are stored in the user_view table. With the way the 
 authentication works we can just insert a plain text password for the reset 
 and then change it via the user panel once logged in.

 Find your user:
 select username, password from user_view;

 Set a password of password for that user:
 update user_view set password = 'password' where username='admin';

 Login to Cloudstack with admin/password navigate over to accounts, admin, 
 view users, admin, change password.


 On 14 September 2013 04:15, Diggy Shuvy digg...@gmail.com wrote:

 Hello All,

 I got problem on login page of CS 4.1.1 web management.
 How to reset admin password of CloudStack 4.1.1 web management?

 Thank a lot.
 Diggy



Re: How to reset admin password of CloudStack WebUI?

2013-09-17 Thread Ian Duffy
 Still curious as to why one can enter a plain text value for the admin 
 directly into the database.  Does CloudStack look for the password value 
 explicitly or would any value do?

It will loop threw all authenticators until a valid response is found,
personally I think this is bad. Its been discussed on the dev list a
few times.

To expand by example: (Doesn't occur necessarily in this order)
 - User inserts example123 as their password.
 - Password is SHA1ed and checked against DB - Fails
 - Password is MD5ed and checked against the DB - Fails
 - Password is used in an attempt to bind against LDAP - Fails
 - Password is sent as raw and checked against the DB - Passes
 - User logs in successfully

On 17 September 2013 21:19, Demetrius Tsitrelis
demetrius.tsitre...@citrix.com wrote:
 The Knowledge Base article on the Citrix site looks like a good reference.

 Still curious as to why one can enter a plain text value for the admin 
 directly into the database.  Does CloudStack look for the password value 
 explicitly or would any value do?

 -Original Message-
 From: Ian Duffy [mailto:i...@ianduffy.ie]
 Sent: Tuesday, September 17, 2013 12:28 PM
 To: users@cloudstack.apache.org
 Subject: Re: How to reset admin password of CloudStack WebUI?

 I hope this does not mean that user passwords are stored in plain text in 
 the database table.

 They are not. The authenticators support:
- PlainText
- SHA1
- MD5
- LDAP

 I believe SHA1 is the default, but from my experience once one match of any 
 of the authenticators are found it will cause a successful login.

 More information on resetting the password can be found at:
 http://support.citrix.com/article/CTX133469

 On 17 September 2013 19:49, Demetrius Tsitrelis 
 demetrius.tsitre...@citrix.com wrote:
 I hope this does not mean that user passwords are stored in plain text in 
 the database table.

 -Original Message-
 From: Ian Duffy [mailto:i...@ianduffy.ie]
 Sent: Saturday, September 14, 2013 6:02 AM
 To: users@cloudstack.apache.org
 Subject: Re: How to reset admin password of CloudStack WebUI?

 Hi Diggy,

 The passwords are stored in the user_view table. With the way the 
 authentication works we can just insert a plain text password for the reset 
 and then change it via the user panel once logged in.

 Find your user:
 select username, password from user_view;

 Set a password of password for that user:
 update user_view set password = 'password' where username='admin';

 Login to Cloudstack with admin/password navigate over to accounts, admin, 
 view users, admin, change password.


 On 14 September 2013 04:15, Diggy Shuvy digg...@gmail.com wrote:

 Hello All,

 I got problem on login page of CS 4.1.1 web management.
 How to reset admin password of CloudStack 4.1.1 web management?

 Thank a lot.
 Diggy



Re: Unable to start DomR CS 4.1 VMware esxi 5.1

2013-09-17 Thread John Skinner
Looking at the catalina.out log from the management server I see this right 
before the error:

INFO  [vmware.resource.VmwareResource] (DirectAgent-317:10.0.97.107) Preparing 
NIC device on network cloud.public.2502.0.1-vSwitch2
INFO  [vmware.resource.VmwareResource] (DirectAgent-317:10.0.97.107) Configure 
VNC port for VM r-134-VM, port: 5927, host: 10.0.97.107
Fault {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
Message A specified parameter was not correct.

ERROR [vmware.mo.VirtualMachineMO] (DirectAgent-317:10.0.97.107) VMware 
reconfigVM_Task failed due to A specified parameter was not correct.
 com.vmware.vim25.InvalidArgument
WARN  [vmware.resource.VmwareResource] (DirectAgent-317:10.0.97.107) 
StartCommand failed due to Exception: java.lang.Exception
Message: Failed to configure VM before start. vmName: r-134-VM

java.lang.Exception: Failed to configure VM before start. vmName: r-134-VM
at 
com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:2315)
at 
com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:419)
at 
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
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.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
INFO  [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-21:job-662) Unable to 
start VM on Host[-21-Routing] due to StartCommand failed due to Exception: 
java.lang.Exception
Message: Failed to configure VM before start. vmName: r-134-VM

It looks like the last thing it was trying to do is configure the VNC port for 
the VM?

- Original Message -
From: John Skinner john.skin...@appcore.com
To: users@cloudstack.apache.org
Sent: Tuesday, September 17, 2013 11:12:37 AM
Subject: Re: Unable to start DomR CS 4.1 VMware esxi 5.1

Still working on this. Here is a full trace from vCenter logs. Still unsure 
what is going on. 

http://fpaste.org/40151/ 

- Original Message -

From: John Skinner john.skin...@appcore.com 
To: users@cloudstack.apache.org 
Sent: Monday, September 16, 2013 6:08:09 PM 
Subject: Re: Unable to start DomR CS 4.1 VMware esxi 5.1 

Found this in the esxi logs, not sure what it means. I am still not sure which 
parameter was not correct. Not sure if this is of any help or not. 



2013-09-16T10:22:29.858-05:00 [02968 info 'commonvpxLro' opID=8a6a6788] 
[VpxLRO] -- FINISH task-46421 -- vm-4730 -- vim.VirtualMachine.reconfigure -- 
2013-09-16T10:22:29.859-05:00 [02968 info 'Default' opID=8a6a6788] [VpxLRO] -- 
ERROR task-46421 -- vm-4730 -- vim.VirtualMachine.reconfigure: 
vmodl.fault.InvalidArgument: 
-- Result: 
-- (vmodl.fault.InvalidArgument) { 
-- dynamicType = unset, 
-- faultCause = (vmodl.MethodFault) null, 
-- invalidProperty = unset, 
-- msg = A specified parameter was not correct. 
-- , 
-- } 

- Original Message -


From: John Skinner john.skin...@appcore.com 
To: users@cloudstack.apache.org 
Sent: Monday, September 16, 2013 3:56:10 PM 
Subject: Unable to start DomR CS 4.1 VMware esxi 5.1 

Having an issue getting domain routers to start in a VMware 5.1 environment 
with CS 4.1. The fun thing is, this was all working fine last week, and of 
course, no one changed anything . Has anyone seen anything like this: 



2013-09-16 15:46:16,927 TRACE [vmware.mo.ClusterMO] 
(DirectAgent-69:10.0.97.107) vCenter API trace - retrieveProperties() for VM 
properties. target MOR: domain-c3887, properties: 
[name,config.extraConfig[\RemoteDisplay.vnc.port\]] 
2013-09-16 15:46:17,222 TRACE [vmware.mo.ClusterMO] 
(DirectAgent-69:10.0.97.107) vCenter API trace - retrieveProperties() done 
2013-09-16 15:46:17,451 INFO [vmware.resource.VmwareResource] 
(DirectAgent-69:10.0.97.107) Configure VNC port for VM r-126-VM, port: 5905, 
host: 10.0.97.107 
2013-09-16 15:46:18,931 ERROR [vmware.mo.VirtualMachineMO] 
(DirectAgent-69:10.0.97.107) VMware reconfigVM_Task failed due to A specified 
parameter was not correct. 
com.vmware.vim25.InvalidArgument 
2013-09-16 15:46:18,933 WARN [vmware.resource.VmwareResource] 
(DirectAgent-69:10.0.97.107) StartCommand failed due to Exception: 
java.lang.Exception 
Message: Failed to configure VM before start. vmName: r-126-VM 

java.lang.Exception: Failed to configure VM before start. vmName: r-126-VM 
at 

Re: Unable to start DomR CS 4.1 VMware esxi 5.1

2013-09-17 Thread Kelven Yang
Yes, the last step is to configure VNC for the VM.

Are you able to start the VM in vCenter?

Kelven

On 9/17/13 1:50 PM, John Skinner john.skin...@appcore.com wrote:

Looking at the catalina.out log from the management server I see this
right before the error:

INFO  [vmware.resource.VmwareResource] (DirectAgent-317:10.0.97.107)
Preparing NIC device on network cloud.public.2502.0.1-vSwitch2
INFO  [vmware.resource.VmwareResource] (DirectAgent-317:10.0.97.107)
Configure VNC port for VM r-134-VM, port: 5927, host: 10.0.97.107
Fault {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
Message A specified parameter was not correct.

ERROR [vmware.mo.VirtualMachineMO] (DirectAgent-317:10.0.97.107) VMware
reconfigVM_Task failed due to A specified parameter was not correct.
 com.vmware.vim25.InvalidArgument
WARN  [vmware.resource.VmwareResource] (DirectAgent-317:10.0.97.107)
StartCommand failed due to Exception: java.lang.Exception
Message: Failed to configure VM before start. vmName: r-134-VM

java.lang.Exception: Failed to configure VM before start. vmName: r-134-VM
at 
com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource
.java:2315)
at 
com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareR
esource.java:419)
at 
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.jav
a:186)
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.ScheduledThreadPoolExecutor$ScheduledFutureTask.acces
s$101(ScheduledThreadPoolExecutor.java:165)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(S
cheduledThreadPoolExecutor.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1146)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
:615)
at java.lang.Thread.run(Thread.java:679)
INFO  [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-21:job-662)
Unable to start VM on Host[-21-Routing] due to StartCommand failed due to
Exception: java.lang.Exception
Message: Failed to configure VM before start. vmName: r-134-VM

It looks like the last thing it was trying to do is configure the VNC
port for the VM?

- Original Message -
From: John Skinner john.skin...@appcore.com
To: users@cloudstack.apache.org
Sent: Tuesday, September 17, 2013 11:12:37 AM
Subject: Re: Unable to start DomR CS 4.1 VMware esxi 5.1

Still working on this. Here is a full trace from vCenter logs. Still
unsure what is going on.

http://fpaste.org/40151/

- Original Message -

From: John Skinner john.skin...@appcore.com
To: users@cloudstack.apache.org
Sent: Monday, September 16, 2013 6:08:09 PM
Subject: Re: Unable to start DomR CS 4.1 VMware esxi 5.1

Found this in the esxi logs, not sure what it means. I am still not sure
which parameter was not correct. Not sure if this is of any help or
not. 



2013-09-16T10:22:29.858-05:00 [02968 info 'commonvpxLro' opID=8a6a6788]
[VpxLRO] -- FINISH task-46421 -- vm-4730 --
vim.VirtualMachine.reconfigure --
2013-09-16T10:22:29.859-05:00 [02968 info 'Default' opID=8a6a6788]
[VpxLRO] -- ERROR task-46421 -- vm-4730 --
vim.VirtualMachine.reconfigure: vmodl.fault.InvalidArgument:
-- Result: 
-- (vmodl.fault.InvalidArgument) {
-- dynamicType = unset,
-- faultCause = (vmodl.MethodFault) null,
-- invalidProperty = unset,
-- msg = A specified parameter was not correct.
-- , 
-- } 

- Original Message -


From: John Skinner john.skin...@appcore.com
To: users@cloudstack.apache.org
Sent: Monday, September 16, 2013 3:56:10 PM
Subject: Unable to start DomR CS 4.1 VMware esxi 5.1

Having an issue getting domain routers to start in a VMware 5.1
environment with CS 4.1. The fun thing is, this was all working fine last
week, and of course, no one changed anything . Has anyone seen anything
like this: 



2013-09-16 15:46:16,927 TRACE [vmware.mo.ClusterMO]
(DirectAgent-69:10.0.97.107) vCenter API trace - retrieveProperties() for
VM properties. target MOR: domain-c3887, properties:
[name,config.extraConfig[\RemoteDisplay.vnc.port\]]
2013-09-16 15:46:17,222 TRACE [vmware.mo.ClusterMO]
(DirectAgent-69:10.0.97.107) vCenter API trace - retrieveProperties()
done 
2013-09-16 15:46:17,451 INFO [vmware.resource.VmwareResource]
(DirectAgent-69:10.0.97.107) Configure VNC port for VM r-126-VM, port:
5905, host: 10.0.97.107
2013-09-16 15:46:18,931 ERROR [vmware.mo.VirtualMachineMO]
(DirectAgent-69:10.0.97.107) VMware reconfigVM_Task failed due to A
specified parameter was not correct.
com.vmware.vim25.InvalidArgument
2013-09-16 15:46:18,933 WARN [vmware.resource.VmwareResource]
(DirectAgent-69:10.0.97.107) StartCommand failed due to Exception:
java.lang.Exception
Message: Failed to configure VM before start. vmName: 

Re: Unable to start DomR CS 4.1 VMware esxi 5.1

2013-09-17 Thread John Skinner
Yes, however on the console it just comes up with Operating System Not Found 
error. This is really strange since this was all working fine last week.

John Skinner 
Senior Systems Administrator | Appcore - the business of cloud computing® 

Office +1.800.735.7104 
Direct +1.515.612.7783 | Mobile +1.515.745.0248 
john.skin...@appcore.com | www.appcore.com 
-- 
The information in this message is intended for the named recipients only. It 
may contain information that is privileged, confidential or otherwise protected 
from disclosure. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, distribution, or the taking of any action in 
reliance on the contents of this message is strictly prohibited. If you have 
received this e-mail in error, do not print it or disseminate it or its 
contents. In such event, please notify the sender by return e-mail and delete 
the e-mail file immediately thereafter. Thank you. 


- Original Message -
From: Kelven Yang kelven.y...@citrix.com
To: users@cloudstack.apache.org
Sent: Tuesday, September 17, 2013 4:16:42 PM
Subject: Re: Unable to start DomR CS 4.1 VMware esxi 5.1

Yes, the last step is to configure VNC for the VM.

Are you able to start the VM in vCenter?

Kelven

On 9/17/13 1:50 PM, John Skinner john.skin...@appcore.com wrote:

Looking at the catalina.out log from the management server I see this
right before the error:

INFO  [vmware.resource.VmwareResource] (DirectAgent-317:10.0.97.107)
Preparing NIC device on network cloud.public.2502.0.1-vSwitch2
INFO  [vmware.resource.VmwareResource] (DirectAgent-317:10.0.97.107)
Configure VNC port for VM r-134-VM, port: 5927, host: 10.0.97.107
Fault {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
Message A specified parameter was not correct.

ERROR [vmware.mo.VirtualMachineMO] (DirectAgent-317:10.0.97.107) VMware
reconfigVM_Task failed due to A specified parameter was not correct.
 com.vmware.vim25.InvalidArgument
WARN  [vmware.resource.VmwareResource] (DirectAgent-317:10.0.97.107)
StartCommand failed due to Exception: java.lang.Exception
Message: Failed to configure VM before start. vmName: r-134-VM

java.lang.Exception: Failed to configure VM before start. vmName: r-134-VM
at 
com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource
.java:2315)
at 
com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareR
esource.java:419)
at 
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.jav
a:186)
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.ScheduledThreadPoolExecutor$ScheduledFutureTask.acces
s$101(ScheduledThreadPoolExecutor.java:165)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(S
cheduledThreadPoolExecutor.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1146)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
:615)
at java.lang.Thread.run(Thread.java:679)
INFO  [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-21:job-662)
Unable to start VM on Host[-21-Routing] due to StartCommand failed due to
Exception: java.lang.Exception
Message: Failed to configure VM before start. vmName: r-134-VM

It looks like the last thing it was trying to do is configure the VNC
port for the VM?

- Original Message -
From: John Skinner john.skin...@appcore.com
To: users@cloudstack.apache.org
Sent: Tuesday, September 17, 2013 11:12:37 AM
Subject: Re: Unable to start DomR CS 4.1 VMware esxi 5.1

Still working on this. Here is a full trace from vCenter logs. Still
unsure what is going on.

http://fpaste.org/40151/

- Original Message -

From: John Skinner john.skin...@appcore.com
To: users@cloudstack.apache.org
Sent: Monday, September 16, 2013 6:08:09 PM
Subject: Re: Unable to start DomR CS 4.1 VMware esxi 5.1

Found this in the esxi logs, not sure what it means. I am still not sure
which parameter was not correct. Not sure if this is of any help or
not. 



2013-09-16T10:22:29.858-05:00 [02968 info 'commonvpxLro' opID=8a6a6788]
[VpxLRO] -- FINISH task-46421 -- vm-4730 --
vim.VirtualMachine.reconfigure --
2013-09-16T10:22:29.859-05:00 [02968 info 'Default' opID=8a6a6788]
[VpxLRO] -- ERROR task-46421 -- vm-4730 --
vim.VirtualMachine.reconfigure: vmodl.fault.InvalidArgument:
-- Result: 
-- (vmodl.fault.InvalidArgument) {
-- dynamicType = unset,
-- faultCause = (vmodl.MethodFault) null,
-- invalidProperty = unset,
-- msg = A specified parameter was not correct.
-- , 
-- } 

- Original Message -


From: John Skinner john.skin...@appcore.com
To: users@cloudstack.apache.org
Sent: 

Re: Unable to start DomR CS 4.1 VMware esxi 5.1

2013-09-17 Thread Kelven Yang
It looks like that the disk image of the VM is corrupted. Do following,

1) Locate the datastore in vCenter on which the system VM is running
2) Open datastore-browse window
3) In the meantime, right click on the problem VM in vCenter (int host
view), chose Edit SettingsŠ to bring up VM configuration dialog
4) Find the VMDK location from the dialog in step 3
5) cross-check your findings about the VMDK in datastore, first check if
the file does exist on datastore

If it is a problem caused by disk corruption, you will need to destroy the
system and let CloudStack recreate it

Kelven

On 9/17/13 2:31 PM, John Skinner john.skin...@appcore.com wrote:

Yes, however on the console it just comes up with Operating System Not
Found error. This is really strange since this was all working fine last
week.

John Skinner 
Senior Systems Administrator | Appcore - the business of cloud computing®

Office +1.800.735.7104
Direct +1.515.612.7783 | Mobile +1.515.745.0248
john.skin...@appcore.com | www.appcore.com
--
The information in this message is intended for the named recipients
only. It may contain information that is privileged, confidential or
otherwise protected from disclosure. If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution, or the taking of any action in reliance on the contents of
this message is strictly prohibited. If you have received this e-mail in
error, do not print it or disseminate it or its contents. In such event,
please notify the sender by return e-mail and delete the e-mail file
immediately thereafter. Thank you.


- Original Message -
From: Kelven Yang kelven.y...@citrix.com
To: users@cloudstack.apache.org
Sent: Tuesday, September 17, 2013 4:16:42 PM
Subject: Re: Unable to start DomR CS 4.1 VMware esxi 5.1

Yes, the last step is to configure VNC for the VM.

Are you able to start the VM in vCenter?

Kelven

On 9/17/13 1:50 PM, John Skinner john.skin...@appcore.com wrote:

Looking at the catalina.out log from the management server I see this
right before the error:

INFO  [vmware.resource.VmwareResource] (DirectAgent-317:10.0.97.107)
Preparing NIC device on network cloud.public.2502.0.1-vSwitch2
INFO  [vmware.resource.VmwareResource] (DirectAgent-317:10.0.97.107)
Configure VNC port for VM r-134-VM, port: 5927, host: 10.0.97.107
Fault {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
Message A specified parameter was not correct.

ERROR [vmware.mo.VirtualMachineMO] (DirectAgent-317:10.0.97.107) VMware
reconfigVM_Task failed due to A specified parameter was not correct.
 com.vmware.vim25.InvalidArgument
WARN  [vmware.resource.VmwareResource] (DirectAgent-317:10.0.97.107)
StartCommand failed due to Exception: java.lang.Exception
Message: Failed to configure VM before start. vmName: r-134-VM

java.lang.Exception: Failed to configure VM before start. vmName:
r-134-VM
at 
com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResourc
e
.java:2315)
at 
com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(Vmware
R
esource.java:419)
at 
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.ja
v
a:186)
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.ScheduledThreadPoolExecutor$ScheduledFutureTask.acce
s
s$101(ScheduledThreadPoolExecutor.java:165)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(
S
cheduledThreadPoolExecutor.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java
:
1146)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.jav
a
:615)
at java.lang.Thread.run(Thread.java:679)
INFO  [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-21:job-662)
Unable to start VM on Host[-21-Routing] due to StartCommand failed due to
Exception: java.lang.Exception
Message: Failed to configure VM before start. vmName: r-134-VM

It looks like the last thing it was trying to do is configure the VNC
port for the VM?

- Original Message -
From: John Skinner john.skin...@appcore.com
To: users@cloudstack.apache.org
Sent: Tuesday, September 17, 2013 11:12:37 AM
Subject: Re: Unable to start DomR CS 4.1 VMware esxi 5.1

Still working on this. Here is a full trace from vCenter logs. Still
unsure what is going on.

http://fpaste.org/40151/

- Original Message -

From: John Skinner john.skin...@appcore.com
To: users@cloudstack.apache.org
Sent: Monday, September 16, 2013 6:08:09 PM
Subject: Re: Unable to start DomR CS 4.1 VMware esxi 5.1

Found this in the esxi logs, not sure what it means. I am still not sure
which parameter was not correct. Not sure if this is of any help 

Re: Help! After network outage, can't start System VMs; focused debug info attached

2013-09-17 Thread Matt Foley
Hi,
I've now heard that this problem, of Cloudstack being messed up after
interruption of the NFS shared storage access, is well known.  Does anyone
have a fix or work-around?

Kirk, thanks for your help so far.
Both the master and the host servers can mount both primary and secondary
stores, and read and write them.  No permissions nor IP access seem broken.

I also checked the log levels on the hosts, and both FILE and com.cloud
were already set to DEBUG.  I tried setting them to TRACE, but got no
additional useful info.

On the host, I tried just restarting the cloudstack-agent service.  In the
resulting logs, the following snippet occurs.  The best interpretation I
can make of it is that no storage vol with matching
name 'f23a16e7-b628-429e-83e1-698935588465'' is the key issue, and that
should relate to secondary storage, where the templates are stored.  But
this uuid doesn't seem to be related to the actual secondary storage pool,
whose uuid is b7fd7b11-c0f7-4717-8343-ff6fb9bff860.  The primary storage
pool is uuid 9c6fd9a3-43e5-389a-9594-faecf178b4b9, and it seems to be
properly automatically mounted on all hosts and the master.

** It concerns me that the secondary storage pool does NOT seem to be
automatically mounted.  Is it supposed to be?  If not, how are the hosts
supposed to find the templates, before a System Router VM can even be set
up?

Below is the relevant host agent.log snippet, and also a dump of the
storage_pool table from mysql.

Thanks in advance for any suggestions.
--Matt

==
2013-09-17 15:26:46,012 DEBUG [cloud.agent.Agent]
(agentRequest-Handler-4:null) Processing command:
com.cloud.agent.api.storage.CreateCommand
2013-09-17 15:26:46,050 DEBUG [kvm.resource.LibvirtComputingResource]
(agentRequest-Handler-4:null) Failed to create volume:
com.cloud.utils.exception.CloudRuntimeException:
org.libvirt.LibvirtException: Storage volume not found: no storage vol with
matching name 'f23a16e7-b628-429e-83e1-698935588465'
2013-09-17 15:26:46,051 DEBUG [cloud.agent.Agent]
(agentRequest-Handler-4:null) Seq 14-606340093:  { Ans: , MgmtId:
161340856362, via: 14, Ver: v1, Flags: 110,
[{storage.CreateAnswer:{requestTemplateReload:false,result:false,details:Exception:
com.cloud.utils.exception.CloudRuntimeException\nMessage:
org.libvirt.LibvirtException: Storage volume not found: no storage vol with
matching name 'f23a16e7-b628-429e-83e1-698935588465'\nStack:
com.cloud.utils.exception.CloudRuntimeException:
org.libvirt.LibvirtException: Storage volume not found: no storage vol with
matching name 'f23a16e7-b62\
8-429e-83e1-698935588465'\n\tat
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getVolume(LibvirtStorageAdaptor.java:90)\n\tat
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getPhysicalDisk(LibvirtStorageAdaptor.java:437)\n\tat
com.cloud.hypervisor.kvm.storage.LibvirtStoragePool.getPhysicalDisk(LibvirtStoragePool.java:123)\n\tat
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(LibvirtComputingResource.java:1279)\n\tat
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1072)\n\tat
com.cloud.agent.Agent.processRequest(Agent.java:525)\n\tat
com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:852)\n\tat
com.cloud.utils.nio.Task.run(Task.java:83)\n\tat
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)\n\tat
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n\tat
java.lang.Thread.run(Thread.java:679)\n,wait:0}}] }
2013-09-17 15:26:46,192 DEBUG [cloud.agent.Agent]
(agentRequest-Handler-1:null) Request:Seq 14-606340094:  { Cmd , MgmtId:
161340856362, via: 14, Ver: v1, Flags: 100111,
[{storage.CreateCommand:{volId:10510,pool:{id:201,uuid:9c6fd9a3-43e5-389a-9594-faecf178b4b9,host:10.42.1.101,path:/srv/nfs/eng/cs-primary,port:2049,type:NetworkFilesystem},diskCharacteristics:{size:725811200,tags:[],type:ROOT,name:ROOT-10429,useLocalStorage:false,recreatable:true,diskOfferingId:7,volumeId:10510,hyperType:KVM},templateUrl:f23a16e7-b628-429e-83e1-698935588465,wait:0}}]
}
2013-09-17 15:26:46,192 DEBUG [cloud.agent.Agent]
(agentRequest-Handler-1:null) Processing command:
com.cloud.agent.api.storage.CreateCommand
2013-09-17 15:26:46,228 DEBUG [kvm.resource.LibvirtComputingResource]
(agentRequest-Handler-1:null) Failed to create volume:
com.cloud.utils.exception.CloudRuntimeException:
org.libvirt.LibvirtException: Storage volume not found: no storage vol with
matching name 'f23a16e7-b628-429e-83e1-698935588465'
2013-09-17 15:26:46,229 DEBUG [cloud.agent.Agent]
(agentRequest-Handler-1:null) Seq 14-606340094:  { Ans: , MgmtId:
161340856362, via: 14, Ver: v1, Flags: 110,
[{storage.CreateAnswer:{requestTemplateReload:false,result:false,details:Exception:
com.cloud.utils.exception.CloudRuntimeException\nMessage:
org.libvirt.LibvirtException: Storage volume not found: no storage vol with
matching name 

Help with host network config KVM + Centos

2013-09-17 Thread Jake G.
Hi all,


I have a single centOS 6.4 KVM host with two NICs

eth0: 192.168.100.131/24 GW 192.168.100.254 is for public access (internet 
access)
eth1: 10.3.9.50/8 no GW is for management access

Could someone please help me with the initial configuration to work with KVM 
and Cloudstack?
This setup is different than the documentation. I do not want to use 
openvswitch if possible.

Thank you for your help in advance!