You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Ashutosh Kelkar <as...@clogeny.com> on 2013/09/02 07:27:49 UTC

VM deployment fails when using a tagged host offering with InsufficientServerCapacityException

Hi,

I'm trying to create VMs based on Service offerings that are tagged to
certain hosts.
While trying to create VMs from the tagged offerings I get an Insufficient
Capacity error. Looking at the logs they say there are no suitable storage
pools for the VM


I've tried this manually too and it fails. A normal untagged service
offering VM creation is successful though.

Both were deployed in to a Isolated network.

Attached are the logs from the management server for the deployment job

Executor - Job-Executor-81:job-2643
Id           - 94a91c6a-919f-4250-aff5-b7dd6ed81fcb

Regards
Ashutosk

Re: VM deployment fails when using a tagged host offering with InsufficientServerCapacityException

Posted by Prasanna Santhanam <ts...@apache.org>.
Shall we rename this:

from:
@Parameter(name=ApiConstants.TAGS, type=CommandType.STRING, description="the tags for this service offering.")

to:
@Parameter(name=ApiConstants.TAGS, type=CommandType.STRING, description="the storage tag(s) associated with this service offering.")

Because even I've forgotten this little discrepancy in our API and the
multitude of things we call tags. Or is this param related to resource
tags? :( I can't tell.

On Wed, Sep 04, 2013 at 05:44:18AM +0000, Prachi Damle wrote:
> Hi,
> 
> Can you check if you have set storage tags on the service offering
> instead of the host tags? You can call listServiceOfferings API and
> check the response corresponding to your service offering.
> The field ' hosttags' is set or is the field ' tags' set?
> 
> 
> -Prachi
> 
> 
> -----Original Message-----
> From: Ashutosh Kelkar [mailto:ashutosh@clogeny.com] 
> Sent: Tuesday, September 03, 2013 9:54 PM
> To: Sanjay Tripathi
> Cc: Girish Shilamkar; dev@cloudstack.apache.org
> Subject: Re: VM deployment fails when using a tagged host offering with InsufficientServerCapacityException
> 
> T
> he cluster with the tagged host has a storage pool attached to it. Verified by looking at the details for the Primary storage under the Infrastructure tab.
> 
> Should the Storage pool also have the same tags as the tagged host for the deployment to succeed?
> 
> I ran a quick test and added the same tag to the pools too and VM deployment succeeds when the tag on the host matches the tag in the storage pools.
> 
> If I tag the host and not the pools the deployment fails.
> 
> Regards,
> Ashu
> 
> 
> 
> 
> 
> 
> On Wed, Sep 4, 2013 at 9:30 AM, Girish Shilamkar <gi...@clogeny.com> wrote:
> 
> >
> > Regards,
> > Girish
> >
> > Begin forwarded message:
> >
> > *From: *Sanjay Tripathi <sa...@citrix.com>
> > *Subject: **RE: VM deployment fails when using a tagged host offering 
> > with InsufficientServerCapacityException*
> > *Date: *2 September 2013 4:18:42 PM IST
> > *To: *"dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
> > *Cc: *Girish Shilamkar <gi...@clogeny.com>
> >
> > Looks like there is no storage pool in the cluster which has this 
> > tagged
> > host.****
> >
> > Can you navigate to the cluster details (which has this tagged host) 
> > and verify that if any storage pool is present or not.****
> >
> > --Sanjay****
> >
> >  *From:* Ashutosh Kelkar [mailto:ashutosh@clogeny.com]
> > *Sent:* Monday, September 02, 2013 10:58 AM
> > *To:* dev@cloudstack.apache.org
> > *Cc:* Girish Shilamkar
> > *Subject:* VM deployment fails when using a tagged host offering with
> > InsufficientServerCapacityException****
> > ** **
> > Hi,****
> >
> > I'm trying to create VMs based on Service offerings that are tagged to 
> > certain hosts.**** While trying to create VMs from the tagged 
> > offerings I get an Insufficient Capacity error. Looking at the logs 
> > they say there are no suitable storage pools for the VM****
> >
> >
> > I've tried this manually too and it fails. A normal untagged service 
> > offering VM creation is successful though. ****
> >
> > Both were deployed in to a Isolated network.****
> >
> > Attached are the logs from the management server for the deployment 
> > job***
> > *
> >
> > Executor - Job-Executor-81:job-2643****
> > Id           - 94a91c6a-919f-4250-aff5-b7dd6ed81fcb****
> >
> > Regards****
> > Ashutosk
> >
> >
> >

-- 
Prasanna.,

------------------------
Powered by BigRock.com


RE: VM deployment fails when using a tagged host offering with InsufficientServerCapacityException

Posted by Prachi Damle <Pr...@citrix.com>.
Hi,

Can you check if you have set storage tags on the service offering instead of the host tags? You can call listServiceOfferings API and check the response corresponding to your service offering.
The field ' hosttags' is set or is the field ' tags' set?


-Prachi


-----Original Message-----
From: Ashutosh Kelkar [mailto:ashutosh@clogeny.com] 
Sent: Tuesday, September 03, 2013 9:54 PM
To: Sanjay Tripathi
Cc: Girish Shilamkar; dev@cloudstack.apache.org
Subject: Re: VM deployment fails when using a tagged host offering with InsufficientServerCapacityException

T
he cluster with the tagged host has a storage pool attached to it. Verified by looking at the details for the Primary storage under the Infrastructure tab.

Should the Storage pool also have the same tags as the tagged host for the deployment to succeed?

I ran a quick test and added the same tag to the pools too and VM deployment succeeds when the tag on the host matches the tag in the storage pools.

If I tag the host and not the pools the deployment fails.

Regards,
Ashu






On Wed, Sep 4, 2013 at 9:30 AM, Girish Shilamkar <gi...@clogeny.com> wrote:

>
> Regards,
> Girish
>
> Begin forwarded message:
>
> *From: *Sanjay Tripathi <sa...@citrix.com>
> *Subject: **RE: VM deployment fails when using a tagged host offering 
> with InsufficientServerCapacityException*
> *Date: *2 September 2013 4:18:42 PM IST
> *To: *"dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
> *Cc: *Girish Shilamkar <gi...@clogeny.com>
>
> Looks like there is no storage pool in the cluster which has this 
> tagged
> host.****
>
> Can you navigate to the cluster details (which has this tagged host) 
> and verify that if any storage pool is present or not.****
>
> --Sanjay****
>
>  *From:* Ashutosh Kelkar [mailto:ashutosh@clogeny.com]
> *Sent:* Monday, September 02, 2013 10:58 AM
> *To:* dev@cloudstack.apache.org
> *Cc:* Girish Shilamkar
> *Subject:* VM deployment fails when using a tagged host offering with
> InsufficientServerCapacityException****
> ** **
> Hi,****
>
> I'm trying to create VMs based on Service offerings that are tagged to 
> certain hosts.**** While trying to create VMs from the tagged 
> offerings I get an Insufficient Capacity error. Looking at the logs 
> they say there are no suitable storage pools for the VM****
>
>
> I've tried this manually too and it fails. A normal untagged service 
> offering VM creation is successful though. ****
>
> Both were deployed in to a Isolated network.****
>
> Attached are the logs from the management server for the deployment 
> job***
> *
>
> Executor - Job-Executor-81:job-2643****
> Id           - 94a91c6a-919f-4250-aff5-b7dd6ed81fcb****
>
> Regards****
> Ashutosk
>
>
>

Re: VM deployment fails when using a tagged host offering with InsufficientServerCapacityException

Posted by Ashutosh Kelkar <as...@clogeny.com>.
T
he cluster with the tagged host has a storage pool attached to it. Verified
by looking at the details for the Primary storage under the Infrastructure
tab.

Should the Storage pool also have the same tags as the tagged host for the
deployment to succeed?

I ran a quick test and added the same tag to the pools too and VM
deployment succeeds when the tag on the host matches the tag in the storage
pools.

If I tag the host and not the pools the deployment fails.

Regards,
Ashu






On Wed, Sep 4, 2013 at 9:30 AM, Girish Shilamkar <gi...@clogeny.com> wrote:

>
> Regards,
> Girish
>
> Begin forwarded message:
>
> *From: *Sanjay Tripathi <sa...@citrix.com>
> *Subject: **RE: VM deployment fails when using a tagged host offering
> with InsufficientServerCapacityException*
> *Date: *2 September 2013 4:18:42 PM IST
> *To: *"dev@cloudstack.apache.org" <de...@cloudstack.apache.org>
> *Cc: *Girish Shilamkar <gi...@clogeny.com>
>
> Looks like there is no storage pool in the cluster which has this tagged
> host.****
>
> Can you navigate to the cluster details (which has this tagged host) and
> verify that if any storage pool is present or not.****
>
> --Sanjay****
>
>  *From:* Ashutosh Kelkar [mailto:ashutosh@clogeny.com]
> *Sent:* Monday, September 02, 2013 10:58 AM
> *To:* dev@cloudstack.apache.org
> *Cc:* Girish Shilamkar
> *Subject:* VM deployment fails when using a tagged host offering with
> InsufficientServerCapacityException****
> ** **
> Hi,****
>
> I'm trying to create VMs based on Service offerings that are tagged to
> certain hosts.****
> While trying to create VMs from the tagged offerings I get an Insufficient
> Capacity error. Looking at the logs they say there are no suitable storage
> pools for the VM****
>
>
> I've tried this manually too and it fails. A normal untagged service
> offering VM creation is successful though. ****
>
> Both were deployed in to a Isolated network.****
>
> Attached are the logs from the management server for the deployment job***
> *
>
> Executor - Job-Executor-81:job-2643****
> Id           - 94a91c6a-919f-4250-aff5-b7dd6ed81fcb****
>
> Regards****
> Ashutosk
>
>
>

RE: VM deployment fails when using a tagged host offering with InsufficientServerCapacityException

Posted by Sanjay Tripathi <sa...@citrix.com>.
Looks like there is no storage pool in the cluster which has this tagged host.

Can you navigate to the cluster details (which has this tagged host) and verify that if any storage pool is present or not.

--Sanjay

From: Ashutosh Kelkar [mailto:ashutosh@clogeny.com]
Sent: Monday, September 02, 2013 10:58 AM
To: dev@cloudstack.apache.org
Cc: Girish Shilamkar
Subject: VM deployment fails when using a tagged host offering with InsufficientServerCapacityException

Hi,

I'm trying to create VMs based on Service offerings that are tagged to certain hosts.
While trying to create VMs from the tagged offerings I get an Insufficient Capacity error. Looking at the logs they say there are no suitable storage pools for the VM


I've tried this manually too and it fails. A normal untagged service offering VM creation is successful though.

Both were deployed in to a Isolated network.

Attached are the logs from the management server for the deployment job

Executor - Job-Executor-81:job-2643
Id           - 94a91c6a-919f-4250-aff5-b7dd6ed81fcb

Regards
Ashutosk

Re: VM deployment fails when using a tagged host offering with InsufficientServerCapacityException

Posted by Prasanna Santhanam <ts...@apache.org>.
On Mon, Sep 02, 2013 at 10:57:49AM +0530, Ashutosh Kelkar wrote:
> Hi,
> 
> I'm trying to create VMs based on Service offerings that are tagged to
> certain hosts.
> While trying to create VMs from the tagged offerings I get an Insufficient
> Capacity error. Looking at the logs they say there are no suitable storage
> pools for the VM

Silly question, but are any of your hosts tagged with the same tag as
you gave on the service offering? There's a wiki on tags explained
here: https://cwiki.apache.org/confluence/x/_QLMAQ. Can you see if
there's anything that helps solve this?

Since attachments are stripped can you please post the logs to a
github gist? Also mention which version/branch of CloudStack you are
running.

> 
> 
> I've tried this manually too and it fails. A normal untagged service
> offering VM creation is successful though.
> 
> Both were deployed in to a Isolated network.
> 
> Attached are the logs from the management server for the deployment job
> 
> Executor - Job-Executor-81:job-2643
> Id           - 94a91c6a-919f-4250-aff5-b7dd6ed81fcb
> 
> Regards
> Ashutosk


-- 
Prasanna.,

------------------------
Powered by BigRock.com