RE: Unable to deploy vm

2014-03-02 Thread Sanjeev Neelarapu
Hi Tejas,

It is recommended to use a clean secondary storage for storing all the 
artificats, otherwise CS might overwrite since it follows standard directory 
structure for storing templates. So please clean your storage before adding it 
to CS.

Thanks,
Sanjeev 

-Original Message-
From: Tejas Gadaria [mailto:refond.g...@gmail.com] 
Sent: Friday, February 28, 2014 10:54 AM
To: users@cloudstack.apache.org; d...@cloudstack.apache.org
Subject: Re: Unable to deploy vm

Hi,

Please ignore previous mail,
I think I misunderstood & deleted stale sysetmvm.iso. Still I am facing same 
error .

So Under "Templates" do I need to delete all guest vm templates?
do I need to delete " CentOS 5.3(64bit) no GUI (vSphere)" ?

Regards,
Tejas



On Thu, Feb 27, 2014 at 2:53 PM, Tejas Gadaria wrote:

> Hi Sailaja & Sanjeev,
>
> Thanks for replay,
>
> It  worked for me. My network it very slow so I could not verify at 
> this time.
> But yeah it's not throwing error at that point.
>
> Regards,
> Tejas
>
>
>
>
> On Thu, Feb 27, 2014 at 11:56 AM, Sailaja Mada wrote:
>
>> Hi,
>>
>> Root cause and workaround are listed in the bug details @
>> https://issues.apache.org/jira/browse/CLOUDSTACK-1403?focusedCommentI
>> d=13588714&page=com.atlassian.jira.plugin.system.issuetabpanels:comme
>> nt-tabpanel#comment-13588714
>>
>>
>> =
>> ===
>> Analysis & Root cause:-
>> Due to connection issues the first attempt to download template from 
>> secondary storage failed while importing OVA template.
>> This left a stale template object in the datacenter. Next attempt to 
>> download the template has returned success as only existance of 
>> template with the specific uuid is checked. No more attempts made to 
>> setup the template again.
>> The answer shows template size as 0. Atleast at this point the 
>> corruption in template should have been detected.
>> The answer from logs is -
>> [{"storage.PrimaryStorageDownloadAnswer":{"installPath":"e372770297f7
>> 3702b26a7898d041f3f8","templateSize":0,"result":true,"wait":0}}]
>> }
>> Any subsequent VM deployment would look to create a volume from this 
>> template which fails as expected. After a successful import of OVA on 
>> primary storage, a snapshot is taken to create a base snapshot from 
>> which volumes are created. But due to IOException encountered while 
>> uploading the file to URL this snapshot attempt was not made.
>>
>> Fix:-
>> Handle IOException while uploading template to primary storage URL 
>> and cleanup stale template. Working on unit testing now.
>>
>> We have work around for this issue. Delete the stale template that 
>> was created in datacenter due to failed PrimaryStorageDownloadCommand.
>> Subsequently a template would be setup again freshly.
>>
>> =
>> ===
>>
>>
>> Thanks,
>> Sailaja.M
>>
>> -Original Message-
>> From: Tejas Gadaria [mailto:refond.g...@gmail.com]
>> Sent: 27 February 2014 10:35
>> To: users@cloudstack.apache.org
>> Subject: Re: Unable to deploy vm
>>
>> Hi,
>> thanks for replay,
>>
>> Is there any workaround for this ?
>> OR
>> how can I update 4.0.2 to 4.1.0 ?
>>
>> Regards,
>> Tejas
>>
>>
>> On Wed, Feb 26, 2014 at 2:55 PM, Sailaja Mada 
>> > >wrote:
>>
>> > Hi,
>> >
>> > Error log seems to be same as the bug @
>> > https://issues.apache.org/jira/browse/CLOUDSTACK-1403 - This got 
>> > fixed in
>> > 4.1.0 .
>> >
>> > Thanks,
>> > Sailaja.M
>> >
>> >
>> > -Original Message-
>> > From: Tejas Gadaria [mailto:refond.g...@gmail.com]
>> > Sent: 26 February 2014 13:21
>> > To: users@cloudstack.apache.org
>> > Subject: Unable to deploy vm
>> >
>> > Hi,
>> >
>> > I am using CS 4.0.3 with vmware hypervisor.
>> >
>> > SSVM and CPVM is running both public and private IP are pinging 
>> > from management server.
>> >
>> > while trying to deploy vm from template, it.s giving ,
>> >
>> > 2014-02-26 12:50:18,182 ERROR [vmware.resource.VmwareResource]
>> > (DirectAgent-418:10.129.150.22) Unable to find template base 
>> > snapshot, invalid template
>> > 2014-02-26 12:50:18,182 ERROR [vmware.resource.VmwareResource]
>> > (DirectAgent-418:10.129.150.22) CreateCommand failed due to Exception:
>> > java.lang.Exception
>> > Message: Unable to find template base snapshot, invalid template
>> >
>> > java.lang.Exception: Unable to find template base snapshot, invalid 
>> > template
>> > at
>> >
>> >
>> com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareRes
>> ource.java:3756)
>> > at
>> >
>> >
>> com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(Vm
>> wareResource.java:335)
>> > at
>> >
>> >
>> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttach
>> e.java:191)
>> > at
>> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> > at
>> java.util.concurrent.F

Re: ALARM - ACS reboots host servers!!!

2014-03-02 Thread Koushik Das
The primary storage needs to be put in maintenance before doing any 
upgrade/reboot as mentioned in the previous mails.

-Koushik

On 03-Mar-2014, at 6:07 AM, Marcus  wrote:

> Also, please note that in the bug you referenced it doesn't have a
> problem with the reboot being triggered, but with the fact that reboot
> never completes due to hanging NFS mount (which is why the reboot
> occurs, inaccessible primary storage).
> 
> On Sun, Mar 2, 2014 at 5:26 PM, Marcus  wrote:
>> Or do you mean you have multiple primary storages and this one was not
>> in use and put into maintenance?
>> 
>> On Sun, Mar 2, 2014 at 5:25 PM, Marcus  wrote:
>>> I'm not sure I understand. How do you expect to reboot your primary
>>> storage while vms are running?  It sounds like the host is being
>>> fenced since it cannot contact the resources it depends on.
>>> 
>>> On Sun, Mar 2, 2014 at 3:24 PM, Nux!  wrote:
 On 02.03.2014 21:17, Andrei Mikhailovsky wrote:
> 
> Hello guys,
> 
> 
> I've recently came across the bug CLOUDSTACK-5429 which has rebooted
> all of my host servers without properly shutting down the guest vms.
> I've simply upgraded and rebooted one of the nfs primary storage
> servers and a few minutes later, to my horror, i've found out that all
> of my host servers have been rebooted. Is it just me thinking so, or
> is this bug should be fixed ASAP and should be a blocker for any new
> ACS release. I mean not only does it cause downtime, but also possible
> data loss and server corruption.
 
 
 Hi Andrei,
 
 Do you have HA enabled and did you put that primary storage in maintenance
 mode before rebooting it?
 It's my understanding that ACS relies on the shared storage to perform HA 
 so
 if the storage goes it's expected to go berserk. I've noticed similar
 behaviour in Xenserver pools without ACS.
 I'd imagine a "cure" for this would be to use network distributed
 "filesystems" like GlusterFS or CEPH.
 
 Lucian
 
 --
 Sent from the Delta quadrant using Borg technology!
 
 Nux!
 www.nux.ro



Re: Failing to add Primary storage

2014-03-02 Thread Nishan Sanjeewa Gunasekara
Hi Geoff,
You are right, it was a problem with my storage server. Got it fixed. All
good. Thank you very much.

//
Nishan


On Mon, Mar 3, 2014 at 9:48 AM, Geoff Higginbottom <
geoff.higginbot...@shapeblue.com> wrote:

> What is providing hosting primary storage and was nfs set up in line with
> install docs e.g.
>
> To configure the new directories as NFS exports, edit /etc/exports. Export
> the NFS share(s) with rw,async,no_root_squash. For example:
>
> # vi /etc/exports
> Insert the following line.
> /export *(rw,async,no_root_squash)
>
>
> Regards
>
> Geoff Higginbottom
> CTO / Cloud Architect
>
> D: +44 20 3603 0542 | S: +44 20 3603 0540 +442036030540> | M: +447968161581
>
> geoff.higginbot...@shapeblue.com
> | www.shapeblue.com | Twitter:@cloudstackguru<
> https://twitter.com/#!/cloudstackguru>
>
> ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N
> 4HS
>
>
> On 2 Mar 2014, at 20:58, "Nishan Sanjeewa Gunasekara" <
> nishan.sanje...@gmail.com> wrote:
>
> Yes. Host is shown as online. Strange thing is cloudstack tries to create
> an SR for primary storage and times out on that. I can see that sr from
> xencenter. But it's broken and cannot be deleted as well. Only way to reuse
> this host is to reinstall xen. Any thoughts?
> Regards
> On Mar 2, 2014 6:09 PM, "Geoff Higginbottom" <
> geoff.higginbot...@shapeblue.com>
> wrote:
>
> I assume your host is showing as online in the UI
>
> Regards
>
> Geoff Higginbottom
> CTO / Cloud Architect
>
>
> D: +44 20 3603 0542 | S: +44 20 3603 0540 +442036030540> | M: +447968161581
>
> geoff.higginbot...@shapeblue.com >
> | www.shapeblue.com
>
> ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N
> 4HS
>
>
>
> On 1 Mar 2014, at 23:30, "Nishan Sanjeewa Gunasekara" <
> nishan.sanje...@gmail.com nishan.sanje...@gmail.com>> wrote:
>
> Hi,
>
> Yes, I can mount the primary storage manually and write to it.
>
> For the network im using a bonded nic and i have the traffic label to match
> to what I defined in the cloudstack networks.
> And Im using a native vlan for all the traffic, so I didn't use a separate
> storage network when I defined the cloudstack networks.
>
> regards,
> Nishan
>
>
>
> On Sun, Mar 2, 2014 at 9:48 AM, Geoff Higginbottom <
> geoff.higginbot...@shapeblue.com >>
> wrote:
>
> Have you tried manually mounting the storage directly in the host?
>
> Also check that the host has a suitable NIC/Bond on the appropriate VLAN
> for your prim awry storage network (not to be confused with the CloudStack
> Storage Network which is for Secondary Storage)
>
> Regards
>
> Geoff Higginbottom
> CTO / Cloud Architect
>
> D: +44 20 3603 0542 | S: +44 20 3603 0540 +442036030540> | M: +447968161581
>
> geoff.higginbot...@shapeblue.com > 
> | www.shapeblue.com > |
> Twitter:@cloudstackguru<
> https://twitter.com/#!/cloudstackguru>
>
> ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N
> 4HS
>
>
> On 1 Mar 2014, at 21:53, "Nishan Sanjeewa Gunasekara" <
> nishan.sanje...@gmail.com nishan.sanje...@gmail.com> nishan.sanje...@gmail.com>> wrote:
>
> Hi Cloudstack team,
> Need some help on this.
> I'm using CS 4.2.1 with XenServer 6.2
>
> While trying to create an advanced zone it fails at primary storage
> creation.
>
> These are the log snippets,
>
> 2014-03-02 08:32:24,551 DEBUG
> [datastore.lifecycle.CloudStackPrimaryDataStoreLifeCycleImpl]
> (catalina-exec-22:null) creating pool null on  host 1
> 2014-03-02 08:32:24,556 DEBUG [agent.transport.Request]
> (catalina-exec-22:null) Seq 1-1614282760: Sending  { Cmd , MgmtId:
> 174373135997068, via: 1, Ver: v1, Flags: 100011,
>
>
>
> [{"com.cloud.agent.api.CreateStoragePoolCommand":{"add":true,"pool":{"id":1,"uuid":"c1e2ff6c-925b-34b5-985d-d80969a70c05","host":"10.32.11.40","path":"/POOL1TB_CS2_ONE/CS2_PRI_STOR_01","port":2049,"type":"NetworkFilesystem"},"localPath":"/mnt//c1e2ff6c-925b-34b5-985d-d80969a70c05","wait":0}}]
> }
> 2014-03-02 08:32:24,556 DEBUG [agent.transport.Request]
> (catalina-exec-22:null) Seq 1-1614282760: Executing:  { Cmd , MgmtId:
> 174373135997068, via: 1, Ver: v1, Flags: 100011,
>
>
>
> [{"com.cloud.agent.api.CreateStoragePoolCommand":{"add":true,"pool":{"id":1,"uuid":"c1e2ff6c-925b-34b5-985d-d80969a70c05","host":"10.32.11.40","path":"/POOL1TB_CS2_ONE/CS2_PRI_STOR_01","port":2049,"type":"NetworkFilesystem"},"localPath":"/mnt//c1e2ff6c-925b-34b5-985d-d80969a70c05","wait":0}}]
> }
> 2014-03-02 08:32:24,556

Re: ALARM - ACS reboots host servers!!!

2014-03-02 Thread Marcus
Also, please note that in the bug you referenced it doesn't have a
problem with the reboot being triggered, but with the fact that reboot
never completes due to hanging NFS mount (which is why the reboot
occurs, inaccessible primary storage).

On Sun, Mar 2, 2014 at 5:26 PM, Marcus  wrote:
> Or do you mean you have multiple primary storages and this one was not
> in use and put into maintenance?
>
> On Sun, Mar 2, 2014 at 5:25 PM, Marcus  wrote:
>> I'm not sure I understand. How do you expect to reboot your primary
>> storage while vms are running?  It sounds like the host is being
>> fenced since it cannot contact the resources it depends on.
>>
>> On Sun, Mar 2, 2014 at 3:24 PM, Nux!  wrote:
>>> On 02.03.2014 21:17, Andrei Mikhailovsky wrote:

 Hello guys,


 I've recently came across the bug CLOUDSTACK-5429 which has rebooted
 all of my host servers without properly shutting down the guest vms.
 I've simply upgraded and rebooted one of the nfs primary storage
 servers and a few minutes later, to my horror, i've found out that all
 of my host servers have been rebooted. Is it just me thinking so, or
 is this bug should be fixed ASAP and should be a blocker for any new
 ACS release. I mean not only does it cause downtime, but also possible
 data loss and server corruption.
>>>
>>>
>>> Hi Andrei,
>>>
>>> Do you have HA enabled and did you put that primary storage in maintenance
>>> mode before rebooting it?
>>> It's my understanding that ACS relies on the shared storage to perform HA so
>>> if the storage goes it's expected to go berserk. I've noticed similar
>>> behaviour in Xenserver pools without ACS.
>>> I'd imagine a "cure" for this would be to use network distributed
>>> "filesystems" like GlusterFS or CEPH.
>>>
>>> Lucian
>>>
>>> --
>>> Sent from the Delta quadrant using Borg technology!
>>>
>>> Nux!
>>> www.nux.ro


Re: ALARM - ACS reboots host servers!!!

2014-03-02 Thread Marcus
I'm not sure I understand. How do you expect to reboot your primary
storage while vms are running?  It sounds like the host is being
fenced since it cannot contact the resources it depends on.

On Sun, Mar 2, 2014 at 3:24 PM, Nux!  wrote:
> On 02.03.2014 21:17, Andrei Mikhailovsky wrote:
>>
>> Hello guys,
>>
>>
>> I've recently came across the bug CLOUDSTACK-5429 which has rebooted
>> all of my host servers without properly shutting down the guest vms.
>> I've simply upgraded and rebooted one of the nfs primary storage
>> servers and a few minutes later, to my horror, i've found out that all
>> of my host servers have been rebooted. Is it just me thinking so, or
>> is this bug should be fixed ASAP and should be a blocker for any new
>> ACS release. I mean not only does it cause downtime, but also possible
>> data loss and server corruption.
>
>
> Hi Andrei,
>
> Do you have HA enabled and did you put that primary storage in maintenance
> mode before rebooting it?
> It's my understanding that ACS relies on the shared storage to perform HA so
> if the storage goes it's expected to go berserk. I've noticed similar
> behaviour in Xenserver pools without ACS.
> I'd imagine a "cure" for this would be to use network distributed
> "filesystems" like GlusterFS or CEPH.
>
> Lucian
>
> --
> Sent from the Delta quadrant using Borg technology!
>
> Nux!
> www.nux.ro


Re: ALARM - ACS reboots host servers!!!

2014-03-02 Thread Marcus
Or do you mean you have multiple primary storages and this one was not
in use and put into maintenance?

On Sun, Mar 2, 2014 at 5:25 PM, Marcus  wrote:
> I'm not sure I understand. How do you expect to reboot your primary
> storage while vms are running?  It sounds like the host is being
> fenced since it cannot contact the resources it depends on.
>
> On Sun, Mar 2, 2014 at 3:24 PM, Nux!  wrote:
>> On 02.03.2014 21:17, Andrei Mikhailovsky wrote:
>>>
>>> Hello guys,
>>>
>>>
>>> I've recently came across the bug CLOUDSTACK-5429 which has rebooted
>>> all of my host servers without properly shutting down the guest vms.
>>> I've simply upgraded and rebooted one of the nfs primary storage
>>> servers and a few minutes later, to my horror, i've found out that all
>>> of my host servers have been rebooted. Is it just me thinking so, or
>>> is this bug should be fixed ASAP and should be a blocker for any new
>>> ACS release. I mean not only does it cause downtime, but also possible
>>> data loss and server corruption.
>>
>>
>> Hi Andrei,
>>
>> Do you have HA enabled and did you put that primary storage in maintenance
>> mode before rebooting it?
>> It's my understanding that ACS relies on the shared storage to perform HA so
>> if the storage goes it's expected to go berserk. I've noticed similar
>> behaviour in Xenserver pools without ACS.
>> I'd imagine a "cure" for this would be to use network distributed
>> "filesystems" like GlusterFS or CEPH.
>>
>> Lucian
>>
>> --
>> Sent from the Delta quadrant using Borg technology!
>>
>> Nux!
>> www.nux.ro


Re: KVM

2014-03-02 Thread Marcus
It doesn't look like you've enabled debug, you're only getting WARN
and INFO messages. Please enable debug.

On Sun, Mar 2, 2014 at 4:40 PM, María Noelia Gil  wrote:
> When I run "CloudStack-setup-agent" shows the following:
>
> Starting to configure your system:
> Configure Apparmor ...[OK]
> Configure Network ... [OK]
> Configure Libvirt ...
> [OK]
> Configure Firewall ...
> [OK]
> Configure Nfs ... [OK]
> Configure cloudAgent ...
> [OK]
> CloudStack Agent setup is done!
>
> The log file displays the following.
>
> 2014-03-03 00:32:44,320 INFO  [cloud.agent.AgentShell] (main:null) Agent 
> started
> 2014-03-03 00:32:44,321 INFO  [cloud.agent.AgentShell] (main:null) 
> Implementation Version is 4.2.1
> 2014-03-03 00:32:44,322 INFO  [cloud.agent.AgentShell] (main:null) 
> agent.properties found at /etc/cloudstack/agent/agent.properties
> 2014-03-03 00:32:44,323 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
> to using properties file for storage
> 2014-03-03 00:32:44,324 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
> to the constant time backoff algorithm
> 2014-03-03 00:32:44,326 INFO  [cloud.utils.LogUtils] (main:null) log4j 
> configuration found at /etc/cloudstack/agent/log4j-cloud.xml
> 2014-03-03 00:32:44,384 INFO  [cloud.agent.Agent] (main:null) id is 0
> 2014-03-03 00:32:44,396 INFO  
> [resource.virtualnetwork.VirtualRoutingResource] (main:null) 
> VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
> 2014-03-03 00:32:45,020 WARN  [kvm.resource.LibvirtComputingResource] 
> (main:null) LibVirt version 0.9.10 required for guest cpu mode, but version 
> 0.9.8 detected, so it will be disabled
> 2014-03-03 00:32:45,114 INFO  [kvm.resource.LibvirtComputingResource] 
> (main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
> 2014-03-03 00:32:45,145 INFO  [cloud.agent.Agent] (main:null) Agent [id = 0 : 
> type = LibvirtComputingResource : zone = default : pod = default : workers = 
> 5 : host = localhost : port = 8250
> 2014-03-03 00:32:45,154 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
> Connecting to localhost:8250
> 2014-03-03 00:32:45,333 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
> SSL: Handshake done
> 2014-03-03 00:32:45,334 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
> Connected to localhost:8250
> 2014-03-03 00:32:45,662 INFO  [cloud.serializer.GsonHelper] 
> (Agent-Handler-1:null) Default Builder inited.
> 2014-03-03 00:32:45,733 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
> Proccess agent startup answer, agent id = 0
> 2014-03-03 00:32:45,733 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
> agent id 0
> 2014-03-03 00:32:45,737 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
> Stopping the agent: Reason = sig.kill
> 2014-03-03 00:32:45,738 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
> Startup Response Received: agent id = 0
>
> I do not get to fix the error.
>
> Thanks.
>
> El 02/03/2014, a las 00:25, Marcus  escribió:
>
>> changing
>


Re: KVM

2014-03-02 Thread María Noelia Gil
I am using ubuntu 12.04. Libvirt version which is installed using "apt-get 
install libvirt-bin”.

I tried installing libvirt 0.9.10, but requires installing gnutls and I can not 
install this package.

El 03/03/2014, a las 00:45, Nux!  escribió:

> What distribution are you running there? Libvirt seems quite old. Current 
> libvirt in CentOS 6 is 0.10.2.



Re: KVM

2014-03-02 Thread Nux!

On 02.03.2014 23:40, María Noelia Gil wrote:

(main:null) LibVirt version 0.9.10 required for guest cpu mode, but
version 0.9.8 detected, so it will be disabled


Maria,

What distribution are you running there? Libvirt seems quite old. 
Current libvirt in CentOS 6 is 0.10.2.


Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Re: KVM

2014-03-02 Thread María Noelia Gil
When I run "CloudStack-setup-agent" shows the following:

Starting to configure your system:
Configure Apparmor ...[OK]
Configure Network ... [OK]
Configure Libvirt ... 
[OK]
Configure Firewall ...
[OK]
Configure Nfs ... [OK]
Configure cloudAgent ...  
[OK]
CloudStack Agent setup is done!

The log file displays the following. 

2014-03-03 00:32:44,320 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2014-03-03 00:32:44,321 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.2.1
2014-03-03 00:32:44,322 INFO  [cloud.agent.AgentShell] (main:null) 
agent.properties found at /etc/cloudstack/agent/agent.properties
2014-03-03 00:32:44,323 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to using properties file for storage
2014-03-03 00:32:44,324 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to the constant time backoff algorithm
2014-03-03 00:32:44,326 INFO  [cloud.utils.LogUtils] (main:null) log4j 
configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2014-03-03 00:32:44,384 INFO  [cloud.agent.Agent] (main:null) id is 0
2014-03-03 00:32:44,396 INFO  [resource.virtualnetwork.VirtualRoutingResource] 
(main:null) VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
2014-03-03 00:32:45,020 WARN  [kvm.resource.LibvirtComputingResource] 
(main:null) LibVirt version 0.9.10 required for guest cpu mode, but version 
0.9.8 detected, so it will be disabled
2014-03-03 00:32:45,114 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
2014-03-03 00:32:45,145 INFO  [cloud.agent.Agent] (main:null) Agent [id = 0 : 
type = LibvirtComputingResource : zone = default : pod = default : workers = 5 
: host = localhost : port = 8250
2014-03-03 00:32:45,154 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
Connecting to localhost:8250
2014-03-03 00:32:45,333 INFO  [utils.nio.NioClient] (Agent-Selector:null) SSL: 
Handshake done
2014-03-03 00:32:45,334 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
Connected to localhost:8250
2014-03-03 00:32:45,662 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) Default Builder inited.
2014-03-03 00:32:45,733 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Proccess agent startup answer, agent id = 0
2014-03-03 00:32:45,733 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
agent id 0
2014-03-03 00:32:45,737 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill
2014-03-03 00:32:45,738 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Startup Response Received: agent id = 0

I do not get to fix the error.

Thanks.

El 02/03/2014, a las 00:25, Marcus  escribió:

> changing



Re: Failing to add Primary storage

2014-03-02 Thread Geoff Higginbottom
What is providing hosting primary storage and was nfs set up in line with 
install docs e.g.

To configure the new directories as NFS exports, edit /etc/exports. Export the 
NFS share(s) with rw,async,no_root_squash. For example:

# vi /etc/exports
Insert the following line.
/export *(rw,async,no_root_squash)


Regards

Geoff Higginbottom
CTO / Cloud Architect

D: +44 20 3603 0542 | S: +44 20 3603 0540 
| M: +447968161581

geoff.higginbot...@shapeblue.com | 
www.shapeblue.com | 
Twitter:@cloudstackguru

ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 
4HS


On 2 Mar 2014, at 20:58, "Nishan Sanjeewa Gunasekara" 
mailto:nishan.sanje...@gmail.com>> wrote:

Yes. Host is shown as online. Strange thing is cloudstack tries to create
an SR for primary storage and times out on that. I can see that sr from
xencenter. But it's broken and cannot be deleted as well. Only way to reuse
this host is to reinstall xen. Any thoughts?
Regards
On Mar 2, 2014 6:09 PM, "Geoff Higginbottom" <
geoff.higginbot...@shapeblue.com> 
wrote:

I assume your host is showing as online in the UI

Regards

Geoff Higginbottom
CTO / Cloud Architect


D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581

geoff.higginbot...@shapeblue.com
| www.shapeblue.com

ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N
4HS



On 1 Mar 2014, at 23:30, "Nishan Sanjeewa Gunasekara" <
nishan.sanje...@gmail.com>
 wrote:

Hi,

Yes, I can mount the primary storage manually and write to it.

For the network im using a bonded nic and i have the traffic label to match
to what I defined in the cloudstack networks.
And Im using a native vlan for all the traffic, so I didn't use a separate
storage network when I defined the cloudstack networks.

regards,
Nishan



On Sun, Mar 2, 2014 at 9:48 AM, Geoff Higginbottom <
geoff.higginbot...@shapeblue.com>
wrote:

Have you tried manually mounting the storage directly in the host?

Also check that the host has a suitable NIC/Bond on the appropriate VLAN
for your prim awry storage network (not to be confused with the CloudStack
Storage Network which is for Secondary Storage)

Regards

Geoff Higginbottom
CTO / Cloud Architect

D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581

geoff.higginbot...@shapeblue.com
| 
www.shapeblue.com
 |
Twitter:@cloudstackguru<
https://twitter.com/#!/cloudstackguru>

ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N
4HS


On 1 Mar 2014, at 21:53, "Nishan Sanjeewa Gunasekara" <
nishan.sanje...@gmail.commailto:nishan.sanje...@gmail.com>>> wrote:

Hi Cloudstack team,
Need some help on this.
I'm using CS 4.2.1 with XenServer 6.2

While trying to create an advanced zone it fails at primary storage
creation.

These are the log snippets,

2014-03-02 08:32:24,551 DEBUG
[datastore.lifecycle.CloudStackPrimaryDataStoreLifeCycleImpl]
(catalina-exec-22:null) creating pool null on  host 1
2014-03-02 08:32:24,556 DEBUG [agent.transport.Request]
(catalina-exec-22:null) Seq 1-1614282760: Sending  { Cmd , MgmtId:
174373135997068, via: 1, Ver: v1, Flags: 100011,


[{"com.cloud.agent.api.CreateStoragePoolCommand":{"add":true,"pool":{"id":1,"uuid":"c1e2ff6c-925b-34b5-985d-d80969a70c05","host":"10.32.11.40","path":"/POOL1TB_CS2_ONE/CS2_PRI_STOR_01","port":2049,"type":"NetworkFilesystem"},"localPath":"/mnt//c1e2ff6c-925b-34b5-985d-d80969a70c05","wait":0}}]
}
2014-03-02 08:32:24,556 DEBUG [agent.transport.Request]
(catalina-exec-22:null) Seq 1-1614282760: Executing:  { Cmd , MgmtId:
174373135997068, via: 1, Ver: v1, Flags: 100011,


[{"com.cloud.agent.api.CreateStoragePoolCommand":{"add":true,"pool":{"id":1,"uuid":"c1e2ff6c-925b-34b5-985d-d80969a70c05","host":"10.32.11.40","path":"/POOL1TB_CS2_ONE/CS2_PRI_STOR_01","port":2049,"type":"NetworkFilesystem"},"localPath":"/mnt//c1e2ff6c-925b-34b5-985d-d80969a70c05","wait":0}}]
}
2014-03-02 08:32:24,556 DEBUG [agent.manager.DirectAgentAttache]
(DirectAgent-3:null) Seq 1-1614282760: Executing request
2014-03-02 08:32:34,960 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
(consoleproxy-1:null) Skip capacity scan due to there is no Primary Storage
UPintenance mode
2014-03-02 08:32:35,915 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:null) Found 0 routers to update status.
2014-03-02 08:32:35,916 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:null) Fou

Re: ALARM - ACS reboots host servers!!!

2014-03-02 Thread Nux!

On 02.03.2014 21:17, Andrei Mikhailovsky wrote:

Hello guys,


I've recently came across the bug CLOUDSTACK-5429 which has rebooted
all of my host servers without properly shutting down the guest vms.
I've simply upgraded and rebooted one of the nfs primary storage
servers and a few minutes later, to my horror, i've found out that all
of my host servers have been rebooted. Is it just me thinking so, or
is this bug should be fixed ASAP and should be a blocker for any new
ACS release. I mean not only does it cause downtime, but also possible
data loss and server corruption.


Hi Andrei,

Do you have HA enabled and did you put that primary storage in 
maintenance mode before rebooting it?
It's my understanding that ACS relies on the shared storage to perform 
HA so if the storage goes it's expected to go berserk. I've noticed 
similar behaviour in Xenserver pools without ACS.
I'd imagine a "cure" for this would be to use network distributed 
"filesystems" like GlusterFS or CEPH.


Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


ALARM - ACS reboots host servers!!!

2014-03-02 Thread Andrei Mikhailovsky
Hello guys, 


I've recently came across the bug CLOUDSTACK-5429 which has rebooted all of my 
host servers without properly shutting down the guest vms. I've simply upgraded 
and rebooted one of the nfs primary storage servers and a few minutes later, to 
my horror, i've found out that all of my host servers have been rebooted. Is it 
just me thinking so, or is this bug should be fixed ASAP and should be a 
blocker for any new ACS release. I mean not only does it cause downtime, but 
also possible data loss and server corruption. 


Not sure if one can wait for another year or so until 4.4 is out which may or 
may not have the fix for this serious issue. From the bug report it seems that 
this problem is assigned to Edison Su. 


Edison, could you please get in touch to discuss a possible temporary fix to 
this problem as this is causing a number of issues. 


Does anyone know if you can block the reboot request initiated by the 
cloudstack agent on the OS level? 


Many thanks for any help 


Andrei 







Re: Failing to add Primary storage

2014-03-02 Thread Nishan Sanjeewa Gunasekara
Yes. Host is shown as online. Strange thing is cloudstack tries to create
an SR for primary storage and times out on that. I can see that sr from
xencenter. But it's broken and cannot be deleted as well. Only way to reuse
this host is to reinstall xen. Any thoughts?
Regards
On Mar 2, 2014 6:09 PM, "Geoff Higginbottom" <
geoff.higginbot...@shapeblue.com> wrote:

> I assume your host is showing as online in the UI
>
> Regards
>
> Geoff Higginbottom
> CTO / Cloud Architect
>
>
> D: +44 20 3603 0542 | S: +44 20 3603 0540 +442036030540> | M: +447968161581
>
> geoff.higginbot...@shapeblue.com
> | www.shapeblue.com
>
> ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N
> 4HS
>
>
>
> On 1 Mar 2014, at 23:30, "Nishan Sanjeewa Gunasekara" <
> nishan.sanje...@gmail.com> wrote:
>
> Hi,
>
> Yes, I can mount the primary storage manually and write to it.
>
> For the network im using a bonded nic and i have the traffic label to match
> to what I defined in the cloudstack networks.
> And Im using a native vlan for all the traffic, so I didn't use a separate
> storage network when I defined the cloudstack networks.
>
> regards,
> Nishan
>
>
>
> On Sun, Mar 2, 2014 at 9:48 AM, Geoff Higginbottom <
> geoff.higginbot...@shapeblue.com>
> wrote:
>
> Have you tried manually mounting the storage directly in the host?
>
> Also check that the host has a suitable NIC/Bond on the appropriate VLAN
> for your prim awry storage network (not to be confused with the CloudStack
> Storage Network which is for Secondary Storage)
>
> Regards
>
> Geoff Higginbottom
> CTO / Cloud Architect
>
> D: +44 20 3603 0542 | S: +44 20 3603 0540 +442036030540> | M: +447968161581
>
> geoff.higginbot...@shapeblue.com >
> | www.shapeblue.com |
> Twitter:@cloudstackguru<
> https://twitter.com/#!/cloudstackguru>
>
> ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N
> 4HS
>
>
> On 1 Mar 2014, at 21:53, "Nishan Sanjeewa Gunasekara" <
> nishan.sanje...@gmail.com nishan.sanje...@gmail.com>> wrote:
>
> Hi Cloudstack team,
> Need some help on this.
> I'm using CS 4.2.1 with XenServer 6.2
>
> While trying to create an advanced zone it fails at primary storage
> creation.
>
> These are the log snippets,
>
> 2014-03-02 08:32:24,551 DEBUG
> [datastore.lifecycle.CloudStackPrimaryDataStoreLifeCycleImpl]
> (catalina-exec-22:null) creating pool null on  host 1
> 2014-03-02 08:32:24,556 DEBUG [agent.transport.Request]
> (catalina-exec-22:null) Seq 1-1614282760: Sending  { Cmd , MgmtId:
> 174373135997068, via: 1, Ver: v1, Flags: 100011,
>
>
> [{"com.cloud.agent.api.CreateStoragePoolCommand":{"add":true,"pool":{"id":1,"uuid":"c1e2ff6c-925b-34b5-985d-d80969a70c05","host":"10.32.11.40","path":"/POOL1TB_CS2_ONE/CS2_PRI_STOR_01","port":2049,"type":"NetworkFilesystem"},"localPath":"/mnt//c1e2ff6c-925b-34b5-985d-d80969a70c05","wait":0}}]
> }
> 2014-03-02 08:32:24,556 DEBUG [agent.transport.Request]
> (catalina-exec-22:null) Seq 1-1614282760: Executing:  { Cmd , MgmtId:
> 174373135997068, via: 1, Ver: v1, Flags: 100011,
>
>
> [{"com.cloud.agent.api.CreateStoragePoolCommand":{"add":true,"pool":{"id":1,"uuid":"c1e2ff6c-925b-34b5-985d-d80969a70c05","host":"10.32.11.40","path":"/POOL1TB_CS2_ONE/CS2_PRI_STOR_01","port":2049,"type":"NetworkFilesystem"},"localPath":"/mnt//c1e2ff6c-925b-34b5-985d-d80969a70c05","wait":0}}]
> }
> 2014-03-02 08:32:24,556 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-3:null) Seq 1-1614282760: Executing request
> 2014-03-02 08:32:34,960 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
> (consoleproxy-1:null) Skip capacity scan due to there is no Primary Storage
> UPintenance mode
> 2014-03-02 08:32:35,915 DEBUG
> [network.router.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:null) Found 0 routers to update status.
> 2014-03-02 08:32:35,916 DEBUG
> [network.router.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:null) Found 0 networks to update RvR status.
> 2014-03-02 08:32:44,444 WARN  [xen.resource.CitrixResourceBase]
> (DirectAgent-3:null) Catch Exception
> com.cloud.utils.exception.CloudRuntimeException, create StoragePool failed
> due to com.cloud.utils.exception.CloudRuntimeException: Unable to create
> NFS SR Pool[1|10.32.11.40:2049|/POOL1TB_CS2_ONE/CS2_PRI_STOR_01] on
> host:365d6026-7931-4ee2-a341-255336a15a69 pool:
> 10.32.11.40/POOL1TB_CS2_ONE/CS2_PRI_STOR_01
> com.cloud.utils.exception.CloudRuntimeException: Unable to create NFS SR
> Pool[1|10.32.11.40:2049|/POOL1TB_CS2_ONE/CS2_PRI_STOR_01]
>   at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.getNfsSR(CitrixResourceBase.java:6473)
>   at
>
>
> com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:5458)
>   at
>
>
> com.cloud.hypervisor

Re: Cloudstack API list all VMs

2014-03-02 Thread Daan Hoogland
H Rafael,

You probably found out by now and sorry for the late reply but just
for the record; no. As the UI does it you would need to do two calls;
one for the regular and one for the project vms.

regards,
Daan

On Fri, Feb 14, 2014 at 1:54 PM, Rafael Weingartner
 wrote:
> Hi folks,
> I was trying to find a way to list all VMs that are running on CS. I looked
> the API Doc and it seemed to have a way to do that using isrecursive=true,
> domainid=1 and listall=true. However, it does not list the VMs that are
> assigned into a project.
> Would there be any way to list all VMs including the one that were created
> in project?
>
> BTW: I was using the Admin account to run these commands.
>
> --
> Rafael Weingärtner



-- 
Daan