Re: issue creating a template with some service offering

2014-01-08 Thread Shanker Balan
On 08-Jan-2014, at 9:43 pm, Hollman Enciso R.  wrote:

> On Wed, Jan 8, 2014 at 10:49 AM, Shanker Balan
> wrote:
>
>>
>> Specifying the CPU speed with CPU cap becomes problematic if you have
>> different clusters with different speed ratings.
>>
>> Am not sure whats the right way to deal with this issue but I leave
>> cpu cap unset while creating compute service offerings.
>>
>>
> But. creating a new service offering this field it's required

Or you can edit the db directly.


--
@shankerbalan

M: +91 98860 60539 | O: +91 (80) 67935867
shanker.ba...@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre, 
Bangalore - 560 055

Need Enterprise Grade Support for Apache CloudStack?
Our CloudStack Infrastructure 
Support offers the 
best 24/7 SLA for CloudStack Environments.

Apache CloudStack Bootcamp training courses

**NEW!** CloudStack 4.2 training
08/09 January 2014, London
13-17 January 2014, GLOBAL. Instructor led, 
On-line
20-24 January 2014, GLOBAL. Instructor led, 
On-line

This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England & Wales. ShapeBlue Services India LLP is a company 
incorporated in India and is operated under license from Shape Blue Ltd. Shape 
Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is 
operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: issue creating a template with some service offering

2014-01-08 Thread Hollman Enciso R.
Dave.

Thanks a lot.

the problem was that x3, x4 ... was created with 3 and 4 GHz. but my
hypervisor just support 2.4 GHz

Problem solved


On Wed, Jan 8, 2014 at 10:43 AM, Dave Hoffman wrote:

> It looks like your host is in an avoid set and cannot be used for
> deploying new vms.
>
> 1.
>2014-01-0809:10:42,798DEBUG[cloud.deploy.FirstFitPlanner](
> Job-Executor-5:job-43=[84f54047-8d50-47c0-b251-bb2798378806])Listing
>clusters in order of aggregate capacity, that have(atleast one host
>with)enough CPU and RAM capacity under this Zone:1
> 2.
>2014-01-0809:10:42,801DEBUG[cloud.deploy.FirstFitPlanner](
> Job-Executor-5:job-43=[84f54047-8d50-47c0-b251-bb2798378806])Removing
>from the clusterId list these clusters from avoid set:[1]
> 3.
>2014-01-0809:10:42,804DEBUG[cloud.deploy.FirstFitPlanner](
> Job-Executor-5:job-43=[84f54047-8d50-47c0-b251-bb2798378806])No
>clusters found after removing disabled clusters and clusters in
>avoid list, returning.
> 4.
>2014-01-0809:10:42,808DEBUG[cloud.vm.UserVmManagerImpl](
> Job-Executor-5:job-43=[84f54047-8d50-47c0-b251-bb2798378806])Destroying
>vm VM[User|userver]as it failed to create on Host with Id:null
>
>
> This typically happens when Cloudstack has an issue deploying on that host
> or cluster.  It will mark it as avoid and move to the next host/cluster if
> available.  I would look further up in your log to see if there was another
> issue prior to this one.
>
> Can you still deploy vms with the x2 service offering? x4?  Can you deploy
> multiple vms with the x2 in the environment?
>
> What version of XenServer are you runnings?  Try running
> xe-toolstack-restart on the host/pool master to force a refresh from
> Cloudstack.  If that doesn't work you may have to restart the host or
> remove the host from Cloudstack and add it back into Cloudstack.
>
> Also check your storage on the Host and/or SAN to make sure that is still
> communicating correctly.
>
>
>
> On 01/08/2014 08:29 AM, Hollman Enciso R. wrote:
>
>> Hello all.
>>
>> I created 3 types of service.
>> x2, x3 and x4
>>
>> x2 has 2 cores, 2GB of ram, 2.00 GHz
>> x3 has 3 cores 3gb of ram, 3.00 GHz
>> ...
>>
>> When I create an instance with x2 works ok, but when I deply a instance
>> with
>>
>>> to x2 I get some errors. this is the general log
>>>
>> http://paste.algolibre.com/105
>>
>> Reading the log I identify 3 errors.
>>
>> 1. SecurityGroup Service is not supported in the network id = 204
>> I made a select from table networks with id = 204 and it is this:
>> http://paste.algolibre.com/106
>>
>> 2. Could not find suitable Deployment Destination for this VM under any
>> clusters, returning.
>> I do not know why
>>
>> 3. Listing clusters in order of aggregate capacity, That have (atleast one
>> host with) enough CPU and RAM capacity Under This Zone 1
>> says that I have no resources in the area but If I have available
>>
>> I appreciate any help
>>
>> thanks
>>
>>
>


-- 
Hollman Eduardo Enciso R.
http://nexxuz.com
http://algolibre.com 
@hollman


Re: issue creating a template with some service offering

2014-01-08 Thread Dave Hoffman
It looks like your host is in an avoid set and cannot be used for 
deploying new vms.


1.
   
2014-01-0809:10:42,798DEBUG[cloud.deploy.FirstFitPlanner](Job-Executor-5:job-43=[84f54047-8d50-47c0-b251-bb2798378806])Listing
   clusters in order of aggregate capacity, that have(atleast one host
   with)enough CPU and RAM capacity under this Zone:1
2.
   
2014-01-0809:10:42,801DEBUG[cloud.deploy.FirstFitPlanner](Job-Executor-5:job-43=[84f54047-8d50-47c0-b251-bb2798378806])Removing
   from the clusterId list these clusters from avoid set:[1]
3.
   
2014-01-0809:10:42,804DEBUG[cloud.deploy.FirstFitPlanner](Job-Executor-5:job-43=[84f54047-8d50-47c0-b251-bb2798378806])No
   clusters found after removing disabled clusters and clusters in
   avoid list, returning.
4.
   
2014-01-0809:10:42,808DEBUG[cloud.vm.UserVmManagerImpl](Job-Executor-5:job-43=[84f54047-8d50-47c0-b251-bb2798378806])Destroying
   vm VM[User|userver]as it failed to create on Host with Id:null


This typically happens when Cloudstack has an issue deploying on that 
host or cluster.  It will mark it as avoid and move to the next 
host/cluster if available.  I would look further up in your log to see 
if there was another issue prior to this one.


Can you still deploy vms with the x2 service offering? x4?  Can you 
deploy multiple vms with the x2 in the environment?


What version of XenServer are you runnings?  Try running 
xe-toolstack-restart on the host/pool master to force a refresh from 
Cloudstack.  If that doesn't work you may have to restart the host or 
remove the host from Cloudstack and add it back into Cloudstack.


Also check your storage on the Host and/or SAN to make sure that is 
still communicating correctly.



On 01/08/2014 08:29 AM, Hollman Enciso R. wrote:

Hello all.

I created 3 types of service.
x2, x3 and x4

x2 has 2 cores, 2GB of ram, 2.00 GHz
x3 has 3 cores 3gb of ram, 3.00 GHz
...

When I create an instance with x2 works ok, but when I deply a instance with

to x2 I get some errors. this is the general log

http://paste.algolibre.com/105

Reading the log I identify 3 errors.

1. SecurityGroup Service is not supported in the network id = 204
I made a select from table networks with id = 204 and it is this:
http://paste.algolibre.com/106

2. Could not find suitable Deployment Destination for this VM under any
clusters, returning.
I do not know why

3. Listing clusters in order of aggregate capacity, That have (atleast one
host with) enough CPU and RAM capacity Under This Zone 1
says that I have no resources in the area but If I have available

I appreciate any help

thanks





Re: issue creating a template with some service offering

2014-01-08 Thread Hollman Enciso R.
On Wed, Jan 8, 2014 at 10:49 AM, Shanker Balan
wrote:

>
> Specifying the CPU speed with CPU cap becomes problematic if you have
> different clusters with different speed ratings.
>
> Am not sure whats the right way to deal with this issue but I leave
> cpu cap unset while creating compute service offerings.
>
>
But. creating a new service offering this field it's required


-- 
Hollman Eduardo Enciso R.
http://nexxuz.com
http://algolibre.com 
@hollman


Re: issue creating a template with some service offering

2014-01-08 Thread Shanker Balan
Comments inline.

On 08-Jan-2014, at 8:40 pm, Hollman Enciso R.  wrote:

> On Wed, Jan 8, 2014 at 10:05 AM, Erik Weber  wrote:
>
>> As Daan said, check that your hypervisors report the CPUs are 3.00GHz or
>> more and not something like 2.99GHz.
>>
>> I had a similar issue where 2.0GHz CPUs actually reported with a speed of
>> 1.99GHz and subsequently my 2GHz offerings didn't work.
>>
>> Regards,
>> Eri
>>
>
> yeap.
>
> that's the problem.
>
> my hypervisor it's 2.4GHZ and i made a service offering with 3GHz.

Specifying the CPU speed with CPU cap becomes problematic if you have
different clusters with different speed ratings.

Am not sure whats the right way to deal with this issue but I leave
cpu cap unset while creating compute service offerings.

Hth.

--
@shankerbalan

M: +91 98860 60539 | O: +91 (80) 67935867
shanker.ba...@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre, 
Bangalore - 560 055

Need Enterprise Grade Support for Apache CloudStack?
Our CloudStack Infrastructure 
Support offers the 
best 24/7 SLA for CloudStack Environments.

Apache CloudStack Bootcamp training courses

**NEW!** CloudStack 4.2 training
08/09 January 2014, London
13-17 January 2014, GLOBAL. Instructor led, 
On-line
20-24 January 2014, GLOBAL. Instructor led, 
On-line

This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England & Wales. ShapeBlue Services India LLP is a company 
incorporated in India and is operated under license from Shape Blue Ltd. Shape 
Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is 
operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: issue creating a template with some service offering

2014-01-08 Thread Hollman Enciso R.
On Wed, Jan 8, 2014 at 10:05 AM, Erik Weber  wrote:

> As Daan said, check that your hypervisors report the CPUs are 3.00GHz or
> more and not something like 2.99GHz.
>
> I had a similar issue where 2.0GHz CPUs actually reported with a speed of
> 1.99GHz and subsequently my 2GHz offerings didn't work.
>
> Regards,
> Eri
>

yeap.

that's the problem.

my hypervisor it's 2.4GHZ and i made a service offering with 3GHz.

thanks


-- 
Hollman Eduardo Enciso R.
http://nexxuz.com
http://algolibre.com 
@hollman


Re: issue creating a template with some service offering

2014-01-08 Thread Erik Weber
On Wed, Jan 8, 2014 at 4:04 PM, Hollman Enciso R.
wrote:

> On Wed, Jan 8, 2014 at 9:47 AM, Daan Hoogland  >wrote:
>
> >
> > Do your hypervisors support this?
>
>
> Yes.
>
> I made a test creating a new VM directly on the hypervisor with the same
> resources (x3) and work ok
>


Make sure that the hypervisor report is correct in Cloudstack as well. Your
log entry:

   1. 2014-01-08 09:10:42,788 DEBUG [allocator.impl.FirstFitAllocator] (
   Job-Executor-5:job-43 = [ 84f54047-8d50-47c0-b251-bb2798378806 ]
FirstFitRoutingAllocator) Not using host 1; numCpusGood: true;
   cpuFreqGood: false, host has capacity?true


reveals that there might be a frequency issue. (cpuFreqGood = false)


Regards,
Erik


Re: issue creating a template with some service offering

2014-01-08 Thread Erik Weber
On Wed, Jan 8, 2014 at 3:47 PM, Daan Hoogland wrote:

> On Wed, Jan 8, 2014 at 3:29 PM, Hollman Enciso R.
>  wrote:
> > x3 has 3 cores 3gb of ram, 3.00 GHz
>
>
> Do your hypervisors support this?
>


As Daan said, check that your hypervisors report the CPUs are 3.00GHz or
more and not something like 2.99GHz.

I had a similar issue where 2.0GHz CPUs actually reported with a speed of
1.99GHz and subsequently my 2GHz offerings didn't work.

Regards,
Erik


Re: issue creating a template with some service offering

2014-01-08 Thread Hollman Enciso R.
On Wed, Jan 8, 2014 at 9:47 AM, Daan Hoogland wrote:

>
> Do your hypervisors support this?


Yes.

I made a test creating a new VM directly on the hypervisor with the same
resources (x3) and work ok


-- 
Hollman Eduardo Enciso R.
http://nexxuz.com
http://algolibre.com 
@hollman


Re: issue creating a template with some service offering

2014-01-08 Thread Daan Hoogland
On Wed, Jan 8, 2014 at 3:29 PM, Hollman Enciso R.
 wrote:
> x3 has 3 cores 3gb of ram, 3.00 GHz


Do your hypervisors support this?