Regarding 'secstorage.session.max ' and Worker threads

2014-09-05 Thread Ravi K
Hello All,

I wanted to know about Worker threads in SSVM and 'secstorage.session.max'

1. In SSVM, worker threads are responsible for handling the tasks performed
on SSVM.

2. 'secstorage.session.max' is the limit on max number of command execution
sessions that a SSVM can handle.

Does this mean that secstorage.session.max keeps limit on worker threads?

I wanted to how exactly they are related.

Thank you.

Regards,
Ravi


Re: Regarding 'secstorage.session.max ' and Worker threads

2014-09-05 Thread Rohit Yadav
Hi Ravi,

On 05-Sep-2014, at 8:07 am, Ravi K cloud.fanati...@gmail.com wrote:

 I wanted to know about Worker threads in SSVM and 'secstorage.session.max'

 1. In SSVM, worker threads are responsible for handling the tasks performed
 on SSVM.

Yes. secstorage.capacity.standby is a config which is the minimal number of 
command execution sessions that system is able to serve immediately. 
secstorage.session.max is another config which is the max number of command 
execution sessions that a SSVM can handle.


 2. 'secstorage.session.max' is the limit on max number of command execution
 sessions that a SSVM can handle.

 Does this mean that secstorage.session.max keeps limit on worker threads?

Yes, there is an algorithm that determines if we need more secondary storage 
systemvms to scale up, if we’re not able to satisfy required number of commands 
by these agents running in SSVM. One way to scale up is also to change the SSVM 
offering by creating a new offering and setting it on 
secstorage.service.offering.

You may read about the algorithm here: 
http://support.citrix.com/article/CTX137928
Hope this answers your question.

Regards,
Rohit Yadav
Software Architect, ShapeBlue
M. +41 779015219 | rohit.ya...@shapeblue.com
Blog: bhaisaab.org | Twitter: @_bhaisaab



Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design  Buildhttp://shapeblue.com/iaas-cloud-design-and-build//
CSForge – rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/
CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/
CloudStack Infrastructure 
Supporthttp://shapeblue.com/cloudstack-infrastructure-support/
CloudStack Bootcamp Training Courseshttp://shapeblue.com/cloudstack-training/

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 SA Pty Ltd is a company 
registered by The Republic of South Africa and is traded under license from 
Shape Blue Ltd. ShapeBlue is a registered trademark.


RE: Regarding 'secstorage.session.max ' and Worker threads

2014-09-05 Thread Koushik Das
For worker related thread pool in SSVM agent check 
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Agent+related+thread+pools
 

-Original Message-
From: Ravi K [mailto:cloud.fanati...@gmail.com] 
Sent: Friday, 5 September 2014 11:38 AM
To: users@cloudstack.apache.org
Subject: Regarding 'secstorage.session.max ' and Worker threads

Hello All,

I wanted to know about Worker threads in SSVM and 'secstorage.session.max'

1. In SSVM, worker threads are responsible for handling the tasks performed on 
SSVM.

2. 'secstorage.session.max' is the limit on max number of command execution 
sessions that a SSVM can handle.

Does this mean that secstorage.session.max keeps limit on worker threads?

I wanted to how exactly they are related.

Thank you.

Regards,
Ravi


Netscaler VPC and multiple inter tiers LB

2014-09-05 Thread benoit lair
Hello Folks,


I'm testing Netscaler VPX with acs 4.3. I have several VPCs deployed into
my cloud.

I would like to get my netscaler working with my vpcs.

So from what i have tested, it seems that :
- i can't share a VPX with more than one VPC ?
- in order to get my netscaler working with my vpc, i need to declare it
dedicated. So it can't be used both with vpc tiers and isolated networks ?
- i can use netscaler with a vpc only with public tier (means external
tier)

Can you confirm these limitations, or is it due to a misconfiguration of my
own networks offerings ?

So another question is :

How can i achieve ns-lb with several tiers in a vpc ?

I have a vpc with web-tier, app-tier and sql-tier :

how can i have in the same time, nslb between outside and web-tier, nslb
between web-tier and app-tier and nslb between app-tier and sql-tier,
having only one VPX ?

Thanks four your lights.

Regards, Benoit.


Not seeing parallel power on events in vCenter

2014-09-05 Thread Ian Duffy
Hi All,

I'm using Cloudstack 4.1.1 against vCenter 5.

If I create 5 instances on cloudstack. I see the 5 disks get created in
parallel but the power up and power down events do not.

Is this expected functionality? Or should power up and power down events
occur at the same time? If so is there some configuration around this?

If I go into vCenter I can manually power up and power down machines in
parallel without issue.

Thanks,

Ian


NAT problem, VMs like VR can't connect to internet

2014-09-05 Thread Christof Hlipala
Hi there,

i have a problem with my cloudstack/network setup. I hope somebody can help me.

I’m using KVM and on all server is CentOS 6 installed. I have no errors in the 
logs and all instances are running.

Here my current network setup: 
https://www.dropbox.com/s/nzfiy1ilebugi0k/cloud_network.png?dl=0 
https://www.dropbox.com/s/nzfiy1ilebugi0k/cloud_network.png?dl=0

I have a cloudstack advanced network and my virtual servers like the VR can’t 
connect to the internet or even ping the gateway. I also can’t ping the VR from 
the public network.
The nodes on which the vms are running are able to ping the public 
network/internet.

I have only one gateway, so i created a nat on the management server. So the VM 
that want connect to my public network must go through an other subnet first. I 
think my problem have something to do with my iptables (nat) settings. For a 
better understanding please see my diagram.

Does somebody have an idea? I appreciate every advice. If this can not work, 
what alternatives do i have to create an advanced network with only 1 gateway?


Please find below my iptables settings:

IPtables of the management server:

# Generated by iptables-save v1.4.7
*nat
:PREROUTING ACCEPT [1158:172626]
:POSTROUTING ACCEPT [119:8872]
:OUTPUT ACCEPT [119:8872]
-A POSTROUTING -o eth0 -j MASQUERADE
# -A POSTROUTING -s 192.168.1.0.0/24 -o eth0 -j MASQUERADE
COMMIT
# Completed
# Generated by iptables-save v1.4.7
*filter
:INPUT ACCEPT [119736:288057978]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [145743:303840575]
-A INPUT -p tcp -m tcp --dport 9090 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 8250 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 7080 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 3306 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -p udp -m state --state NEW -m udp --dport 111 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m state --state NEW -m tcp --dport 111 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m state --state NEW -m tcp --dport 2049 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m state --state NEW -m tcp --dport 32803 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p udp -m state --state NEW -m udp --dport 32769 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m state --state NEW -m tcp --dport 892 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p udp -m state --state NEW -m udp --dport 892 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m state --state NEW -m tcp --dport 875 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p udp -m state --state NEW -m udp --dport 875 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m state --state NEW -m tcp --dport 662 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p udp -m state --state NEW -m udp --dport 662 -j 
ACCEPT
-A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i eth1 -o eth0 -j ACCEPT
COMMIT
# Completed

IPtables of the nodes:

# Generated by iptables-save v1.4.7
*nat
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
# Completed on Tue Mar 25 14:45:02 2014
# Generated by iptables-save v1.4.7
*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -o virbr0 -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill
COMMIT
# Completed
# Generated by iptables-save v1.4.7
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -i virbr0 -p udp -m udp --dport 67 -j ACCEPT
-A INPUT -i virbr0 -p tcp -m tcp --dport 67 -j ACCEPT
-A INPUT -i virbr0 -p tcp -m tcp --dport 67 -j ACCEPT
-A INPUT -i virbr0 -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -i virbr0 -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 49152:49216 -j ACCEPT
-A INPUT -i virbr0 -p udp -m udp --dport 67 -j ACCEPT
-A INPUT -i virbr0 -p tcp -m tcp --dport 67 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5900:6100 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 16509 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -p udp -m state --state NEW -m udp --dport 111 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m state --state NEW -m tcp --dport 111 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m state --state NEW -m tcp --dport 2049 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m state --state NEW -m tcp --dport 32803 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p udp -m state --state NEW -m udp --dport 32769 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m state --state NEW -m tcp --dport 892 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p udp -m state --state NEW -m udp --dport 892 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m state --state NEW -m tcp --dport 875 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p udp -m state --state NEW -m udp --dport 875 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp -m state --state NEW -m tcp --dport 662 -j 
ACCEPT
-A INPUT -s 192.168.1.0/24 -p udp -m state --state NEW 

Re: Netscaler VPC and multiple inter tiers LB

2014-09-05 Thread Francois Gaudreault

Hi Benoit,

The limitations that you describes are exactly what the implementation 
is. Dedicated VPX per VPC, only public LB for one tier. However, there 
is a reasoning behind this. Since users can control their tier subnets, 
you may have overlapping. That's why you can't have a shared NetScaler 
for the VPCs.


You can't do inter-tier load balancing using the NetScaler if you have 
it inside CloudStack. To be honest, we also feel this is a huge problem, 
and we will likely look at our options. You need to use the Internal LB 
for that piece.


Hope it helps/confirms your thoughts :)

Francois

On 2014-09-05, 6:03 AM, benoit lair wrote:

Hello Folks,


I'm testing Netscaler VPX with acs 4.3. I have several VPCs deployed into
my cloud.

I would like to get my netscaler working with my vpcs.

So from what i have tested, it seems that :
- i can't share a VPX with more than one VPC ?
- in order to get my netscaler working with my vpc, i need to declare it
dedicated. So it can't be used both with vpc tiers and isolated networks ?
- i can use netscaler with a vpc only with public tier (means external
tier)

Can you confirm these limitations, or is it due to a misconfiguration of my
own networks offerings ?

So another question is :

How can i achieve ns-lb with several tiers in a vpc ?

I have a vpc with web-tier, app-tier and sql-tier :

how can i have in the same time, nslb between outside and web-tier, nslb
between web-tier and app-tier and nslb between app-tier and sql-tier,
having only one VPX ?

Thanks four your lights.

Regards, Benoit.




--
Francois Gaudreault
Gestionnaire de Produit | Product Manager - Cloud Platform  Services
t:514-629-6775

CloudOps Votre partenaire infonuagique | Cloud Solutions Experts
420 rue Guy | Montreal | Quebec | H3J 1S6
w: cloudops.com | tw: @CloudOps_



Re: API calls and keys

2014-09-05 Thread Giri Prasad
I have implemented a few of the cs api calls via php, like listVirtualMachines, 
using CloudStackClient. I need to implement the view console via a api call. I 
saw on some net posting's, the url used:

http://xx.xx.xx.xx:8080/client/console?cmd=accessvm=xsignature=XX 
or http://xx.xx.xx.xx:8080/client/api?cmd=accessvm=xsignature=XX

http://XXX.XXX.XXX.5:8080/client/console?cmd=accessvm=----

The need is to pass the string to the browser, without exposing the (secret key 
/ api key) signature, which will be showed in the browser url, when the user 
clicks on the link.  Or is there any direct cloudstack api which can be called?

Any ideas on this?





 From: abhisek basu abhisekb...@msn.com
To: users@cloudstack.apache.org users@cloudstack.apache.org 
Cc: d...@cloudstack.apache.org d...@cloudstack.apache.org 
Sent: Wednesday, 3 September 2014 8:43 PM
Subject: Re: API calls and keys
 

You need to generate the signature; sample code us here: 
http://abhisekbasu.wordpress.com/2013/11/19/how-to-generate-signature-for-cloudstack-api/

You may also consider using login api in your scenario.

Sent from my iPhone


 On 3 Sep 2014, at 8:11 pm, Giri Prasad g_p...@yahoo.com.INVALID wrote:
 
 Hello,
 
 I am using a html/php script to read in userid, password and domain id from 
 the user.  Using CloudStackClient.php, I am able to call most of the api's, 
 like list vm's, and the output seems correct.
 
 And I want to use some API's via a href   like:
 
 http://XXX.XXX.XXX.5:8080/client/api?command=startVirtualMachineid=----
 http://XXX.XXX.XXX.5:8080/client/api?command=stopVirtualMachineid=----
 http://XXX.XXX.XXX.5:8080/client/console?cmd=accessvm=----
 
 I need to add dynamically the apikey and signature:
 
 apiKey=miVr6X7u6bN_sdahOBpjNejPgEsT35eXqjB8CG20YI3yaxXcgpyuaIRmFI_EJTVwZ0nUkkJbPmY3y2bciKwFQ
 signature=Lxx1DM40AjcXU%2FcaiK8RAP0O1hU%3D
 
 since apikey and signature are required, are there, any api's, where I can 
 dynamically, get it from the CS infra, and use the return values, for 
 building the apiKey and signature part of the url. 
 
 
 I need to get the apikey and signature dynamically, for a specific user 
 (userid/passwd), and then use it, for building the url.
 
 
 Thanks  Regards,
 Giri
 
 Without apikeys and signature:
 startvirtualmachineresponse 
 cloud-stack-version=4.1.1errorcode401/errorcodeerrortextunable to 
 verify user credentials and/or request 
 signature/errortext/startvirtualmachineresponse
 
 console?cmd=access
 Access denied. Invalid web session or API key in request

Simulator Build Failed

2014-09-05 Thread Deepal Jayasekara
I am trying to build Cloudstack from the source and was able to build
Cloudstack following the steps in the documentation. But when I try to
build the simulator, I encountered with following errors:

[INFO] Scanning for projects...
[INFO]

[INFO]

[INFO] Building Apache CloudStack marvin 4.3.1
[INFO]

[INFO]
[INFO] --- gmaven-plugin:1.5:execute (setproperty) @ cloud-marvin ---
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (generate-sources) @ cloud-marvin
---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.3:process (default) @
cloud-marvin ---
[INFO]
[INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor) @
cloud-marvin ---
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (pre-integration-test) @
cloud-marvin ---

Step1 :Parsing Options And Check Went Fine

 Exception Occurred Under __deployDC : Execute cmd: addcluster failed, due
to: errorCode: 431, errorText:Could not find corresponding resource manager
for simulator

Marvin Initialization Failed
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 50.773s
[INFO] Finished at: Fri Sep 05 03:04:24 IST 2014
[INFO] Final Memory: 31M/235M
[INFO]

[ERROR] Failed to execute goal
org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (pre-integration-test) on
project cloud-marvin: Command execution failed. Process exited with an
error: 1 (Exit value: 1) - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Is this a problem with the simulator ? What causes this error? Is there a
way to fix this and proceed? I have build Cloudstack 4.3 branch. Any help
would be appreciated.

Thank you.


-- 
___
[image: photo]
*Deepal Jayasekara*
Undergraduate, Department Of Computer Science And Engineering
University of Moratuwa, Sri Lanka
| mobile: +94712070097  | blog: *insiderattack.blogspot.com
http://insiderattack.blogspot.com*
https://www.facebook.com/deepal.cse10  https://twitter.com/dpjayasekara
http://www.linkedin.com/profile/view?id=127692449authType=NAME_SEARCHauthToken=Nn4Zlocale=en_USsrchid=1276924491381815604317srchindex=1srchtotal=1trk=vsrp_people_res_nametrkInfo=VSRPsearchId%3A1276924491381815604317%2CVSRPtargetId%3A127692449%2CVSRPcmpt%3Aprimary


Re: Live migration

2014-09-05 Thread Mārtiņš Jakubovičs
Hello,

Looks like migration fails in this scenario:

1.) New internal network, I will call it - NET1
2.) When perform migration to host without running instance with NET1,
live migration fails.

Also, when cloudstack create instance in other host (to which live
migration fails), after that I can live migrate successfully, without
problems.

And again, if I live migrate all instances to one host, I can't migrate
back if there in no running instance with NET1 network.

Sometimes again, VM's fail to launch, problem same, as described here:
http://comments.gmane.org/gmane.comp.apache.cloudstack.devel/41290

Migration error: http://pastebin.com/zhiqdy64
Grep job id from management log: http://pastebin.com/087Q3SRx

Shared networks in Advanced zone looks like not working as I expected,
because in network creation I should put VLAN ID.

On 2014.09.04. 20:56, Mārtiņš Jakubovičs wrote:
 Hello  Geoff,
 
 Thanks for clarification. I have XenServer 6.2 pool, with all patches. I
 can send tomorrow both error logs when I use GRE and when I use VLAN
 guest network and live migration fails...
 
 I have 4 nic's, 2 nic's are bonded and are used for management and
 storage. 1 public nic (internet). 1 internal nic, for GRE tunnels or as
 secondary shared network for internal use.
 
 Can you, please, point me in a way how I can create Advanced networking
 with two shared networks? Should I use two Guest networks without Public
 network?
 
 Thanks.
 
 On 2014.09.04. 20:08, Geoff Higginbottom wrote:
 Hi Martin,

 ACS 4.3 Advanced Zone Live Migration certainly does work, both within
 the same Pool (using shared storage) , and across Pools / Shared
 Storage (assume you are using XenServer as you mention Pool)  Live
 migration also works across any VMware Host or KVM Host within a Zone,
 as long as you have configured Zone wide Primary Storage.

 Basic Zone only allows you to have the one Guest Network, but if your
 end goal is to have each VM with a NIC on an Internal Network, and a
 NIC on a Public Network this can easily be achieved with Advanced
 Networking, using Shared Networks.

 Advanced Zones with Security Groups do work, what Hypervisor were you
 using for this.

 Regards

 Geoff Higginbottom

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

 geoff.higginbot...@shapeblue.com

 -Original Message-
 From: Mārtiņš Jakubovičs [mailto:mart...@vertigs.lv]
 Sent: 04 September 2014 15:32
 To: users@cloudstack.apache.org
 Subject: Live migration

 Hello all,

 In ACS 4.3 with advanced zone, live migration works? I tested guest
 network with VLAN and GRE, but in both cases pool based live migration
 fails.

 Is it possible to setup something like basic zone setup, but with two
 networks? I want instances with two interfaces, one with public nic,
 other with internal nic. I tryed to create advanced zone with security
 groups, but it fails.

 Thanks.
 Find out more about ShapeBlue and our range of CloudStack related
 services

 IaaS Cloud Design 
 Buildhttp://shapeblue.com/iaas-cloud-design-and-build//
 CSForge – rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/
 CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/
 CloudStack Infrastructure
 Supporthttp://shapeblue.com/cloudstack-infrastructure-support/
 CloudStack Bootcamp Training
 Courseshttp://shapeblue.com/cloudstack-training/

 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 SA
 Pty Ltd is a company registered by The Republic of South Africa and is
 traded under license from Shape Blue Ltd. ShapeBlue is a registered
 trademark.
 
 

INFO  [o.a.c.f.j.i.AsyncJobMonitor] (Job-Executor-64:ctx-4b26da7f) Add job-363 
into job monitoring
INFO  [c.c.v.VirtualMachineManagerImpl] (Job-Executor-64:ctx-4b26da7f 
ctx-b5ed4a77) Migrating VM[User|Demo-Local-6-VM] to 
Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type--Pool(Id))] 
: Dest[Zone(7)-Pod(5)-Cluster(5)-Host(24)-Storage()]
WARN  [c.c.h.x.r.CitrixResourceBase] (DirectAgent-26:ctx-e3c8d87c) Task failed! 
Task record: uuid: 2894db93-aada-c709-a3b7-9a7538c491ad
   nameLabel: Async.VM.pool_migrate
 nameDescription: 
   allowedOperations: []
   currentOperations: {}
 created: Fri Sep 

Re: Netscaler VPC and multiple inter tiers LB

2014-09-05 Thread benoit lair
Hi Francois,

Thanks for your response. So i do not need to do deeper tests in order to
confirm what i thought. You confirmed all that i feared. As you said it is
a very huge problem.

I can understand the problematic to have subnet overlapping with several
vpc (although you have several users and not just a sysops dept wanting to
manage several vpcs). Here again, it is strange, because vpc tiers are
vlans isolated, so you can have several times the same subnet present in
two differents vpcs, with 802.1Q isolation, even the netscaler could manage
this without trouble, isn't it ?

Now reducing the opportunities with my netscaler, i don't understand why i
can't do Ns-Lb ith all my tiers inside a vpc :

I want to host a web application according to the 3-tier model (web reverse
proxy, web app server, sql database server), how can i exploit correctly
the tcp multiplexing feature of the Netscaler if once passed the web
reverse proxy tier, i do pass my request to a simple (too ?) lb internal vm
in order to contact my web app server ?

However i imagined to do some internal lb for the external tier (web
reverse proxy) and to pass the http(s) request to my web app server through
the netscaler. But here again when using NS with VPC, it can only be used
for external LB and not internal LB.

Would you have another solution for this ? (a tweak into mgmt server db) Or
is it just impossible to realize ? Although i have 2 Netscaler into my VPC
? (one for the web reverse proxy tier, another for the web app tier)


Thanks for your responses.

Benoit.




2014-09-05 13:35 GMT+02:00 Francois Gaudreault fgaudrea...@cloudops.com:

 Hi Benoit,

 The limitations that you describes are exactly what the implementation is.
 Dedicated VPX per VPC, only public LB for one tier. However, there is a
 reasoning behind this. Since users can control their tier subnets, you may
 have overlapping. That's why you can't have a shared NetScaler for the VPCs.

 You can't do inter-tier load balancing using the NetScaler if you have it
 inside CloudStack. To be honest, we also feel this is a huge problem, and
 we will likely look at our options. You need to use the Internal LB for
 that piece.

 Hope it helps/confirms your thoughts :)

 Francois


 On 2014-09-05, 6:03 AM, benoit lair wrote:

 Hello Folks,


 I'm testing Netscaler VPX with acs 4.3. I have several VPCs deployed into
 my cloud.

 I would like to get my netscaler working with my vpcs.

 So from what i have tested, it seems that :
 - i can't share a VPX with more than one VPC ?
 - in order to get my netscaler working with my vpc, i need to declare it
 dedicated. So it can't be used both with vpc tiers and isolated
 networks ?
 - i can use netscaler with a vpc only with public tier (means external
 tier)

 Can you confirm these limitations, or is it due to a misconfiguration of
 my
 own networks offerings ?

 So another question is :

 How can i achieve ns-lb with several tiers in a vpc ?

 I have a vpc with web-tier, app-tier and sql-tier :

 how can i have in the same time, nslb between outside and web-tier, nslb
 between web-tier and app-tier and nslb between app-tier and sql-tier,
 having only one VPX ?

 Thanks four your lights.

 Regards, Benoit.



 --
 Francois Gaudreault
 Gestionnaire de Produit | Product Manager - Cloud Platform  Services
 t:514-629-6775

 CloudOps Votre partenaire infonuagique | Cloud Solutions Experts
 420 rue Guy | Montreal | Quebec | H3J 1S6
 w: cloudops.com | tw: @CloudOps_




Unable to create a deployment for VM with available resources

2014-09-05 Thread Michael Lukzak
Hi,

I have avaiable resources on my host (8 xens), but when I want to create 'big 
machine' (4 cores with 16GB of RAM) I can't.
Only error that are in catalina.out is this:

INFO  [user.vm.DeployVMCmd] (Job-Executor-98:job-7688) Unable to create a 
deployment for VM[User|test]
com.cloud.exception.InsufficientServerCapacityException: Unable to create a 
deployment for VM[User|test]Scope=interface com.cloud.dc.DataCenter; id=1
at 
org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.reserveVirtualMachine(VMEntityManagerImpl.java:186)
at 
org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.reserve(VirtualMachineEntityImpl.java:198)
at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3870)
at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3464)
at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3450)
at 
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at 
org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:379)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
at 
com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
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.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)

If I want to create machine with 4 cores and 8GB of RAM, there is no problem.
I have a avaiable resources on my servers to create that specific machine with 
4c,16GB.

Any ideas?

-- 
Best Regards,
Michael

Migration error

2014-09-05 Thread Gintaras

Hello,

I create VM and first time migrated successfully. Second migration error
Cloudstack 4.4, xenserver 6.2

Error /var/log/cloudstack/management/management-server.log:

2014-09-05 09:29:46,059 DEBUG [c.c.a.m.DirectAgentAttache] 
(DirectAgent-150:ctx-2f13d1ed) Seq 13-4340625615855026180: Executing request
2014-09-05 09:29:46,080 DEBUG [c.c.a.m.DirectAgentAttache] 
(DirectAgent-150:ctx-2f13d1ed) Seq 13-4340625615855026180: Response 
Received:
2014-09-05 09:29:46,080 DEBUG [c.c.a.t.Request] 
(DirectAgent-150:ctx-2f13d1ed) Seq 13-4340625615855026180: Processing:  
{ Ans: , MgmtId: 119169995887277, via: 13, Ver: v1, Flags: 10, 
[{com.cloud.agent.api.ClusterVMMetaDataSyncAnswer:{_clusterId:1,_isExecuted:false,result:true,wait:0}}] 
}
2014-09-05 09:29:46,858 DEBUG [c.c.a.ApiServlet] 
(catalina-exec-3:ctx-83b8f412) ===START===  192.168.11.36 -- GET 
command=migrateVirtualMachineWithVolumehostid=2144c7a0-c0fe-4003-a3a7-31a6e6074f5bvirtualmachineid=37f0ac55-94f3-4c27-a318-83e48d6724e4response=jsonsessionkey=%2FiZXhDJVVkXsA%2BF%2FBpWlQmV%2BbEM%3D_=1409923786054
2014-09-05 09:29:46,918 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(catalina-exec-3:ctx-83b8f412 ctx-d4b68fa7) submit async job-1505, 
details: AsyncJobVO {id:1505, userId: 2, accountId: 2, instanceType: 
None, instanceId: null, cmd: 
org.apache.cloudstack.api.command.admin.vm.MigrateVirtualMachineWithVolumeCmd, 
cmdInfo: 
{response:json,sessionkey:/iZXhDJVVkXsA+F/BpWlQmV+bEM\u003d,ctxDetails:{\com.cloud.vm.VirtualMachine\:\37f0ac55-94f3-4c27-a318-83e48d6724e4\,\com.cloud.host.Host\:\2144c7a0-c0fe-4003-a3a7-31a6e6074f5b\},virtualmachineid:37f0ac55-94f3-4c27-a318-83e48d6724e4,cmdEventType:VM.MIGRATE,hostid:2144c7a0-c0fe-4003-a3a7-31a6e6074f5b,ctxUserId:2,httpmethod:GET,_:1409923786054,ctxAccountId:2,ctxStartEventId:1636}, 
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, 
result: null, initMsid: 119169995887277, completeMsid: null, 
lastUpdated: null, lastPolled: null, created: null}
2014-09-05 09:29:46,919 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
(API-Job-Executor-117:ctx-b9105a91 job-1505) Add job-1505 into job 
monitoring
2014-09-05 09:29:46,919 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-117:ctx-b9105a91 job-1505) Executing AsyncJobVO 
{id:1505, userId: 2, accountId: 2, instanceType: None, instanceId: null, 
cmd: 
org.apache.cloudstack.api.command.admin.vm.MigrateVirtualMachineWithVolumeCmd, 
cmdInfo: 
{response:json,sessionkey:/iZXhDJVVkXsA+F/BpWlQmV+bEM\u003d,ctxDetails:{\com.cloud.vm.VirtualMachine\:\37f0ac55-94f3-4c27-a318-83e48d6724e4\,\com.cloud.host.Host\:\2144c7a0-c0fe-4003-a3a7-31a6e6074f5b\},virtualmachineid:37f0ac55-94f3-4c27-a318-83e48d6724e4,cmdEventType:VM.MIGRATE,hostid:2144c7a0-c0fe-4003-a3a7-31a6e6074f5b,ctxUserId:2,httpmethod:GET,_:1409923786054,ctxAccountId:2,ctxStartEventId:1636}, 
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, 
result: null, initMsid: 119169995887277, completeMsid: null, 
lastUpdated: null, lastPolled: null, created: null}
2014-09-05 09:29:46,919 DEBUG [c.c.a.ApiServlet] 
(catalina-exec-3:ctx-83b8f412 ctx-d4b68fa7) ===END===  192.168.11.36 -- 
GET 
command=migrateVirtualMachineWithVolumehostid=2144c7a0-c0fe-4003-a3a7-31a6e6074f5bvirtualmachineid=37f0ac55-94f3-4c27-a318-83e48d6724e4response=jsonsessionkey=%2FiZXhDJVVkXsA%2BF%2FBpWlQmV%2BbEM%3D_=1409923786054
2014-09-05 09:29:47,003 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-117:ctx-b9105a91 job-1505 ctx-61fde895) Sync job-1506 
execution on object VmWorkJobQueue.159
2014-09-05 09:29:47,004 WARN  [c.c.u.d.Merovingian2] 
(API-Job-Executor-117:ctx-b9105a91 job-1505 ctx-61fde895) Was unable to 
find lock for the key vm_instance159 and thread id 1202515378
2014-09-05 09:29:47,290 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(AsyncJobMgr-Heartbeat-1:ctx-04c93a4f) Execute sync-queue item: 
SyncQueueItemVO {id:263, queueId: 910, contentType: AsyncJob, contentId: 
1506, lastProcessMsid: null, lastprocessNumber: null, lastProcessTime: 
null, created: Fri Sep 05 09:29:47 EDT 2014}
2014-09-05 09:29:47,291 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(AsyncJobMgr-Heartbeat-1:ctx-04c93a4f) Schedule queued job-1506
2014-09-05 09:29:47,324 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
(Work-Job-Executor-50:ctx-4b8faae5 job-1505/job-1506) Add job-1506 into 
job monitoring
2014-09-05 09:29:47,324 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(Work-Job-Executor-50:ctx-4b8faae5 job-1505/job-1506) Executing 
AsyncJobVO {id:1506, userId: 2, accountId: 2, instanceType: null, 
instanceId: null, cmd: com.cloud.vm.VmWorkMigrate, cmdInfo: 

Cannot add instances using template created from snapshot

2014-09-05 Thread Asanka sanjaya Herath
I followed this https://github.com/imduffy15/GSoC-2014/ and installed
apache cloudstack with basic networking  in my local machine, and every
thing worked smoothly.

​I can add instances from the built in tiny linux template(cent-os 5.6
64bit) without having any issue.

I got a snapshot of the running instance volume and created a template from
it. When I try to add an instance using that template I always get
*InsufficientServerCapacityException*.

According to my dashboard there are enough capacity to add the instance.
Any ideas?

console:

​WARN  [o.a.c.alerts] (API-Job-Executor-5:ctx-4692c763 job-166
ctx-b141500e)  alertType:: 8 // dataCenterId:: 1 // podId:: null //
clusterId:: null // message:: Failed to deploy Vm with Id: 29, on Host with
Id: null
INFO  [o.a.c.a.c.a.v.DeployVMCmdByAdmin] (API-Job-Executor-5:ctx-4692c763
job-166 ctx-b141500e)
com.cloud.exception.InsufficientServerCapacityException: Unable to create a
deployment for VM[User|i-2-29-VM]Scope=interface com.cloud.dc.DataCenter;
id=1
INFO  [o.a.c.a.c.a.v.DeployVMCmdByAdmin] (API-Job-Executor-5:ctx-4692c763
job-166 ctx-b141500e) Unable to create a deployment for VM[User|i-2-29-VM]
com.cloud.exception.InsufficientServerCapacityException: Unable to create a
deployment for VM[User|i-2-29-VM]Scope=interface com.cloud.dc.DataCenter;
id=1
at
org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.reserveVirtualMachine(VMEntityManagerImpl.java:214)
at
org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.reserve(VirtualMachineEntityImpl.java:200)
at
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3515)
at
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3166)
at
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3154)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at
org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:106)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at
com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy224.startVirtualMachine(Unknown Source)
at
org.apache.cloudstack.api.command.admin.vm.DeployVMCmdByAdmin.execute(DeployVMCmdByAdmin.java:48)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
at
com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108)
at
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:503)
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
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:460)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)



-- 
Thanks,
Regards,
ASH


Error Creating Backup Cloud database

2014-09-05 Thread Hollman Enciso R.
Hello, i'm trying to generate a backup of cloud database but it's
generating this error.

Any idea why or how can I made a Backup of cloud database?


ERROR 1356 (HY000) at line 8807: View 'cloud_test.account_netstats_view'
references invalid table(s) or column(s) or function(s) or definer/invoker
of view lack rights to use them

thanks

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


[CALL FOR SPEAKERS] CloudStack Silicon Valley User Group

2014-09-05 Thread Karen Vuong
Hi all,



John Kinsella and I are kicking off the Beginner’s Guide to Apache
CloudStack Series and plan to hold 4 meetups over the next 3 months. We’ve
had around 170 new members join the CloudStack Silicon Valley User Group
this year (there are a total of 465 members in the group as of now). I
created a poll within the CloudStack Silicon Valley User Group and there’s
quite a few members that have shown interest in the beginner’s series:
http://www.meetup.com/CloudStack-Silicon-Valley-User-Group/polls/



We’d like to get a variety of speakers scheduled in for the next 4 meetups.
Will anyone be in the San Francisco/ Santa Clara, CA US area during any of
the months below and would like to speak on one of the topics?



Beginner’s Guide to Apache CloudStack Series:



Part 1 – Intro to CloudStack (September 16th).

Part 2 – CloudStack Use Cases (September).

Part 3 – CloudStack Networking (October).

Part 4 – Monitoring CloudStack (November).



If you’re interested in speaking at one of the meetups or have any
questions, please feel free to reach out to me. Thanks!



Cheers,



Karen


RE: API calls and keys

2014-09-05 Thread Demetrius Tsitrelis
What about using POST via AJAX instead of using implied GET in the link?

-Original Message-
From: Giri Prasad [mailto:g_p...@yahoo.com.INVALID] 
Sent: Friday, September 05, 2014 4:47 AM
To: d...@cloudstack.apache.org; users@cloudstack.apache.org
Subject: Re: API calls and keys

I have implemented a few of the cs api calls via php, like listVirtualMachines, 
using CloudStackClient. I need to implement the view console via a api call. I 
saw on some net posting's, the url used:

http://xx.xx.xx.xx:8080/client/console?cmd=accessvm=xsignature=XX 
or http://xx.xx.xx.xx:8080/client/api?cmd=accessvm=xsignature=XX

http://XXX.XXX.XXX.5:8080/client/console?cmd=accessvm=----

The need is to pass the string to the browser, without exposing the (secret key 
/ api key) signature, which will be showed in the browser url, when the user 
clicks on the link.  Or is there any direct cloudstack api which can be called?

Any ideas on this?





 From: abhisek basu abhisekb...@msn.com
To: users@cloudstack.apache.org users@cloudstack.apache.org
Cc: d...@cloudstack.apache.org d...@cloudstack.apache.org
Sent: Wednesday, 3 September 2014 8:43 PM
Subject: Re: API calls and keys
 

You need to generate the signature; sample code us here: 
http://abhisekbasu.wordpress.com/2013/11/19/how-to-generate-signature-for-cloudstack-api/

You may also consider using login api in your scenario.

Sent from my iPhone


 On 3 Sep 2014, at 8:11 pm, Giri Prasad g_p...@yahoo.com.INVALID wrote:
 
 Hello,
 
 I am using a html/php script to read in userid, password and domain id from 
 the user.  Using CloudStackClient.php, I am able to call most of the api's, 
 like list vm's, and the output seems correct.
 
 And I want to use some API's via a href   like:
 
 http://XXX.XXX.XXX.5:8080/client/api?command=startVirtualMachineid=aa
 aa----
 http://XXX.XXX.XXX.5:8080/client/api?command=stopVirtualMachineid=aaa
 a---- 
 http://XXX.XXX.XXX.5:8080/client/console?cmd=accessvm=--c
 ccc--
 
 I need to add dynamically the apikey and signature:
 
 apiKey=miVr6X7u6bN_sdahOBpjNejPgEsT35eXqjB8CG20YI3yaxXcgpyuaIRmFI_EJT
 VwZ0nUkkJbPmY3y2bciKwFQ signature=Lxx1DM40AjcXU%2FcaiK8RAP0O1hU%3D
 
 since apikey and signature are required, are there, any api's, where I can 
 dynamically, get it from the CS infra, and use the return values, for 
 building the apiKey and signature part of the url. 
 
 
 I need to get the apikey and signature dynamically, for a specific user 
 (userid/passwd), and then use it, for building the url.
 
 
 Thanks  Regards,
 Giri
 
 Without apikeys and signature:
 startvirtualmachineresponse 
 cloud-stack-version=4.1.1errorcode401/errorcodeerrortextunabl
 e to verify user credentials and/or request 
 signature/errortext/startvirtualmachineresponse
 
 console?cmd=access
 Access denied. Invalid web session or API key in request


Changing VPC VR system offering

2014-09-05 Thread Francois Gaudreault

HI,

Where can I assign another System Offering to my VPC VR? I can select it 
for shared networks, but not VRs


Thanks!

--
Francois Gaudreault
Gestionnaire de Produit | Product Manager - Cloud Platform  Services
t:514-629-6775

CloudOps Votre partenaire infonuagique | Cloud Solutions Experts
420 rue Guy | Montreal | Quebec | H3J 1S6
w: cloudops.com | tw: @CloudOps_



FreeBSD10 ISO Template not working

2014-09-05 Thread Derek Cole
Hello,

I have just upgraded to cloudstack 4.4

I was previously using 4.2, and I was able to get my FreeBSD10 templates
creating VM's on a Xenserver 6.2 server. Now, whenever I try, I am getting
a status message of Job failed due to exception Unable to create a
deployment for VM[User|i-2-7-VM]. Below are some relevant stack dumps.

Any ideas? Thanks!

2014-08-26 17:01:35,207 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-333:ctx-06b8cfa3) 1. The VM i-2-7-VM is in Starting state.
2014-08-26 17:01:35,209 WARN  [c.c.h.x.r.XenServer620Resource]
(DirectAgent-333:ctx-06b8cfa3) XenServer 6.2.0 DOES NOT support Guest OS
type FreeBSD (64-bit)
2014-08-26 17:01:35,212 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-333:ctx-06b8cfa3) Cannot find template : null on XS version:
com.cloud.hypervisor.xen.resource.XenServer620Resource
2014-08-26 17:01:35,212 WARN  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-333:ctx-06b8cfa3) Catch Exception: class
java.util.NoSuchElementException due to java.util.NoSuchElementException
java.util.NoSuchElementException
at
java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:396)
at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:405)
at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVmFromTemplate(CitrixResourceBase.java:1302)
at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1730)
at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:504)
at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:61)
at
com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:102)
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.run(FutureTask.java:262)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
2014-08-26 17:01:35,213 WARN  [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-333:ctx-06b8cfa3) Unable to start i-2-7-VM due to
java.util.NoSuchElementException
at
java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:396)
at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:405)
at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVmFromTemplate(CitrixResourceBase.java:1302)
at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1730)
at
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:504)
at
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:61)
at
com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:102)
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.run(FutureTask.java:262)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at

Re: FreeBSD10 ISO Template not working

2014-09-05 Thread motty cruz
Hi Derek,
I was having similar issue. to resolved, register the ISO as OS Type =
Other 64
once you get the Operating System installed go to
/usr/ports/sysutility/xen-tools make install clean
also install, /usr/ports/sysutility/xe-guest make install clean
once that is done: /usr/local/bin/xen-detect

and you should be good to go, I am also running CS 4.4 XenServer.

Thanks,
Motty


On Fri, Sep 5, 2014 at 2:23 PM, Derek Cole derek.c...@gmail.com wrote:

 Hello,

 I have just upgraded to cloudstack 4.4

 I was previously using 4.2, and I was able to get my FreeBSD10 templates
 creating VM's on a Xenserver 6.2 server. Now, whenever I try, I am getting
 a status message of Job failed due to exception Unable to create a
 deployment for VM[User|i-2-7-VM]. Below are some relevant stack dumps.

 Any ideas? Thanks!

 2014-08-26 17:01:35,207 DEBUG [c.c.h.x.r.CitrixResourceBase]
 (DirectAgent-333:ctx-06b8cfa3) 1. The VM i-2-7-VM is in Starting state.
 2014-08-26 17:01:35,209 WARN  [c.c.h.x.r.XenServer620Resource]
 (DirectAgent-333:ctx-06b8cfa3) XenServer 6.2.0 DOES NOT support Guest OS
 type FreeBSD (64-bit)
 2014-08-26 17:01:35,212 DEBUG [c.c.h.x.r.CitrixResourceBase]
 (DirectAgent-333:ctx-06b8cfa3) Cannot find template : null on XS version:
 com.cloud.hypervisor.xen.resource.XenServer620Resource
 2014-08-26 17:01:35,212 WARN  [c.c.h.x.r.CitrixResourceBase]
 (DirectAgent-333:ctx-06b8cfa3) Catch Exception: class
 java.util.NoSuchElementException due to java.util.NoSuchElementException
 java.util.NoSuchElementException
 at

 java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:396)
 at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:405)
 at

 com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVmFromTemplate(CitrixResourceBase.java:1302)
 at

 com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1730)
 at

 com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:504)
 at

 com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:61)
 at

 com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:102)
 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.run(FutureTask.java:262)
 at

 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
 at

 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
 at

 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at

 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745)
 2014-08-26 17:01:35,213 WARN  [c.c.h.x.r.CitrixResourceBase]
 (DirectAgent-333:ctx-06b8cfa3) Unable to start i-2-7-VM due to
 java.util.NoSuchElementException
 at

 java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:396)
 at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:405)
 at

 com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVmFromTemplate(CitrixResourceBase.java:1302)
 at

 com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1730)
 at

 com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:504)
 at

 com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:61)
 at

 com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:102)
 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

 

Re: FreeBSD10 ISO Template not working

2014-09-05 Thread Derek Cole
Thanks! I had just stumbled across your thread as I was continuing to
search. I was able to get the ISO installed and boot a VM by selecting
other. I will try to get those xen-tools installed as well.


On Fri, Sep 5, 2014 at 5:30 PM, motty cruz motty.c...@gmail.com wrote:

 Hi Derek,
 I was having similar issue. to resolved, register the ISO as OS Type =
 Other 64
 once you get the Operating System installed go to
 /usr/ports/sysutility/xen-tools make install clean
 also install, /usr/ports/sysutility/xe-guest make install clean
 once that is done: /usr/local/bin/xen-detect

 and you should be good to go, I am also running CS 4.4 XenServer.

 Thanks,
 Motty


 On Fri, Sep 5, 2014 at 2:23 PM, Derek Cole derek.c...@gmail.com wrote:

  Hello,
 
  I have just upgraded to cloudstack 4.4
 
  I was previously using 4.2, and I was able to get my FreeBSD10 templates
  creating VM's on a Xenserver 6.2 server. Now, whenever I try, I am
 getting
  a status message of Job failed due to exception Unable to create a
  deployment for VM[User|i-2-7-VM]. Below are some relevant stack dumps.
 
  Any ideas? Thanks!
 
  2014-08-26 17:01:35,207 DEBUG [c.c.h.x.r.CitrixResourceBase]
  (DirectAgent-333:ctx-06b8cfa3) 1. The VM i-2-7-VM is in Starting state.
  2014-08-26 17:01:35,209 WARN  [c.c.h.x.r.XenServer620Resource]
  (DirectAgent-333:ctx-06b8cfa3) XenServer 6.2.0 DOES NOT support Guest OS
  type FreeBSD (64-bit)
  2014-08-26 17:01:35,212 DEBUG [c.c.h.x.r.CitrixResourceBase]
  (DirectAgent-333:ctx-06b8cfa3) Cannot find template : null on XS version:
  com.cloud.hypervisor.xen.resource.XenServer620Resource
  2014-08-26 17:01:35,212 WARN  [c.c.h.x.r.CitrixResourceBase]
  (DirectAgent-333:ctx-06b8cfa3) Catch Exception: class
  java.util.NoSuchElementException due to java.util.NoSuchElementException
  java.util.NoSuchElementException
  at
 
 
 java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:396)
  at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:405)
  at
 
 
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVmFromTemplate(CitrixResourceBase.java:1302)
  at
 
 
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1730)
  at
 
 
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:504)
  at
 
 
 com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:61)
  at
 
 
 com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:102)
  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.run(FutureTask.java:262)
  at
 
 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
  at
 
 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
  at
 
 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  at
 
 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  at java.lang.Thread.run(Thread.java:745)
  2014-08-26 17:01:35,213 WARN  [c.c.h.x.r.CitrixResourceBase]
  (DirectAgent-333:ctx-06b8cfa3) Unable to start i-2-7-VM due to
  java.util.NoSuchElementException
  at
 
 
 java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:396)
  at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:405)
  at
 
 
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVmFromTemplate(CitrixResourceBase.java:1302)
  at
 
 
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1730)
  at
 
 
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:504)
  at
 
 
 com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:61)
  at
 
 
 com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:102)
  at
 
 
 com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
  at
 
 
 

Re: FreeBSD10 ISO Template not working

2014-09-05 Thread motty cruz
no problem, here is what my rc.conf looks like:
# cat /etc/rc.conf
hostname=ldap
ifconfig_xn0=DHCP
sshd_enable=YES
# Set dumpdev to AUTO to enable crash dumps, NO to disable
dumpdev=AUTO
xenguest_enable=YES


# /usr/local/bin/xen-detect
Running in HVM context on Xen v4.1.

# pkg info | less
xe-guest-utilities-6.0.2_3 FreeBSD VM tools for Citrix XenServer and XCP
xen-tools-4.1.3_3  Xen tools within FreeBSD domU

Thanks,
-Motty


On Fri, Sep 5, 2014 at 2:34 PM, Derek Cole derek.c...@gmail.com wrote:

 Thanks! I had just stumbled across your thread as I was continuing to
 search. I was able to get the ISO installed and boot a VM by selecting
 other. I will try to get those xen-tools installed as well.


 On Fri, Sep 5, 2014 at 5:30 PM, motty cruz motty.c...@gmail.com wrote:

  Hi Derek,
  I was having similar issue. to resolved, register the ISO as OS Type =
  Other 64
  once you get the Operating System installed go to
  /usr/ports/sysutility/xen-tools make install clean
  also install, /usr/ports/sysutility/xe-guest make install clean
  once that is done: /usr/local/bin/xen-detect
 
  and you should be good to go, I am also running CS 4.4 XenServer.
 
  Thanks,
  Motty
 
 
  On Fri, Sep 5, 2014 at 2:23 PM, Derek Cole derek.c...@gmail.com wrote:
 
   Hello,
  
   I have just upgraded to cloudstack 4.4
  
   I was previously using 4.2, and I was able to get my FreeBSD10
 templates
   creating VM's on a Xenserver 6.2 server. Now, whenever I try, I am
  getting
   a status message of Job failed due to exception Unable to create a
   deployment for VM[User|i-2-7-VM]. Below are some relevant stack dumps.
  
   Any ideas? Thanks!
  
   2014-08-26 17:01:35,207 DEBUG [c.c.h.x.r.CitrixResourceBase]
   (DirectAgent-333:ctx-06b8cfa3) 1. The VM i-2-7-VM is in Starting state.
   2014-08-26 17:01:35,209 WARN  [c.c.h.x.r.XenServer620Resource]
   (DirectAgent-333:ctx-06b8cfa3) XenServer 6.2.0 DOES NOT support Guest
 OS
   type FreeBSD (64-bit)
   2014-08-26 17:01:35,212 DEBUG [c.c.h.x.r.CitrixResourceBase]
   (DirectAgent-333:ctx-06b8cfa3) Cannot find template : null on XS
 version:
   com.cloud.hypervisor.xen.resource.XenServer620Resource
   2014-08-26 17:01:35,212 WARN  [c.c.h.x.r.CitrixResourceBase]
   (DirectAgent-333:ctx-06b8cfa3) Catch Exception: class
   java.util.NoSuchElementException due to
 java.util.NoSuchElementException
   java.util.NoSuchElementException
   at
  
  
 
 java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:396)
   at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:405)
   at
  
  
 
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.createVmFromTemplate(CitrixResourceBase.java:1302)
   at
  
  
 
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:1730)
   at
  
  
 
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:504)
   at
  
  
 
 com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:61)
   at
  
  
 
 com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:102)
   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.run(FutureTask.java:262)
   at
  
  
 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
   at
  
  
 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
   at
  
  
 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at
  
  
 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:745)
   2014-08-26 17:01:35,213 WARN  [c.c.h.x.r.CitrixResourceBase]
   (DirectAgent-333:ctx-06b8cfa3) Unable to start i-2-7-VM due to
   java.util.NoSuchElementException
   at
  
  
 
 java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:396)
   at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:405)
   at