You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Tejas Gadaria <re...@gmail.com> on 2014/04/02 12:24:14 UTC

Unable to deploy systemvms

Hi,

I am trying to create system vms, in CS 4.3 with Xenserver 6.2
I am trying to create advance zone. I have 2nics.
1 for management network & second is trunk.

I am getting below error

2014-04-02 15:18:28,827 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
(consoleproxy-1:ctx-774da64a) template 1 is already in store:1, type:Image
2014-04-02 15:18:28,831 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
(consoleproxy-1:ctx-774da64a) template 1 is already in store:1, type:Primary
2014-04-02 15:18:28,832 DEBUG [o.a.c.s.v.VolumeServiceImpl]
(consoleproxy-1:ctx-774da64a) Found template routing-1 in storage pool 1
with VMTemplateStoragePool id: 4
2014-04-02 15:18:28,840 DEBUG [o.a.c.s.v.VolumeServiceImpl]
(consoleproxy-1:ctx-774da64a) Acquire lock on VMTemplateStoragePool 4 with
timeout 3600 seconds
2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
(DirectAgent-111:ctx-f68bde71) destoryVDIbyNameLabel failed due to there
are 0 VDIs with name cloud-cff5e443-72df-4aae-a4fd-1278fc0cbeb4
2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
(DirectAgent-111:ctx-f68bde71) can not create vdi in sr
d2bf95cc-8761-c31d-37a5-173304cc621e
2014-04-02 15:18:30,904 WARN  [c.c.h.x.r.XenServerStorageProcessor]
(DirectAgent-111:ctx-f68bde71) Catch Exception
com.cloud.utils.exception.CloudRuntimeException for template +  due to
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
d2bf95cc-8761-c31d-37a5-173304cc621e
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
d2bf95cc-8761-c31d-37a5-173304cc621e
    at
com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:848)
    at
com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:918)
    at
com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:75)
    at
com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
    at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:609)
    at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
    at
com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
    at
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
    at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
    at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
    at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
    at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
    at
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
    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)
2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
(DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
(DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Processing:  { Ans: ,
MgmtId: 345049296663, via: 1, Ver: v1, Flags: 10,
[{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
Exception com.cloud.utils.exception.CloudRuntimeException for template +
due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi
in sr d2bf95cc-8761-c31d-37a5-173304cc621e","wait":0}}] }
2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request] (secstorage-1:ctx-4d6c3938)
Seq 1-524878146: Received:  { Ans: , MgmtId: 345049296663, via: 1, Ver: v1,
Flags: 10, { CopyCmdAnswer } }
2014-04-02 15:18:30,915 INFO  [o.a.c.s.v.VolumeServiceImpl]
(secstorage-1:ctx-4d6c3938) releasing lock for VMTemplateStoragePool 4
2014-04-02 15:18:30,915 WARN  [c.c.u.d.Merovingian2]
(secstorage-1:ctx-4d6c3938) Was unable to find lock for the key
template_spool_ref4 and thread id 404723302
2014-04-02 15:18:30,915 DEBUG [o.a.c.e.o.VolumeOrchestrator]
(secstorage-1:ctx-4d6c3938) Unable to create Vol[5|vm=5|ROOT]:Catch
Exception com.cloud.utils.exception.CloudRuntimeException for template +
due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi
in sr d2bf95cc-8761-c31d-37a5-173304cc621e
2014-04-02 15:18:30,915 INFO  [c.c.v.VirtualMachineManagerImpl]
(secstorage-1:ctx-4d6c3938) Unable to contact resource.
com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1]
is unreachable: Unable to create Vol[5|vm=5|ROOT]:Catch Exception
com.cloud.utils.exception.CloudRuntimeException for template +  due to
com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
d2bf95cc-8761-c31d-37a5-173304cc621e
    at
org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
    at
org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
    at
com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
    at
com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
    at
com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:745)
    at
com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:261)
    at
com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:694)
    at
com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1278)
    at
com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
    at
com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
    at
com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:111)
    at
com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:35)
    at
com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:88)
    at
com.cloud.vm.SystemVmLoadScanner$1.runInContext(SystemVmLoadScanner.java:79)
    at
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
    at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
    at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
    at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
    at
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
    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)
2014-04-02 15:18:30,920 DEBUG [c.c.v.VirtualMachineManagerImpl]
(secstorage-1:ctx-4d6c3938) Cleaning up resources for the vm
VM[SecondaryStorageVm|s-5-VM] in Starting state



Regards,
Tejas

Re: Unable to deploy systemvms

Posted by Pierre-Luc Dion <pd...@cloudops.com>.
Tejas,

The SSVM will mount the NFS share using is Storage network interface if
define otherwise it will mount it using is management NIC.  To download the
template, the traffic from the SSVM will go from is Public interface. You
should be able to ping the SSVM public IP, the current setup might have a
networking issue such as an improper VLAN ID defined or label.



Pierre-Luc Dion
Architecte de Solution Cloud | Cloud Solutions Architect
- - -

*CloudOps*420 rue Guy
Montréal QC  H3J 1S6
www.cloudops.com
@CloudOps_


On Thu, Apr 3, 2014 at 2:31 AM, Tejas Gadaria <re...@gmail.com> wrote:

> Hi Dion,
>
> Thanks for the clue,I was missing 'cloud traffic label' there.
> One step ahead Now SSVM and CPVM is UP & running.  I am able to ping both
> private ip but not Public ip from Management server and link local is also
> pinging from hypervisor . I tried SSVM health check. every thing fine.
> secstorage.allowed.internal.sites = Management server ip.
>
> 2014-04-03 11:15:55,280 DEBUG [c.c.a.m.AgentManagerImpl]
> (AgentManager-Handler-7:null) SeqA 2-5: Processing Seq 2-5:  { Cmd ,
> MgmtId: -1, via: 2, Ver: v1, Flags: 11,
>
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
> \"connections\": []\n}","wait":0}}] }
> 2014-04-03 11:15:55,288 DEBUG [c.c.a.m.AgentManagerImpl]
> (AgentManager-Handler-7:null) SeqA 2-5: Sending Seq 2-5:  { Ans: , MgmtId:
> 345049296663, via: 2, Ver: v1, Flags: 100010,
> [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2014-04-03 11:15:55,996 DEBUG [o.a.c.s.RemoteHostEndPoint]
> (Timer-11:ctx-67fcb05a) Sending command
> org.apache.cloudstack.storage.command.DownloadProgressCommand to host: 3
> 2014-04-03 11:15:55,998 DEBUG [c.c.a.t.Request] (Timer-11:ctx-67fcb05a) Seq
> 3-140181514: Sending  { Cmd , MgmtId: 345049296663, via: 3(s-1-VM), Ver:
> v1, Flags: 100011,
>
> [{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"c9ad6108-ddcd-44a1-8e62-9d7ab76e4834","request":"GET_STATUS","hvm":false,"description":"CentOS
> 5.6(64-bit) no GUI
>
> (XenServer)","checksum":"905cec879afd9c9d22ecc8036131a180","maxDownloadSizeInBytes":53687091200,"id":5,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/5","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://
> 10.129.151.60/vol/secondary","_role":"Image"}},"url":"
> http://download.cloud.com/templates/builtin/centos56-x86_64.vhd.bz2
>
> ","format":"VHD","accountId":1,"name":"centos56-x86_64-xen","secUrl":"nfs://
> 10.129.151.60/vol/secondary","wait":0}}] }
> 2014-04-03 11:15:55,999 DEBUG [o.a.c.s.RemoteHostEndPoint]
> (Timer-10:ctx-7539f2bf) Sending command
> org.apache.cloudstack.storage.command.DownloadProgressCommand to host: 3
> 2014-04-03 11:15:56,001 DEBUG [c.c.a.t.Request] (Timer-10:ctx-7539f2bf) Seq
> 3-140181515: Sending  { Cmd , MgmtId: 345049296663, via: 3(s-1-VM), Ver:
> v1, Flags: 100011,
>
> [{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"8c3263f0-b796-4f28-a965-6f2ef421f815","request":"GET_STATUS","hvm":false,"description":"CentOS
> 5.3(64-bit) no GUI
>
> (XenServer)","checksum":"b63d854a9560c013142567bbae8d98cf","maxDownloadSizeInBytes":53687091200,"id":2,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/2","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://
> 10.129.151.60/vol/secondary","_role":"Image"}},"url":"
>
> http://download.cloud.com/templates/builtin/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
> ","format":"VHD","accountId":1,"name":"centos53-x86_64","secUrl":"nfs://
> 10.129.151.60/vol/secondary","wait":0}}] }
> 2014-04-03 11:15:56,021 DEBUG [c.c.a.t.Request]
> (AgentManager-Handler-9:null) Seq 3-140181515: Processing:  { Ans: ,
> MgmtId: 345049296663, via: 3, Ver: v1, Flags: 10,
>
> [{"com.cloud.agent.api.storage.DownloadAnswer":{"jobId":"8c3263f0-b796-4f28-a965-6f2ef421f815","*downloadPct":0,"errorString":"No
> route to
>
> host","downloadStatus":"DOWNLOAD_ERROR","downloadPath":"/mnt/SecStorage/083f43be-897d-3f0d-b65e-54e1462fa59a/template/tmpl/1/2/dnld4937216608487758375tmp_","installPath":"template/tmpl/1/2","templateSize":0,"templatePhySicalSize":0,"checkSum":"b63d854a9560c013142567bbae8d98cf","result":true,"details":"No
> route to host","wait":0}}] }*
> 2014-04-03 11:15:56,021 DEBUG [c.c.a.t.Request]
> (AgentManager-Handler-8:null) Seq 3-140181514: Processing:  { Ans: ,
> MgmtId: 345049296663, via: 3, Ver: v1, Flags: 10,
>
> [{"com.cloud.agent.api.storage.DownloadAnswer":{"jobId":"c9ad6108-ddcd-44a1-8e62-9d7ab76e4834","downloadPct":0,"errorString":"No
> route to
> host","*downloadStatus":"DOWNLOAD_ERROR",*"downloadPath":"/mnt/SecStorage/083f43be-897d-3f0d-b65e-54e1462fa59a/template/tmpl/1/5/dnld2277393467913145419tmp_","installPath":"template/tmpl/1/5","templateSize":0,"templatePhySicalSize":0,"checkSum":"905cec879afd9c9d22ecc8036131a180","result":true,"details":"No
> route to host","wait":0}}] }
>
>
> Regards,
> Tejas
>
>
> On Wed, Apr 2, 2014 at 7:24 PM, Pierre-Luc Dion <pd...@cloudops.com>
> wrote:
>
> > Tejas,
> >
> > Did you add the network label names in Cloudstack ?  You need to specify
> > the network label name in Cloudstack that are configured in XenServer.
> I'm
> > suspecting that the current issue is that CloudStack cannot map the
> Storage
> > Network from is config in XenServer so xenserver cannot reach the
> secondary
> > storage.
> >
> > I've add an attachment on where to look at in Cloudstack. If you have
> > access to XenCenter you have to use name of networks under networking tab
> > on the XenServer host.
> >
> > you can refer to:
> >
> >
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/hypervisor_installation.html#citrix-xenserver-installation-for-cloudstack
> >
> > Regards,
> >
> >
> >
> >
> > Pierre-Luc Dion
> > Architecte de Solution Cloud | Cloud Solutions Architect
> > 514-447-3456, 1101
> > - - -
> >
> > *CloudOps*420 rue Guy
> > Montréal QC  H3J 1S6
> > www.cloudops.com
> > @CloudOps_
> >
> >
> > On Wed, Apr 2, 2014 at 8:54 AM, Tejas Gadaria <refond.gmrt@gmail.com
> >wrote:
> >
> >> Hi Yitao,
> >>
> >> xenbr0 : acting as Management network and no VLAN is assigned to it
> >> xenbr1 : acting as public, guest storage network. All of this are in
> same
> >> VLAN.
> >> Also I have given same "name-label" as here in Cloudstack network
> >> configuraion.
> >>
> >> I don't know much about xen VLAN networking..if anything wrong please
> >> point it out.
> >>
> >> [root@xen-dev ~]# xe network-list
> >> uuid ( RO)                : bfb89346-9eae-4554-a46a-59f9b4587983
> >>           name-label ( RW): cloud_link_local_network
> >>     name-description ( RW): link local network used by system vms
> >>               bridge ( RO): xapi0
> >>
> >>
> >> uuid ( RO)                : eeb9fb94-7468-6b78-aaae-8d4e84b48afd
> >>           name-label ( RW): Host internal management network
> >>     name-description ( RW): Network on which guests will be assigned a
> >> private link-local IP address which can be used to talk XenAPI
> >>               bridge ( RO): xenapi
> >>
> >>
> >> uuid ( RO)                : 90f6f78a-d4d8-463a-ccca-e28f7ea4e7d2
> >>           name-label ( RW): cloud-manage
> >>     name-description ( RW):
> >>               bridge ( RO): xenbr0
> >>
> >>
> >> uuid ( RO)                : 88f0843e-feb9-44d0-5a04-06f32a258b81
> >>           name-label ( RW): cloud-public
> >>     name-description ( RW):
> >>               bridge ( RO): xenbr1
> >>
> >>
> >> Regards,
> >> Tejas
> >>
> >>
> >>
> >> On Wed, Apr 2, 2014 at 5:42 PM, Yitao Jiang <wi...@gmail.com>
> wrote:
> >>
> >> > Can you post your network configuration here, and do u able make
> >> operation
> >> > on xenseever through xencenter? May be something wrong with ur storage
> >> > On Apr 2, 2014 6:47 PM, "Tejas Gadaria" <re...@gmail.com>
> wrote:
> >> >
> >> > > Hi Punith,
> >> > >
> >> > > Thanks for reply,
> >> > >
> >> > > I have already uploaded
> >> systemvm64template-2014-01-14-master-xen.vhd.bz2
> >> > in
> >> > > secondary .
> >> > >
> >> > > [root@con-xen ~]# ls -lR /vol/
> >> > > /vol/:
> >> > > total 8
> >> > > drwxr-xr-x 2 root root 4096 Apr  2 12:46 primary
> >> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 secondary
> >> > >
> >> > > /vol/primary:
> >> > > total 4
> >> > > -rw-r--r-- 1 root root 11 Apr  2 16:03
> >> > > hb-ecff5b59-a2bc-4c0c-9ec8-05f7b4cda546
> >> > >
> >> > > /vol/secondary:
> >> > > total 4
> >> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 template
> >> > >
> >> > > /vol/secondary/template:
> >> > > total 4
> >> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 tmpl
> >> > >
> >> > > /vol/secondary/template/tmpl:
> >> > > total 4
> >> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 1
> >> > >
> >> > > /vol/secondary/template/tmpl/1:
> >> > > total 4
> >> > > drwxr-xr-x 2 root root 4096 Apr  2 12:26 1
> >> > >
> >> > > /vol/secondary/template/tmpl/1/1:
> >> > > total 2565016
> >> > > -rw-r--r-- 1 root root 2626564608 Apr  2 12:19
> >> > > 041bb2b7-2c84-4a72-a2bb-573d6c1ba56e.vhd
> >> > > -rw-r--r-- 1 root root        287 Apr  2 12:26 template.properties
> >> > >
> >> > >
> >> > > Regards,
> >> > > Tejas
> >> > >
> >> > >
> >> > > On Wed, Apr 2, 2014 at 3:59 PM, Punith S <pu...@cloudbyte.com>
> >> wrote:
> >> > >
> >> > > > hi,
> >> > > >
> >> > > > check whether you have seeded the vdh util for sysytem vms in
> >> secondary
> >> > > > storage.
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#prepare-the-system-vm-template
> >> > > >
> >> > > > thanks.
> >> > > >
> >> > > >
> >> > > > On Wed, Apr 2, 2014 at 3:54 PM, Tejas Gadaria <
> >> refond.gmrt@gmail.com>
> >> > > > wrote:
> >> > > >
> >> > > > > Hi,
> >> > > > >
> >> > > > > I am trying to create system vms, in CS 4.3 with Xenserver 6.2
> >> > > > > I am trying to create advance zone. I have 2nics.
> >> > > > > 1 for management network & second is trunk.
> >> > > > >
> >> > > > > I am getting below error
> >> > > > >
> >> > > > > 2014-04-02 15:18:28,827 DEBUG
> [o.a.c.s.i.TemplateDataFactoryImpl]
> >> > > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> >> > > > type:Image
> >> > > > > 2014-04-02 15:18:28,831 DEBUG
> [o.a.c.s.i.TemplateDataFactoryImpl]
> >> > > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> >> > > > > type:Primary
> >> > > > > 2014-04-02 15:18:28,832 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> >> > > > > (consoleproxy-1:ctx-774da64a) Found template routing-1 in
> storage
> >> > pool
> >> > > 1
> >> > > > > with VMTemplateStoragePool id: 4
> >> > > > > 2014-04-02 15:18:28,840 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> >> > > > > (consoleproxy-1:ctx-774da64a) Acquire lock on
> >> VMTemplateStoragePool 4
> >> > > > with
> >> > > > > timeout 3600 seconds
> >> > > > > 2014-04-02 15:18:30,903 WARN
> >>  [c.c.h.x.r.XenServerStorageProcessor]
> >> > > > > (DirectAgent-111:ctx-f68bde71) destoryVDIbyNameLabel failed due
> to
> >> > > there
> >> > > > > are 0 VDIs with name cloud-cff5e443-72df-4aae-a4fd-1278fc0cbeb4
> >> > > > > 2014-04-02 15:18:30,903 WARN
> >>  [c.c.h.x.r.XenServerStorageProcessor]
> >> > > > > (DirectAgent-111:ctx-f68bde71) can not create vdi in sr
> >> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> >> > > > > 2014-04-02 15:18:30,904 WARN
> >>  [c.c.h.x.r.XenServerStorageProcessor]
> >> > > > > (DirectAgent-111:ctx-f68bde71) Catch Exception
> >> > > > > com.cloud.utils.exception.CloudRuntimeException for template +
> >>  due
> >> > to
> >> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create
> >> vdi
> >> > in
> >> > > sr
> >> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> >> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create
> >> vdi
> >> > in
> >> > > sr
> >> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:848)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:918)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:75)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:609)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> >> > > > >     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)
> >> > > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> >> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response
> Received:
> >> > > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> >> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response
> Received:
> >> > > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> >> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Processing:  {
> >> Ans: ,
> >> > > > > MgmtId: 345049296663, via: 1, Ver: v1, Flags: 10,
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
> >> > > > > Exception com.cloud.utils.exception.CloudRuntimeException for
> >> > template
> >> > > +
> >> > > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
> >> > create
> >> > > > vdi
> >> > > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e","wait":0}}] }
> >> > > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> >> > > > (secstorage-1:ctx-4d6c3938)
> >> > > > > Seq 1-524878146: Received:  { Ans: , MgmtId: 345049296663, via:
> 1,
> >> > Ver:
> >> > > > v1,
> >> > > > > Flags: 10, { CopyCmdAnswer } }
> >> > > > > 2014-04-02 15:18:30,915 INFO  [o.a.c.s.v.VolumeServiceImpl]
> >> > > > > (secstorage-1:ctx-4d6c3938) releasing lock for
> >> VMTemplateStoragePool
> >> > 4
> >> > > > > 2014-04-02 15:18:30,915 WARN  [c.c.u.d.Merovingian2]
> >> > > > > (secstorage-1:ctx-4d6c3938) Was unable to find lock for the key
> >> > > > > template_spool_ref4 and thread id 404723302
> >> > > > > 2014-04-02 15:18:30,915 DEBUG [o.a.c.e.o.VolumeOrchestrator]
> >> > > > > (secstorage-1:ctx-4d6c3938) Unable to create
> >> Vol[5|vm=5|ROOT]:Catch
> >> > > > > Exception com.cloud.utils.exception.CloudRuntimeException for
> >> > template
> >> > > +
> >> > > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
> >> > create
> >> > > > vdi
> >> > > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e
> >> > > > > 2014-04-02 15:18:30,915 INFO  [c.c.v.VirtualMachineManagerImpl]
> >> > > > > (secstorage-1:ctx-4d6c3938) Unable to contact resource.
> >> > > > > com.cloud.exception.StorageUnavailableException: Resource
> >> > > [StoragePool:1]
> >> > > > > is unreachable: Unable to create Vol[5|vm=5|ROOT]:Catch
> Exception
> >> > > > > com.cloud.utils.exception.CloudRuntimeException for template +
> >>  due
> >> > to
> >> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create
> >> vdi
> >> > in
> >> > > sr
> >> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:745)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:261)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:694)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1278)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
> >> > > > >     at
> >> > > > >
> >> >
> com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:111)
> >> > > > >     at
> >> > > > >
> >> > >
> >> com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:35)
> >> > > > >     at
> >> > > > >
> >> > >
> >>
> com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:88)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.vm.SystemVmLoadScanner$1.runInContext(SystemVmLoadScanner.java:79)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> >> > > > >     at
> >> > > > >
> >> >
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> >> > > > >     at
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
> >> > > > >     at
> >> > java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
> >> > > > >     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)
> >> > > > > 2014-04-02 15:18:30,920 DEBUG [c.c.v.VirtualMachineManagerImpl]
> >> > > > > (secstorage-1:ctx-4d6c3938) Cleaning up resources for the vm
> >> > > > > VM[SecondaryStorageVm|s-5-VM] in Starting state
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > > > Regards,
> >> > > > > Tejas
> >> > > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > > --
> >> > > > regards,
> >> > > >
> >> > > > punith s
> >> > > > cloudbyte.com
> >> > > >
> >> > >
> >> >
> >>
> >
> >
>

Re: Unable to deploy systemvms

Posted by Pierre-Luc Dion <pd...@cloudops.com>.
Tejas,

The SSVM will mount the NFS share using is Storage network interface if
define otherwise it will mount it using is management NIC.  To download the
template, the traffic from the SSVM will go from is Public interface. You
should be able to ping the SSVM public IP, the current setup might have a
networking issue such as an improper VLAN ID defined or label.



Pierre-Luc Dion
Architecte de Solution Cloud | Cloud Solutions Architect
- - -

*CloudOps*420 rue Guy
Montréal QC  H3J 1S6
www.cloudops.com
@CloudOps_


On Thu, Apr 3, 2014 at 2:31 AM, Tejas Gadaria <re...@gmail.com> wrote:

> Hi Dion,
>
> Thanks for the clue,I was missing 'cloud traffic label' there.
> One step ahead Now SSVM and CPVM is UP & running.  I am able to ping both
> private ip but not Public ip from Management server and link local is also
> pinging from hypervisor . I tried SSVM health check. every thing fine.
> secstorage.allowed.internal.sites = Management server ip.
>
> 2014-04-03 11:15:55,280 DEBUG [c.c.a.m.AgentManagerImpl]
> (AgentManager-Handler-7:null) SeqA 2-5: Processing Seq 2-5:  { Cmd ,
> MgmtId: -1, via: 2, Ver: v1, Flags: 11,
>
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
> \"connections\": []\n}","wait":0}}] }
> 2014-04-03 11:15:55,288 DEBUG [c.c.a.m.AgentManagerImpl]
> (AgentManager-Handler-7:null) SeqA 2-5: Sending Seq 2-5:  { Ans: , MgmtId:
> 345049296663, via: 2, Ver: v1, Flags: 100010,
> [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2014-04-03 11:15:55,996 DEBUG [o.a.c.s.RemoteHostEndPoint]
> (Timer-11:ctx-67fcb05a) Sending command
> org.apache.cloudstack.storage.command.DownloadProgressCommand to host: 3
> 2014-04-03 11:15:55,998 DEBUG [c.c.a.t.Request] (Timer-11:ctx-67fcb05a) Seq
> 3-140181514: Sending  { Cmd , MgmtId: 345049296663, via: 3(s-1-VM), Ver:
> v1, Flags: 100011,
>
> [{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"c9ad6108-ddcd-44a1-8e62-9d7ab76e4834","request":"GET_STATUS","hvm":false,"description":"CentOS
> 5.6(64-bit) no GUI
>
> (XenServer)","checksum":"905cec879afd9c9d22ecc8036131a180","maxDownloadSizeInBytes":53687091200,"id":5,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/5","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://
> 10.129.151.60/vol/secondary","_role":"Image"}},"url":"
> http://download.cloud.com/templates/builtin/centos56-x86_64.vhd.bz2
>
> ","format":"VHD","accountId":1,"name":"centos56-x86_64-xen","secUrl":"nfs://
> 10.129.151.60/vol/secondary","wait":0}}] }
> 2014-04-03 11:15:55,999 DEBUG [o.a.c.s.RemoteHostEndPoint]
> (Timer-10:ctx-7539f2bf) Sending command
> org.apache.cloudstack.storage.command.DownloadProgressCommand to host: 3
> 2014-04-03 11:15:56,001 DEBUG [c.c.a.t.Request] (Timer-10:ctx-7539f2bf) Seq
> 3-140181515: Sending  { Cmd , MgmtId: 345049296663, via: 3(s-1-VM), Ver:
> v1, Flags: 100011,
>
> [{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"8c3263f0-b796-4f28-a965-6f2ef421f815","request":"GET_STATUS","hvm":false,"description":"CentOS
> 5.3(64-bit) no GUI
>
> (XenServer)","checksum":"b63d854a9560c013142567bbae8d98cf","maxDownloadSizeInBytes":53687091200,"id":2,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/2","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://
> 10.129.151.60/vol/secondary","_role":"Image"}},"url":"
>
> http://download.cloud.com/templates/builtin/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
> ","format":"VHD","accountId":1,"name":"centos53-x86_64","secUrl":"nfs://
> 10.129.151.60/vol/secondary","wait":0}}] }
> 2014-04-03 11:15:56,021 DEBUG [c.c.a.t.Request]
> (AgentManager-Handler-9:null) Seq 3-140181515: Processing:  { Ans: ,
> MgmtId: 345049296663, via: 3, Ver: v1, Flags: 10,
>
> [{"com.cloud.agent.api.storage.DownloadAnswer":{"jobId":"8c3263f0-b796-4f28-a965-6f2ef421f815","*downloadPct":0,"errorString":"No
> route to
>
> host","downloadStatus":"DOWNLOAD_ERROR","downloadPath":"/mnt/SecStorage/083f43be-897d-3f0d-b65e-54e1462fa59a/template/tmpl/1/2/dnld4937216608487758375tmp_","installPath":"template/tmpl/1/2","templateSize":0,"templatePhySicalSize":0,"checkSum":"b63d854a9560c013142567bbae8d98cf","result":true,"details":"No
> route to host","wait":0}}] }*
> 2014-04-03 11:15:56,021 DEBUG [c.c.a.t.Request]
> (AgentManager-Handler-8:null) Seq 3-140181514: Processing:  { Ans: ,
> MgmtId: 345049296663, via: 3, Ver: v1, Flags: 10,
>
> [{"com.cloud.agent.api.storage.DownloadAnswer":{"jobId":"c9ad6108-ddcd-44a1-8e62-9d7ab76e4834","downloadPct":0,"errorString":"No
> route to
> host","*downloadStatus":"DOWNLOAD_ERROR",*"downloadPath":"/mnt/SecStorage/083f43be-897d-3f0d-b65e-54e1462fa59a/template/tmpl/1/5/dnld2277393467913145419tmp_","installPath":"template/tmpl/1/5","templateSize":0,"templatePhySicalSize":0,"checkSum":"905cec879afd9c9d22ecc8036131a180","result":true,"details":"No
> route to host","wait":0}}] }
>
>
> Regards,
> Tejas
>
>
> On Wed, Apr 2, 2014 at 7:24 PM, Pierre-Luc Dion <pd...@cloudops.com>
> wrote:
>
> > Tejas,
> >
> > Did you add the network label names in Cloudstack ?  You need to specify
> > the network label name in Cloudstack that are configured in XenServer.
> I'm
> > suspecting that the current issue is that CloudStack cannot map the
> Storage
> > Network from is config in XenServer so xenserver cannot reach the
> secondary
> > storage.
> >
> > I've add an attachment on where to look at in Cloudstack. If you have
> > access to XenCenter you have to use name of networks under networking tab
> > on the XenServer host.
> >
> > you can refer to:
> >
> >
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/hypervisor_installation.html#citrix-xenserver-installation-for-cloudstack
> >
> > Regards,
> >
> >
> >
> >
> > Pierre-Luc Dion
> > Architecte de Solution Cloud | Cloud Solutions Architect
> > 514-447-3456, 1101
> > - - -
> >
> > *CloudOps*420 rue Guy
> > Montréal QC  H3J 1S6
> > www.cloudops.com
> > @CloudOps_
> >
> >
> > On Wed, Apr 2, 2014 at 8:54 AM, Tejas Gadaria <refond.gmrt@gmail.com
> >wrote:
> >
> >> Hi Yitao,
> >>
> >> xenbr0 : acting as Management network and no VLAN is assigned to it
> >> xenbr1 : acting as public, guest storage network. All of this are in
> same
> >> VLAN.
> >> Also I have given same "name-label" as here in Cloudstack network
> >> configuraion.
> >>
> >> I don't know much about xen VLAN networking..if anything wrong please
> >> point it out.
> >>
> >> [root@xen-dev ~]# xe network-list
> >> uuid ( RO)                : bfb89346-9eae-4554-a46a-59f9b4587983
> >>           name-label ( RW): cloud_link_local_network
> >>     name-description ( RW): link local network used by system vms
> >>               bridge ( RO): xapi0
> >>
> >>
> >> uuid ( RO)                : eeb9fb94-7468-6b78-aaae-8d4e84b48afd
> >>           name-label ( RW): Host internal management network
> >>     name-description ( RW): Network on which guests will be assigned a
> >> private link-local IP address which can be used to talk XenAPI
> >>               bridge ( RO): xenapi
> >>
> >>
> >> uuid ( RO)                : 90f6f78a-d4d8-463a-ccca-e28f7ea4e7d2
> >>           name-label ( RW): cloud-manage
> >>     name-description ( RW):
> >>               bridge ( RO): xenbr0
> >>
> >>
> >> uuid ( RO)                : 88f0843e-feb9-44d0-5a04-06f32a258b81
> >>           name-label ( RW): cloud-public
> >>     name-description ( RW):
> >>               bridge ( RO): xenbr1
> >>
> >>
> >> Regards,
> >> Tejas
> >>
> >>
> >>
> >> On Wed, Apr 2, 2014 at 5:42 PM, Yitao Jiang <wi...@gmail.com>
> wrote:
> >>
> >> > Can you post your network configuration here, and do u able make
> >> operation
> >> > on xenseever through xencenter? May be something wrong with ur storage
> >> > On Apr 2, 2014 6:47 PM, "Tejas Gadaria" <re...@gmail.com>
> wrote:
> >> >
> >> > > Hi Punith,
> >> > >
> >> > > Thanks for reply,
> >> > >
> >> > > I have already uploaded
> >> systemvm64template-2014-01-14-master-xen.vhd.bz2
> >> > in
> >> > > secondary .
> >> > >
> >> > > [root@con-xen ~]# ls -lR /vol/
> >> > > /vol/:
> >> > > total 8
> >> > > drwxr-xr-x 2 root root 4096 Apr  2 12:46 primary
> >> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 secondary
> >> > >
> >> > > /vol/primary:
> >> > > total 4
> >> > > -rw-r--r-- 1 root root 11 Apr  2 16:03
> >> > > hb-ecff5b59-a2bc-4c0c-9ec8-05f7b4cda546
> >> > >
> >> > > /vol/secondary:
> >> > > total 4
> >> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 template
> >> > >
> >> > > /vol/secondary/template:
> >> > > total 4
> >> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 tmpl
> >> > >
> >> > > /vol/secondary/template/tmpl:
> >> > > total 4
> >> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 1
> >> > >
> >> > > /vol/secondary/template/tmpl/1:
> >> > > total 4
> >> > > drwxr-xr-x 2 root root 4096 Apr  2 12:26 1
> >> > >
> >> > > /vol/secondary/template/tmpl/1/1:
> >> > > total 2565016
> >> > > -rw-r--r-- 1 root root 2626564608 Apr  2 12:19
> >> > > 041bb2b7-2c84-4a72-a2bb-573d6c1ba56e.vhd
> >> > > -rw-r--r-- 1 root root        287 Apr  2 12:26 template.properties
> >> > >
> >> > >
> >> > > Regards,
> >> > > Tejas
> >> > >
> >> > >
> >> > > On Wed, Apr 2, 2014 at 3:59 PM, Punith S <pu...@cloudbyte.com>
> >> wrote:
> >> > >
> >> > > > hi,
> >> > > >
> >> > > > check whether you have seeded the vdh util for sysytem vms in
> >> secondary
> >> > > > storage.
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#prepare-the-system-vm-template
> >> > > >
> >> > > > thanks.
> >> > > >
> >> > > >
> >> > > > On Wed, Apr 2, 2014 at 3:54 PM, Tejas Gadaria <
> >> refond.gmrt@gmail.com>
> >> > > > wrote:
> >> > > >
> >> > > > > Hi,
> >> > > > >
> >> > > > > I am trying to create system vms, in CS 4.3 with Xenserver 6.2
> >> > > > > I am trying to create advance zone. I have 2nics.
> >> > > > > 1 for management network & second is trunk.
> >> > > > >
> >> > > > > I am getting below error
> >> > > > >
> >> > > > > 2014-04-02 15:18:28,827 DEBUG
> [o.a.c.s.i.TemplateDataFactoryImpl]
> >> > > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> >> > > > type:Image
> >> > > > > 2014-04-02 15:18:28,831 DEBUG
> [o.a.c.s.i.TemplateDataFactoryImpl]
> >> > > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> >> > > > > type:Primary
> >> > > > > 2014-04-02 15:18:28,832 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> >> > > > > (consoleproxy-1:ctx-774da64a) Found template routing-1 in
> storage
> >> > pool
> >> > > 1
> >> > > > > with VMTemplateStoragePool id: 4
> >> > > > > 2014-04-02 15:18:28,840 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> >> > > > > (consoleproxy-1:ctx-774da64a) Acquire lock on
> >> VMTemplateStoragePool 4
> >> > > > with
> >> > > > > timeout 3600 seconds
> >> > > > > 2014-04-02 15:18:30,903 WARN
> >>  [c.c.h.x.r.XenServerStorageProcessor]
> >> > > > > (DirectAgent-111:ctx-f68bde71) destoryVDIbyNameLabel failed due
> to
> >> > > there
> >> > > > > are 0 VDIs with name cloud-cff5e443-72df-4aae-a4fd-1278fc0cbeb4
> >> > > > > 2014-04-02 15:18:30,903 WARN
> >>  [c.c.h.x.r.XenServerStorageProcessor]
> >> > > > > (DirectAgent-111:ctx-f68bde71) can not create vdi in sr
> >> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> >> > > > > 2014-04-02 15:18:30,904 WARN
> >>  [c.c.h.x.r.XenServerStorageProcessor]
> >> > > > > (DirectAgent-111:ctx-f68bde71) Catch Exception
> >> > > > > com.cloud.utils.exception.CloudRuntimeException for template +
> >>  due
> >> > to
> >> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create
> >> vdi
> >> > in
> >> > > sr
> >> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> >> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create
> >> vdi
> >> > in
> >> > > sr
> >> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:848)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:918)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:75)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:609)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> >> > > > >     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)
> >> > > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> >> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response
> Received:
> >> > > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> >> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response
> Received:
> >> > > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> >> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Processing:  {
> >> Ans: ,
> >> > > > > MgmtId: 345049296663, via: 1, Ver: v1, Flags: 10,
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
> >> > > > > Exception com.cloud.utils.exception.CloudRuntimeException for
> >> > template
> >> > > +
> >> > > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
> >> > create
> >> > > > vdi
> >> > > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e","wait":0}}] }
> >> > > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> >> > > > (secstorage-1:ctx-4d6c3938)
> >> > > > > Seq 1-524878146: Received:  { Ans: , MgmtId: 345049296663, via:
> 1,
> >> > Ver:
> >> > > > v1,
> >> > > > > Flags: 10, { CopyCmdAnswer } }
> >> > > > > 2014-04-02 15:18:30,915 INFO  [o.a.c.s.v.VolumeServiceImpl]
> >> > > > > (secstorage-1:ctx-4d6c3938) releasing lock for
> >> VMTemplateStoragePool
> >> > 4
> >> > > > > 2014-04-02 15:18:30,915 WARN  [c.c.u.d.Merovingian2]
> >> > > > > (secstorage-1:ctx-4d6c3938) Was unable to find lock for the key
> >> > > > > template_spool_ref4 and thread id 404723302
> >> > > > > 2014-04-02 15:18:30,915 DEBUG [o.a.c.e.o.VolumeOrchestrator]
> >> > > > > (secstorage-1:ctx-4d6c3938) Unable to create
> >> Vol[5|vm=5|ROOT]:Catch
> >> > > > > Exception com.cloud.utils.exception.CloudRuntimeException for
> >> > template
> >> > > +
> >> > > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
> >> > create
> >> > > > vdi
> >> > > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e
> >> > > > > 2014-04-02 15:18:30,915 INFO  [c.c.v.VirtualMachineManagerImpl]
> >> > > > > (secstorage-1:ctx-4d6c3938) Unable to contact resource.
> >> > > > > com.cloud.exception.StorageUnavailableException: Resource
> >> > > [StoragePool:1]
> >> > > > > is unreachable: Unable to create Vol[5|vm=5|ROOT]:Catch
> Exception
> >> > > > > com.cloud.utils.exception.CloudRuntimeException for template +
> >>  due
> >> > to
> >> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create
> >> vdi
> >> > in
> >> > > sr
> >> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:745)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:261)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:694)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1278)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
> >> > > > >     at
> >> > > > >
> >> >
> com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:111)
> >> > > > >     at
> >> > > > >
> >> > >
> >> com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:35)
> >> > > > >     at
> >> > > > >
> >> > >
> >>
> com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:88)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> com.cloud.vm.SystemVmLoadScanner$1.runInContext(SystemVmLoadScanner.java:79)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> >> > > > >     at
> >> > > > >
> >> >
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> >> > > > >     at
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
> >> > > > >     at
> >> > java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
> >> > > > >     at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
> >> > > > >     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)
> >> > > > > 2014-04-02 15:18:30,920 DEBUG [c.c.v.VirtualMachineManagerImpl]
> >> > > > > (secstorage-1:ctx-4d6c3938) Cleaning up resources for the vm
> >> > > > > VM[SecondaryStorageVm|s-5-VM] in Starting state
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > > > Regards,
> >> > > > > Tejas
> >> > > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > > --
> >> > > > regards,
> >> > > >
> >> > > > punith s
> >> > > > cloudbyte.com
> >> > > >
> >> > >
> >> >
> >>
> >
> >
>

Re: Unable to deploy systemvms

Posted by Tejas Gadaria <re...@gmail.com>.
Hi Dion,

Thanks for the clue,I was missing 'cloud traffic label' there.
One step ahead Now SSVM and CPVM is UP & running.  I am able to ping both
private ip but not Public ip from Management server and link local is also
pinging from hypervisor . I tried SSVM health check. every thing fine.
secstorage.allowed.internal.sites = Management server ip.

2014-04-03 11:15:55,280 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-7:null) SeqA 2-5: Processing Seq 2-5:  { Cmd ,
MgmtId: -1, via: 2, Ver: v1, Flags: 11,
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
\"connections\": []\n}","wait":0}}] }
2014-04-03 11:15:55,288 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-7:null) SeqA 2-5: Sending Seq 2-5:  { Ans: , MgmtId:
345049296663, via: 2, Ver: v1, Flags: 100010,
[{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2014-04-03 11:15:55,996 DEBUG [o.a.c.s.RemoteHostEndPoint]
(Timer-11:ctx-67fcb05a) Sending command
org.apache.cloudstack.storage.command.DownloadProgressCommand to host: 3
2014-04-03 11:15:55,998 DEBUG [c.c.a.t.Request] (Timer-11:ctx-67fcb05a) Seq
3-140181514: Sending  { Cmd , MgmtId: 345049296663, via: 3(s-1-VM), Ver:
v1, Flags: 100011,
[{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"c9ad6108-ddcd-44a1-8e62-9d7ab76e4834","request":"GET_STATUS","hvm":false,"description":"CentOS
5.6(64-bit) no GUI
(XenServer)","checksum":"905cec879afd9c9d22ecc8036131a180","maxDownloadSizeInBytes":53687091200,"id":5,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/5","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://
10.129.151.60/vol/secondary","_role":"Image"}},"url":"
http://download.cloud.com/templates/builtin/centos56-x86_64.vhd.bz2
","format":"VHD","accountId":1,"name":"centos56-x86_64-xen","secUrl":"nfs://
10.129.151.60/vol/secondary","wait":0}}] }
2014-04-03 11:15:55,999 DEBUG [o.a.c.s.RemoteHostEndPoint]
(Timer-10:ctx-7539f2bf) Sending command
org.apache.cloudstack.storage.command.DownloadProgressCommand to host: 3
2014-04-03 11:15:56,001 DEBUG [c.c.a.t.Request] (Timer-10:ctx-7539f2bf) Seq
3-140181515: Sending  { Cmd , MgmtId: 345049296663, via: 3(s-1-VM), Ver:
v1, Flags: 100011,
[{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"8c3263f0-b796-4f28-a965-6f2ef421f815","request":"GET_STATUS","hvm":false,"description":"CentOS
5.3(64-bit) no GUI
(XenServer)","checksum":"b63d854a9560c013142567bbae8d98cf","maxDownloadSizeInBytes":53687091200,"id":2,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/2","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://
10.129.151.60/vol/secondary","_role":"Image"}},"url":"
http://download.cloud.com/templates/builtin/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
","format":"VHD","accountId":1,"name":"centos53-x86_64","secUrl":"nfs://
10.129.151.60/vol/secondary","wait":0}}] }
2014-04-03 11:15:56,021 DEBUG [c.c.a.t.Request]
(AgentManager-Handler-9:null) Seq 3-140181515: Processing:  { Ans: ,
MgmtId: 345049296663, via: 3, Ver: v1, Flags: 10,
[{"com.cloud.agent.api.storage.DownloadAnswer":{"jobId":"8c3263f0-b796-4f28-a965-6f2ef421f815","*downloadPct":0,"errorString":"No
route to
host","downloadStatus":"DOWNLOAD_ERROR","downloadPath":"/mnt/SecStorage/083f43be-897d-3f0d-b65e-54e1462fa59a/template/tmpl/1/2/dnld4937216608487758375tmp_","installPath":"template/tmpl/1/2","templateSize":0,"templatePhySicalSize":0,"checkSum":"b63d854a9560c013142567bbae8d98cf","result":true,"details":"No
route to host","wait":0}}] }*
2014-04-03 11:15:56,021 DEBUG [c.c.a.t.Request]
(AgentManager-Handler-8:null) Seq 3-140181514: Processing:  { Ans: ,
MgmtId: 345049296663, via: 3, Ver: v1, Flags: 10,
[{"com.cloud.agent.api.storage.DownloadAnswer":{"jobId":"c9ad6108-ddcd-44a1-8e62-9d7ab76e4834","downloadPct":0,"errorString":"No
route to host","*downloadStatus":"DOWNLOAD_ERROR",*"downloadPath":"/mnt/SecStorage/083f43be-897d-3f0d-b65e-54e1462fa59a/template/tmpl/1/5/dnld2277393467913145419tmp_","installPath":"template/tmpl/1/5","templateSize":0,"templatePhySicalSize":0,"checkSum":"905cec879afd9c9d22ecc8036131a180","result":true,"details":"No
route to host","wait":0}}] }


Regards,
Tejas


On Wed, Apr 2, 2014 at 7:24 PM, Pierre-Luc Dion <pd...@cloudops.com> wrote:

> Tejas,
>
> Did you add the network label names in Cloudstack ?  You need to specify
> the network label name in Cloudstack that are configured in XenServer. I'm
> suspecting that the current issue is that CloudStack cannot map the Storage
> Network from is config in XenServer so xenserver cannot reach the secondary
> storage.
>
> I've add an attachment on where to look at in Cloudstack. If you have
> access to XenCenter you have to use name of networks under networking tab
> on the XenServer host.
>
> you can refer to:
>
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/hypervisor_installation.html#citrix-xenserver-installation-for-cloudstack
>
> Regards,
>
>
>
>
> Pierre-Luc Dion
> Architecte de Solution Cloud | Cloud Solutions Architect
> 514-447-3456, 1101
> - - -
>
> *CloudOps*420 rue Guy
> Montréal QC  H3J 1S6
> www.cloudops.com
> @CloudOps_
>
>
> On Wed, Apr 2, 2014 at 8:54 AM, Tejas Gadaria <re...@gmail.com>wrote:
>
>> Hi Yitao,
>>
>> xenbr0 : acting as Management network and no VLAN is assigned to it
>> xenbr1 : acting as public, guest storage network. All of this are in same
>> VLAN.
>> Also I have given same "name-label" as here in Cloudstack network
>> configuraion.
>>
>> I don't know much about xen VLAN networking..if anything wrong please
>> point it out.
>>
>> [root@xen-dev ~]# xe network-list
>> uuid ( RO)                : bfb89346-9eae-4554-a46a-59f9b4587983
>>           name-label ( RW): cloud_link_local_network
>>     name-description ( RW): link local network used by system vms
>>               bridge ( RO): xapi0
>>
>>
>> uuid ( RO)                : eeb9fb94-7468-6b78-aaae-8d4e84b48afd
>>           name-label ( RW): Host internal management network
>>     name-description ( RW): Network on which guests will be assigned a
>> private link-local IP address which can be used to talk XenAPI
>>               bridge ( RO): xenapi
>>
>>
>> uuid ( RO)                : 90f6f78a-d4d8-463a-ccca-e28f7ea4e7d2
>>           name-label ( RW): cloud-manage
>>     name-description ( RW):
>>               bridge ( RO): xenbr0
>>
>>
>> uuid ( RO)                : 88f0843e-feb9-44d0-5a04-06f32a258b81
>>           name-label ( RW): cloud-public
>>     name-description ( RW):
>>               bridge ( RO): xenbr1
>>
>>
>> Regards,
>> Tejas
>>
>>
>>
>> On Wed, Apr 2, 2014 at 5:42 PM, Yitao Jiang <wi...@gmail.com> wrote:
>>
>> > Can you post your network configuration here, and do u able make
>> operation
>> > on xenseever through xencenter? May be something wrong with ur storage
>> > On Apr 2, 2014 6:47 PM, "Tejas Gadaria" <re...@gmail.com> wrote:
>> >
>> > > Hi Punith,
>> > >
>> > > Thanks for reply,
>> > >
>> > > I have already uploaded
>> systemvm64template-2014-01-14-master-xen.vhd.bz2
>> > in
>> > > secondary .
>> > >
>> > > [root@con-xen ~]# ls -lR /vol/
>> > > /vol/:
>> > > total 8
>> > > drwxr-xr-x 2 root root 4096 Apr  2 12:46 primary
>> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 secondary
>> > >
>> > > /vol/primary:
>> > > total 4
>> > > -rw-r--r-- 1 root root 11 Apr  2 16:03
>> > > hb-ecff5b59-a2bc-4c0c-9ec8-05f7b4cda546
>> > >
>> > > /vol/secondary:
>> > > total 4
>> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 template
>> > >
>> > > /vol/secondary/template:
>> > > total 4
>> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 tmpl
>> > >
>> > > /vol/secondary/template/tmpl:
>> > > total 4
>> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 1
>> > >
>> > > /vol/secondary/template/tmpl/1:
>> > > total 4
>> > > drwxr-xr-x 2 root root 4096 Apr  2 12:26 1
>> > >
>> > > /vol/secondary/template/tmpl/1/1:
>> > > total 2565016
>> > > -rw-r--r-- 1 root root 2626564608 Apr  2 12:19
>> > > 041bb2b7-2c84-4a72-a2bb-573d6c1ba56e.vhd
>> > > -rw-r--r-- 1 root root        287 Apr  2 12:26 template.properties
>> > >
>> > >
>> > > Regards,
>> > > Tejas
>> > >
>> > >
>> > > On Wed, Apr 2, 2014 at 3:59 PM, Punith S <pu...@cloudbyte.com>
>> wrote:
>> > >
>> > > > hi,
>> > > >
>> > > > check whether you have seeded the vdh util for sysytem vms in
>> secondary
>> > > > storage.
>> > > >
>> > > >
>> > >
>> >
>> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#prepare-the-system-vm-template
>> > > >
>> > > > thanks.
>> > > >
>> > > >
>> > > > On Wed, Apr 2, 2014 at 3:54 PM, Tejas Gadaria <
>> refond.gmrt@gmail.com>
>> > > > wrote:
>> > > >
>> > > > > Hi,
>> > > > >
>> > > > > I am trying to create system vms, in CS 4.3 with Xenserver 6.2
>> > > > > I am trying to create advance zone. I have 2nics.
>> > > > > 1 for management network & second is trunk.
>> > > > >
>> > > > > I am getting below error
>> > > > >
>> > > > > 2014-04-02 15:18:28,827 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
>> > > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
>> > > > type:Image
>> > > > > 2014-04-02 15:18:28,831 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
>> > > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
>> > > > > type:Primary
>> > > > > 2014-04-02 15:18:28,832 DEBUG [o.a.c.s.v.VolumeServiceImpl]
>> > > > > (consoleproxy-1:ctx-774da64a) Found template routing-1 in storage
>> > pool
>> > > 1
>> > > > > with VMTemplateStoragePool id: 4
>> > > > > 2014-04-02 15:18:28,840 DEBUG [o.a.c.s.v.VolumeServiceImpl]
>> > > > > (consoleproxy-1:ctx-774da64a) Acquire lock on
>> VMTemplateStoragePool 4
>> > > > with
>> > > > > timeout 3600 seconds
>> > > > > 2014-04-02 15:18:30,903 WARN
>>  [c.c.h.x.r.XenServerStorageProcessor]
>> > > > > (DirectAgent-111:ctx-f68bde71) destoryVDIbyNameLabel failed due to
>> > > there
>> > > > > are 0 VDIs with name cloud-cff5e443-72df-4aae-a4fd-1278fc0cbeb4
>> > > > > 2014-04-02 15:18:30,903 WARN
>>  [c.c.h.x.r.XenServerStorageProcessor]
>> > > > > (DirectAgent-111:ctx-f68bde71) can not create vdi in sr
>> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
>> > > > > 2014-04-02 15:18:30,904 WARN
>>  [c.c.h.x.r.XenServerStorageProcessor]
>> > > > > (DirectAgent-111:ctx-f68bde71) Catch Exception
>> > > > > com.cloud.utils.exception.CloudRuntimeException for template +
>>  due
>> > to
>> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create
>> vdi
>> > in
>> > > sr
>> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
>> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create
>> vdi
>> > in
>> > > sr
>> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:848)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:918)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:75)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:609)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>> > > > >     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)
>> > > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
>> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
>> > > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
>> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
>> > > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
>> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Processing:  {
>> Ans: ,
>> > > > > MgmtId: 345049296663, via: 1, Ver: v1, Flags: 10,
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
>> > > > > Exception com.cloud.utils.exception.CloudRuntimeException for
>> > template
>> > > +
>> > > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
>> > create
>> > > > vdi
>> > > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e","wait":0}}] }
>> > > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
>> > > > (secstorage-1:ctx-4d6c3938)
>> > > > > Seq 1-524878146: Received:  { Ans: , MgmtId: 345049296663, via: 1,
>> > Ver:
>> > > > v1,
>> > > > > Flags: 10, { CopyCmdAnswer } }
>> > > > > 2014-04-02 15:18:30,915 INFO  [o.a.c.s.v.VolumeServiceImpl]
>> > > > > (secstorage-1:ctx-4d6c3938) releasing lock for
>> VMTemplateStoragePool
>> > 4
>> > > > > 2014-04-02 15:18:30,915 WARN  [c.c.u.d.Merovingian2]
>> > > > > (secstorage-1:ctx-4d6c3938) Was unable to find lock for the key
>> > > > > template_spool_ref4 and thread id 404723302
>> > > > > 2014-04-02 15:18:30,915 DEBUG [o.a.c.e.o.VolumeOrchestrator]
>> > > > > (secstorage-1:ctx-4d6c3938) Unable to create
>> Vol[5|vm=5|ROOT]:Catch
>> > > > > Exception com.cloud.utils.exception.CloudRuntimeException for
>> > template
>> > > +
>> > > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
>> > create
>> > > > vdi
>> > > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e
>> > > > > 2014-04-02 15:18:30,915 INFO  [c.c.v.VirtualMachineManagerImpl]
>> > > > > (secstorage-1:ctx-4d6c3938) Unable to contact resource.
>> > > > > com.cloud.exception.StorageUnavailableException: Resource
>> > > [StoragePool:1]
>> > > > > is unreachable: Unable to create Vol[5|vm=5|ROOT]:Catch Exception
>> > > > > com.cloud.utils.exception.CloudRuntimeException for template +
>>  due
>> > to
>> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create
>> vdi
>> > in
>> > > sr
>> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:745)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:261)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:694)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1278)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
>> > > > >     at
>> > > > >
>> > com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:111)
>> > > > >     at
>> > > > >
>> > >
>> com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:35)
>> > > > >     at
>> > > > >
>> > >
>> com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:88)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.vm.SystemVmLoadScanner$1.runInContext(SystemVmLoadScanner.java:79)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>> > > > >     at
>> > > > >
>> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> > > > >     at
>> > > > >
>> > > >
>> > >
>> >
>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
>> > > > >     at
>> > java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
>> > > > >     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)
>> > > > > 2014-04-02 15:18:30,920 DEBUG [c.c.v.VirtualMachineManagerImpl]
>> > > > > (secstorage-1:ctx-4d6c3938) Cleaning up resources for the vm
>> > > > > VM[SecondaryStorageVm|s-5-VM] in Starting state
>> > > > >
>> > > > >
>> > > > >
>> > > > > Regards,
>> > > > > Tejas
>> > > > >
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > regards,
>> > > >
>> > > > punith s
>> > > > cloudbyte.com
>> > > >
>> > >
>> >
>>
>
>

Re: Unable to deploy systemvms

Posted by Tejas Gadaria <re...@gmail.com>.
Hi Dion,

Thanks for the clue,I was missing 'cloud traffic label' there.
One step ahead Now SSVM and CPVM is UP & running.  I am able to ping both
private ip but not Public ip from Management server and link local is also
pinging from hypervisor . I tried SSVM health check. every thing fine.
secstorage.allowed.internal.sites = Management server ip.

2014-04-03 11:15:55,280 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-7:null) SeqA 2-5: Processing Seq 2-5:  { Cmd ,
MgmtId: -1, via: 2, Ver: v1, Flags: 11,
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
\"connections\": []\n}","wait":0}}] }
2014-04-03 11:15:55,288 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-7:null) SeqA 2-5: Sending Seq 2-5:  { Ans: , MgmtId:
345049296663, via: 2, Ver: v1, Flags: 100010,
[{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2014-04-03 11:15:55,996 DEBUG [o.a.c.s.RemoteHostEndPoint]
(Timer-11:ctx-67fcb05a) Sending command
org.apache.cloudstack.storage.command.DownloadProgressCommand to host: 3
2014-04-03 11:15:55,998 DEBUG [c.c.a.t.Request] (Timer-11:ctx-67fcb05a) Seq
3-140181514: Sending  { Cmd , MgmtId: 345049296663, via: 3(s-1-VM), Ver:
v1, Flags: 100011,
[{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"c9ad6108-ddcd-44a1-8e62-9d7ab76e4834","request":"GET_STATUS","hvm":false,"description":"CentOS
5.6(64-bit) no GUI
(XenServer)","checksum":"905cec879afd9c9d22ecc8036131a180","maxDownloadSizeInBytes":53687091200,"id":5,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/5","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://
10.129.151.60/vol/secondary","_role":"Image"}},"url":"
http://download.cloud.com/templates/builtin/centos56-x86_64.vhd.bz2
","format":"VHD","accountId":1,"name":"centos56-x86_64-xen","secUrl":"nfs://
10.129.151.60/vol/secondary","wait":0}}] }
2014-04-03 11:15:55,999 DEBUG [o.a.c.s.RemoteHostEndPoint]
(Timer-10:ctx-7539f2bf) Sending command
org.apache.cloudstack.storage.command.DownloadProgressCommand to host: 3
2014-04-03 11:15:56,001 DEBUG [c.c.a.t.Request] (Timer-10:ctx-7539f2bf) Seq
3-140181515: Sending  { Cmd , MgmtId: 345049296663, via: 3(s-1-VM), Ver:
v1, Flags: 100011,
[{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"8c3263f0-b796-4f28-a965-6f2ef421f815","request":"GET_STATUS","hvm":false,"description":"CentOS
5.3(64-bit) no GUI
(XenServer)","checksum":"b63d854a9560c013142567bbae8d98cf","maxDownloadSizeInBytes":53687091200,"id":2,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/2","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://
10.129.151.60/vol/secondary","_role":"Image"}},"url":"
http://download.cloud.com/templates/builtin/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
","format":"VHD","accountId":1,"name":"centos53-x86_64","secUrl":"nfs://
10.129.151.60/vol/secondary","wait":0}}] }
2014-04-03 11:15:56,021 DEBUG [c.c.a.t.Request]
(AgentManager-Handler-9:null) Seq 3-140181515: Processing:  { Ans: ,
MgmtId: 345049296663, via: 3, Ver: v1, Flags: 10,
[{"com.cloud.agent.api.storage.DownloadAnswer":{"jobId":"8c3263f0-b796-4f28-a965-6f2ef421f815","*downloadPct":0,"errorString":"No
route to
host","downloadStatus":"DOWNLOAD_ERROR","downloadPath":"/mnt/SecStorage/083f43be-897d-3f0d-b65e-54e1462fa59a/template/tmpl/1/2/dnld4937216608487758375tmp_","installPath":"template/tmpl/1/2","templateSize":0,"templatePhySicalSize":0,"checkSum":"b63d854a9560c013142567bbae8d98cf","result":true,"details":"No
route to host","wait":0}}] }*
2014-04-03 11:15:56,021 DEBUG [c.c.a.t.Request]
(AgentManager-Handler-8:null) Seq 3-140181514: Processing:  { Ans: ,
MgmtId: 345049296663, via: 3, Ver: v1, Flags: 10,
[{"com.cloud.agent.api.storage.DownloadAnswer":{"jobId":"c9ad6108-ddcd-44a1-8e62-9d7ab76e4834","downloadPct":0,"errorString":"No
route to host","*downloadStatus":"DOWNLOAD_ERROR",*"downloadPath":"/mnt/SecStorage/083f43be-897d-3f0d-b65e-54e1462fa59a/template/tmpl/1/5/dnld2277393467913145419tmp_","installPath":"template/tmpl/1/5","templateSize":0,"templatePhySicalSize":0,"checkSum":"905cec879afd9c9d22ecc8036131a180","result":true,"details":"No
route to host","wait":0}}] }


Regards,
Tejas


On Wed, Apr 2, 2014 at 7:24 PM, Pierre-Luc Dion <pd...@cloudops.com> wrote:

> Tejas,
>
> Did you add the network label names in Cloudstack ?  You need to specify
> the network label name in Cloudstack that are configured in XenServer. I'm
> suspecting that the current issue is that CloudStack cannot map the Storage
> Network from is config in XenServer so xenserver cannot reach the secondary
> storage.
>
> I've add an attachment on where to look at in Cloudstack. If you have
> access to XenCenter you have to use name of networks under networking tab
> on the XenServer host.
>
> you can refer to:
>
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/hypervisor_installation.html#citrix-xenserver-installation-for-cloudstack
>
> Regards,
>
>
>
>
> Pierre-Luc Dion
> Architecte de Solution Cloud | Cloud Solutions Architect
> 514-447-3456, 1101
> - - -
>
> *CloudOps*420 rue Guy
> Montréal QC  H3J 1S6
> www.cloudops.com
> @CloudOps_
>
>
> On Wed, Apr 2, 2014 at 8:54 AM, Tejas Gadaria <re...@gmail.com>wrote:
>
>> Hi Yitao,
>>
>> xenbr0 : acting as Management network and no VLAN is assigned to it
>> xenbr1 : acting as public, guest storage network. All of this are in same
>> VLAN.
>> Also I have given same "name-label" as here in Cloudstack network
>> configuraion.
>>
>> I don't know much about xen VLAN networking..if anything wrong please
>> point it out.
>>
>> [root@xen-dev ~]# xe network-list
>> uuid ( RO)                : bfb89346-9eae-4554-a46a-59f9b4587983
>>           name-label ( RW): cloud_link_local_network
>>     name-description ( RW): link local network used by system vms
>>               bridge ( RO): xapi0
>>
>>
>> uuid ( RO)                : eeb9fb94-7468-6b78-aaae-8d4e84b48afd
>>           name-label ( RW): Host internal management network
>>     name-description ( RW): Network on which guests will be assigned a
>> private link-local IP address which can be used to talk XenAPI
>>               bridge ( RO): xenapi
>>
>>
>> uuid ( RO)                : 90f6f78a-d4d8-463a-ccca-e28f7ea4e7d2
>>           name-label ( RW): cloud-manage
>>     name-description ( RW):
>>               bridge ( RO): xenbr0
>>
>>
>> uuid ( RO)                : 88f0843e-feb9-44d0-5a04-06f32a258b81
>>           name-label ( RW): cloud-public
>>     name-description ( RW):
>>               bridge ( RO): xenbr1
>>
>>
>> Regards,
>> Tejas
>>
>>
>>
>> On Wed, Apr 2, 2014 at 5:42 PM, Yitao Jiang <wi...@gmail.com> wrote:
>>
>> > Can you post your network configuration here, and do u able make
>> operation
>> > on xenseever through xencenter? May be something wrong with ur storage
>> > On Apr 2, 2014 6:47 PM, "Tejas Gadaria" <re...@gmail.com> wrote:
>> >
>> > > Hi Punith,
>> > >
>> > > Thanks for reply,
>> > >
>> > > I have already uploaded
>> systemvm64template-2014-01-14-master-xen.vhd.bz2
>> > in
>> > > secondary .
>> > >
>> > > [root@con-xen ~]# ls -lR /vol/
>> > > /vol/:
>> > > total 8
>> > > drwxr-xr-x 2 root root 4096 Apr  2 12:46 primary
>> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 secondary
>> > >
>> > > /vol/primary:
>> > > total 4
>> > > -rw-r--r-- 1 root root 11 Apr  2 16:03
>> > > hb-ecff5b59-a2bc-4c0c-9ec8-05f7b4cda546
>> > >
>> > > /vol/secondary:
>> > > total 4
>> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 template
>> > >
>> > > /vol/secondary/template:
>> > > total 4
>> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 tmpl
>> > >
>> > > /vol/secondary/template/tmpl:
>> > > total 4
>> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 1
>> > >
>> > > /vol/secondary/template/tmpl/1:
>> > > total 4
>> > > drwxr-xr-x 2 root root 4096 Apr  2 12:26 1
>> > >
>> > > /vol/secondary/template/tmpl/1/1:
>> > > total 2565016
>> > > -rw-r--r-- 1 root root 2626564608 Apr  2 12:19
>> > > 041bb2b7-2c84-4a72-a2bb-573d6c1ba56e.vhd
>> > > -rw-r--r-- 1 root root        287 Apr  2 12:26 template.properties
>> > >
>> > >
>> > > Regards,
>> > > Tejas
>> > >
>> > >
>> > > On Wed, Apr 2, 2014 at 3:59 PM, Punith S <pu...@cloudbyte.com>
>> wrote:
>> > >
>> > > > hi,
>> > > >
>> > > > check whether you have seeded the vdh util for sysytem vms in
>> secondary
>> > > > storage.
>> > > >
>> > > >
>> > >
>> >
>> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#prepare-the-system-vm-template
>> > > >
>> > > > thanks.
>> > > >
>> > > >
>> > > > On Wed, Apr 2, 2014 at 3:54 PM, Tejas Gadaria <
>> refond.gmrt@gmail.com>
>> > > > wrote:
>> > > >
>> > > > > Hi,
>> > > > >
>> > > > > I am trying to create system vms, in CS 4.3 with Xenserver 6.2
>> > > > > I am trying to create advance zone. I have 2nics.
>> > > > > 1 for management network & second is trunk.
>> > > > >
>> > > > > I am getting below error
>> > > > >
>> > > > > 2014-04-02 15:18:28,827 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
>> > > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
>> > > > type:Image
>> > > > > 2014-04-02 15:18:28,831 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
>> > > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
>> > > > > type:Primary
>> > > > > 2014-04-02 15:18:28,832 DEBUG [o.a.c.s.v.VolumeServiceImpl]
>> > > > > (consoleproxy-1:ctx-774da64a) Found template routing-1 in storage
>> > pool
>> > > 1
>> > > > > with VMTemplateStoragePool id: 4
>> > > > > 2014-04-02 15:18:28,840 DEBUG [o.a.c.s.v.VolumeServiceImpl]
>> > > > > (consoleproxy-1:ctx-774da64a) Acquire lock on
>> VMTemplateStoragePool 4
>> > > > with
>> > > > > timeout 3600 seconds
>> > > > > 2014-04-02 15:18:30,903 WARN
>>  [c.c.h.x.r.XenServerStorageProcessor]
>> > > > > (DirectAgent-111:ctx-f68bde71) destoryVDIbyNameLabel failed due to
>> > > there
>> > > > > are 0 VDIs with name cloud-cff5e443-72df-4aae-a4fd-1278fc0cbeb4
>> > > > > 2014-04-02 15:18:30,903 WARN
>>  [c.c.h.x.r.XenServerStorageProcessor]
>> > > > > (DirectAgent-111:ctx-f68bde71) can not create vdi in sr
>> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
>> > > > > 2014-04-02 15:18:30,904 WARN
>>  [c.c.h.x.r.XenServerStorageProcessor]
>> > > > > (DirectAgent-111:ctx-f68bde71) Catch Exception
>> > > > > com.cloud.utils.exception.CloudRuntimeException for template +
>>  due
>> > to
>> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create
>> vdi
>> > in
>> > > sr
>> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
>> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create
>> vdi
>> > in
>> > > sr
>> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:848)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:918)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:75)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:609)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>> > > > >     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)
>> > > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
>> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
>> > > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
>> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
>> > > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
>> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Processing:  {
>> Ans: ,
>> > > > > MgmtId: 345049296663, via: 1, Ver: v1, Flags: 10,
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
>> > > > > Exception com.cloud.utils.exception.CloudRuntimeException for
>> > template
>> > > +
>> > > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
>> > create
>> > > > vdi
>> > > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e","wait":0}}] }
>> > > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
>> > > > (secstorage-1:ctx-4d6c3938)
>> > > > > Seq 1-524878146: Received:  { Ans: , MgmtId: 345049296663, via: 1,
>> > Ver:
>> > > > v1,
>> > > > > Flags: 10, { CopyCmdAnswer } }
>> > > > > 2014-04-02 15:18:30,915 INFO  [o.a.c.s.v.VolumeServiceImpl]
>> > > > > (secstorage-1:ctx-4d6c3938) releasing lock for
>> VMTemplateStoragePool
>> > 4
>> > > > > 2014-04-02 15:18:30,915 WARN  [c.c.u.d.Merovingian2]
>> > > > > (secstorage-1:ctx-4d6c3938) Was unable to find lock for the key
>> > > > > template_spool_ref4 and thread id 404723302
>> > > > > 2014-04-02 15:18:30,915 DEBUG [o.a.c.e.o.VolumeOrchestrator]
>> > > > > (secstorage-1:ctx-4d6c3938) Unable to create
>> Vol[5|vm=5|ROOT]:Catch
>> > > > > Exception com.cloud.utils.exception.CloudRuntimeException for
>> > template
>> > > +
>> > > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
>> > create
>> > > > vdi
>> > > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e
>> > > > > 2014-04-02 15:18:30,915 INFO  [c.c.v.VirtualMachineManagerImpl]
>> > > > > (secstorage-1:ctx-4d6c3938) Unable to contact resource.
>> > > > > com.cloud.exception.StorageUnavailableException: Resource
>> > > [StoragePool:1]
>> > > > > is unreachable: Unable to create Vol[5|vm=5|ROOT]:Catch Exception
>> > > > > com.cloud.utils.exception.CloudRuntimeException for template +
>>  due
>> > to
>> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create
>> vdi
>> > in
>> > > sr
>> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:745)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:261)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:694)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1278)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
>> > > > >     at
>> > > > >
>> > com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:111)
>> > > > >     at
>> > > > >
>> > >
>> com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:35)
>> > > > >     at
>> > > > >
>> > >
>> com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:88)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> com.cloud.vm.SystemVmLoadScanner$1.runInContext(SystemVmLoadScanner.java:79)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>> > > > >     at
>> > > > >
>> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> > > > >     at
>> > > > >
>> > > >
>> > >
>> >
>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
>> > > > >     at
>> > java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
>> > > > >     at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
>> > > > >     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)
>> > > > > 2014-04-02 15:18:30,920 DEBUG [c.c.v.VirtualMachineManagerImpl]
>> > > > > (secstorage-1:ctx-4d6c3938) Cleaning up resources for the vm
>> > > > > VM[SecondaryStorageVm|s-5-VM] in Starting state
>> > > > >
>> > > > >
>> > > > >
>> > > > > Regards,
>> > > > > Tejas
>> > > > >
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > regards,
>> > > >
>> > > > punith s
>> > > > cloudbyte.com
>> > > >
>> > >
>> >
>>
>
>

Re: Unable to deploy systemvms

Posted by Pierre-Luc Dion <pd...@cloudops.com>.
Tejas,

Did you add the network label names in Cloudstack ?  You need to specify
the network label name in Cloudstack that are configured in XenServer. I'm
suspecting that the current issue is that CloudStack cannot map the Storage
Network from is config in XenServer so xenserver cannot reach the secondary
storage.

I've add an attachment on where to look at in Cloudstack. If you have
access to XenCenter you have to use name of networks under networking tab
on the XenServer host.

you can refer to:
http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/hypervisor_installation.html#citrix-xenserver-installation-for-cloudstack

Regards,




Pierre-Luc Dion
Architecte de Solution Cloud | Cloud Solutions Architect
514-447-3456, 1101
- - -

*CloudOps*420 rue Guy
Montréal QC  H3J 1S6
www.cloudops.com
@CloudOps_


On Wed, Apr 2, 2014 at 8:54 AM, Tejas Gadaria <re...@gmail.com> wrote:

> Hi Yitao,
>
> xenbr0 : acting as Management network and no VLAN is assigned to it
> xenbr1 : acting as public, guest storage network. All of this are in same
> VLAN.
> Also I have given same "name-label" as here in Cloudstack network
> configuraion.
>
> I don't know much about xen VLAN networking..if anything wrong please
> point it out.
>
> [root@xen-dev ~]# xe network-list
> uuid ( RO)                : bfb89346-9eae-4554-a46a-59f9b4587983
>           name-label ( RW): cloud_link_local_network
>     name-description ( RW): link local network used by system vms
>               bridge ( RO): xapi0
>
>
> uuid ( RO)                : eeb9fb94-7468-6b78-aaae-8d4e84b48afd
>           name-label ( RW): Host internal management network
>     name-description ( RW): Network on which guests will be assigned a
> private link-local IP address which can be used to talk XenAPI
>               bridge ( RO): xenapi
>
>
> uuid ( RO)                : 90f6f78a-d4d8-463a-ccca-e28f7ea4e7d2
>           name-label ( RW): cloud-manage
>     name-description ( RW):
>               bridge ( RO): xenbr0
>
>
> uuid ( RO)                : 88f0843e-feb9-44d0-5a04-06f32a258b81
>           name-label ( RW): cloud-public
>     name-description ( RW):
>               bridge ( RO): xenbr1
>
>
> Regards,
> Tejas
>
>
>
> On Wed, Apr 2, 2014 at 5:42 PM, Yitao Jiang <wi...@gmail.com> wrote:
>
> > Can you post your network configuration here, and do u able make
> operation
> > on xenseever through xencenter? May be something wrong with ur storage
> > On Apr 2, 2014 6:47 PM, "Tejas Gadaria" <re...@gmail.com> wrote:
> >
> > > Hi Punith,
> > >
> > > Thanks for reply,
> > >
> > > I have already uploaded
> systemvm64template-2014-01-14-master-xen.vhd.bz2
> > in
> > > secondary .
> > >
> > > [root@con-xen ~]# ls -lR /vol/
> > > /vol/:
> > > total 8
> > > drwxr-xr-x 2 root root 4096 Apr  2 12:46 primary
> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 secondary
> > >
> > > /vol/primary:
> > > total 4
> > > -rw-r--r-- 1 root root 11 Apr  2 16:03
> > > hb-ecff5b59-a2bc-4c0c-9ec8-05f7b4cda546
> > >
> > > /vol/secondary:
> > > total 4
> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 template
> > >
> > > /vol/secondary/template:
> > > total 4
> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 tmpl
> > >
> > > /vol/secondary/template/tmpl:
> > > total 4
> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 1
> > >
> > > /vol/secondary/template/tmpl/1:
> > > total 4
> > > drwxr-xr-x 2 root root 4096 Apr  2 12:26 1
> > >
> > > /vol/secondary/template/tmpl/1/1:
> > > total 2565016
> > > -rw-r--r-- 1 root root 2626564608 Apr  2 12:19
> > > 041bb2b7-2c84-4a72-a2bb-573d6c1ba56e.vhd
> > > -rw-r--r-- 1 root root        287 Apr  2 12:26 template.properties
> > >
> > >
> > > Regards,
> > > Tejas
> > >
> > >
> > > On Wed, Apr 2, 2014 at 3:59 PM, Punith S <pu...@cloudbyte.com>
> wrote:
> > >
> > > > hi,
> > > >
> > > > check whether you have seeded the vdh util for sysytem vms in
> secondary
> > > > storage.
> > > >
> > > >
> > >
> >
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#prepare-the-system-vm-template
> > > >
> > > > thanks.
> > > >
> > > >
> > > > On Wed, Apr 2, 2014 at 3:54 PM, Tejas Gadaria <refond.gmrt@gmail.com
> >
> > > > wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I am trying to create system vms, in CS 4.3 with Xenserver 6.2
> > > > > I am trying to create advance zone. I have 2nics.
> > > > > 1 for management network & second is trunk.
> > > > >
> > > > > I am getting below error
> > > > >
> > > > > 2014-04-02 15:18:28,827 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> > > > type:Image
> > > > > 2014-04-02 15:18:28,831 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> > > > > type:Primary
> > > > > 2014-04-02 15:18:28,832 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > > > > (consoleproxy-1:ctx-774da64a) Found template routing-1 in storage
> > pool
> > > 1
> > > > > with VMTemplateStoragePool id: 4
> > > > > 2014-04-02 15:18:28,840 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > > > > (consoleproxy-1:ctx-774da64a) Acquire lock on
> VMTemplateStoragePool 4
> > > > with
> > > > > timeout 3600 seconds
> > > > > 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > > > > (DirectAgent-111:ctx-f68bde71) destoryVDIbyNameLabel failed due to
> > > there
> > > > > are 0 VDIs with name cloud-cff5e443-72df-4aae-a4fd-1278fc0cbeb4
> > > > > 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > > > > (DirectAgent-111:ctx-f68bde71) can not create vdi in sr
> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > 2014-04-02 15:18:30,904 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > > > > (DirectAgent-111:ctx-f68bde71) Catch Exception
> > > > > com.cloud.utils.exception.CloudRuntimeException for template +  due
> > to
> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create vdi
> > in
> > > sr
> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create vdi
> > in
> > > sr
> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:848)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:918)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:75)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:609)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> > > > >     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)
> > > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
> > > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
> > > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Processing:  {
> Ans: ,
> > > > > MgmtId: 345049296663, via: 1, Ver: v1, Flags: 10,
> > > > >
> > > > >
> > > >
> > >
> >
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
> > > > > Exception com.cloud.utils.exception.CloudRuntimeException for
> > template
> > > +
> > > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
> > create
> > > > vdi
> > > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e","wait":0}}] }
> > > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> > > > (secstorage-1:ctx-4d6c3938)
> > > > > Seq 1-524878146: Received:  { Ans: , MgmtId: 345049296663, via: 1,
> > Ver:
> > > > v1,
> > > > > Flags: 10, { CopyCmdAnswer } }
> > > > > 2014-04-02 15:18:30,915 INFO  [o.a.c.s.v.VolumeServiceImpl]
> > > > > (secstorage-1:ctx-4d6c3938) releasing lock for
> VMTemplateStoragePool
> > 4
> > > > > 2014-04-02 15:18:30,915 WARN  [c.c.u.d.Merovingian2]
> > > > > (secstorage-1:ctx-4d6c3938) Was unable to find lock for the key
> > > > > template_spool_ref4 and thread id 404723302
> > > > > 2014-04-02 15:18:30,915 DEBUG [o.a.c.e.o.VolumeOrchestrator]
> > > > > (secstorage-1:ctx-4d6c3938) Unable to create Vol[5|vm=5|ROOT]:Catch
> > > > > Exception com.cloud.utils.exception.CloudRuntimeException for
> > template
> > > +
> > > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
> > create
> > > > vdi
> > > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > 2014-04-02 15:18:30,915 INFO  [c.c.v.VirtualMachineManagerImpl]
> > > > > (secstorage-1:ctx-4d6c3938) Unable to contact resource.
> > > > > com.cloud.exception.StorageUnavailableException: Resource
> > > [StoragePool:1]
> > > > > is unreachable: Unable to create Vol[5|vm=5|ROOT]:Catch Exception
> > > > > com.cloud.utils.exception.CloudRuntimeException for template +  due
> > to
> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create vdi
> > in
> > > sr
> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:745)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:261)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:694)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1278)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
> > > > >     at
> > > > >
> > com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:111)
> > > > >     at
> > > > >
> > >
> com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:35)
> > > > >     at
> > > > >
> > >
> com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:88)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.SystemVmLoadScanner$1.runInContext(SystemVmLoadScanner.java:79)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> > > > >     at
> > > > >
> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> > > > >     at
> > > > >
> > > >
> > >
> >
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
> > > > >     at
> > java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
> > > > >     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)
> > > > > 2014-04-02 15:18:30,920 DEBUG [c.c.v.VirtualMachineManagerImpl]
> > > > > (secstorage-1:ctx-4d6c3938) Cleaning up resources for the vm
> > > > > VM[SecondaryStorageVm|s-5-VM] in Starting state
> > > > >
> > > > >
> > > > >
> > > > > Regards,
> > > > > Tejas
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > regards,
> > > >
> > > > punith s
> > > > cloudbyte.com
> > > >
> > >
> >
>

Re: Unable to deploy systemvms

Posted by Tejas Gadaria <re...@gmail.com>.
Hi Dion & Jiang,

Thanks for your great help. I had improper VLAN ID for Storage Network.
Template is downloading now.


Regards,
Tejas


On Fri, Apr 4, 2014 at 5:33 AM, Yitao Jiang <wi...@gmail.com> wrote:

> Hi,as you defined the STORAGE network, the SSVM need access NFSserver
> through storage network ,just as Pierre-Luc Dion  said there maybe vlan rag
> or namelable play the trick ,so you can check whether the compute node with
> xen can manualy mount the nfs mount point through xenbr1
> On Apr 2, 2014 8:55 PM, "Tejas Gadaria" <re...@gmail.com> wrote:
>
> > Hi Yitao,
> >
> > xenbr0 : acting as Management network and no VLAN is assigned to it
> > xenbr1 : acting as public, guest storage network. All of this are in same
> > VLAN.
> > Also I have given same "name-label" as here in Cloudstack network
> > configuraion.
> >
> > I don't know much about xen VLAN networking..if anything wrong please
> > point it out.
> >
> > [root@xen-dev ~]# xe network-list
> > uuid ( RO)                : bfb89346-9eae-4554-a46a-59f9b4587983
> >           name-label ( RW): cloud_link_local_network
> >     name-description ( RW): link local network used by system vms
> >               bridge ( RO): xapi0
> >
> >
> > uuid ( RO)                : eeb9fb94-7468-6b78-aaae-8d4e84b48afd
> >           name-label ( RW): Host internal management network
> >     name-description ( RW): Network on which guests will be assigned a
> > private link-local IP address which can be used to talk XenAPI
> >               bridge ( RO): xenapi
> >
> >
> > uuid ( RO)                : 90f6f78a-d4d8-463a-ccca-e28f7ea4e7d2
> >           name-label ( RW): cloud-manage
> >     name-description ( RW):
> >               bridge ( RO): xenbr0
> >
> >
> > uuid ( RO)                : 88f0843e-feb9-44d0-5a04-06f32a258b81
> >           name-label ( RW): cloud-public
> >     name-description ( RW):
> >               bridge ( RO): xenbr1
> >
> >
> > Regards,
> > Tejas
> >
> >
> >
> > On Wed, Apr 2, 2014 at 5:42 PM, Yitao Jiang <wi...@gmail.com>
> wrote:
> >
> > > Can you post your network configuration here, and do u able make
> > operation
> > > on xenseever through xencenter? May be something wrong with ur storage
> > > On Apr 2, 2014 6:47 PM, "Tejas Gadaria" <re...@gmail.com> wrote:
> > >
> > > > Hi Punith,
> > > >
> > > > Thanks for reply,
> > > >
> > > > I have already uploaded
> > systemvm64template-2014-01-14-master-xen.vhd.bz2
> > > in
> > > > secondary .
> > > >
> > > > [root@con-xen ~]# ls -lR /vol/
> > > > /vol/:
> > > > total 8
> > > > drwxr-xr-x 2 root root 4096 Apr  2 12:46 primary
> > > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 secondary
> > > >
> > > > /vol/primary:
> > > > total 4
> > > > -rw-r--r-- 1 root root 11 Apr  2 16:03
> > > > hb-ecff5b59-a2bc-4c0c-9ec8-05f7b4cda546
> > > >
> > > > /vol/secondary:
> > > > total 4
> > > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 template
> > > >
> > > > /vol/secondary/template:
> > > > total 4
> > > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 tmpl
> > > >
> > > > /vol/secondary/template/tmpl:
> > > > total 4
> > > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 1
> > > >
> > > > /vol/secondary/template/tmpl/1:
> > > > total 4
> > > > drwxr-xr-x 2 root root 4096 Apr  2 12:26 1
> > > >
> > > > /vol/secondary/template/tmpl/1/1:
> > > > total 2565016
> > > > -rw-r--r-- 1 root root 2626564608 Apr  2 12:19
> > > > 041bb2b7-2c84-4a72-a2bb-573d6c1ba56e.vhd
> > > > -rw-r--r-- 1 root root        287 Apr  2 12:26 template.properties
> > > >
> > > >
> > > > Regards,
> > > > Tejas
> > > >
> > > >
> > > > On Wed, Apr 2, 2014 at 3:59 PM, Punith S <pu...@cloudbyte.com>
> > wrote:
> > > >
> > > > > hi,
> > > > >
> > > > > check whether you have seeded the vdh util for sysytem vms in
> > secondary
> > > > > storage.
> > > > >
> > > > >
> > > >
> > >
> >
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#prepare-the-system-vm-template
> > > > >
> > > > > thanks.
> > > > >
> > > > >
> > > > > On Wed, Apr 2, 2014 at 3:54 PM, Tejas Gadaria <
> refond.gmrt@gmail.com
> > >
> > > > > wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I am trying to create system vms, in CS 4.3 with Xenserver 6.2
> > > > > > I am trying to create advance zone. I have 2nics.
> > > > > > 1 for management network & second is trunk.
> > > > > >
> > > > > > I am getting below error
> > > > > >
> > > > > > 2014-04-02 15:18:28,827 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > > > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> > > > > type:Image
> > > > > > 2014-04-02 15:18:28,831 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > > > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> > > > > > type:Primary
> > > > > > 2014-04-02 15:18:28,832 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > > > > > (consoleproxy-1:ctx-774da64a) Found template routing-1 in storage
> > > pool
> > > > 1
> > > > > > with VMTemplateStoragePool id: 4
> > > > > > 2014-04-02 15:18:28,840 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > > > > > (consoleproxy-1:ctx-774da64a) Acquire lock on
> > VMTemplateStoragePool 4
> > > > > with
> > > > > > timeout 3600 seconds
> > > > > > 2014-04-02 15:18:30,903 WARN
>  [c.c.h.x.r.XenServerStorageProcessor]
> > > > > > (DirectAgent-111:ctx-f68bde71) destoryVDIbyNameLabel failed due
> to
> > > > there
> > > > > > are 0 VDIs with name cloud-cff5e443-72df-4aae-a4fd-1278fc0cbeb4
> > > > > > 2014-04-02 15:18:30,903 WARN
>  [c.c.h.x.r.XenServerStorageProcessor]
> > > > > > (DirectAgent-111:ctx-f68bde71) can not create vdi in sr
> > > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > > 2014-04-02 15:18:30,904 WARN
>  [c.c.h.x.r.XenServerStorageProcessor]
> > > > > > (DirectAgent-111:ctx-f68bde71) Catch Exception
> > > > > > com.cloud.utils.exception.CloudRuntimeException for template +
>  due
> > > to
> > > > > > com.cloud.utils.exception.CloudRuntimeException: can not create
> vdi
> > > in
> > > > sr
> > > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > > com.cloud.utils.exception.CloudRuntimeException: can not create
> vdi
> > > in
> > > > sr
> > > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:848)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:918)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:75)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:609)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> > > > > >     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)
> > > > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response
> Received:
> > > > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response
> Received:
> > > > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> > > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Processing:  {
> > Ans: ,
> > > > > > MgmtId: 345049296663, via: 1, Ver: v1, Flags: 10,
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
> > > > > > Exception com.cloud.utils.exception.CloudRuntimeException for
> > > template
> > > > +
> > > > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
> > > create
> > > > > vdi
> > > > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e","wait":0}}] }
> > > > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> > > > > (secstorage-1:ctx-4d6c3938)
> > > > > > Seq 1-524878146: Received:  { Ans: , MgmtId: 345049296663, via:
> 1,
> > > Ver:
> > > > > v1,
> > > > > > Flags: 10, { CopyCmdAnswer } }
> > > > > > 2014-04-02 15:18:30,915 INFO  [o.a.c.s.v.VolumeServiceImpl]
> > > > > > (secstorage-1:ctx-4d6c3938) releasing lock for
> > VMTemplateStoragePool
> > > 4
> > > > > > 2014-04-02 15:18:30,915 WARN  [c.c.u.d.Merovingian2]
> > > > > > (secstorage-1:ctx-4d6c3938) Was unable to find lock for the key
> > > > > > template_spool_ref4 and thread id 404723302
> > > > > > 2014-04-02 15:18:30,915 DEBUG [o.a.c.e.o.VolumeOrchestrator]
> > > > > > (secstorage-1:ctx-4d6c3938) Unable to create
> Vol[5|vm=5|ROOT]:Catch
> > > > > > Exception com.cloud.utils.exception.CloudRuntimeException for
> > > template
> > > > +
> > > > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
> > > create
> > > > > vdi
> > > > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > > 2014-04-02 15:18:30,915 INFO  [c.c.v.VirtualMachineManagerImpl]
> > > > > > (secstorage-1:ctx-4d6c3938) Unable to contact resource.
> > > > > > com.cloud.exception.StorageUnavailableException: Resource
> > > > [StoragePool:1]
> > > > > > is unreachable: Unable to create Vol[5|vm=5|ROOT]:Catch Exception
> > > > > > com.cloud.utils.exception.CloudRuntimeException for template +
>  due
> > > to
> > > > > > com.cloud.utils.exception.CloudRuntimeException: can not create
> vdi
> > > in
> > > > sr
> > > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:745)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:261)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:694)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1278)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
> > > > > >     at
> > > > > >
> > > com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:111)
> > > > > >     at
> > > > > >
> > > >
> > com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:35)
> > > > > >     at
> > > > > >
> > > >
> > com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:88)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.SystemVmLoadScanner$1.runInContext(SystemVmLoadScanner.java:79)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> > > > > >     at
> > > > > >
> > > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> > > > > >     at
> > > > > >
> > > > >
> > > >
> > >
> >
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
> > > > > >     at
> > > java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
> > > > > >     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)
> > > > > > 2014-04-02 15:18:30,920 DEBUG [c.c.v.VirtualMachineManagerImpl]
> > > > > > (secstorage-1:ctx-4d6c3938) Cleaning up resources for the vm
> > > > > > VM[SecondaryStorageVm|s-5-VM] in Starting state
> > > > > >
> > > > > >
> > > > > >
> > > > > > Regards,
> > > > > > Tejas
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > regards,
> > > > >
> > > > > punith s
> > > > > cloudbyte.com
> > > > >
> > > >
> > >
> >
>

Re: Unable to deploy systemvms

Posted by Tejas Gadaria <re...@gmail.com>.
Hi Dion & Jiang,

Thanks for your great help. I had improper VLAN ID for Storage Network.
Template is downloading now.


Regards,
Tejas


On Fri, Apr 4, 2014 at 5:33 AM, Yitao Jiang <wi...@gmail.com> wrote:

> Hi,as you defined the STORAGE network, the SSVM need access NFSserver
> through storage network ,just as Pierre-Luc Dion  said there maybe vlan rag
> or namelable play the trick ,so you can check whether the compute node with
> xen can manualy mount the nfs mount point through xenbr1
> On Apr 2, 2014 8:55 PM, "Tejas Gadaria" <re...@gmail.com> wrote:
>
> > Hi Yitao,
> >
> > xenbr0 : acting as Management network and no VLAN is assigned to it
> > xenbr1 : acting as public, guest storage network. All of this are in same
> > VLAN.
> > Also I have given same "name-label" as here in Cloudstack network
> > configuraion.
> >
> > I don't know much about xen VLAN networking..if anything wrong please
> > point it out.
> >
> > [root@xen-dev ~]# xe network-list
> > uuid ( RO)                : bfb89346-9eae-4554-a46a-59f9b4587983
> >           name-label ( RW): cloud_link_local_network
> >     name-description ( RW): link local network used by system vms
> >               bridge ( RO): xapi0
> >
> >
> > uuid ( RO)                : eeb9fb94-7468-6b78-aaae-8d4e84b48afd
> >           name-label ( RW): Host internal management network
> >     name-description ( RW): Network on which guests will be assigned a
> > private link-local IP address which can be used to talk XenAPI
> >               bridge ( RO): xenapi
> >
> >
> > uuid ( RO)                : 90f6f78a-d4d8-463a-ccca-e28f7ea4e7d2
> >           name-label ( RW): cloud-manage
> >     name-description ( RW):
> >               bridge ( RO): xenbr0
> >
> >
> > uuid ( RO)                : 88f0843e-feb9-44d0-5a04-06f32a258b81
> >           name-label ( RW): cloud-public
> >     name-description ( RW):
> >               bridge ( RO): xenbr1
> >
> >
> > Regards,
> > Tejas
> >
> >
> >
> > On Wed, Apr 2, 2014 at 5:42 PM, Yitao Jiang <wi...@gmail.com>
> wrote:
> >
> > > Can you post your network configuration here, and do u able make
> > operation
> > > on xenseever through xencenter? May be something wrong with ur storage
> > > On Apr 2, 2014 6:47 PM, "Tejas Gadaria" <re...@gmail.com> wrote:
> > >
> > > > Hi Punith,
> > > >
> > > > Thanks for reply,
> > > >
> > > > I have already uploaded
> > systemvm64template-2014-01-14-master-xen.vhd.bz2
> > > in
> > > > secondary .
> > > >
> > > > [root@con-xen ~]# ls -lR /vol/
> > > > /vol/:
> > > > total 8
> > > > drwxr-xr-x 2 root root 4096 Apr  2 12:46 primary
> > > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 secondary
> > > >
> > > > /vol/primary:
> > > > total 4
> > > > -rw-r--r-- 1 root root 11 Apr  2 16:03
> > > > hb-ecff5b59-a2bc-4c0c-9ec8-05f7b4cda546
> > > >
> > > > /vol/secondary:
> > > > total 4
> > > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 template
> > > >
> > > > /vol/secondary/template:
> > > > total 4
> > > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 tmpl
> > > >
> > > > /vol/secondary/template/tmpl:
> > > > total 4
> > > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 1
> > > >
> > > > /vol/secondary/template/tmpl/1:
> > > > total 4
> > > > drwxr-xr-x 2 root root 4096 Apr  2 12:26 1
> > > >
> > > > /vol/secondary/template/tmpl/1/1:
> > > > total 2565016
> > > > -rw-r--r-- 1 root root 2626564608 Apr  2 12:19
> > > > 041bb2b7-2c84-4a72-a2bb-573d6c1ba56e.vhd
> > > > -rw-r--r-- 1 root root        287 Apr  2 12:26 template.properties
> > > >
> > > >
> > > > Regards,
> > > > Tejas
> > > >
> > > >
> > > > On Wed, Apr 2, 2014 at 3:59 PM, Punith S <pu...@cloudbyte.com>
> > wrote:
> > > >
> > > > > hi,
> > > > >
> > > > > check whether you have seeded the vdh util for sysytem vms in
> > secondary
> > > > > storage.
> > > > >
> > > > >
> > > >
> > >
> >
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#prepare-the-system-vm-template
> > > > >
> > > > > thanks.
> > > > >
> > > > >
> > > > > On Wed, Apr 2, 2014 at 3:54 PM, Tejas Gadaria <
> refond.gmrt@gmail.com
> > >
> > > > > wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I am trying to create system vms, in CS 4.3 with Xenserver 6.2
> > > > > > I am trying to create advance zone. I have 2nics.
> > > > > > 1 for management network & second is trunk.
> > > > > >
> > > > > > I am getting below error
> > > > > >
> > > > > > 2014-04-02 15:18:28,827 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > > > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> > > > > type:Image
> > > > > > 2014-04-02 15:18:28,831 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > > > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> > > > > > type:Primary
> > > > > > 2014-04-02 15:18:28,832 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > > > > > (consoleproxy-1:ctx-774da64a) Found template routing-1 in storage
> > > pool
> > > > 1
> > > > > > with VMTemplateStoragePool id: 4
> > > > > > 2014-04-02 15:18:28,840 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > > > > > (consoleproxy-1:ctx-774da64a) Acquire lock on
> > VMTemplateStoragePool 4
> > > > > with
> > > > > > timeout 3600 seconds
> > > > > > 2014-04-02 15:18:30,903 WARN
>  [c.c.h.x.r.XenServerStorageProcessor]
> > > > > > (DirectAgent-111:ctx-f68bde71) destoryVDIbyNameLabel failed due
> to
> > > > there
> > > > > > are 0 VDIs with name cloud-cff5e443-72df-4aae-a4fd-1278fc0cbeb4
> > > > > > 2014-04-02 15:18:30,903 WARN
>  [c.c.h.x.r.XenServerStorageProcessor]
> > > > > > (DirectAgent-111:ctx-f68bde71) can not create vdi in sr
> > > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > > 2014-04-02 15:18:30,904 WARN
>  [c.c.h.x.r.XenServerStorageProcessor]
> > > > > > (DirectAgent-111:ctx-f68bde71) Catch Exception
> > > > > > com.cloud.utils.exception.CloudRuntimeException for template +
>  due
> > > to
> > > > > > com.cloud.utils.exception.CloudRuntimeException: can not create
> vdi
> > > in
> > > > sr
> > > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > > com.cloud.utils.exception.CloudRuntimeException: can not create
> vdi
> > > in
> > > > sr
> > > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:848)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:918)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:75)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:609)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> > > > > >     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)
> > > > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response
> Received:
> > > > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response
> Received:
> > > > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> > > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Processing:  {
> > Ans: ,
> > > > > > MgmtId: 345049296663, via: 1, Ver: v1, Flags: 10,
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
> > > > > > Exception com.cloud.utils.exception.CloudRuntimeException for
> > > template
> > > > +
> > > > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
> > > create
> > > > > vdi
> > > > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e","wait":0}}] }
> > > > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> > > > > (secstorage-1:ctx-4d6c3938)
> > > > > > Seq 1-524878146: Received:  { Ans: , MgmtId: 345049296663, via:
> 1,
> > > Ver:
> > > > > v1,
> > > > > > Flags: 10, { CopyCmdAnswer } }
> > > > > > 2014-04-02 15:18:30,915 INFO  [o.a.c.s.v.VolumeServiceImpl]
> > > > > > (secstorage-1:ctx-4d6c3938) releasing lock for
> > VMTemplateStoragePool
> > > 4
> > > > > > 2014-04-02 15:18:30,915 WARN  [c.c.u.d.Merovingian2]
> > > > > > (secstorage-1:ctx-4d6c3938) Was unable to find lock for the key
> > > > > > template_spool_ref4 and thread id 404723302
> > > > > > 2014-04-02 15:18:30,915 DEBUG [o.a.c.e.o.VolumeOrchestrator]
> > > > > > (secstorage-1:ctx-4d6c3938) Unable to create
> Vol[5|vm=5|ROOT]:Catch
> > > > > > Exception com.cloud.utils.exception.CloudRuntimeException for
> > > template
> > > > +
> > > > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
> > > create
> > > > > vdi
> > > > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > > 2014-04-02 15:18:30,915 INFO  [c.c.v.VirtualMachineManagerImpl]
> > > > > > (secstorage-1:ctx-4d6c3938) Unable to contact resource.
> > > > > > com.cloud.exception.StorageUnavailableException: Resource
> > > > [StoragePool:1]
> > > > > > is unreachable: Unable to create Vol[5|vm=5|ROOT]:Catch Exception
> > > > > > com.cloud.utils.exception.CloudRuntimeException for template +
>  due
> > > to
> > > > > > com.cloud.utils.exception.CloudRuntimeException: can not create
> vdi
> > > in
> > > > sr
> > > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:745)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:261)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:694)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1278)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
> > > > > >     at
> > > > > >
> > > com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:111)
> > > > > >     at
> > > > > >
> > > >
> > com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:35)
> > > > > >     at
> > > > > >
> > > >
> > com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:88)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.SystemVmLoadScanner$1.runInContext(SystemVmLoadScanner.java:79)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> > > > > >     at
> > > > > >
> > > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> > > > > >     at
> > > > > >
> > > > >
> > > >
> > >
> >
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
> > > > > >     at
> > > java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
> > > > > >     at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
> > > > > >     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)
> > > > > > 2014-04-02 15:18:30,920 DEBUG [c.c.v.VirtualMachineManagerImpl]
> > > > > > (secstorage-1:ctx-4d6c3938) Cleaning up resources for the vm
> > > > > > VM[SecondaryStorageVm|s-5-VM] in Starting state
> > > > > >
> > > > > >
> > > > > >
> > > > > > Regards,
> > > > > > Tejas
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > regards,
> > > > >
> > > > > punith s
> > > > > cloudbyte.com
> > > > >
> > > >
> > >
> >
>

Re: Unable to deploy systemvms

Posted by Yitao Jiang <wi...@gmail.com>.
Hi,as you defined the STORAGE network, the SSVM need access NFSserver
through storage network ,just as Pierre-Luc Dion  said there maybe vlan rag
or namelable play the trick ,so you can check whether the compute node with
xen can manualy mount the nfs mount point through xenbr1
On Apr 2, 2014 8:55 PM, "Tejas Gadaria" <re...@gmail.com> wrote:

> Hi Yitao,
>
> xenbr0 : acting as Management network and no VLAN is assigned to it
> xenbr1 : acting as public, guest storage network. All of this are in same
> VLAN.
> Also I have given same "name-label" as here in Cloudstack network
> configuraion.
>
> I don't know much about xen VLAN networking..if anything wrong please
> point it out.
>
> [root@xen-dev ~]# xe network-list
> uuid ( RO)                : bfb89346-9eae-4554-a46a-59f9b4587983
>           name-label ( RW): cloud_link_local_network
>     name-description ( RW): link local network used by system vms
>               bridge ( RO): xapi0
>
>
> uuid ( RO)                : eeb9fb94-7468-6b78-aaae-8d4e84b48afd
>           name-label ( RW): Host internal management network
>     name-description ( RW): Network on which guests will be assigned a
> private link-local IP address which can be used to talk XenAPI
>               bridge ( RO): xenapi
>
>
> uuid ( RO)                : 90f6f78a-d4d8-463a-ccca-e28f7ea4e7d2
>           name-label ( RW): cloud-manage
>     name-description ( RW):
>               bridge ( RO): xenbr0
>
>
> uuid ( RO)                : 88f0843e-feb9-44d0-5a04-06f32a258b81
>           name-label ( RW): cloud-public
>     name-description ( RW):
>               bridge ( RO): xenbr1
>
>
> Regards,
> Tejas
>
>
>
> On Wed, Apr 2, 2014 at 5:42 PM, Yitao Jiang <wi...@gmail.com> wrote:
>
> > Can you post your network configuration here, and do u able make
> operation
> > on xenseever through xencenter? May be something wrong with ur storage
> > On Apr 2, 2014 6:47 PM, "Tejas Gadaria" <re...@gmail.com> wrote:
> >
> > > Hi Punith,
> > >
> > > Thanks for reply,
> > >
> > > I have already uploaded
> systemvm64template-2014-01-14-master-xen.vhd.bz2
> > in
> > > secondary .
> > >
> > > [root@con-xen ~]# ls -lR /vol/
> > > /vol/:
> > > total 8
> > > drwxr-xr-x 2 root root 4096 Apr  2 12:46 primary
> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 secondary
> > >
> > > /vol/primary:
> > > total 4
> > > -rw-r--r-- 1 root root 11 Apr  2 16:03
> > > hb-ecff5b59-a2bc-4c0c-9ec8-05f7b4cda546
> > >
> > > /vol/secondary:
> > > total 4
> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 template
> > >
> > > /vol/secondary/template:
> > > total 4
> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 tmpl
> > >
> > > /vol/secondary/template/tmpl:
> > > total 4
> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 1
> > >
> > > /vol/secondary/template/tmpl/1:
> > > total 4
> > > drwxr-xr-x 2 root root 4096 Apr  2 12:26 1
> > >
> > > /vol/secondary/template/tmpl/1/1:
> > > total 2565016
> > > -rw-r--r-- 1 root root 2626564608 Apr  2 12:19
> > > 041bb2b7-2c84-4a72-a2bb-573d6c1ba56e.vhd
> > > -rw-r--r-- 1 root root        287 Apr  2 12:26 template.properties
> > >
> > >
> > > Regards,
> > > Tejas
> > >
> > >
> > > On Wed, Apr 2, 2014 at 3:59 PM, Punith S <pu...@cloudbyte.com>
> wrote:
> > >
> > > > hi,
> > > >
> > > > check whether you have seeded the vdh util for sysytem vms in
> secondary
> > > > storage.
> > > >
> > > >
> > >
> >
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#prepare-the-system-vm-template
> > > >
> > > > thanks.
> > > >
> > > >
> > > > On Wed, Apr 2, 2014 at 3:54 PM, Tejas Gadaria <refond.gmrt@gmail.com
> >
> > > > wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I am trying to create system vms, in CS 4.3 with Xenserver 6.2
> > > > > I am trying to create advance zone. I have 2nics.
> > > > > 1 for management network & second is trunk.
> > > > >
> > > > > I am getting below error
> > > > >
> > > > > 2014-04-02 15:18:28,827 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> > > > type:Image
> > > > > 2014-04-02 15:18:28,831 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> > > > > type:Primary
> > > > > 2014-04-02 15:18:28,832 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > > > > (consoleproxy-1:ctx-774da64a) Found template routing-1 in storage
> > pool
> > > 1
> > > > > with VMTemplateStoragePool id: 4
> > > > > 2014-04-02 15:18:28,840 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > > > > (consoleproxy-1:ctx-774da64a) Acquire lock on
> VMTemplateStoragePool 4
> > > > with
> > > > > timeout 3600 seconds
> > > > > 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > > > > (DirectAgent-111:ctx-f68bde71) destoryVDIbyNameLabel failed due to
> > > there
> > > > > are 0 VDIs with name cloud-cff5e443-72df-4aae-a4fd-1278fc0cbeb4
> > > > > 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > > > > (DirectAgent-111:ctx-f68bde71) can not create vdi in sr
> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > 2014-04-02 15:18:30,904 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > > > > (DirectAgent-111:ctx-f68bde71) Catch Exception
> > > > > com.cloud.utils.exception.CloudRuntimeException for template +  due
> > to
> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create vdi
> > in
> > > sr
> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create vdi
> > in
> > > sr
> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:848)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:918)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:75)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:609)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> > > > >     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)
> > > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
> > > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
> > > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Processing:  {
> Ans: ,
> > > > > MgmtId: 345049296663, via: 1, Ver: v1, Flags: 10,
> > > > >
> > > > >
> > > >
> > >
> >
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
> > > > > Exception com.cloud.utils.exception.CloudRuntimeException for
> > template
> > > +
> > > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
> > create
> > > > vdi
> > > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e","wait":0}}] }
> > > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> > > > (secstorage-1:ctx-4d6c3938)
> > > > > Seq 1-524878146: Received:  { Ans: , MgmtId: 345049296663, via: 1,
> > Ver:
> > > > v1,
> > > > > Flags: 10, { CopyCmdAnswer } }
> > > > > 2014-04-02 15:18:30,915 INFO  [o.a.c.s.v.VolumeServiceImpl]
> > > > > (secstorage-1:ctx-4d6c3938) releasing lock for
> VMTemplateStoragePool
> > 4
> > > > > 2014-04-02 15:18:30,915 WARN  [c.c.u.d.Merovingian2]
> > > > > (secstorage-1:ctx-4d6c3938) Was unable to find lock for the key
> > > > > template_spool_ref4 and thread id 404723302
> > > > > 2014-04-02 15:18:30,915 DEBUG [o.a.c.e.o.VolumeOrchestrator]
> > > > > (secstorage-1:ctx-4d6c3938) Unable to create Vol[5|vm=5|ROOT]:Catch
> > > > > Exception com.cloud.utils.exception.CloudRuntimeException for
> > template
> > > +
> > > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
> > create
> > > > vdi
> > > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > 2014-04-02 15:18:30,915 INFO  [c.c.v.VirtualMachineManagerImpl]
> > > > > (secstorage-1:ctx-4d6c3938) Unable to contact resource.
> > > > > com.cloud.exception.StorageUnavailableException: Resource
> > > [StoragePool:1]
> > > > > is unreachable: Unable to create Vol[5|vm=5|ROOT]:Catch Exception
> > > > > com.cloud.utils.exception.CloudRuntimeException for template +  due
> > to
> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create vdi
> > in
> > > sr
> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:745)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:261)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:694)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1278)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
> > > > >     at
> > > > >
> > com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:111)
> > > > >     at
> > > > >
> > >
> com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:35)
> > > > >     at
> > > > >
> > >
> com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:88)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.SystemVmLoadScanner$1.runInContext(SystemVmLoadScanner.java:79)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> > > > >     at
> > > > >
> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> > > > >     at
> > > > >
> > > >
> > >
> >
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
> > > > >     at
> > java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
> > > > >     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)
> > > > > 2014-04-02 15:18:30,920 DEBUG [c.c.v.VirtualMachineManagerImpl]
> > > > > (secstorage-1:ctx-4d6c3938) Cleaning up resources for the vm
> > > > > VM[SecondaryStorageVm|s-5-VM] in Starting state
> > > > >
> > > > >
> > > > >
> > > > > Regards,
> > > > > Tejas
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > regards,
> > > >
> > > > punith s
> > > > cloudbyte.com
> > > >
> > >
> >
>

Re: Unable to deploy systemvms

Posted by Pierre-Luc Dion <pd...@cloudops.com>.
Tejas,

Did you add the network label names in Cloudstack ?  You need to specify
the network label name in Cloudstack that are configured in XenServer. I'm
suspecting that the current issue is that CloudStack cannot map the Storage
Network from is config in XenServer so xenserver cannot reach the secondary
storage.

I've add an attachment on where to look at in Cloudstack. If you have
access to XenCenter you have to use name of networks under networking tab
on the XenServer host.

you can refer to:
http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/hypervisor_installation.html#citrix-xenserver-installation-for-cloudstack

Regards,




Pierre-Luc Dion
Architecte de Solution Cloud | Cloud Solutions Architect
514-447-3456, 1101
- - -

*CloudOps*420 rue Guy
Montréal QC  H3J 1S6
www.cloudops.com
@CloudOps_


On Wed, Apr 2, 2014 at 8:54 AM, Tejas Gadaria <re...@gmail.com> wrote:

> Hi Yitao,
>
> xenbr0 : acting as Management network and no VLAN is assigned to it
> xenbr1 : acting as public, guest storage network. All of this are in same
> VLAN.
> Also I have given same "name-label" as here in Cloudstack network
> configuraion.
>
> I don't know much about xen VLAN networking..if anything wrong please
> point it out.
>
> [root@xen-dev ~]# xe network-list
> uuid ( RO)                : bfb89346-9eae-4554-a46a-59f9b4587983
>           name-label ( RW): cloud_link_local_network
>     name-description ( RW): link local network used by system vms
>               bridge ( RO): xapi0
>
>
> uuid ( RO)                : eeb9fb94-7468-6b78-aaae-8d4e84b48afd
>           name-label ( RW): Host internal management network
>     name-description ( RW): Network on which guests will be assigned a
> private link-local IP address which can be used to talk XenAPI
>               bridge ( RO): xenapi
>
>
> uuid ( RO)                : 90f6f78a-d4d8-463a-ccca-e28f7ea4e7d2
>           name-label ( RW): cloud-manage
>     name-description ( RW):
>               bridge ( RO): xenbr0
>
>
> uuid ( RO)                : 88f0843e-feb9-44d0-5a04-06f32a258b81
>           name-label ( RW): cloud-public
>     name-description ( RW):
>               bridge ( RO): xenbr1
>
>
> Regards,
> Tejas
>
>
>
> On Wed, Apr 2, 2014 at 5:42 PM, Yitao Jiang <wi...@gmail.com> wrote:
>
> > Can you post your network configuration here, and do u able make
> operation
> > on xenseever through xencenter? May be something wrong with ur storage
> > On Apr 2, 2014 6:47 PM, "Tejas Gadaria" <re...@gmail.com> wrote:
> >
> > > Hi Punith,
> > >
> > > Thanks for reply,
> > >
> > > I have already uploaded
> systemvm64template-2014-01-14-master-xen.vhd.bz2
> > in
> > > secondary .
> > >
> > > [root@con-xen ~]# ls -lR /vol/
> > > /vol/:
> > > total 8
> > > drwxr-xr-x 2 root root 4096 Apr  2 12:46 primary
> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 secondary
> > >
> > > /vol/primary:
> > > total 4
> > > -rw-r--r-- 1 root root 11 Apr  2 16:03
> > > hb-ecff5b59-a2bc-4c0c-9ec8-05f7b4cda546
> > >
> > > /vol/secondary:
> > > total 4
> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 template
> > >
> > > /vol/secondary/template:
> > > total 4
> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 tmpl
> > >
> > > /vol/secondary/template/tmpl:
> > > total 4
> > > drwxr-xr-x 3 root root 4096 Apr  2 12:14 1
> > >
> > > /vol/secondary/template/tmpl/1:
> > > total 4
> > > drwxr-xr-x 2 root root 4096 Apr  2 12:26 1
> > >
> > > /vol/secondary/template/tmpl/1/1:
> > > total 2565016
> > > -rw-r--r-- 1 root root 2626564608 Apr  2 12:19
> > > 041bb2b7-2c84-4a72-a2bb-573d6c1ba56e.vhd
> > > -rw-r--r-- 1 root root        287 Apr  2 12:26 template.properties
> > >
> > >
> > > Regards,
> > > Tejas
> > >
> > >
> > > On Wed, Apr 2, 2014 at 3:59 PM, Punith S <pu...@cloudbyte.com>
> wrote:
> > >
> > > > hi,
> > > >
> > > > check whether you have seeded the vdh util for sysytem vms in
> secondary
> > > > storage.
> > > >
> > > >
> > >
> >
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#prepare-the-system-vm-template
> > > >
> > > > thanks.
> > > >
> > > >
> > > > On Wed, Apr 2, 2014 at 3:54 PM, Tejas Gadaria <refond.gmrt@gmail.com
> >
> > > > wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I am trying to create system vms, in CS 4.3 with Xenserver 6.2
> > > > > I am trying to create advance zone. I have 2nics.
> > > > > 1 for management network & second is trunk.
> > > > >
> > > > > I am getting below error
> > > > >
> > > > > 2014-04-02 15:18:28,827 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> > > > type:Image
> > > > > 2014-04-02 15:18:28,831 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> > > > > type:Primary
> > > > > 2014-04-02 15:18:28,832 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > > > > (consoleproxy-1:ctx-774da64a) Found template routing-1 in storage
> > pool
> > > 1
> > > > > with VMTemplateStoragePool id: 4
> > > > > 2014-04-02 15:18:28,840 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > > > > (consoleproxy-1:ctx-774da64a) Acquire lock on
> VMTemplateStoragePool 4
> > > > with
> > > > > timeout 3600 seconds
> > > > > 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > > > > (DirectAgent-111:ctx-f68bde71) destoryVDIbyNameLabel failed due to
> > > there
> > > > > are 0 VDIs with name cloud-cff5e443-72df-4aae-a4fd-1278fc0cbeb4
> > > > > 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > > > > (DirectAgent-111:ctx-f68bde71) can not create vdi in sr
> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > 2014-04-02 15:18:30,904 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > > > > (DirectAgent-111:ctx-f68bde71) Catch Exception
> > > > > com.cloud.utils.exception.CloudRuntimeException for template +  due
> > to
> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create vdi
> > in
> > > sr
> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create vdi
> > in
> > > sr
> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:848)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:918)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:75)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:609)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> > > > >     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)
> > > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
> > > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
> > > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> > > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Processing:  {
> Ans: ,
> > > > > MgmtId: 345049296663, via: 1, Ver: v1, Flags: 10,
> > > > >
> > > > >
> > > >
> > >
> >
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
> > > > > Exception com.cloud.utils.exception.CloudRuntimeException for
> > template
> > > +
> > > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
> > create
> > > > vdi
> > > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e","wait":0}}] }
> > > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> > > > (secstorage-1:ctx-4d6c3938)
> > > > > Seq 1-524878146: Received:  { Ans: , MgmtId: 345049296663, via: 1,
> > Ver:
> > > > v1,
> > > > > Flags: 10, { CopyCmdAnswer } }
> > > > > 2014-04-02 15:18:30,915 INFO  [o.a.c.s.v.VolumeServiceImpl]
> > > > > (secstorage-1:ctx-4d6c3938) releasing lock for
> VMTemplateStoragePool
> > 4
> > > > > 2014-04-02 15:18:30,915 WARN  [c.c.u.d.Merovingian2]
> > > > > (secstorage-1:ctx-4d6c3938) Was unable to find lock for the key
> > > > > template_spool_ref4 and thread id 404723302
> > > > > 2014-04-02 15:18:30,915 DEBUG [o.a.c.e.o.VolumeOrchestrator]
> > > > > (secstorage-1:ctx-4d6c3938) Unable to create Vol[5|vm=5|ROOT]:Catch
> > > > > Exception com.cloud.utils.exception.CloudRuntimeException for
> > template
> > > +
> > > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
> > create
> > > > vdi
> > > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > > 2014-04-02 15:18:30,915 INFO  [c.c.v.VirtualMachineManagerImpl]
> > > > > (secstorage-1:ctx-4d6c3938) Unable to contact resource.
> > > > > com.cloud.exception.StorageUnavailableException: Resource
> > > [StoragePool:1]
> > > > > is unreachable: Unable to create Vol[5|vm=5|ROOT]:Catch Exception
> > > > > com.cloud.utils.exception.CloudRuntimeException for template +  due
> > to
> > > > > com.cloud.utils.exception.CloudRuntimeException: can not create vdi
> > in
> > > sr
> > > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:745)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:261)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:694)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1278)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
> > > > >     at
> > > > >
> > com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:111)
> > > > >     at
> > > > >
> > >
> com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:35)
> > > > >     at
> > > > >
> > >
> com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:88)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> com.cloud.vm.SystemVmLoadScanner$1.runInContext(SystemVmLoadScanner.java:79)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> > > > >     at
> > > > >
> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> > > > >     at
> > > > >
> > > >
> > >
> >
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
> > > > >     at
> > java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
> > > > >     at
> > > > >
> > > > >
> > > >
> > >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
> > > > >     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)
> > > > > 2014-04-02 15:18:30,920 DEBUG [c.c.v.VirtualMachineManagerImpl]
> > > > > (secstorage-1:ctx-4d6c3938) Cleaning up resources for the vm
> > > > > VM[SecondaryStorageVm|s-5-VM] in Starting state
> > > > >
> > > > >
> > > > >
> > > > > Regards,
> > > > > Tejas
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > regards,
> > > >
> > > > punith s
> > > > cloudbyte.com
> > > >
> > >
> >
>

Re: Unable to deploy systemvms

Posted by Tejas Gadaria <re...@gmail.com>.
Hi Yitao,

xenbr0 : acting as Management network and no VLAN is assigned to it
xenbr1 : acting as public, guest storage network. All of this are in same
VLAN.
Also I have given same "name-label" as here in Cloudstack network
configuraion.

I don't know much about xen VLAN networking..if anything wrong please
point it out.

[root@xen-dev ~]# xe network-list
uuid ( RO)                : bfb89346-9eae-4554-a46a-59f9b4587983
          name-label ( RW): cloud_link_local_network
    name-description ( RW): link local network used by system vms
              bridge ( RO): xapi0


uuid ( RO)                : eeb9fb94-7468-6b78-aaae-8d4e84b48afd
          name-label ( RW): Host internal management network
    name-description ( RW): Network on which guests will be assigned a
private link-local IP address which can be used to talk XenAPI
              bridge ( RO): xenapi


uuid ( RO)                : 90f6f78a-d4d8-463a-ccca-e28f7ea4e7d2
          name-label ( RW): cloud-manage
    name-description ( RW):
              bridge ( RO): xenbr0


uuid ( RO)                : 88f0843e-feb9-44d0-5a04-06f32a258b81
          name-label ( RW): cloud-public
    name-description ( RW):
              bridge ( RO): xenbr1


Regards,
Tejas



On Wed, Apr 2, 2014 at 5:42 PM, Yitao Jiang <wi...@gmail.com> wrote:

> Can you post your network configuration here, and do u able make operation
> on xenseever through xencenter? May be something wrong with ur storage
> On Apr 2, 2014 6:47 PM, "Tejas Gadaria" <re...@gmail.com> wrote:
>
> > Hi Punith,
> >
> > Thanks for reply,
> >
> > I have already uploaded systemvm64template-2014-01-14-master-xen.vhd.bz2
> in
> > secondary .
> >
> > [root@con-xen ~]# ls -lR /vol/
> > /vol/:
> > total 8
> > drwxr-xr-x 2 root root 4096 Apr  2 12:46 primary
> > drwxr-xr-x 3 root root 4096 Apr  2 12:14 secondary
> >
> > /vol/primary:
> > total 4
> > -rw-r--r-- 1 root root 11 Apr  2 16:03
> > hb-ecff5b59-a2bc-4c0c-9ec8-05f7b4cda546
> >
> > /vol/secondary:
> > total 4
> > drwxr-xr-x 3 root root 4096 Apr  2 12:14 template
> >
> > /vol/secondary/template:
> > total 4
> > drwxr-xr-x 3 root root 4096 Apr  2 12:14 tmpl
> >
> > /vol/secondary/template/tmpl:
> > total 4
> > drwxr-xr-x 3 root root 4096 Apr  2 12:14 1
> >
> > /vol/secondary/template/tmpl/1:
> > total 4
> > drwxr-xr-x 2 root root 4096 Apr  2 12:26 1
> >
> > /vol/secondary/template/tmpl/1/1:
> > total 2565016
> > -rw-r--r-- 1 root root 2626564608 Apr  2 12:19
> > 041bb2b7-2c84-4a72-a2bb-573d6c1ba56e.vhd
> > -rw-r--r-- 1 root root        287 Apr  2 12:26 template.properties
> >
> >
> > Regards,
> > Tejas
> >
> >
> > On Wed, Apr 2, 2014 at 3:59 PM, Punith S <pu...@cloudbyte.com> wrote:
> >
> > > hi,
> > >
> > > check whether you have seeded the vdh util for sysytem vms in secondary
> > > storage.
> > >
> > >
> >
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#prepare-the-system-vm-template
> > >
> > > thanks.
> > >
> > >
> > > On Wed, Apr 2, 2014 at 3:54 PM, Tejas Gadaria <re...@gmail.com>
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > I am trying to create system vms, in CS 4.3 with Xenserver 6.2
> > > > I am trying to create advance zone. I have 2nics.
> > > > 1 for management network & second is trunk.
> > > >
> > > > I am getting below error
> > > >
> > > > 2014-04-02 15:18:28,827 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> > > type:Image
> > > > 2014-04-02 15:18:28,831 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> > > > type:Primary
> > > > 2014-04-02 15:18:28,832 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > > > (consoleproxy-1:ctx-774da64a) Found template routing-1 in storage
> pool
> > 1
> > > > with VMTemplateStoragePool id: 4
> > > > 2014-04-02 15:18:28,840 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > > > (consoleproxy-1:ctx-774da64a) Acquire lock on VMTemplateStoragePool 4
> > > with
> > > > timeout 3600 seconds
> > > > 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > > > (DirectAgent-111:ctx-f68bde71) destoryVDIbyNameLabel failed due to
> > there
> > > > are 0 VDIs with name cloud-cff5e443-72df-4aae-a4fd-1278fc0cbeb4
> > > > 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > > > (DirectAgent-111:ctx-f68bde71) can not create vdi in sr
> > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > 2014-04-02 15:18:30,904 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > > > (DirectAgent-111:ctx-f68bde71) Catch Exception
> > > > com.cloud.utils.exception.CloudRuntimeException for template +  due
> to
> > > > com.cloud.utils.exception.CloudRuntimeException: can not create vdi
> in
> > sr
> > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > com.cloud.utils.exception.CloudRuntimeException: can not create vdi
> in
> > sr
> > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:848)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:918)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:75)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:609)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> > > >     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)
> > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
> > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
> > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Processing:  { Ans: ,
> > > > MgmtId: 345049296663, via: 1, Ver: v1, Flags: 10,
> > > >
> > > >
> > >
> >
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
> > > > Exception com.cloud.utils.exception.CloudRuntimeException for
> template
> > +
> > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
> create
> > > vdi
> > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e","wait":0}}] }
> > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> > > (secstorage-1:ctx-4d6c3938)
> > > > Seq 1-524878146: Received:  { Ans: , MgmtId: 345049296663, via: 1,
> Ver:
> > > v1,
> > > > Flags: 10, { CopyCmdAnswer } }
> > > > 2014-04-02 15:18:30,915 INFO  [o.a.c.s.v.VolumeServiceImpl]
> > > > (secstorage-1:ctx-4d6c3938) releasing lock for VMTemplateStoragePool
> 4
> > > > 2014-04-02 15:18:30,915 WARN  [c.c.u.d.Merovingian2]
> > > > (secstorage-1:ctx-4d6c3938) Was unable to find lock for the key
> > > > template_spool_ref4 and thread id 404723302
> > > > 2014-04-02 15:18:30,915 DEBUG [o.a.c.e.o.VolumeOrchestrator]
> > > > (secstorage-1:ctx-4d6c3938) Unable to create Vol[5|vm=5|ROOT]:Catch
> > > > Exception com.cloud.utils.exception.CloudRuntimeException for
> template
> > +
> > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
> create
> > > vdi
> > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > 2014-04-02 15:18:30,915 INFO  [c.c.v.VirtualMachineManagerImpl]
> > > > (secstorage-1:ctx-4d6c3938) Unable to contact resource.
> > > > com.cloud.exception.StorageUnavailableException: Resource
> > [StoragePool:1]
> > > > is unreachable: Unable to create Vol[5|vm=5|ROOT]:Catch Exception
> > > > com.cloud.utils.exception.CloudRuntimeException for template +  due
> to
> > > > com.cloud.utils.exception.CloudRuntimeException: can not create vdi
> in
> > sr
> > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:745)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:261)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:694)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1278)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
> > > >     at
> > > >
> com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:111)
> > > >     at
> > > >
> > com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:35)
> > > >     at
> > > >
> > com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:88)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.vm.SystemVmLoadScanner$1.runInContext(SystemVmLoadScanner.java:79)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> > > >     at
> > > >
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> > > >     at
> > > >
> > >
> >
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
> > > >     at
> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
> > > >     at
> > > >
> > > >
> > >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
> > > >     at
> > > >
> > > >
> > >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
> > > >     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)
> > > > 2014-04-02 15:18:30,920 DEBUG [c.c.v.VirtualMachineManagerImpl]
> > > > (secstorage-1:ctx-4d6c3938) Cleaning up resources for the vm
> > > > VM[SecondaryStorageVm|s-5-VM] in Starting state
> > > >
> > > >
> > > >
> > > > Regards,
> > > > Tejas
> > > >
> > >
> > >
> > >
> > > --
> > > regards,
> > >
> > > punith s
> > > cloudbyte.com
> > >
> >
>

Re: Unable to deploy systemvms

Posted by Tejas Gadaria <re...@gmail.com>.
Hi Yitao,

xenbr0 : acting as Management network and no VLAN is assigned to it
xenbr1 : acting as public, guest storage network. All of this are in same
VLAN.
Also I have given same "name-label" as here in Cloudstack network
configuraion.

I don't know much about xen VLAN networking..if anything wrong please
point it out.

[root@xen-dev ~]# xe network-list
uuid ( RO)                : bfb89346-9eae-4554-a46a-59f9b4587983
          name-label ( RW): cloud_link_local_network
    name-description ( RW): link local network used by system vms
              bridge ( RO): xapi0


uuid ( RO)                : eeb9fb94-7468-6b78-aaae-8d4e84b48afd
          name-label ( RW): Host internal management network
    name-description ( RW): Network on which guests will be assigned a
private link-local IP address which can be used to talk XenAPI
              bridge ( RO): xenapi


uuid ( RO)                : 90f6f78a-d4d8-463a-ccca-e28f7ea4e7d2
          name-label ( RW): cloud-manage
    name-description ( RW):
              bridge ( RO): xenbr0


uuid ( RO)                : 88f0843e-feb9-44d0-5a04-06f32a258b81
          name-label ( RW): cloud-public
    name-description ( RW):
              bridge ( RO): xenbr1


Regards,
Tejas



On Wed, Apr 2, 2014 at 5:42 PM, Yitao Jiang <wi...@gmail.com> wrote:

> Can you post your network configuration here, and do u able make operation
> on xenseever through xencenter? May be something wrong with ur storage
> On Apr 2, 2014 6:47 PM, "Tejas Gadaria" <re...@gmail.com> wrote:
>
> > Hi Punith,
> >
> > Thanks for reply,
> >
> > I have already uploaded systemvm64template-2014-01-14-master-xen.vhd.bz2
> in
> > secondary .
> >
> > [root@con-xen ~]# ls -lR /vol/
> > /vol/:
> > total 8
> > drwxr-xr-x 2 root root 4096 Apr  2 12:46 primary
> > drwxr-xr-x 3 root root 4096 Apr  2 12:14 secondary
> >
> > /vol/primary:
> > total 4
> > -rw-r--r-- 1 root root 11 Apr  2 16:03
> > hb-ecff5b59-a2bc-4c0c-9ec8-05f7b4cda546
> >
> > /vol/secondary:
> > total 4
> > drwxr-xr-x 3 root root 4096 Apr  2 12:14 template
> >
> > /vol/secondary/template:
> > total 4
> > drwxr-xr-x 3 root root 4096 Apr  2 12:14 tmpl
> >
> > /vol/secondary/template/tmpl:
> > total 4
> > drwxr-xr-x 3 root root 4096 Apr  2 12:14 1
> >
> > /vol/secondary/template/tmpl/1:
> > total 4
> > drwxr-xr-x 2 root root 4096 Apr  2 12:26 1
> >
> > /vol/secondary/template/tmpl/1/1:
> > total 2565016
> > -rw-r--r-- 1 root root 2626564608 Apr  2 12:19
> > 041bb2b7-2c84-4a72-a2bb-573d6c1ba56e.vhd
> > -rw-r--r-- 1 root root        287 Apr  2 12:26 template.properties
> >
> >
> > Regards,
> > Tejas
> >
> >
> > On Wed, Apr 2, 2014 at 3:59 PM, Punith S <pu...@cloudbyte.com> wrote:
> >
> > > hi,
> > >
> > > check whether you have seeded the vdh util for sysytem vms in secondary
> > > storage.
> > >
> > >
> >
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#prepare-the-system-vm-template
> > >
> > > thanks.
> > >
> > >
> > > On Wed, Apr 2, 2014 at 3:54 PM, Tejas Gadaria <re...@gmail.com>
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > I am trying to create system vms, in CS 4.3 with Xenserver 6.2
> > > > I am trying to create advance zone. I have 2nics.
> > > > 1 for management network & second is trunk.
> > > >
> > > > I am getting below error
> > > >
> > > > 2014-04-02 15:18:28,827 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> > > type:Image
> > > > 2014-04-02 15:18:28,831 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> > > > type:Primary
> > > > 2014-04-02 15:18:28,832 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > > > (consoleproxy-1:ctx-774da64a) Found template routing-1 in storage
> pool
> > 1
> > > > with VMTemplateStoragePool id: 4
> > > > 2014-04-02 15:18:28,840 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > > > (consoleproxy-1:ctx-774da64a) Acquire lock on VMTemplateStoragePool 4
> > > with
> > > > timeout 3600 seconds
> > > > 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > > > (DirectAgent-111:ctx-f68bde71) destoryVDIbyNameLabel failed due to
> > there
> > > > are 0 VDIs with name cloud-cff5e443-72df-4aae-a4fd-1278fc0cbeb4
> > > > 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > > > (DirectAgent-111:ctx-f68bde71) can not create vdi in sr
> > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > 2014-04-02 15:18:30,904 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > > > (DirectAgent-111:ctx-f68bde71) Catch Exception
> > > > com.cloud.utils.exception.CloudRuntimeException for template +  due
> to
> > > > com.cloud.utils.exception.CloudRuntimeException: can not create vdi
> in
> > sr
> > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > com.cloud.utils.exception.CloudRuntimeException: can not create vdi
> in
> > sr
> > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:848)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:918)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:75)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:609)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> > > >     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)
> > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
> > > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
> > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> > > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Processing:  { Ans: ,
> > > > MgmtId: 345049296663, via: 1, Ver: v1, Flags: 10,
> > > >
> > > >
> > >
> >
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
> > > > Exception com.cloud.utils.exception.CloudRuntimeException for
> template
> > +
> > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
> create
> > > vdi
> > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e","wait":0}}] }
> > > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> > > (secstorage-1:ctx-4d6c3938)
> > > > Seq 1-524878146: Received:  { Ans: , MgmtId: 345049296663, via: 1,
> Ver:
> > > v1,
> > > > Flags: 10, { CopyCmdAnswer } }
> > > > 2014-04-02 15:18:30,915 INFO  [o.a.c.s.v.VolumeServiceImpl]
> > > > (secstorage-1:ctx-4d6c3938) releasing lock for VMTemplateStoragePool
> 4
> > > > 2014-04-02 15:18:30,915 WARN  [c.c.u.d.Merovingian2]
> > > > (secstorage-1:ctx-4d6c3938) Was unable to find lock for the key
> > > > template_spool_ref4 and thread id 404723302
> > > > 2014-04-02 15:18:30,915 DEBUG [o.a.c.e.o.VolumeOrchestrator]
> > > > (secstorage-1:ctx-4d6c3938) Unable to create Vol[5|vm=5|ROOT]:Catch
> > > > Exception com.cloud.utils.exception.CloudRuntimeException for
> template
> > +
> > > > due to com.cloud.utils.exception.CloudRuntimeException: can not
> create
> > > vdi
> > > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e
> > > > 2014-04-02 15:18:30,915 INFO  [c.c.v.VirtualMachineManagerImpl]
> > > > (secstorage-1:ctx-4d6c3938) Unable to contact resource.
> > > > com.cloud.exception.StorageUnavailableException: Resource
> > [StoragePool:1]
> > > > is unreachable: Unable to create Vol[5|vm=5|ROOT]:Catch Exception
> > > > com.cloud.utils.exception.CloudRuntimeException for template +  due
> to
> > > > com.cloud.utils.exception.CloudRuntimeException: can not create vdi
> in
> > sr
> > > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:745)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:261)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:694)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1278)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
> > > >     at
> > > >
> com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:111)
> > > >     at
> > > >
> > com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:35)
> > > >     at
> > > >
> > com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:88)
> > > >     at
> > > >
> > > >
> > >
> >
> com.cloud.vm.SystemVmLoadScanner$1.runInContext(SystemVmLoadScanner.java:79)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> > > >     at
> > > >
> > > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> > > >     at
> > > >
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> > > >     at
> > > >
> > >
> >
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
> > > >     at
> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
> > > >     at
> > > >
> > > >
> > >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
> > > >     at
> > > >
> > > >
> > >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
> > > >     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)
> > > > 2014-04-02 15:18:30,920 DEBUG [c.c.v.VirtualMachineManagerImpl]
> > > > (secstorage-1:ctx-4d6c3938) Cleaning up resources for the vm
> > > > VM[SecondaryStorageVm|s-5-VM] in Starting state
> > > >
> > > >
> > > >
> > > > Regards,
> > > > Tejas
> > > >
> > >
> > >
> > >
> > > --
> > > regards,
> > >
> > > punith s
> > > cloudbyte.com
> > >
> >
>

Re: Unable to deploy systemvms

Posted by Yitao Jiang <wi...@gmail.com>.
Can you post your network configuration here, and do u able make operation
on xenseever through xencenter? May be something wrong with ur storage
On Apr 2, 2014 6:47 PM, "Tejas Gadaria" <re...@gmail.com> wrote:

> Hi Punith,
>
> Thanks for reply,
>
> I have already uploaded systemvm64template-2014-01-14-master-xen.vhd.bz2 in
> secondary .
>
> [root@con-xen ~]# ls -lR /vol/
> /vol/:
> total 8
> drwxr-xr-x 2 root root 4096 Apr  2 12:46 primary
> drwxr-xr-x 3 root root 4096 Apr  2 12:14 secondary
>
> /vol/primary:
> total 4
> -rw-r--r-- 1 root root 11 Apr  2 16:03
> hb-ecff5b59-a2bc-4c0c-9ec8-05f7b4cda546
>
> /vol/secondary:
> total 4
> drwxr-xr-x 3 root root 4096 Apr  2 12:14 template
>
> /vol/secondary/template:
> total 4
> drwxr-xr-x 3 root root 4096 Apr  2 12:14 tmpl
>
> /vol/secondary/template/tmpl:
> total 4
> drwxr-xr-x 3 root root 4096 Apr  2 12:14 1
>
> /vol/secondary/template/tmpl/1:
> total 4
> drwxr-xr-x 2 root root 4096 Apr  2 12:26 1
>
> /vol/secondary/template/tmpl/1/1:
> total 2565016
> -rw-r--r-- 1 root root 2626564608 Apr  2 12:19
> 041bb2b7-2c84-4a72-a2bb-573d6c1ba56e.vhd
> -rw-r--r-- 1 root root        287 Apr  2 12:26 template.properties
>
>
> Regards,
> Tejas
>
>
> On Wed, Apr 2, 2014 at 3:59 PM, Punith S <pu...@cloudbyte.com> wrote:
>
> > hi,
> >
> > check whether you have seeded the vdh util for sysytem vms in secondary
> > storage.
> >
> >
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#prepare-the-system-vm-template
> >
> > thanks.
> >
> >
> > On Wed, Apr 2, 2014 at 3:54 PM, Tejas Gadaria <re...@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > I am trying to create system vms, in CS 4.3 with Xenserver 6.2
> > > I am trying to create advance zone. I have 2nics.
> > > 1 for management network & second is trunk.
> > >
> > > I am getting below error
> > >
> > > 2014-04-02 15:18:28,827 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> > type:Image
> > > 2014-04-02 15:18:28,831 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> > > type:Primary
> > > 2014-04-02 15:18:28,832 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > > (consoleproxy-1:ctx-774da64a) Found template routing-1 in storage pool
> 1
> > > with VMTemplateStoragePool id: 4
> > > 2014-04-02 15:18:28,840 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > > (consoleproxy-1:ctx-774da64a) Acquire lock on VMTemplateStoragePool 4
> > with
> > > timeout 3600 seconds
> > > 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > > (DirectAgent-111:ctx-f68bde71) destoryVDIbyNameLabel failed due to
> there
> > > are 0 VDIs with name cloud-cff5e443-72df-4aae-a4fd-1278fc0cbeb4
> > > 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > > (DirectAgent-111:ctx-f68bde71) can not create vdi in sr
> > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > 2014-04-02 15:18:30,904 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > > (DirectAgent-111:ctx-f68bde71) Catch Exception
> > > com.cloud.utils.exception.CloudRuntimeException for template +  due to
> > > com.cloud.utils.exception.CloudRuntimeException: can not create vdi in
> sr
> > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > > com.cloud.utils.exception.CloudRuntimeException: can not create vdi in
> sr
> > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > >     at
> > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:848)
> > >     at
> > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:918)
> > >     at
> > >
> > >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:75)
> > >     at
> > >
> > >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
> > >     at
> > >
> > >
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:609)
> > >     at
> > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
> > >     at
> > >
> > >
> >
> com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
> > >     at
> > >
> > >
> >
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> > >     at
> > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> > >     at
> > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> > >     at
> > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> > >     at
> > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> > >     at
> > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> > >     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)
> > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
> > > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
> > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> > > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Processing:  { Ans: ,
> > > MgmtId: 345049296663, via: 1, Ver: v1, Flags: 10,
> > >
> > >
> >
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
> > > Exception com.cloud.utils.exception.CloudRuntimeException for template
> +
> > > due to com.cloud.utils.exception.CloudRuntimeException: can not create
> > vdi
> > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e","wait":0}}] }
> > > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> > (secstorage-1:ctx-4d6c3938)
> > > Seq 1-524878146: Received:  { Ans: , MgmtId: 345049296663, via: 1, Ver:
> > v1,
> > > Flags: 10, { CopyCmdAnswer } }
> > > 2014-04-02 15:18:30,915 INFO  [o.a.c.s.v.VolumeServiceImpl]
> > > (secstorage-1:ctx-4d6c3938) releasing lock for VMTemplateStoragePool 4
> > > 2014-04-02 15:18:30,915 WARN  [c.c.u.d.Merovingian2]
> > > (secstorage-1:ctx-4d6c3938) Was unable to find lock for the key
> > > template_spool_ref4 and thread id 404723302
> > > 2014-04-02 15:18:30,915 DEBUG [o.a.c.e.o.VolumeOrchestrator]
> > > (secstorage-1:ctx-4d6c3938) Unable to create Vol[5|vm=5|ROOT]:Catch
> > > Exception com.cloud.utils.exception.CloudRuntimeException for template
> +
> > > due to com.cloud.utils.exception.CloudRuntimeException: can not create
> > vdi
> > > in sr d2bf95cc-8761-c31d-37a5-173304cc621e
> > > 2014-04-02 15:18:30,915 INFO  [c.c.v.VirtualMachineManagerImpl]
> > > (secstorage-1:ctx-4d6c3938) Unable to contact resource.
> > > com.cloud.exception.StorageUnavailableException: Resource
> [StoragePool:1]
> > > is unreachable: Unable to create Vol[5|vm=5|ROOT]:Catch Exception
> > > com.cloud.utils.exception.CloudRuntimeException for template +  due to
> > > com.cloud.utils.exception.CloudRuntimeException: can not create vdi in
> sr
> > > d2bf95cc-8761-c31d-37a5-173304cc621e
> > >     at
> > >
> > >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
> > >     at
> > >
> > >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
> > >     at
> > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
> > >     at
> > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
> > >     at
> > >
> > >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:745)
> > >     at
> > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:261)
> > >     at
> > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:694)
> > >     at
> > >
> > >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1278)
> > >     at
> > >
> > >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
> > >     at
> > >
> > >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
> > >     at
> > > com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:111)
> > >     at
> > >
> com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:35)
> > >     at
> > >
> com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:88)
> > >     at
> > >
> > >
> >
> com.cloud.vm.SystemVmLoadScanner$1.runInContext(SystemVmLoadScanner.java:79)
> > >     at
> > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> > >     at
> > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> > >     at
> > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> > >     at
> > >
> > >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> > >     at
> > >
> > >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> > >     at
> > > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> > >     at
> > >
> >
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
> > >     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
> > >     at
> > >
> > >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
> > >     at
> > >
> > >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
> > >     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)
> > > 2014-04-02 15:18:30,920 DEBUG [c.c.v.VirtualMachineManagerImpl]
> > > (secstorage-1:ctx-4d6c3938) Cleaning up resources for the vm
> > > VM[SecondaryStorageVm|s-5-VM] in Starting state
> > >
> > >
> > >
> > > Regards,
> > > Tejas
> > >
> >
> >
> >
> > --
> > regards,
> >
> > punith s
> > cloudbyte.com
> >
>

Re: Unable to deploy systemvms

Posted by Tejas Gadaria <re...@gmail.com>.
Hi Punith,

Thanks for reply,

I have already uploaded systemvm64template-2014-01-14-master-xen.vhd.bz2 in
secondary .

[root@con-xen ~]# ls -lR /vol/
/vol/:
total 8
drwxr-xr-x 2 root root 4096 Apr  2 12:46 primary
drwxr-xr-x 3 root root 4096 Apr  2 12:14 secondary

/vol/primary:
total 4
-rw-r--r-- 1 root root 11 Apr  2 16:03
hb-ecff5b59-a2bc-4c0c-9ec8-05f7b4cda546

/vol/secondary:
total 4
drwxr-xr-x 3 root root 4096 Apr  2 12:14 template

/vol/secondary/template:
total 4
drwxr-xr-x 3 root root 4096 Apr  2 12:14 tmpl

/vol/secondary/template/tmpl:
total 4
drwxr-xr-x 3 root root 4096 Apr  2 12:14 1

/vol/secondary/template/tmpl/1:
total 4
drwxr-xr-x 2 root root 4096 Apr  2 12:26 1

/vol/secondary/template/tmpl/1/1:
total 2565016
-rw-r--r-- 1 root root 2626564608 Apr  2 12:19
041bb2b7-2c84-4a72-a2bb-573d6c1ba56e.vhd
-rw-r--r-- 1 root root        287 Apr  2 12:26 template.properties


Regards,
Tejas


On Wed, Apr 2, 2014 at 3:59 PM, Punith S <pu...@cloudbyte.com> wrote:

> hi,
>
> check whether you have seeded the vdh util for sysytem vms in secondary
> storage.
>
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#prepare-the-system-vm-template
>
> thanks.
>
>
> On Wed, Apr 2, 2014 at 3:54 PM, Tejas Gadaria <re...@gmail.com>
> wrote:
>
> > Hi,
> >
> > I am trying to create system vms, in CS 4.3 with Xenserver 6.2
> > I am trying to create advance zone. I have 2nics.
> > 1 for management network & second is trunk.
> >
> > I am getting below error
> >
> > 2014-04-02 15:18:28,827 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> type:Image
> > 2014-04-02 15:18:28,831 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> > type:Primary
> > 2014-04-02 15:18:28,832 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > (consoleproxy-1:ctx-774da64a) Found template routing-1 in storage pool 1
> > with VMTemplateStoragePool id: 4
> > 2014-04-02 15:18:28,840 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > (consoleproxy-1:ctx-774da64a) Acquire lock on VMTemplateStoragePool 4
> with
> > timeout 3600 seconds
> > 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > (DirectAgent-111:ctx-f68bde71) destoryVDIbyNameLabel failed due to there
> > are 0 VDIs with name cloud-cff5e443-72df-4aae-a4fd-1278fc0cbeb4
> > 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > (DirectAgent-111:ctx-f68bde71) can not create vdi in sr
> > d2bf95cc-8761-c31d-37a5-173304cc621e
> > 2014-04-02 15:18:30,904 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > (DirectAgent-111:ctx-f68bde71) Catch Exception
> > com.cloud.utils.exception.CloudRuntimeException for template +  due to
> > com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
> > d2bf95cc-8761-c31d-37a5-173304cc621e
> > com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
> > d2bf95cc-8761-c31d-37a5-173304cc621e
> >     at
> >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:848)
> >     at
> >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:918)
> >     at
> >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:75)
> >     at
> >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
> >     at
> >
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:609)
> >     at
> >
> >
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
> >     at
> >
> >
> com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
> >     at
> >
> >
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> >     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)
> > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
> > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
> > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Processing:  { Ans: ,
> > MgmtId: 345049296663, via: 1, Ver: v1, Flags: 10,
> >
> >
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
> > Exception com.cloud.utils.exception.CloudRuntimeException for template +
> > due to com.cloud.utils.exception.CloudRuntimeException: can not create
> vdi
> > in sr d2bf95cc-8761-c31d-37a5-173304cc621e","wait":0}}] }
> > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> (secstorage-1:ctx-4d6c3938)
> > Seq 1-524878146: Received:  { Ans: , MgmtId: 345049296663, via: 1, Ver:
> v1,
> > Flags: 10, { CopyCmdAnswer } }
> > 2014-04-02 15:18:30,915 INFO  [o.a.c.s.v.VolumeServiceImpl]
> > (secstorage-1:ctx-4d6c3938) releasing lock for VMTemplateStoragePool 4
> > 2014-04-02 15:18:30,915 WARN  [c.c.u.d.Merovingian2]
> > (secstorage-1:ctx-4d6c3938) Was unable to find lock for the key
> > template_spool_ref4 and thread id 404723302
> > 2014-04-02 15:18:30,915 DEBUG [o.a.c.e.o.VolumeOrchestrator]
> > (secstorage-1:ctx-4d6c3938) Unable to create Vol[5|vm=5|ROOT]:Catch
> > Exception com.cloud.utils.exception.CloudRuntimeException for template +
> > due to com.cloud.utils.exception.CloudRuntimeException: can not create
> vdi
> > in sr d2bf95cc-8761-c31d-37a5-173304cc621e
> > 2014-04-02 15:18:30,915 INFO  [c.c.v.VirtualMachineManagerImpl]
> > (secstorage-1:ctx-4d6c3938) Unable to contact resource.
> > com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1]
> > is unreachable: Unable to create Vol[5|vm=5|ROOT]:Catch Exception
> > com.cloud.utils.exception.CloudRuntimeException for template +  due to
> > com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
> > d2bf95cc-8761-c31d-37a5-173304cc621e
> >     at
> >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
> >     at
> >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
> >     at
> >
> >
> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
> >     at
> >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
> >     at
> >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:745)
> >     at
> >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:261)
> >     at
> >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:694)
> >     at
> >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1278)
> >     at
> >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
> >     at
> >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
> >     at
> > com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:111)
> >     at
> > com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:35)
> >     at
> > com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:88)
> >     at
> >
> >
> com.cloud.vm.SystemVmLoadScanner$1.runInContext(SystemVmLoadScanner.java:79)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> >     at
> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> >     at
> >
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
> >     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
> >     at
> >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
> >     at
> >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
> >     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)
> > 2014-04-02 15:18:30,920 DEBUG [c.c.v.VirtualMachineManagerImpl]
> > (secstorage-1:ctx-4d6c3938) Cleaning up resources for the vm
> > VM[SecondaryStorageVm|s-5-VM] in Starting state
> >
> >
> >
> > Regards,
> > Tejas
> >
>
>
>
> --
> regards,
>
> punith s
> cloudbyte.com
>

Re: Unable to deploy systemvms

Posted by Tejas Gadaria <re...@gmail.com>.
Hi Punith,

Thanks for reply,

I have already uploaded systemvm64template-2014-01-14-master-xen.vhd.bz2 in
secondary .

[root@con-xen ~]# ls -lR /vol/
/vol/:
total 8
drwxr-xr-x 2 root root 4096 Apr  2 12:46 primary
drwxr-xr-x 3 root root 4096 Apr  2 12:14 secondary

/vol/primary:
total 4
-rw-r--r-- 1 root root 11 Apr  2 16:03
hb-ecff5b59-a2bc-4c0c-9ec8-05f7b4cda546

/vol/secondary:
total 4
drwxr-xr-x 3 root root 4096 Apr  2 12:14 template

/vol/secondary/template:
total 4
drwxr-xr-x 3 root root 4096 Apr  2 12:14 tmpl

/vol/secondary/template/tmpl:
total 4
drwxr-xr-x 3 root root 4096 Apr  2 12:14 1

/vol/secondary/template/tmpl/1:
total 4
drwxr-xr-x 2 root root 4096 Apr  2 12:26 1

/vol/secondary/template/tmpl/1/1:
total 2565016
-rw-r--r-- 1 root root 2626564608 Apr  2 12:19
041bb2b7-2c84-4a72-a2bb-573d6c1ba56e.vhd
-rw-r--r-- 1 root root        287 Apr  2 12:26 template.properties


Regards,
Tejas


On Wed, Apr 2, 2014 at 3:59 PM, Punith S <pu...@cloudbyte.com> wrote:

> hi,
>
> check whether you have seeded the vdh util for sysytem vms in secondary
> storage.
>
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#prepare-the-system-vm-template
>
> thanks.
>
>
> On Wed, Apr 2, 2014 at 3:54 PM, Tejas Gadaria <re...@gmail.com>
> wrote:
>
> > Hi,
> >
> > I am trying to create system vms, in CS 4.3 with Xenserver 6.2
> > I am trying to create advance zone. I have 2nics.
> > 1 for management network & second is trunk.
> >
> > I am getting below error
> >
> > 2014-04-02 15:18:28,827 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> type:Image
> > 2014-04-02 15:18:28,831 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> > (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> > type:Primary
> > 2014-04-02 15:18:28,832 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > (consoleproxy-1:ctx-774da64a) Found template routing-1 in storage pool 1
> > with VMTemplateStoragePool id: 4
> > 2014-04-02 15:18:28,840 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> > (consoleproxy-1:ctx-774da64a) Acquire lock on VMTemplateStoragePool 4
> with
> > timeout 3600 seconds
> > 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > (DirectAgent-111:ctx-f68bde71) destoryVDIbyNameLabel failed due to there
> > are 0 VDIs with name cloud-cff5e443-72df-4aae-a4fd-1278fc0cbeb4
> > 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > (DirectAgent-111:ctx-f68bde71) can not create vdi in sr
> > d2bf95cc-8761-c31d-37a5-173304cc621e
> > 2014-04-02 15:18:30,904 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> > (DirectAgent-111:ctx-f68bde71) Catch Exception
> > com.cloud.utils.exception.CloudRuntimeException for template +  due to
> > com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
> > d2bf95cc-8761-c31d-37a5-173304cc621e
> > com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
> > d2bf95cc-8761-c31d-37a5-173304cc621e
> >     at
> >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:848)
> >     at
> >
> >
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:918)
> >     at
> >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:75)
> >     at
> >
> >
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
> >     at
> >
> >
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:609)
> >     at
> >
> >
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
> >     at
> >
> >
> com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
> >     at
> >
> >
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> >     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)
> > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
> > 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
> > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> > (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Processing:  { Ans: ,
> > MgmtId: 345049296663, via: 1, Ver: v1, Flags: 10,
> >
> >
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
> > Exception com.cloud.utils.exception.CloudRuntimeException for template +
> > due to com.cloud.utils.exception.CloudRuntimeException: can not create
> vdi
> > in sr d2bf95cc-8761-c31d-37a5-173304cc621e","wait":0}}] }
> > 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> (secstorage-1:ctx-4d6c3938)
> > Seq 1-524878146: Received:  { Ans: , MgmtId: 345049296663, via: 1, Ver:
> v1,
> > Flags: 10, { CopyCmdAnswer } }
> > 2014-04-02 15:18:30,915 INFO  [o.a.c.s.v.VolumeServiceImpl]
> > (secstorage-1:ctx-4d6c3938) releasing lock for VMTemplateStoragePool 4
> > 2014-04-02 15:18:30,915 WARN  [c.c.u.d.Merovingian2]
> > (secstorage-1:ctx-4d6c3938) Was unable to find lock for the key
> > template_spool_ref4 and thread id 404723302
> > 2014-04-02 15:18:30,915 DEBUG [o.a.c.e.o.VolumeOrchestrator]
> > (secstorage-1:ctx-4d6c3938) Unable to create Vol[5|vm=5|ROOT]:Catch
> > Exception com.cloud.utils.exception.CloudRuntimeException for template +
> > due to com.cloud.utils.exception.CloudRuntimeException: can not create
> vdi
> > in sr d2bf95cc-8761-c31d-37a5-173304cc621e
> > 2014-04-02 15:18:30,915 INFO  [c.c.v.VirtualMachineManagerImpl]
> > (secstorage-1:ctx-4d6c3938) Unable to contact resource.
> > com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1]
> > is unreachable: Unable to create Vol[5|vm=5|ROOT]:Catch Exception
> > com.cloud.utils.exception.CloudRuntimeException for template +  due to
> > com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
> > d2bf95cc-8761-c31d-37a5-173304cc621e
> >     at
> >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
> >     at
> >
> >
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
> >     at
> >
> >
> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
> >     at
> >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
> >     at
> >
> >
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:745)
> >     at
> >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:261)
> >     at
> >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:694)
> >     at
> >
> >
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1278)
> >     at
> >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
> >     at
> >
> >
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
> >     at
> > com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:111)
> >     at
> > com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:35)
> >     at
> > com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:88)
> >     at
> >
> >
> com.cloud.vm.SystemVmLoadScanner$1.runInContext(SystemVmLoadScanner.java:79)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> >     at
> >
> >
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
> >     at
> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> >     at
> >
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
> >     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
> >     at
> >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
> >     at
> >
> >
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
> >     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)
> > 2014-04-02 15:18:30,920 DEBUG [c.c.v.VirtualMachineManagerImpl]
> > (secstorage-1:ctx-4d6c3938) Cleaning up resources for the vm
> > VM[SecondaryStorageVm|s-5-VM] in Starting state
> >
> >
> >
> > Regards,
> > Tejas
> >
>
>
>
> --
> regards,
>
> punith s
> cloudbyte.com
>

Re: Unable to deploy systemvms

Posted by Punith S <pu...@cloudbyte.com>.
hi,

check whether you have seeded the vdh util for sysytem vms in secondary
storage.
http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#prepare-the-system-vm-template

thanks.


On Wed, Apr 2, 2014 at 3:54 PM, Tejas Gadaria <re...@gmail.com> wrote:

> Hi,
>
> I am trying to create system vms, in CS 4.3 with Xenserver 6.2
> I am trying to create advance zone. I have 2nics.
> 1 for management network & second is trunk.
>
> I am getting below error
>
> 2014-04-02 15:18:28,827 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> (consoleproxy-1:ctx-774da64a) template 1 is already in store:1, type:Image
> 2014-04-02 15:18:28,831 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl]
> (consoleproxy-1:ctx-774da64a) template 1 is already in store:1,
> type:Primary
> 2014-04-02 15:18:28,832 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> (consoleproxy-1:ctx-774da64a) Found template routing-1 in storage pool 1
> with VMTemplateStoragePool id: 4
> 2014-04-02 15:18:28,840 DEBUG [o.a.c.s.v.VolumeServiceImpl]
> (consoleproxy-1:ctx-774da64a) Acquire lock on VMTemplateStoragePool 4 with
> timeout 3600 seconds
> 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> (DirectAgent-111:ctx-f68bde71) destoryVDIbyNameLabel failed due to there
> are 0 VDIs with name cloud-cff5e443-72df-4aae-a4fd-1278fc0cbeb4
> 2014-04-02 15:18:30,903 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> (DirectAgent-111:ctx-f68bde71) can not create vdi in sr
> d2bf95cc-8761-c31d-37a5-173304cc621e
> 2014-04-02 15:18:30,904 WARN  [c.c.h.x.r.XenServerStorageProcessor]
> (DirectAgent-111:ctx-f68bde71) Catch Exception
> com.cloud.utils.exception.CloudRuntimeException for template +  due to
> com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
> d2bf95cc-8761-c31d-37a5-173304cc621e
> com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
> d2bf95cc-8761-c31d-37a5-173304cc621e
>     at
>
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copy_vhd_from_secondarystorage(XenServerStorageProcessor.java:848)
>     at
>
> com.cloud.hypervisor.xen.resource.XenServerStorageProcessor.copyTemplateToPrimaryStorage(XenServerStorageProcessor.java:918)
>     at
>
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:75)
>     at
>
> com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:50)
>     at
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:609)
>     at
>
> com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
>     at
>
> com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
>     at
>
> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
>     at
>
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>     at
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>     at
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>     at
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>     at
>
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>     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)
> 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
> 2014-04-02 15:18:30,904 DEBUG [c.c.a.m.DirectAgentAttache]
> (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Response Received:
> 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request]
> (DirectAgent-111:ctx-f68bde71) Seq 1-524878146: Processing:  { Ans: ,
> MgmtId: 345049296663, via: 1, Ver: v1, Flags: 10,
>
> [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Catch
> Exception com.cloud.utils.exception.CloudRuntimeException for template +
> due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi
> in sr d2bf95cc-8761-c31d-37a5-173304cc621e","wait":0}}] }
> 2014-04-02 15:18:30,905 DEBUG [c.c.a.t.Request] (secstorage-1:ctx-4d6c3938)
> Seq 1-524878146: Received:  { Ans: , MgmtId: 345049296663, via: 1, Ver: v1,
> Flags: 10, { CopyCmdAnswer } }
> 2014-04-02 15:18:30,915 INFO  [o.a.c.s.v.VolumeServiceImpl]
> (secstorage-1:ctx-4d6c3938) releasing lock for VMTemplateStoragePool 4
> 2014-04-02 15:18:30,915 WARN  [c.c.u.d.Merovingian2]
> (secstorage-1:ctx-4d6c3938) Was unable to find lock for the key
> template_spool_ref4 and thread id 404723302
> 2014-04-02 15:18:30,915 DEBUG [o.a.c.e.o.VolumeOrchestrator]
> (secstorage-1:ctx-4d6c3938) Unable to create Vol[5|vm=5|ROOT]:Catch
> Exception com.cloud.utils.exception.CloudRuntimeException for template +
> due to com.cloud.utils.exception.CloudRuntimeException: can not create vdi
> in sr d2bf95cc-8761-c31d-37a5-173304cc621e
> 2014-04-02 15:18:30,915 INFO  [c.c.v.VirtualMachineManagerImpl]
> (secstorage-1:ctx-4d6c3938) Unable to contact resource.
> com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1]
> is unreachable: Unable to create Vol[5|vm=5|ROOT]:Catch Exception
> com.cloud.utils.exception.CloudRuntimeException for template +  due to
> com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
> d2bf95cc-8761-c31d-37a5-173304cc621e
>     at
>
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1202)
>     at
>
> org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1254)
>     at
>
> com.cloud.vm.VirtualMachineManagerImpl.orchestrateStart(VirtualMachineManagerImpl.java:962)
>     at
>
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:761)
>     at
>
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:745)
>     at
>
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.startSecStorageVm(SecondaryStorageManagerImpl.java:261)
>     at
>
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.allocCapacity(SecondaryStorageManagerImpl.java:694)
>     at
>
> com.cloud.storage.secondary.SecondaryStorageManagerImpl.expandPool(SecondaryStorageManagerImpl.java:1278)
>     at
>
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:123)
>     at
>
> com.cloud.secstorage.PremiumSecondaryStorageManagerImpl.scanPool(PremiumSecondaryStorageManagerImpl.java:50)
>     at
> com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:111)
>     at
> com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:35)
>     at
> com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:88)
>     at
>
> com.cloud.vm.SystemVmLoadScanner$1.runInContext(SystemVmLoadScanner.java:79)
>     at
>
> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>     at
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>     at
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>     at
>
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>     at
>
> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>     at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>     at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
>     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
>     at
>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
>     at
>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
>     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)
> 2014-04-02 15:18:30,920 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (secstorage-1:ctx-4d6c3938) Cleaning up resources for the vm
> VM[SecondaryStorageVm|s-5-VM] in Starting state
>
>
>
> Regards,
> Tejas
>



-- 
regards,

punith s
cloudbyte.com