Re: new on this forum

2014-06-13 Thread Prasanna Santhanam
On Thu, Jun 12, 2014 at 12:33:48PM +, Cees Doets wrote:
 Hi everybody,
 
 I'm new , hope to help (and be helped).
 
 Who are we?
 We were the first CloudStack user in Europe. At that time it was from 
 cloud.com and not yet acquired by Citrix.
 Being the first means; very innovative. That has advantage and disadvantages 
 ;)
 
Welcome Cees!

I'm sure there's a wealth of stuff you can tell us about your
operational experiences with CloudStack. Be sure to hang out in the
#cloudstack, #cloudstack-dev IRC channels. They have spurts of
activity esp. from newbies looking for help. 

Tune into the dev@ discussions by subscribing to the mailing list. The
4.5 feature discussion should be underway soon after 4.4 gets out the
door. Any annoyances you have faced from an operational perspective
can be brought up there. Feel free to open up, do not hesitate.  

Hope to see your around,

-- 
Prasanna.,


Powered by BigRock.com



Including packer support for CloudStack: Fwd: Re: [packer] Initial support for a Cloudstack builder (#922)

2014-04-21 Thread Prasanna Santhanam
Support for CloudStack was merged last night into packer's repository.
This work was contributed by Peter [1] on the packer list. Would be
nice if anyone can spare resources for testing the implementation.
Please reach out to the packer project on github [2] if you would like
to help.

[1] https://github.com/mindjiver
[2] https://github.com/mitchellh/packer/issues/922
-- 
Prasanna.,


Powered by BigRock.com

---BeginMessage---
This looks decent. Unfortunately, I don't want to merge this without having 
access to a CloudStack installation that I can use for testing. Do you know any 
vendors that would be willing to provide a free account for basic testing of 
this builder? 

Until then, please make this a plugin, it would work great! 

I'll work on vendors as well. Let me know if you can get me access. I'm going 
to close for now, but will reopen when/if I can get access. Waah!

---
Reply to this email directly or view it on GitHub:
https://github.com/mitchellh/packer/pull/922#issuecomment-41001759---End Message---


Re: Can't start SSVMs

2014-02-04 Thread Prasanna Santhanam
On Tue, Feb 04, 2014 at 01:48:48PM -0800, Dustin J. Mitchell wrote:
 Ah, never mind - I had somehow downloaded the vmware template.
 
 Par for the course to finally figure that out only *after* emailing the list!

the systemvms are the tough hurdle people stumble upon on this mailing
list often. this might come in handy: 
https://cwiki.apache.org/confluence/x/5wLMAQ

 
 Dustin

-- 
Prasanna.,


Powered by BigRock.com



Re: packer for building cloudstack templates

2014-01-25 Thread Prasanna Santhanam
On Sat, Jan 25, 2014 at 03:43:07AM +, Brian Galura wrote:
 At my company we use packer to build ec2 images and really like it.
 I would like to use it for cloudstack also.
 
 I found this: https://github.com/vogxn/packer-builtin
 
 Which appears to be a centos6 image builder for cloudstack but it
 lacks instructions to convert the resultant image into something I
 can import to cloudstack.
 
 Has anyone successfully done this?
 
 How do you build cloudstack templates?

Hi Brian,

That repo only contains a test builtin I was trying to build using
packer. Peter Jonsson is working on a cloudstack builder for packer
and announced about this last week.

Peter's repo is here: 
https://github.com/mindjiver/packer

You will need go to run the packer src and setup the cloudstack
builder

$ make updatedeps
$ make

-- 
Prasanna.,


Powered by BigRock.com



Re: New to CloudStack // Questions

2014-01-21 Thread Prasanna Santhanam
On Tue, Jan 21, 2014 at 10:29:35AM +0100, sebgoa wrote:
 
 On Jan 21, 2014, at 10:01 AM, Peter J?nsson peter.jons...@klarna.com wrote:
 
  Hi!
  
  I have been working on adding support for Cloudstack in packer.io. This way 
  it is simple to create either new templates from scratch or update an 
  existing template. For creating the initial template from scratch we have a 
  custom iPXE ISO that will fetch the iPXE-script via userdata, boot 
  kernel+initrd and finally perform a kickstart installation (we use centos).
  
  So the no more manual intervention to upload ISOs, select options in 
  installer, stop the VM and finally create the template. Everything is 
  automated.
  
  Plan is to upstream this to packer proper or release it as a independent 
  plugin. Currently the code need some cleanup.  
  
 
 That's terrific Peter, I am trying to wrap my mind around packer
 these days, so it would be great to see a CloudStack plugin.

+1 - looking forward to a packer plugin for cloudstack! If possible,
reuse the goclient that is already available to communicate via packer - 
https://github.com/mindjiver/gopherstack

Happy to help with bugfixes etc!

-- 
Prasanna.,


Powered by BigRock.com



Re: New to CloudStack // Questions

2014-01-21 Thread Prasanna Santhanam
On Tue, Jan 21, 2014 at 10:52:11AM +0100, Peter J??nsson wrote:
 Well, I wrote that library so I???m using it. :)

yup - i know, i started working off a fork of your lib when i started
couple months ago. will checkout your fork of packer too.

 
 I will try to make that library more agnostic to packer, that the
 plugin will be in a more releasable state. We are testing a version
 of packer with cloudstack support internally at work. That moving
 target is here: https://github.com/mindjiver/packer

awesome - i want to be able to reuse some of our images built using
packer on a cloudstack cloud since it helps optimize our aws costs.

-- 
Prasanna.,


Powered by BigRock.com



Re: New Ruby client for CloudStack API

2013-11-13 Thread Prasanna Santhanam
Let the twitter bird tweet the bee's buzz!

(will shut up now!)

On Wed, Nov 13, 2013 at 09:35:08PM +, Chiradeep Vittal wrote:
 +1.
 One more for Sebastien's book
 https://github.com/runseb/cloudstack-books/tree/master
 
 
 On 11/13/13 8:51 AM, Chip Childers chipchild...@apache.org wrote:
 
 Really awesome Mike!
 
 On Wed, Nov 13, 2013 at 9:47 AM, Mike Nicholaides m...@promptworks.com
 wrote:
  Hi folks,
 
  Our team at PromptWorks, in conjunction with SunGard, has recently
 released
  a new Ruby client for the CloudStack API called StackerBee:
  https://github.com/promptworks/stacker_bee
 
  There are already a few Ruby clients out there but none of them met our
  needs so we made our own. Here's what makes StackerBee special:
  - supports all endpoints in the API
  - easy to use and developer friendly
  - let's developers write idiomatic Ruby
  - interactive CloudStack REPL
  - well tested and documented
 
  Pull requests and bug reports welcome.
 
  Special thanks to Chip Childers, Bill Jones, Dave Grizzanti and SunGard
  Availability Services.
 
  Thanks,
  Mike Nicholaides
 
 
  --
  Mike Nicholaides
  Software Engineer and Co-Founder at PromptWorks
  promptworks.com
  (267) 622-4729

-- 
Prasanna.,


Powered by BigRock.com



Re: Multi-master MySQL Setup

2013-11-06 Thread Prasanna Santhanam
Hi Alex,

The wiki is a WIP for the feature that is on the roadmap. This
discussion should serve well when drawing out the specifics of
database-ha. Please do not hesitate to weigh in when you see the
[DISCUSS] thread related to 'Database-HA' on the dev@ mailing list.

On Wed, Nov 06, 2013 at 03:10:02PM +0800, Alexey Zilber wrote:
 Hi Prasanna,
 
   That page isn't fully correct regarding MariaDB.  Please see:
 https://mariadb.com/kb/en/multi-source-replication/
 
 Thanks,
 Alex
 
 
 On Wed, Nov 6, 2013 at 2:35 PM, Prasanna Santhanam t...@apache.org wrote:
 
  Incidentally, this is something that is being focussed on as part of
  the upcoming release [1].
 
  [1] https://cwiki.apache.org/confluence/x/v5YTAg
 
  On Tue, Nov 05, 2013 at 10:42:58PM +, Marty Sweet wrote:
   The issue with plain MySQL replication (espically in master-master) is
  that
   a failed query will stop replication. A good example of this is when an
   record is added onto each master at the same time (within a second), say
  a
   new record which gets the same primary key and replication will stop, on
   both hosts. That then leaves a split brain situation when you have one
   master writing its own data and another writing to itself, all with
   identical primary keys. Absolute nightmare. This can how ever be migrated
   with the methods the OP mentioned (I assume - but don't have experience
  of).
  
   I don't think file curroption is much of an issue with DRDB, but you can
   only have one host write to it at anyone time (limitation of file system
   used), which makes the master-slave or master-backup setup ideal when
   coupled with HA service management software such as Pacemaker. You then
   have the database files in both places without the dreaded MySQL
   replication stories.
  
   I think the main question lyes with if the cloud admin wants a
   simple redundant setup or a load balanced service - it may also we worth
   writing some documentation for this to help future installations,
  although
   they will have to be detailed.
  
   I have never used Percona/MariaDB, does it resolve the master-master
  issues
   I mentioned earlier?
  
   Marty
  
   On Tuesday, November 5, 2013, Adrian Lewis wrote:
  
Seems like the Percona solution also uses Galera for their multi-master
cluster. Starting to wonder whether to go MariaDB-Galera now. Tempted
  just
to leave it as master slave replicated on MySQL though. Scale really
  not
an issue right now. Ho hum, fun to be had if I had the time to play.
   
Assuming no Galera (with either MySQL/Percona/MariaDB) and just using
Centos version of MySQL - does anyone have any input as to whether to
  go
for replicating between two hosts using DRBD vs native MySQL
  replication?
I get the impression that MySQL replication is an eventually-consistent
near-realtime kind of replication whereas DRBD can be set to be
  completely
synchronous replication. MySQL replication just seems a lot less fiddly
than using DRBD and DRBD would replicate file corruption that MySQL
replication would be largely safe from.
   
-Original Message-
From: Patrick Miller [mailto:patrick.mil...@sungard.comjavascript:;]
Sent: 05 November 2013 21:51
To: users@cloudstack.apache.org javascript:;
Subject: Re: Multi-master MySQL Setup
   
Take a look at the percona [1] implementation of mysql and there
  clustered
version.
Round robin reads and writes supported.
   
1] http://www.percona.com/
   
 Patrick
   
   
On Tue, Nov 5, 2013 at 9:55 AM, Adrian Lewis
adr...@alsiconsulting.co.uk javascript:;wrote:
   
 Hi Marty/Nux!,

 Thanks for the feedback - sounds like multi-master is not a good
  thing
 then! Load will likely be very small for at least the next 6 months
 but I figured that it was one of those things that could be set
  easily
 now (still setting up) that I might appreciate later.

 Based on both your responses, I think I'll just leave it well alone!
 Need to get to grips with pacemaker/corosync anyway for other reasons
 so I'll just try that with either DRBD replication or MySQL
  replication.

 Cheers,

 Adrian

 -Original Message-
 From: Marty Sweet [mailto:msweet@gmail.com javascript:;]
 Sent: 05 November 2013 17:23
 To: users@cloudstack.apache.org javascript:;
 Subject: Re: Multi-master MySQL Setup

 Others may have had more success with this but from experience of
 MySQL in multi-master setups I would avoid this entirely.

 A common setup is using DRDB to provide a master/slave:
 Management 1 (MySQL Master) w/ virtual IP Management 2 (MySQL Slave)

 HA IP Address (for agents/services requiring DB write) which is
 assigned to the master (using Pacemaker).

 You can then send web management client to the HA IP Address as well.

 It may be worth considering

Re: Installing cloudstack mgmt server on non-Linux OS

2013-11-06 Thread Prasanna Santhanam
On Wed, Nov 06, 2013 at 05:29:53PM -0500, Jiri B wrote:
 Hi,
 
 my attempt is to install cloudstack management server on
 a non-Linux OS (an UNIX-like one). Of course not for production
 setup in this case... :-)

CloudStack is mostly tested on RHEL and Ubuntu. If you are using
something like Arch then you might see surprises. I'm guessing Debian
would work.

 
 But... I'm not sure I fully understand some basic concepts.
 
 Are most of the scripts in /usr/share/cloudstack-common/scripts
 used only when cloudstack mgmt server is also acting as
 hypervisor? I see there's a lot of Linux specific commands
 inside scripts (brctl, iptables...).
 
They are 'packaged' there, but are mostly executed on the hosts and/or
on cloudstack's agents (systemvms, virtual routers etc).  Management
server copies these into hypervisors when they are added (discovered)
to cloudstack. After that cloudstack will only issue commands to
hypervisors and the hypervisor agent will convert the command in to a
script call and execute the required command.

 I also could not find info what is a process of creating
 new VM (when using Linux KVM hypervisor, remote host).
 Does mgmt server need permanent access to storage (NFS), and
 is mgmt server creating new VM image with qemu-img inside
 this storage or does delegate this task to a remote host?
 
The task is delegated to the KVM hypervisor. CloudStack management
server will send a 'command' to the KVM 'agent' to start a VM when you
use the cloud management UI to launch a virtual machine.

 Hence... the main confusion is how much is management server
 involved in the show. If it is just giving orders (when using
 remote hypervisor), like in RHEVM/oVirt case, and thus the tasks
 are done by cloudstack agent (in KVM hypervisor case)...

Right, it's only handing off commands to remote agents or if you like
it's 'orchestrating' these flows.

 
 Thank you very much for clarification.
 
 jirib

-- 
Prasanna.,


Powered by BigRock.com



Re: Multi-master MySQL Setup

2013-11-05 Thread Prasanna Santhanam
Incidentally, this is something that is being focussed on as part of
the upcoming release [1]. 

[1] https://cwiki.apache.org/confluence/x/v5YTAg

On Tue, Nov 05, 2013 at 10:42:58PM +, Marty Sweet wrote:
 The issue with plain MySQL replication (espically in master-master) is that
 a failed query will stop replication. A good example of this is when an
 record is added onto each master at the same time (within a second), say a
 new record which gets the same primary key and replication will stop, on
 both hosts. That then leaves a split brain situation when you have one
 master writing its own data and another writing to itself, all with
 identical primary keys. Absolute nightmare. This can how ever be migrated
 with the methods the OP mentioned (I assume - but don't have experience of).
 
 I don't think file curroption is much of an issue with DRDB, but you can
 only have one host write to it at anyone time (limitation of file system
 used), which makes the master-slave or master-backup setup ideal when
 coupled with HA service management software such as Pacemaker. You then
 have the database files in both places without the dreaded MySQL
 replication stories.
 
 I think the main question lyes with if the cloud admin wants a
 simple redundant setup or a load balanced service - it may also we worth
 writing some documentation for this to help future installations, although
 they will have to be detailed.
 
 I have never used Percona/MariaDB, does it resolve the master-master issues
 I mentioned earlier?
 
 Marty
 
 On Tuesday, November 5, 2013, Adrian Lewis wrote:
 
  Seems like the Percona solution also uses Galera for their multi-master
  cluster. Starting to wonder whether to go MariaDB-Galera now. Tempted just
  to leave it as master slave replicated on MySQL though. Scale really not
  an issue right now. Ho hum, fun to be had if I had the time to play.
 
  Assuming no Galera (with either MySQL/Percona/MariaDB) and just using
  Centos version of MySQL - does anyone have any input as to whether to go
  for replicating between two hosts using DRBD vs native MySQL replication?
  I get the impression that MySQL replication is an eventually-consistent
  near-realtime kind of replication whereas DRBD can be set to be completely
  synchronous replication. MySQL replication just seems a lot less fiddly
  than using DRBD and DRBD would replicate file corruption that MySQL
  replication would be largely safe from.
 
  -Original Message-
  From: Patrick Miller [mailto:patrick.mil...@sungard.com javascript:;]
  Sent: 05 November 2013 21:51
  To: users@cloudstack.apache.org javascript:;
  Subject: Re: Multi-master MySQL Setup
 
  Take a look at the percona [1] implementation of mysql and there clustered
  version.
  Round robin reads and writes supported.
 
  1] http://www.percona.com/
 
   Patrick
 
 
  On Tue, Nov 5, 2013 at 9:55 AM, Adrian Lewis
  adr...@alsiconsulting.co.uk javascript:;wrote:
 
   Hi Marty/Nux!,
  
   Thanks for the feedback - sounds like multi-master is not a good thing
   then! Load will likely be very small for at least the next 6 months
   but I figured that it was one of those things that could be set easily
   now (still setting up) that I might appreciate later.
  
   Based on both your responses, I think I'll just leave it well alone!
   Need to get to grips with pacemaker/corosync anyway for other reasons
   so I'll just try that with either DRBD replication or MySQL replication.
  
   Cheers,
  
   Adrian
  
   -Original Message-
   From: Marty Sweet [mailto:msweet@gmail.com javascript:;]
   Sent: 05 November 2013 17:23
   To: users@cloudstack.apache.org javascript:;
   Subject: Re: Multi-master MySQL Setup
  
   Others may have had more success with this but from experience of
   MySQL in multi-master setups I would avoid this entirely.
  
   A common setup is using DRDB to provide a master/slave:
   Management 1 (MySQL Master) w/ virtual IP Management 2 (MySQL Slave)
  
   HA IP Address (for agents/services requiring DB write) which is
   assigned to the master (using Pacemaker).
  
   You can then send web management client to the HA IP Address as well.
  
   It may be worth considering if you need load balancing, depending on
   your setup - what loads are you experiencing?
  
   Marty
  
  
  
   On Tue, Nov 5, 2013 at 5:13 PM, Adrian Lewis
   adr...@alsiconsulting.co.uk javascript:;wrote:
  
Hi All,
   
   
   
Just wondering if anyone is using a MySQL multi-master configuration
with auto_increment_offset (e.g.10) and auto_increment_increment (1
for server 1, 2 for server 2 etc)? Does it work? Does anyone know a
reason why it doesn't or wouldn't work? Is there anything from an
application point of view that could/would trip up CS if
auto_increment values are set as more than 1?
   
   
   
Not planning on deploying multimaster just yet but if I at least
start with an auto_increment of 10, I'd have the option of adding 

Re: [cloudmonkey] username / password support

2013-10-15 Thread Prasanna Santhanam

I fixed this temporarily by adding the requests as a dependency. But
may be we could do the login using urllib2 itself to avoid the
requests dependency.

+1 to username,password login. I need to add that to marvin too.

On Wed, Oct 16, 2013 at 11:38:40AM +0800, Ryan Lei wrote:
 I was unable to run cloudmonkey after applying your update.
 My commands were:
 
 $ git checkout username_password_support
 $ git pull
 $ python setup.py build
 $ python setup.py install
 $ cloudmonkey
 
 Then I got this import error:
 Import error in cloudmonkey.requester : No module named requests
 
 Switching back to master branch runs fine, however.
 
 
 ---
 Yu-Heng (Ryan) Lei, Associate Researcher
 Chunghwa Telecom Laboratories / Cloud Computing Laboratory
 ryan...@cht.com.twhttps://email.cht.com.tw/owa/redir.aspx?C=-wE1FEC3G0SWYpVkiWo8SsDdf3ZqO9AIuAPTzRnFYCUi-z4YljtI_hyVKkNHfn9F1Bn-vUWJnQ4.URL=mailto%3aryanlei%40cht.com.tw
 or
 ryanlei750...@gmail.com
 
 
 
 On Wed, Oct 16, 2013 at 11:23 AM, Chiradeep Vittal 
 chiradeep.vit...@citrix.com wrote:
 
  Hi folks,
 
  I modified cloudmonkey to work off of username and password. Feedback and
  testing required.
  The code is in the branch  username_password_support
  http://goo.gl/5xTgo5
 
  Thanks
  --
  Chiradeep
 

-- 
Prasanna.,


Powered by BigRock.com



Re: [cloudmonkey] username / password support

2013-10-15 Thread Prasanna Santhanam
I prefer requests too. May be we can later switch over all of
cloudmonkey to use requests just like marvin. I tested out the changes
with a user account and everything works fine. But startup of
cloudmonkey seems to force one to put in the username, passwd in
cloudmonkey/config.

On Wed, Oct 16, 2013 at 04:51:23AM +, Chiradeep Vittal wrote:
 Sorry, urllib2 and cookiejar looked just too painful.
 
 On 10/15/13 9:26 PM, Prasanna Santhanam t...@apache.org wrote:
 
 
 I fixed this temporarily by adding the requests as a dependency. But
 may be we could do the login using urllib2 itself to avoid the
 requests dependency.
 
 +1 to username,password login. I need to add that to marvin too.
 
 On Wed, Oct 16, 2013 at 11:38:40AM +0800, Ryan Lei wrote:
  I was unable to run cloudmonkey after applying your update.
  My commands were:
  
  $ git checkout username_password_support
  $ git pull
  $ python setup.py build
  $ python setup.py install
  $ cloudmonkey
  
  Then I got this import error:
  Import error in cloudmonkey.requester : No module named requests
  
  Switching back to master branch runs fine, however.
  
  
  
 -
 --
  Yu-Heng (Ryan) Lei, Associate Researcher
  Chunghwa Telecom Laboratories / Cloud Computing Laboratory
  
 ryan...@cht.com.twhttps://email.cht.com.tw/owa/redir.aspx?C=-wE1FEC3G0SW
 YpVkiWo8SsDdf3ZqO9AIuAPTzRnFYCUi-z4YljtI_hyVKkNHfn9F1Bn-vUWJnQ4.URL=mail
 to%3aryanlei%40cht.com.tw
  or
  ryanlei750...@gmail.com
  
  
  
  On Wed, Oct 16, 2013 at 11:23 AM, Chiradeep Vittal 
  chiradeep.vit...@citrix.com wrote:
  
   Hi folks,
  
   I modified cloudmonkey to work off of username and password. Feedback
 and
   testing required.
   The code is in the branch  username_password_support
   http://goo.gl/5xTgo5
  
   Thanks
   --
   Chiradeep
  
 
 -- 
 Prasanna.,
 
 
 Powered by BigRock.com
 

-- 
Prasanna.,


Powered by BigRock.com



Re: Steps in building DEB packages for 4.2.0

2013-10-11 Thread Prasanna Santhanam
On Fri, Oct 11, 2013 at 09:59:52AM +0800, Indra Pramana wrote:
 Dear all,
 
 I am reading the documentation on the steps in building DEB packages for
 CloudStack 4.2.0:
 
 http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Installation_Guide/sect-source-builddebs.html
 
 and compare it with the steps on the earlier version (e.g. 4.1.1):
 
 http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.1/html/Installation_Guide/sect-source-builddebs.html
 
 I noticed that there's one command missing:
 
 ===
 mvn clean install -P developer,systemvm
 ===
 
 Can I confirm that the above step is no longer required for 4.2.0 and we
 can go ahead to build the package using the command: dpkg-buildpackage -uc
 -us?

Yes, dpkg-buildpackage will take care of the mvn bits as well for you.
It is not required. BTW, the list of debs generated also differs in
4.2 and that's now been corrected. So don't be alarmed if you see
different set of debs.

 
 Looking forward to your reply, thank you.
 
 Cheers.

-- 
Prasanna.,


Powered by BigRock.com



Re: Doc Updates

2013-10-10 Thread Prasanna Santhanam
jenkins.buildacloud.org, most jobs that the project uses are on
buildacloud.org. It's fully under our control and I find it more
responsive than builds.a.o

On Thu, Oct 10, 2013 at 02:11:01PM +0200, Daan Hoogland wrote:
 Agreed Darren,
 
 I would like a nightly build, especially of the api docs. The generic
 docs as well would be fine.
 there is a jenkins job for those api docs at
 https://builds.apache.org/job/cloudstack-apidocs-master/
 
 Can I get karma to see if i can direct the artifacts from that somewhere?
 
 Or should we use http://jenkins.buildacloud.org/? most of the doc
 targets are there
 
 regards,
 Daan
 
 On Thu, Oct 10, 2013 at 6:18 AM, Darren Shepherd
 darren.s.sheph...@gmail.com wrote:
  Is it not possible to just have a master/latest/head/snapshot version
  of the docs on the web page with the individual release too.  I do
  think it it important to snapshot the documents at the individual
  point releases and have those available.  But just a latest, fresh
  from git link would be nice.
 
  Darren
 
  On Wed, Oct 9, 2013 at 7:11 PM, Ron Wheeler
  rwhee...@artifact-software.com wrote:
  When the software was released with a number of reported bugs in the docs,
  it was done with the understanding that the 4.2 docs would be prepared 
  after
  the release of the software.
 
  Ron
 
 
  On 09/10/2013 4:34 PM, Daan Hoogland wrote:
 
  Great rant Carlos,
 
  You should get it to the dev list. Actually I'll add the dev list in
  now. It makes sense to update the docs also after a release, when bug
  in the docs are found these can easily be changed without a full
  release cycle of the code itself.
 
  regards,
  Daan
 
  On Wed, Oct 9, 2013 at 10:24 PM, Carlos Reategui create...@gmail.com
  wrote:
 
  It seems like the only way that docs (
  http://cloudstack.apache.org/docs/en-US/index.html) are updated is when a
  release is done.  Is it not possible to have these updated otherwise?
Waiting for the next patch release of the software so that the docs get
  updated is causing problems with folks not being able to get CloudStack
  installed properly and therefore gives them a bad impression of the
  maturity of CloudStack.
 
  It makes no sense to me why there are multiple versions of documents for
  each of the point releases (currently there is 4.0.0, 4.0.1, 4.0.2,
  4.1.0,
  4.1.1 and 4.0.2 docs) when the feature set has not changed within each of
  these.  I understand that the docs are built as part of the build and
  release process but why does that have to impact the rate at which the
  primary doc site is updated.  Can't the patch releases simply update the
  release notes?  Personally I think there should be a single 4.x version
  of
  the docs (I would be ok with a 4.0, 4.1 and 4.2 versions too if major
  features are going to be added to them).  Maybe the doc site should have
  wiki like capabilities so that it can be more easily maintained.
 
  ok, I am done ranting...
 
 
 
  --
  Ron Wheeler
  President
  Artifact Software Inc
  email: rwhee...@artifact-software.com
  skype: ronaldmwheeler
  phone: 866-970-2435, ext 102
 

-- 
Prasanna.,


Powered by BigRock.com



Re: admin user api_key and secret_key

2013-10-10 Thread Prasanna Santhanam
On Thu, Oct 10, 2013 at 10:50:43AM -0400, Pierre-Luc Dion wrote:
 I'm currently building a Chef cookbook for the installation of Cloudstack
 for our cloudstack dev environments. One thing that I need is the admin
 user api_key and secret_key in order to updated configuration of cloudstack
 and cloudmonkey.
 
 I thought that I could just update database atrributes secret_key and
 api_key of the admin user in the cloud.user table.  But it doesn't work.
 
 is their a way to automate the admin user to have a know API and secret key
 ?  if I update user table, do I have to update something else ?

For the puppet based solution I open 8096 port and call the API
registerUserKeys() with the admin id (=2). that should respond with
the api and secret keys.

 
 
 thanks
 
 Pierre-Luc Dion
 Responsable technique - infrastructure | Technical lead - infrastructure
 
 - - -*
 CloudOps
 *420 rue Guy
 Montr?al QC  H3J 1S6
 www.cloudops.com
 @CloudOps_

-- 
Prasanna.,


Powered by BigRock.com



Re: Could not find corresponding resource manager for VMware

2013-09-02 Thread Prasanna Santhanam
What were your packaging commands?
$ ./package.sh -p nonoss

On Mon, Sep 02, 2013 at 03:19:24PM -0500, Michael Phillips wrote:
 All,
I have been trying for the last week to build CS 4.1 with the nonoss 
 packages. I have followed the instructions for the nonoss build perfectly, it 
 installs the nonoss jars with 100% success, I then build the rpms, which all 
 build with 100% success. I then install cloudstack using the RPMS, but when I 
 go to add a vcenter cluster I get the following message Could not find 
 corresponding resource manager for VMware. Googling this message makes me 
 believe that my RPMS were not built with the nonoss options but I know for a 
 fact they are. I have tried the vmware jars downloaded from the how to build 
 on master branch wiki, and also from the vmware 4.1 and 5.1 SDK's...all 
 result with the same resource manager errorWhat am I missing? 
   

-- 
Prasanna.,


Powered by BigRock.com



Re: CS 4.1 and CentOS 6.3

2013-08-30 Thread Prasanna Santhanam
This would be a valuable contribution. I think just ironing out the
runbook discrepancies to make the installs smoother for new users
would be a great step forward. I'm happy to join the irc meeting when
you guys have an agenda for the docs fixes. 

On Fri, Aug 30, 2013 at 11:35:57AM +0100, Alexander Hitchins wrote:
 This runbook idea sounds like it would be incredibly useful.
 
 I'm looking to get an environment together for quick ramp-up learning.
 
 I'll look at the link you provided and try to keep any meaningful
 discrepancies I find noted. I can't see anything for the runbook on the
 maintainers page - who created the page there is now?

-- 
Prasanna.,


Powered by BigRock.com



Re: CS 4.1 and CentOS 6.3

2013-08-30 Thread Prasanna Santhanam
Small correction on my part. Meng helped run through the docs for 4.1 [1]
and compiled the QuickInstallGuide (earlier called the Runbook). We
just forgot to include a build job to generate those docs:

You can find the latest here:
http://jenkins.buildacloud.org/view/master/job/build-docs-quickinstall-master/lastSuccessfulBuild/artifact/Apache_CloudStack-4.2.0-qig-en-US.pdf

[1] http://markmail.org/message/jsxdlfn5illpe2ni

On Fri, Aug 30, 2013 at 04:38:18PM +0200, sebgoa wrote:
 
 On Aug 30, 2013, at 3:50 PM, Tracy Phillips tracp...@mantoso.com wrote:
 
  Something that would go a long way is keeping the CentOS and Ubuntu install
  instructions in separate documents.
 
 Yes I totally agree, mixing both was a bad idea...
 
  I am working on a cut and paste install
  doc for Ubuntu 12.04 and CS 4.1.1 and will update it for CS4.2 once it is
  released.
  
  
  On Fri, Aug 30, 2013 at 9:20 AM, Prasanna Santhanam t...@apache.org wrote:
  
  This would be a valuable contribution. I think just ironing out the
  runbook discrepancies to make the installs smoother for new users
  would be a great step forward. I'm happy to join the irc meeting when
  you guys have an agenda for the docs fixes.
  
  On Fri, Aug 30, 2013 at 11:35:57AM +0100, Alexander Hitchins wrote:
  This runbook idea sounds like it would be incredibly useful.
  
  I'm looking to get an environment together for quick ramp-up learning.
  
  I'll look at the link you provided and try to keep any meaningful
  discrepancies I find noted. I can't see anything for the runbook on the
  maintainers page - who created the page there is now?
  
  --
  Prasanna.,
  
  
  Powered by BigRock.com
  
  

-- 
Prasanna.,


Powered by BigRock.com



Re: Permission denied (publickey) SSVM

2013-08-26 Thread Prasanna Santhanam
I believe that is part of upgrade where you restart all your routers
and systemvms. As part of this process the systemvm.iso and new keys
are exchanged. Please check the release notes for the upgrade
process. 

On Mon, Aug 26, 2013 at 04:06:28PM +0800, Punit Dambiwal wrote:
 Hi,
 
 The issue has been resolved...just destroy the SSVM and recreate again
 resolved my problem,now i am able to access the SSVM.
 
 But there should be any workaround...because destroy and recreation is not
 a good solution ??
 
 
 On Mon, Aug 26, 2013 at 2:45 PM, Punit Dambiwal hypu...@gmail.com wrote:
 
  Hi Jayapal,
 
  No...I didn't change the systemvm.iso..
 
  I removed some route entries from the system VM earlier...
 
  How to match the public,private key pair again ??
 
 
  On Mon, Aug 26, 2013 at 2:36 PM, Jayapal Reddy Uradi 
  jayapalreddy.ur...@citrix.com wrote:
 
  cloudstack public, private key pair of host and SSVM are mismatching here.
  I think in your setup the keys are not placed correctly.
  Did you change the systemvm.iso ?
 
 
 
  Thanks,
  Jayapal
 
  On 26-Aug-2013, at 11:49 AM, Punit Dambiwal hypu...@gmail.com
   wrote:
 
   Hi Shankerbalan,
  
   I have seen your blog and the post as welllet me explain again...i
   have upgraded CS 4.1.0 to 4.1.1 because of the vulnerability  found by
  ASF
   in CS 4.1.0after CS upgrade i was able to login...but once i migrate
   the SSVM from existing host to new host,i am not able to access the
   SSVM,then i again migrate the VM's to old Host but result is
   same...permission denied (public key).
  
   I am using Xenserver hosts and try to access SSVM from the host itself.
  
  
   On Mon, Aug 26, 2013 at 2:09 PM, Shanker Balan
   shanker.ba...@shapeblue.comwrote:
  
   Comments inline.
   On 26-Aug-2013, at 9:45 AM, Punit Dambiwal hypu...@gmail.com wrote:
  
   Hi,
  
   Today i encountered with one strange problem...after the migration of
   SSVM
   from one host to another now i am not ale to access the SSVM and it
   throws
   the error Permission denied (publickey).
  
   I was able to access the SSVM earlier...i migrate both the SSVM to old
   host
   again but still the same error on this host also.
  
   I am using xenserver 6.0 as host.
  
  
   I have seen this happen during a non-clean reinstall of the cloudstack
   packages. Can you see if
  
  http://shankerbalan.net/blog/reinject-keys-into-cloudstack-systemvm/helps
  ?
  
   Regards.
   @shankerbalan
  
  
   --
   @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
  
   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
   operated under license from Shape Blue Ltd. ShapeBlue is a registered
   trademark.
  
 
 
 

-- 
Prasanna.,


Powered by BigRock.com



Docs leading up to Apache CloudStack 4.2

2013-08-15 Thread Prasanna Santhanam
Hi All,

The docs (installguide, adminguide, release notes) leading up to the
Apache CloudStack 4.2 release will keep building on jenkins [1] [2]
[3] as they are written/fixed/corrected. Please review them to help
fix doc errors. Our tech writing team is very busy working towards
bettering our docs and will be happy to recieve bug reports [4]. You
should already have recieved notifications of docs added for new
features. Let us know what you think either via JIRA or an email to
the dev@ list.

If you would like to contribute to the doc writing, make sure to visit
the compiled wikis written up by Jessica and Radhika: 
https://cwiki.apache.org/confluence/x/hQLMAQ

[1] http://jenkins.buildacloud.org/job/docs-4.2-adminguide/
[2] http://jenkins.buildacloud.org/job/docs-4.2-installguide/
[3] http://jenkins.buildacloud.org/job/docs-4.2-releasenotes/
[4] https://cwiki.apache.org/confluence/x/vRvVAQ

Thanks,

-- 
Prasanna.,


Powered by BigRock.com



Re: some questions about snapshot

2013-08-08 Thread Prasanna Santhanam
This is a bug with 4.0 and it has been fixed in the upcoming release:

https://issues.apache.org/jira/browse/CLOUDSTACK-643

On Thu, Aug 08, 2013 at 02:09:28PM +0800, WXR wrote:
 It can delete the older snapshots on the webUI,but the files are not deleted 
 actually.
 If I go to the snapshot folder of secondary storage,I can see all the 
 snapshot files.
 
 I use kvm as hypervisor,could you tell me how to let cloudstack create delta 
 snapshots daily and full snapshots every 7 days?
 
 Thank you.
 
 
 
 
 -- Original --
 From:  Venkata SwamyBabu Budumuruvenkataswamybabu.budum...@citrix.com;
 Date:  Thu, Aug 8, 2013 12:39 PM
 To:  users@cloudstack.apache.orgusers@cloudstack.apache.org; 
 
 Subject:  Re: some questions about snapshot
 
 
 
 About the first question:
 
 Are you talking about the recurring snapshot feature? If yes, AFAIK, It is
 supposed to delete the 1st snapshot when you take the 4th one.
 
 Regarding the second one,
 
 You are right about settings present in global category for full and delta
 and they are closely tied to hypervisor. What is the hypervisor you are
 using?
 
 
 Thanks,
 SWAMY
 
 On 08/08/13 8:45 AM, WXR 1485739...@qq.com wrote:
 
 1.I use snapshot schedule to create snapshots daily,keep 3 snapshots.Now
 I can see 3 snapshots on webUI,but all snapshot files created before are
 still on secondary storage.
 How to let cloudstack clean the old snapshots files?
 
 2.There are global settings about delta snapshot and full snapshot,I
 find that the default snapshot of volume a full snapshot,how to do a
 delta snapshot?
 
 .

-- 
Prasanna.,


Powered by BigRock.com



Re: Password Management in OS Templates Not Working

2013-08-08 Thread Prasanna Santhanam
Try these:
https://github.com/shankerbalan/cloudstack-scripts

On Thu, Aug 08, 2013 at 02:09:02PM +0800, Punit Dambiwal wrote:
 NoI just copied this from sourceforge and run
 
 
 On Thu, Aug 8, 2013 at 1:47 PM, Harikrishna Patnala 
 harikrishna.patn...@citrix.com wrote:
 
  Hi
  Did you prepare this script in windows environment? Seems like some
  control characters got inserted in the script.
 
  -Harikrishna
 
  On 08-Aug-2013, at 10:25 AM, Punit Dambiwal hypu...@gmail.com wrote:
 
   Hi Venkata,
  
   Thanks for the replyas the script run successfully and prompt the new
   password...but when i try to login...i couldn't be able to login with the
   prompted password
  
   I tried to run the script on guest VM,it throws error :-
  
   --
   [root@test3 init.d]# ./cloud-set-guest-password
   -bash: ./cloud-set-guest-password: /bin/bash^M: bad interpreter: No such
   file or directory
   [root@test3 init.d]#
   ---
  
   In the VR...it seems ok...the correct path is :-
  /var/cache/cloud/passwords
(The new password for the corresponding ip address listed in this file)
  
  
   On Thu, Aug 8, 2013 at 12:44 PM, Venkata SwamyBabu Budumuru 
   venkataswamybabu.budum...@citrix.com wrote:
  
   Since you made this as a startup script, what do you see just before the
   guest login prompt appears? Do you see any errors when the script
  executed
   or does it say it has set the password successfully.
  
   At the same time, you can also check on your VR for
   /var/cloud/cache/password file and see the password entry for your guest
   ip. On successfully password setup, it will set it to save_password
  value.
  
   You can also just check by manually executing this script before you
  make
   template out of it.
  
   On 08/08/13 10:04 AM, Punit Dambiwal hypu...@gmail.com wrote:
  
   Hi,
  
   I Followed the following url to add the Password Management in OS
   templatesplace the cloud-set-guest-password in the /etc/init.d/.
  
   When i try to deploy the new VM with this template,VM deployed
   successfully
   and prompt the new password,but when try to login to VM...the new
  password
   doesn't work...old password can still use.
  
   Thanks,
   punit
  
  
 
 

-- 
Prasanna.,


Powered by BigRock.com



Re: Password Management in OS Templates Not Working

2013-08-08 Thread Prasanna Santhanam
There's a problem with your editor likely. From the guest

just do a wget of the script and save it instead of copy-pasting using
an editor.

On Thu, Aug 08, 2013 at 02:26:54PM +0800, Punit Dambiwal wrote:
 Hi Harikrishna,
 
 I tried with your and prasanna suggested scripts...but both have the same
 error :-
 
 
 [root@test3 init.d]# sh cloud-set-guest-password
 : command not foundsword: line 7:
 : command not foundsword: line 24:
 : command not foundsword: line 25:
 : command not foundsword: line 28:
 : command not foundsword: line 34:
 'loud-set-guest-password: line 36: syntax error near unexpected token `do
 'loud-set-guest-password: line 36: `do
 [root@test3 init.d]# ./cloud-set-guest-password
 -bash: ./cloud-set-guest-password: /bin/bash^M: bad interpreter: No such
 file or directory
 [root@test3 init.d]#
 --
 
 
 On Thu, Aug 8, 2013 at 2:24 PM, Punit Dambiwal hypu...@gmail.com wrote:
 
  Hi,
 
  I tried this same error..
 
 
  On Thu, Aug 8, 2013 at 2:14 PM, Prasanna Santhanam t...@apache.org wrote:
 
  Try these:
  https://github.com/shankerbalan/cloudstack-scripts
 
  On Thu, Aug 08, 2013 at 02:09:02PM +0800, Punit Dambiwal wrote:
   NoI just copied this from sourceforge and run
  
  
   On Thu, Aug 8, 2013 at 1:47 PM, Harikrishna Patnala 
   harikrishna.patn...@citrix.com wrote:
  
Hi
Did you prepare this script in windows environment? Seems like some
control characters got inserted in the script.
   
-Harikrishna
   
On 08-Aug-2013, at 10:25 AM, Punit Dambiwal hypu...@gmail.com
  wrote:
   
 Hi Venkata,

 Thanks for the replyas the script run successfully and prompt
  the new
 password...but when i try to login...i couldn't be able to login
  with the
 prompted password

 I tried to run the script on guest VM,it throws error :-

 --
 [root@test3 init.d]# ./cloud-set-guest-password
 -bash: ./cloud-set-guest-password: /bin/bash^M: bad interpreter: No
  such
 file or directory
 [root@test3 init.d]#
 ---

 In the VR...it seems ok...the correct path is :-
/var/cache/cloud/passwords
  (The new password for the corresponding ip address listed in this
  file)


 On Thu, Aug 8, 2013 at 12:44 PM, Venkata SwamyBabu Budumuru 
 venkataswamybabu.budum...@citrix.com wrote:

 Since you made this as a startup script, what do you see just
  before the
 guest login prompt appears? Do you see any errors when the script
executed
 or does it say it has set the password successfully.

 At the same time, you can also check on your VR for
 /var/cloud/cache/password file and see the password entry for your
  guest
 ip. On successfully password setup, it will set it to save_password
value.

 You can also just check by manually executing this script before
  you
make
 template out of it.

 On 08/08/13 10:04 AM, Punit Dambiwal hypu...@gmail.com wrote:

 Hi,

 I Followed the following url to add the Password Management in OS
 templatesplace the cloud-set-guest-password in the
  /etc/init.d/.

 When i try to deploy the new VM with this template,VM deployed
 successfully
 and prompt the new password,but when try to login to VM...the new
password
 doesn't work...old password can still use.

 Thanks,
 punit


   
   
 
  --
  Prasanna.,
 
  
  Powered by BigRock.com
 
 
 

-- 
Prasanna.,


Powered by BigRock.com



Re: Debian 7 does not get hostname from dhcp.

2013-08-08 Thread Prasanna Santhanam
FWIW, the debian image of our system VM is Debian 7 and uses the dhcp
client from:

deb http://http.us.debian.org/debian wheezy-backports main
apt-get install dhcp3-client

Can you try that and see if it works?

On Thu, Aug 08, 2013 at 09:52:07PM +, Musayev, Ilya wrote:
 Perhaps, make sure you don't set the hostname in your template anywhere in 
 the config and use dhcp provided hostname instead?
 
 From: Netsons  Roberto Iervolino [mailto:r.iervol...@netsons.com]
 Sent: Thursday, August 08, 2013 3:10 AM
 To: users@cloudstack.apache.org
 Subject: Re: Debian 7 does not get hostname from dhcp.
 
 There is a way to solve this known issue?
 
 Thanks.
 
 [cid:image001.png@01CE945F.FFAC77E0]
 
 Supernova s.r.l.
 Via G. Misiticoni, 3
 65126 - Pescara
 ITALY
 
 
 www.netsons.comhttp://www.netsons.com
 
 Roberto Iervolino
 IT System Administrator - L2 Support
 
 
 t. (+39) 085 45 100 52
 m. (+39) 393 85 677 48
 e. r.iervol...@netsons.commailto:r.iervol...@netsons.com
 
 
 [View Roberto Iervolino's profile on 
 LinkedIn]http://it.linkedin.com/pub/roberto-iervolino/70/b81/3aa
 
 
 
 Netsons? ? un marchio registrato dalla Supernova s.r.l.
 Le informazioni trasmesse sono riservate alla persona o alla societ? indicata 
 come destinatario, e possono includere contenuti considerati confidenziali. 
 Ogni elaborazione, comunicazione, trasmissione o altro utilizzo, anche azioni 
 conseguenti alla conoscenza di queste informazioni da parte di chiunque non 
 sia espressamente indicato come destinatario ? proibita. Nel caso abbiate 
 ricevuto per errore questa comunicazione, siete pregati di darne avviso a 
 info [at] netsons.com ed eliminare ogni stampa ed ogni traccia informatica. 
 Il ricevente dovr? inoltre accertarsi che gli eventuali allegati non 
 contengano virus prima di aprirli. Qualunque opinione o affermazione 
 presentata in questo messaggio ? da ritenersi propria dell'autore e non 
 rappresenta necessariamente la posizione della Societ?.
 
 The information transmitted is intended only for the person or entity to 
 which it is addressed and may contain confidential material. Any review, 
 retransmission, dissemination or other use of, or taking of any action in 
 reliance upon this information by persons or entities other than the intended 
 recipient is prohibited. If you received this in error, please contact: info 
 [at] netsons.com and delete the material from any computer. If this email 
 contains attachments you should ensure they are checked for viruses before 
 opening them. Any views or opinions presented are solely those of the author 
 and do not necessarily represent those of the company.
 Il 08/08/2013 00:14, David Nalley ha scritto:
 
 On Wed, Aug 7, 2013 at 12:36 PM, Netsons  Roberto Iervolino 
 
 r.iervol...@netsons.commailto:r.iervol...@netsons.com wrote:
 
 
 
  Hi,
 
 
 
 I've done a template using debian 7.0.0, when i deploy an istance from
 
 this template the VM at the first boot get correctly the hostname from the
 
 DHCP server, then when I reboot the VM does not get the hostname from the
 
 DHCP server, and the setted hostname is localhost.
 
 
 
 I've also created other template using CentOS 6.4 and it works fine.
 
 
 
 
 
 There is a known issue with debian 7.0.0? How can i solve it?
 
 
 
 
 
 IIRC this is a known issue with Debian and the version of dhclient they
 
 ship.
 
 
 
 --David
 
 
 


-- 
Prasanna.,


Powered by BigRock.com



Re: Unable to migrate VM to another host

2013-07-23 Thread Prasanna Santhanam
On Tue, Jul 23, 2013 at 06:19:06PM +0800, Indra Pramana wrote:
 Dear Prasanna and all,
 
 I have tried to remove the host from CloudStack, uninstall and reinstall
 cloudstack-agent and added the host back into CloudStack. The cloud
 user-id is still not yet created. I then tried to add the cloud user
 manually, using exactly the same credentials as the cloud user on the
 other host.
 
 From the host, I tried to do a virsh connect qemu+ssh to the other host
 using the cloud user (instead of root), and getting this error:
 
 cloud@hv-kvm-01:~$ virsh --connect qemu+ssh://cloud@10.237.3.22/system list
 cloud@10.237.3.22's password:
 error: failed to connect to the hypervisor
 error: no valid connection
 error: End of file while reading data: : Input/output error
 
 If you notice, the error is the same exact error message I see on the
 management-server.log when I tried to do a live migration of VM. So I tried
 to follow this lead and implement this instruction to allow the cloud
 user to have access to the hypervisor on the other host:
 
 http://wiki.libvirt.org/page/SSHSetup
 
 usermod -G libvirtd -a cloud
 
 Enabled these on /etc/libvirt/libvirtd.conf:
 
 unix_sock_group = libvirtd
 unix_sock_rw_perms = 0770
 
 I also copied the SSH keys of the cloud user to the other host, so that it
 will not prompt for password.
 
 And I am now able to do a virsh connect using the cloud user:
 
 cloud@hv-kvm-01:~$ virsh --connect qemu+ssh://cloud@10.237.3.22/system list
  IdName   State
 
  2 i-2-275-VM running
  3 i-2-276-VM running
  4 i-2-293-VM running
 
 But I am still not able to perform live migration of VM.
 
 May I know how CloudStack connects to the hypervisors when it performs live
 migration, after finding a suitable target host? Does it request the source
 host to perform a qemu+ssh connect to the target host?
 

I'm not sure about the specifics here. Perhaps someone else will chime
in - But from looking at the resource for KVM in cloudstack it appears
the libvirt XML contains a qemu+tcp:// connection on migrate. 

Can you tell us if the KVM hosts share the same management subnet?
Are they in the same cluster as CloudStack denotes a cluster?

Is there a way to trap the XMLs sent to the KVM resource in the
libvirt logs? I'd try to enable that if so.

-- 
Prasanna.,


Powered by BigRock.com



Re: Unable to migrate VM to another host

2013-07-23 Thread Prasanna Santhanam
On Tue, Jul 23, 2013 at 08:18:31AM -0600, Marcus Sorensen wrote:
 There is no cloud user on the host/agent side. Agent runs as root. Or is
 this an experiment to try to run the agent as another user?

That was entirely my mistake. I just went about thinking the agents
ran as cloud (ssvm, cpvm, kvm agent). Looking at my deployment it
seems that /etc/sudoers has an entry for cloud but the service runs as
root. My apologies for misleading on that.

 On Jul 23, 2013 4:44 AM, Prasanna Santhanam t...@apache.org wrote:
 
  On Tue, Jul 23, 2013 at 06:19:06PM +0800, Indra Pramana wrote:
   Dear Prasanna and all,
  
   I have tried to remove the host from CloudStack, uninstall and reinstall
   cloudstack-agent and added the host back into CloudStack. The cloud
   user-id is still not yet created. I then tried to add the cloud user
   manually, using exactly the same credentials as the cloud user on the
   other host.
  
   From the host, I tried to do a virsh connect qemu+ssh to the other host
   using the cloud user (instead of root), and getting this error:
  
   cloud@hv-kvm-01:~$ virsh --connect qemu+ssh://cloud@10.237.3.22/systemlist
   cloud@10.237.3.22's password:
   error: failed to connect to the hypervisor
   error: no valid connection
   error: End of file while reading data: : Input/output error

However - the issue still remains that migration between two KVM hosts
seems to be failing. The log indicates the error shown above which was
tried by hand here. 

Deployment contains KVM hosts with Ceph+RBD as primary storage.

-- 
Prasanna.,


Powered by BigRock.com



Re: Generating OS Templates

2013-07-23 Thread Prasanna Santhanam
On Tue, Jul 23, 2013 at 12:03:31PM -0300, Celso Fernandes wrote:
 Hi Prasanna,
 
 Didn't understand where you puppet provisioning is absent, on packer?

yes - you can use a shell script though to do a puppet apply. i fall
back on vagrant instead since vagrant already can provision using
puppet.

$ packer build template.json
$ vagrant add template.box template
$ vagrant up/vagrant provision (rinse/repeat)

-- 
Prasanna.,


Powered by BigRock.com



Re: Unable to migrate VM to another host

2013-07-22 Thread Prasanna Santhanam
On Mon, Jul 22, 2013 at 02:35:58PM +0800, Indra Pramana wrote:
 Dear all,
 
 Good day to you.
 
 I am using CloudStack 4.1.0 and I just realised that I am not able to
 migrate a VM to another host. CloudStack GUI gives a Failed to migrate vm
 error message, and management-server.log file shows this:
 
 http://pastebin.com/Ah9XDRha
 
 Based on the error message, the issue seems to be related to libvirt:
 
 http://wiki.libvirt.org/page/Failed_to_connect_to_the_hypervisor
 
 ===
 2013-07-22 14:06:16,744 ERROR [cloud.vm.VirtualMachineManagerImpl]
 (Job-Executor-35:job-553) Unable to migrate due to End of file while
 reading data: Input/output error
 ===
 
 Seems the error is related to the KVM host not able to connect to the other
 host. But I tested manually and I can connect to the other hypervisor:
 
 root@hv-kvm-01:~# virsh --connect qemu+ssh://r...@10.237.x.xx/system list
  IdName   State
 
 
 I have copied the SSH keys between hosts so that one host can SSH into
 another host without password. I also have added the root user into the
 libvirtd group.
 
 usermod -G libvirtd -a root

What's the output of
$ id cloud

The commands that cloudstack executes on the KVM host are in the
cloud:cloud user:group.

 
 However the problem still persists. Not too sure whether I am following the
 right lead. Anyone might have encounter this problem and know how to
 resolve the problem?
 
 Looking forward to your reply, thank you.
 
 Cheers.

-- 
Prasanna.,


Powered by BigRock.com



Re: Unable to migrate VM to another host

2013-07-22 Thread Prasanna Santhanam
On Mon, Jul 22, 2013 at 02:59:41PM +0800, Indra Pramana wrote:
 
 Could this be the reason? What can I do, shall I adduser cloud manually? It
 seems that the user wasn't added in the first place when I installed the
 cloudstack-agent package on this host.
 

The second host hasn't connected to cloudstack successfully in that
case. Ensure that the service cloudstack-agent is running on the host
you migrate the VM to. It will connect with the cloudstack management
server. You could try a force-reconnect (in the Host UI dialog) to
try and recreate the cloud user on this host.

-- 
Prasanna.,


Powered by BigRock.com



Re: CloudStack performance issue

2013-07-20 Thread Prasanna Santhanam
On Sat, Jul 20, 2013 at 03:18:12PM +0800, Indra Pramana wrote:
 
 Where can I start troubleshooting, which logs I need to go through to find
 out the bottleneck? The management-server.log file doesn't show much
 anything about the delay. It seems that there is some locking mechanism
 and certain processes will need other processes to complete before they can
 start. This is worrying since in a production environment, many customers
 might want to try creating VMs at the same time simultaneously.
 

The logs of use would be managment-server.log which defaults to DEBUG
mode. The logs on the agent (inside KVM host) are default in INFO
mode. You can turn them up to DEBUG by altering the log4j config.
Apart from that you can also look at libvirt logs. Folks have been
tuning the deployment of the VMs on KVM host in another thread on dev@
and in the bug https://issues.apache.org/jira/browse/CLOUDSTACK-3163

let us know if the symptoms are the same and you can bring this up on
dev@ with more details.

 Any thoughts or feedback on this matter is appreciated.
 
 Looking forward to your reply, thank you.
 
 Cheers.

-- 
Prasanna.,


Powered by BigRock.com



Re: Generating OS Templates

2013-07-18 Thread Prasanna Santhanam
There are no providers for CloudStack yet in these projects
(vagrant/packer). Only for AWS, vmware fusion, vbox and possibly
openstack. So you'll have to convert to vhd manually and then import
as template and then muck around with the networking a little bit to
get it right.

On Thu, Jul 18, 2013 at 11:11:04AM -0300, Celso Fernandes wrote:
 Hi Sanjay, thank you for your reply,
 
 I thought were some more automated process like Veewee does for
 Vagrant boxes. Is there any way to convert Vagrant boxes to XenServer
 ones? So would be much more simpler to automate the process. I'm gonna
 search for some info and test, then publish any result I got.
 
 Thank you,
 Celso Fernandes
 
 www.zertico.com
 
 +55 35 4105-0922
 Av. BPS, 1303 - PCE - PCTI - Sala 10
 
 
 On Thu, Jul 18, 2013 at 2:09 AM, Sanjay Tripathi
 sanjay.tripa...@citrix.com wrote:
  If you have VMs running with the mentioned OS types, first stop those VMs 
  then go to Storage tab in the CS UI and select the ROOT disk of the VM 
  for which you want to create the template.
  There you'll get the option to  create template from that ROOT volume.
 
  And VM should have xenserver tools installed to reflect it in the template.
 
  --Sanjay
 
  -Original Message-
  From: celso.fernan...@gmail.com [mailto:celso.fernan...@gmail.com] On
  Behalf Of Celso Fernandes
  Sent: Thursday, July 18, 2013 6:21 AM
  To: users@cloudstack.apache.org
  Subject: Generating OS Templates
 
  I know its an novice question, but I haven't found in the documentation the
  best way to get this.
 
  I'd like to generate template for CentOS 6.4 / Debian 7.1 / Ubuntu
  12.04 with xenserver tools installed and password enabled.
 
  What is the best way to generate this templates? Any documentation or
  tutorial some could point would help very much.
 
  Thank you,
  Celso Fernandes
 
  www.zertico.com
 
  +55 35 4105-0922
  Av. BPS, 1303 - PCE - PCTI - Sala 10

-- 
Prasanna.,


Powered by BigRock.com



Re: Generating OS Templates

2013-07-18 Thread Prasanna Santhanam
Celso,

There's an issue on the packer [1] github that you may be interested in if
you plan on building support for CS. I've been playing around with
packer for the last few weeks and find it quite stable for a version 0.1
tool and since it's by the Vagrant author himself I think it'll get
good traction in the future.

[1] https://github.com/mitchellh/packer/issues/76

-- 
Prasanna.,

On Thu, Jul 18, 2013 at 11:40:02AM -0300, Celso Fernandes wrote:
 Christian,
 I've been using veewee to generate vagrant boxes in a while, for me is
 much better to develop something based on this and automate to import
 on Cloudstack instead of develop something from scratch.
 
 Prasanna,
 Thank you for the point.. Packer seems a really cool to do this task,
 I'm gonna try to make a plugin for XenServer, once it worked I try
 something specific to CloudStack, thank you for point me into this
 direction.
 
 Thank you all for replies,
 Celso Fernandes
 
 www.zertico.com
 
 +55 35 4105-0922
 Av. BPS, 1303 - PCE - PCTI - Sala 10
 
 
 On Thu, Jul 18, 2013 at 11:25 AM, Prasanna Santhanam t...@apache.org wrote:
  There are no providers for CloudStack yet in these projects
  (vagrant/packer). Only for AWS, vmware fusion, vbox and possibly
  openstack. So you'll have to convert to vhd manually and then import
  as template and then muck around with the networking a little bit to
  get it right.
 
  On Thu, Jul 18, 2013 at 11:11:04AM -0300, Celso Fernandes wrote:
  Hi Sanjay, thank you for your reply,
 
  I thought were some more automated process like Veewee does for
  Vagrant boxes. Is there any way to convert Vagrant boxes to XenServer
  ones? So would be much more simpler to automate the process. I'm gonna
  search for some info and test, then publish any result I got.
 
  Thank you,
  Celso Fernandes
 
  www.zertico.com
 
  +55 35 4105-0922
  Av. BPS, 1303 - PCE - PCTI - Sala 10
 
 
  On Thu, Jul 18, 2013 at 2:09 AM, Sanjay Tripathi
  sanjay.tripa...@citrix.com wrote:
   If you have VMs running with the mentioned OS types, first stop those 
   VMs then go to Storage tab in the CS UI and select the ROOT disk of 
   the VM for which you want to create the template.
   There you'll get the option to  create template from that ROOT volume.
  
   And VM should have xenserver tools installed to reflect it in the 
   template.
  
   --Sanjay
  
   -Original Message-
   From: celso.fernan...@gmail.com [mailto:celso.fernan...@gmail.com] On
   Behalf Of Celso Fernandes
   Sent: Thursday, July 18, 2013 6:21 AM
   To: users@cloudstack.apache.org
   Subject: Generating OS Templates
  
   I know its an novice question, but I haven't found in the documentation 
   the
   best way to get this.
  
   I'd like to generate template for CentOS 6.4 / Debian 7.1 / Ubuntu
   12.04 with xenserver tools installed and password enabled.
  
   What is the best way to generate this templates? Any documentation or
   tutorial some could point would help very much.
  
   Thank you,
   Celso Fernandes
  
   www.zertico.com
  
   +55 35 4105-0922
   Av. BPS, 1303 - PCE - PCTI - Sala 10
 
  --
  Prasanna.,
 
  
  Powered by BigRock.com
 



Powered by BigRock.com



Re: Ceph RBD With Xen Server

2013-07-17 Thread Prasanna Santhanam
It was only a week ago [1] that Ceph+XenServer announced support for
Ceph as primary storage. So AFAIK, no one is working on this front. So
it's good timing along with storage changes made in cloudstack to pick
this up.

[1] http://ceph.com/community/xenserver-support-for-rbd/
On Thu, Jul 18, 2013 at 11:46:59AM +0800, Punit Dambiwal wrote:
 Hi,
 
 As i know this question is novicebecause we already aware that
 cloudstack RBD work with KVM HV onlyi want to know is there any work
 around to use Ceph RBD with XenServer..
 
 Thanks,
 Punit

-- 
Prasanna.,


Powered by BigRock.com



Re: Problem in adding Ceph RBD as primary storage for CloudStack 4.1.0

2013-07-15 Thread Prasanna Santhanam
On Mon, Jul 15, 2013 at 04:45:34PM +0800, Indra Pramana wrote:
 Hi Prasanna and all,
 
 I managed to work out on how to assign public IP to the VM instance using
 static NAT.
 
 However, I am still stuck with the console proxy time-out issue. It seems
 that my problem is exactly the one mentioned on this bug reported to JIRA:
 
 https://issues.apache.org/jira/browse/CLOUDSTACK-1500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel
 
 May I know whether there's any resolution to the bug above? The issue seems
 to be identical to the one I am facing right now.
 
 Any other way on how to console in to the newly created VM other than using
 the console proxy method? Unlike system VM, the instance VM doesn't give
 any link local address which I can SSH directly from the KVM host. Am I
 able to using virsh command to log in to the instance?

Yup - virsh console to your domain would work. But is unsuitable for
users/tenants of the cloudstack deployment. I'll defer to someone with
more knowledge about the console-proxy issue.
 
-- 
Prasanna.,


Powered by BigRock.com



Re: Problem in adding Ceph RBD as primary storage for CloudStack 4.1.0

2013-07-15 Thread Prasanna Santhanam
On Mon, Jul 15, 2013 at 06:44:12PM +0800, Indra Pramana wrote:
   Any other way on how to console in to the newly created VM other than
  using
   the console proxy method? Unlike system VM, the instance VM doesn't give
   any link local address which I can SSH directly from the KVM host. Am I
   able to using virsh command to log in to the instance?
 
  Yup - virsh console to your domain would work. But is unsuitable for
  users/tenants of the cloudstack deployment. I'll defer to someone with
  more knowledge about the console-proxy issue.
 
 
 I managed to find out the reason why the console-proxy didn't work. I set
 up Google's DNS servers (8.8.8.8 and 8.8.4.4) as Internal DNS 1 and 2
 during zone creation since we don't have our own internal DNS server.
 
 This caused a routing entry on the CPVM for 8.8.8.8 and 8.8.4.4 to the
 internal network interface of the VM, causing the CPVM not able to resolve
 domains within the VM, resulting to the issue. I did a route del of the
 two entries from the VM's routing table and it resolves the problem.
 
 /sbin/route del -host 8.8.4.4 gw 10.19.16.1
 /sbin/route del -host 8.8.8.8 gw 10.19.16.1
 

Thanks - so the CPVM talks to the vnc ports on your hosts on the
management network. I guess there should be a way to turn off
name-resolution in such cases as your deployment where you don't allow
any public traffic on your management network. Either that or we need
to note this in our documentation somewhere. Could you please point to
this thread and file a bug report?

You can sign up for our bugtracker here:
https://issues.apache.org/jira/secure/Signup!default.jspa

-- 
Prasanna.,


Powered by BigRock.com



Re: Problem in adding Ceph RBD as primary storage for CloudStack 4.1.0

2013-07-14 Thread Prasanna Santhanam
On Sat, Jul 13, 2013 at 02:25:35PM +0800, Indra Pramana wrote:
 Hi Prasanna,
 
 Good day to you, and thank you for your e-mail.
 
Were you able to get beyond this error?

 Yesterday I troubleshooted further and found out that the mapping of the
 bridge is incorrect. For example, eth1 of the SSVM, which is supposed to be
 private network interface for communication with management server, is
 being mapped to cloudbr0 bridge which is used for public. While eth2 of the
 SSVM, which is supposed to be public, is being mapped to cloudbr1 bridge
 which is supposed for guest traffic. I checked with brctl show on the KVM
 host and traced the MAC address of the SSVM's eth interfaces.
 
 I have tried different type of configuration on the KVM hosts'
 /etc/network/interfaces (I am using Ubuntu), different ways on how to
 configure the advanced network zone (physical network interface and KVM
 label for each traffic), but I am still not able to get it working.
 
 Can please advise what is the best way to set-up the network bridges?

Use brctl to add bridges. That's how I've done it.

 
 My /etc/network/interfaces on KVM host:
 
 http://pastebin.com/nx8xJ1L2
 
 I used 3 physical NICs:
 
 eth0 -- for management and secondary storage traffic
 eth1 -- for public and guest traffic
 eth2 -- for primary storage traffic to the Ceph RBD (separate NIC not
 configured by CloudStack)
 
 On the Cloudstack GUI, while creating the zone, I used 3 physical networks:
 
 eth0.6 -- Management traffic (KVM label: eth0.6)
 cloudbr0 -- Public traffic (KVM label: cloudbr0)
 cloudbr1 -- Guest traffic (KVM label: cloudbr1)
 
Is eth0.6 on a tagged VLAN?

 I didn't specify storage traffic since I presume it will use the management
 VLAN.

That's correct.

 
 However, I always failed to add the KVM host using the above configuration.
 I tried to run cloudstack-setup-agent manually on the KVM host and getting
 this error message:
 
 root@hv-kvm-02:/etc/cloudstack/agent# cloudstack-setup-agent -m x.x.x.18 -z
 3 -p 3 -c 3 -g 00dd5dba-7419-3689-bc51-1671035c0d8f -a --pubNic=cloudbr0
 --prvNic=eth0.6 --guestNic=cloudbr1
 Starting to configure your system:
 Configure Apparmor ...[OK]
 Configure Network ... [Failed]
 eth0.6 is not a bridge
 Try to restore your system:
 Restore Apparmor ...  [OK]
 Restore Network ...   [OK]
 
 When I tried to create another bridge called cloudbr2 with bridge_ports to
 eth0.6, the KVM host's network didn't work.
 
 Can advise what is the best practice on configuring the network bridges on
 the advanced network zone setup?
 
 Looking forward to your reply, thank you.
 
 Cheers.
 
 
 
 On Sat, Jul 13, 2013 at 12:28 PM, Prasanna Santhanam t...@apache.org wrote:
 
  See Inline,
 
  On Fri, Jul 12, 2013 at 05:12:25PM +0800, Indra Pramana wrote:
   Hi Wido,
  
   Noted, can't wait for 4.2 to be released. :)
  
   Dear Prasanna, Wido and all,
  
   I just realised that while the system VMs are running, they are still not
   accessible through the public IPs assigned to them. I have been waiting
  for
   the SSVM to download the default CentOS template and it doesn't appear on
   the template list.
  
   I tried to SSH into the SSVM via the local link address from the KVM
  host,
   and running the health check /usr/local/cloud/systemvm/ssvm-check.sh
  shows
   that the VM cannot reach anywhere. It cannot reach the public DNS server
  (I
   used Google's 8.8.8.8), cannot reach the management server, and cannot
  even
   reach the public IP gateway.
 
  Ok - we're not there yet. But there's a few troubleshooting steps you
  can try:
 
  1. Which of the checks fail apart from the DNS ping?
  2. Are you able to have those tests pass from the KVM host itself?
  3. Can you paste the output of $route -n on your SSVM and on your
  host?
 
  
   Is it due to misconfiguration of the KVM network bridges? How can I see
  the
   mapping between the NIC interfaces of the SSVM (eth0, eth1, eth2 and
  eth3)
   and the actual physical NIC interfaces on the KVM hosts (eth0) and the
   network bridges (cloudbr0, cloudbr1)? Any logs I can verify to ensure
  that
   the VLAN and network bridging is working?
  
 
  You can see this from the dumpxml.
 
  $virsh list
  (gives you all the  domains. find the ssvm for example)
 
  $virsh dumpxml my-domain  mydomain.xml
 
   Appreciate any advice.
  
   Thank you.
  
  
  
   On Fri, Jul 12, 2013 at 4:19 PM, Wido den Hollander w...@widodh.nl
  wrote:
  
On 07/12/2013 10:14 AM, Indra Pramana wrote:
   
Hi Prasanna,
   
I managed to fix the problem, thanks for your advice to turn the agent
log level to debug:
   
https://cwiki.apache.org/**confluence/display/CLOUDSTACK/**
KVM+agent+debug
  https://cwiki.apache.org/confluence/display/CLOUDSTACK/KVM+agent+debug
   
 From the log, I found out that the agent on the KVM host tried to NFS
mount directly to 103.25.200.19:/mnt/vol1/sec-**
storage/template/tmpl/1/3,
which was not allowed

Re: Wrong storage capacity issue reported

2013-07-14 Thread Prasanna Santhanam
On Mon, Jul 15, 2013 at 11:58:47AM +0800, Indra Pramana wrote:
 Dear all,
 
 In addition to my previous e-mail, I just realised that the wrong capacity
 usage information is only applicable to the Ceph RBD primary storage. I did
 a check manually on the storage_pool table on the cloud MySQL database:
 
 +-+-+--+---+--++++---++---+++-+-+-+-+-+---+
 | id  | name| uuid |
 pool_type | port | data_center_id | pod_id | cluster_id |
 available_bytes   | capacity_bytes | host_address  |
 user_info  | path   |
 created | removed | update_time | status  |
 storage_provider_id | scope |
 +-+-+--+---+--++++---++---+++-+-+-+-+-+---+
 | 209 | sc-image| bab81ce8-d53f-3a7d-b8f6-841702f65c89 |
 RBD   | 6789 |  6 |  6 |  6 |
 38283921137336466 |  6013522722816 | ceph-mon.xxx.com | admin:xxx |
 sc1| 2013-07-13 08:58:27 | NULL|
 NULL| Up  |NULL | NULL  |
 
 The available_bytes column is wrong.
 
 My issue is similar to the one reported by Guangjian Liu here, but it seems
 that so far there's no solutions available?
 
 http://mail-archives.apache.org/mod_mbox/cloudstack-dev/201304.mbox/%3ccakryd0b_qtjhtsfjk8mceqzdh6froxe6ekjmfrcmdn54e5z...@mail.gmail.com%3E

It might be a bug on ceph but the thread you referenced was resolved.
See here: http://markmail.org/message/mkm2fqyawmwpufsc

If it still persists, can you please file a bug on JIRA?


 
 Is it safe for me to update the database record manually (using the UPDATE
 MySQL command) to reflect the actual usage of the disk?

Even if you do whatever is reporting the stats to CS about Ceph's
storage usage, will overwrite those values.

 
 Looking forward to your reply, thank you.
 
 Cheers.
 
 
 
 
 On Mon, Jul 15, 2013 at 11:41 AM, Indra Pramana in...@sg.or.id wrote:
 
  Dear all,
 
  I am using CloudStack 4.1.0. Just managed to get it setup over the
  weekend. System VMs have been created and both (SSVM and CPVM) are running
  fine. The default CentOS template has also been downloaded and ready to use.
 
  However, I am not able to launch my first VM instance because the storage
  capacity checker is reporting wrong usage information. I have a total of 13
  TB of primary storage and the capacity checker is reporting my usage is
  36,510 TB (274879.22%), which is not supposed to be the case.
 
  ===
  2013-07-15 11:27:31,632 DEBUG [cloud.alert.AlertManagerImpl]
  (CapacityChecker:null) System Alert: Low Available Storage in cluster
  Cluster-01 pod Pod-01 of availability zone 01
  2013-07-15 11:27:31,632 DEBUG [cloud.alert.AlertManagerImpl]
  (CapacityChecker:null) Available storage space is low, total: 13282342 MB,
  used: 36510398411 MB (274879.22%)
  ===
 
  As a result, VM instance creation fails since it's not able to find
  available storage pool.
 
  ===
  2013-07-15 11:15:28,313 DEBUG [cloud.storage.StorageManagerImpl]
  (Job-Executor-3:job-168) Checking pool: 208 for volume allocation
  [Vol[227|vm=225|ROOT]], maxSize : 15828044742656, totalAllocatedSize :
  1769538048, askingSize : 8589934592, allocated disable threshold: 0.85
  2013-07-15 11:15:28,313 DEBUG
  [storage.allocator.AbstractStoragePoolAllocator] (Job-Executor-3:job-168)
  Checking if storage pool is suitable, name: sc-image ,poolId: 209
  2013-07-15 11:15:28,313 DEBUG
  [storage.allocator.AbstractStoragePoolAllocator] (Job-Executor-3:job-168)
  Is localStorageAllocationNeeded? false
  2013-07-15 11:15:28,313 DEBUG
  [storage.allocator.AbstractStoragePoolAllocator] (Job-Executor-3:job-168)
  Is storage pool shared? true
  2013-07-15 11:15:28,317 DEBUG [cloud.storage.StorageManagerImpl]
  (Job-Executor-3:job-168) Checking pool 209 for storage, totalSize:
  6013522722816, usedBytes: 38283921137336466, usedPct: 6366.305226067051,
  disable threshold: 0.85
  2013-07-15 11:15:28,317 DEBUG [cloud.storage.StorageManagerImpl]
  (Job-Executor-3:job-168) Insufficient space on pool: 209 since its usage
  percentage: 6366.305226067051 has crossed the
  pool.storage.capacity.disablethreshold: 0.85
  2013-07-15 11:15:28,317 DEBUG
  [storage.allocator.FirstFitStoragePoolAllocator] (Job-Executor-3:job-168)
  

Re: Problem in adding Ceph RBD as primary storage for CloudStack 4.1.0

2013-07-12 Thread Prasanna Santhanam
Can you access the file as user root? Or user cloud? The cloudstack
agent on your KVM host runs as user cloud and the NFS permissions
might be disallowing the volume (.qcow2) from being accessed.

On Fri, Jul 12, 2013 at 02:16:41PM +0800, Indra Pramana wrote:
 Hi Prasanna,
 
 Good day to you, and thank you for your e-mail.
 
 Yes, the file exists. I can access the file from the management server and
 the two hypervisors hosts if I mount manually.
 
 [root@cs-nas-01 /mnt/vol1/sec-storage/template/tmpl/1/3]# ls
 -la
 total
 1418787
 drwxr-xr-x  2 root  wheel  4 Jul 11 20:21
 .
 drwxr-xr-x  3 root  wheel  3 Jul 11 20:17
 ..
 -rw-r--r--  1 root  wheel  725811200 Jul 11 20:21
 425b9e5a-fbc7-4637-a33a-fe9d0ed4fa98.qcow2
 -rw-r--r--  1 root  wheel295 Jul 11 20:21
 template.properties
 [root@cs-nas-01 /mnt/vol1/sec-storage/template/tmpl/1/3]#
 pwd
 /mnt/vol1/sec-storage/template/tmpl/1/3
 
 
 Any advise?
 
 Looking forward to your reply, thank you.
 
 Cheers.
 
 
 
 On Fri, Jul 12, 2013 at 2:07 PM, Prasanna Santhanam t...@apache.org wrote:
 
  Can you check whether there is a file at:
  nfs://103.25.200.19/mnt/vol1/sec-storage/template/tmpl/1/3/
 
  On Fri, Jul 12, 2013 at 01:59:34PM +0800, Indra Pramana wrote:
   Hi Prasanna,
  
   Thanks for your e-mail.
  
   I have tried restarting the management server, and the problem still
   persists. I even tried to re-do the installation and configuration again
   from scratch last night, but the problem still there.
  
   I also noted that on the beginning of the logs, I found some error
  messages
   saying that the template cannot be downloaded to the pool. See this logs:
  
   http://pastebin.com/BY1AVJ08
  
   It says it failed because cannot get volume from the pool. Could it be
   related, i.e. the absence of the template caused the system VMs cannot be
   created and started?
  
   I have ensured that I downloaded the system VM template using
   cloud-install-sys-tmplt and verified that the template is already there
  in
   the secondary storage server.
  
   Any advice is appreciated.
  
   Looking forward to your reply, thank you.
  
   Cheers.
  
  
  
   On Fri, Jul 12, 2013 at 1:21 PM, Prasanna Santhanam t...@apache.org
  wrote:
  
It looks like a previous attempt to start the systemVMs has failed
putting the nfs storage in the avoid set. Did you try restarting your
management server?
   
This line leads me to the above mentioned:
2013-07-12 13:10:48,236 DEBUG
[storage.allocator.AbstractStoragePoolAllocator] (secstorage-1:null)
StoragePool is in avoid set, skipping this pool
   
   
On Fri, Jul 12, 2013 at 01:16:53PM +0800, Indra Pramana wrote:
 Dear Wido and all,

 I have managed to get the hosts, primary and secondary storage
  running.

 - 2 KVM hypervisor hosts
 - One RBD primary storage
 - One NFS primary storage (for system VMs, since I understand that
  system
 VMs cannot use RBD)
 - One NFS secondary storage

 However, now I am having problem with the system VMs: CPVM and SSVM,
unable
 to start.

 Excerpt from management-server.log file is here:
 http://pastebin.com/ENkpCALY

 It seems that the VMs were not able to be created because unable to
  find
 suitable StoragePools.

 I understand that system VMs will be using the NFS primary storage
instead
 of RBD, so I have confirmed that I am able to mount the primary
  storage
via
 NFS and have read and write access, from both the hypervisor and the
 management server.

 Any advise how can I resolve the problem to make both the system VMs
 created and started?

 Looking forward to your reply, thank you.

 Cheers.


 On Fri, Jul 12, 2013 at 9:43 AM, Indra Pramana in...@sg.or.id
  wrote:

  Hi Wido,
 
  Thanks for the advice, I'm now able to add the RBD pool as primary
storage.
 
  Many thanks! :)
 
  Cheers.
 
 
  On Thursday, July 11, 2013, Wido den Hollander wrote:
 
  Hi,
 
  On 07/10/2013 03:42 PM, Chip Childers wrote:
 
  Cc'ing Wido, our resident Ceph expert. ;-)
 
 
  Hehe ;)
 
   On Wed, Jul 10, 2013 at 05:45:25PM +0800, Indra Pramana wrote:
 
  Dear all,
 
  I am installing CloudStack 4.1.0 (upgraded from 4.0.2) and I
  also
have a
  Ceph cluster running. However, I am having issues in adding the
  RBD
as
  primary storage. Tried to follow the instruction here, but
  unable to
  make
  it work:
 
  http://ceph.com/docs/master/**rbd/rbd-cloudstack/
http://ceph.com/docs/master/rbd/rbd-cloudstack/
 
  I have setup a pool on the Ceph cluster. The status of the
  cluster
is
  healthy. Since I am using Ubuntu 12.04.2 LTS (Precise) for the
  hypervisors,
  I also have compiled libvirt manually to ensure that the version
0.9.13

Re: Problem in adding Ceph RBD as primary storage for CloudStack 4.1.0

2013-07-12 Thread Prasanna Santhanam
Indeed, cloudstack will go through the allocation to startup the
system VMs too. So that process is failing to recognize the volume
(.qcow2) present on your NFS storage. 

Can you check if your cloudstack agent service is running with the KVM
host? And it should've created the user cloud. $id cloud to check if
there is a user.

Did you see what's happening in the agent logs? These are under
/var/log/cloud/ on your host when the systemVMs are coming up. If the
logs are not showing any useful information you can turn on debug
level for more verbosity.

See here: https://cwiki.apache.org/confluence/x/FgPMAQ

On Fri, Jul 12, 2013 at 02:40:35PM +0800, Indra Pramana wrote:
 Hi Prasanna,
 
 Good day to you, and thank you for your e-mail.
 
 Yes, when I export the NFS, I set the permission so that normal user will
 be able to have read/write access to the files (no_root_squash).
 
 I have tested and I can have read/write access from my KVM hosts using
 normal user. BTW, there's no cloud user on the hosts, I believe it's not
 created during cloudstack-agent installation?
 
 In any case, do you think the template issue and the storage pool
 allocation issue might be related, or are they two different problems
 altogether?
 
 Looking forward to your reply, thank you.
 
 Cheers.
 
 
 
 On Fri, Jul 12, 2013 at 2:26 PM, Prasanna Santhanam t...@apache.org wrote:
 
  Can you access the file as user root? Or user cloud? The cloudstack
  agent on your KVM host runs as user cloud and the NFS permissions
  might be disallowing the volume (.qcow2) from being accessed.
 
  On Fri, Jul 12, 2013 at 02:16:41PM +0800, Indra Pramana wrote:
   Hi Prasanna,
  
   Good day to you, and thank you for your e-mail.
  
   Yes, the file exists. I can access the file from the management server
  and
   the two hypervisors hosts if I mount manually.
  
   [root@cs-nas-01 /mnt/vol1/sec-storage/template/tmpl/1/3]# ls
   -la
   total
   1418787
   drwxr-xr-x  2 root  wheel  4 Jul 11 20:21
   .
   drwxr-xr-x  3 root  wheel  3 Jul 11 20:17
   ..
   -rw-r--r--  1 root  wheel  725811200 Jul 11 20:21
   425b9e5a-fbc7-4637-a33a-fe9d0ed4fa98.qcow2
   -rw-r--r--  1 root  wheel295 Jul 11 20:21
   template.properties
   [root@cs-nas-01 /mnt/vol1/sec-storage/template/tmpl/1/3]#
   pwd
   /mnt/vol1/sec-storage/template/tmpl/1/3
  
  
   Any advise?
  
   Looking forward to your reply, thank you.
  
   Cheers.
  
  
  
   On Fri, Jul 12, 2013 at 2:07 PM, Prasanna Santhanam t...@apache.org
  wrote:
  
Can you check whether there is a file at:
nfs://103.25.200.19/mnt/vol1/sec-storage/template/tmpl/1/3/
   
On Fri, Jul 12, 2013 at 01:59:34PM +0800, Indra Pramana wrote:
 Hi Prasanna,

 Thanks for your e-mail.

 I have tried restarting the management server, and the problem still
 persists. I even tried to re-do the installation and configuration
  again
 from scratch last night, but the problem still there.

 I also noted that on the beginning of the logs, I found some error
messages
 saying that the template cannot be downloaded to the pool. See this
  logs:

 http://pastebin.com/BY1AVJ08

 It says it failed because cannot get volume from the pool. Could it
  be
 related, i.e. the absence of the template caused the system VMs
  cannot be
 created and started?

 I have ensured that I downloaded the system VM template using
 cloud-install-sys-tmplt and verified that the template is already
  there
in
 the secondary storage server.

 Any advice is appreciated.

 Looking forward to your reply, thank you.

 Cheers.



 On Fri, Jul 12, 2013 at 1:21 PM, Prasanna Santhanam t...@apache.org
wrote:

  It looks like a previous attempt to start the systemVMs has failed
  putting the nfs storage in the avoid set. Did you try restarting
  your
  management server?
 
  This line leads me to the above mentioned:
  2013-07-12 13:10:48,236 DEBUG
  [storage.allocator.AbstractStoragePoolAllocator]
  (secstorage-1:null)
  StoragePool is in avoid set, skipping this pool
 
 
  On Fri, Jul 12, 2013 at 01:16:53PM +0800, Indra Pramana wrote:
   Dear Wido and all,
  
   I have managed to get the hosts, primary and secondary storage
running.
  
   - 2 KVM hypervisor hosts
   - One RBD primary storage
   - One NFS primary storage (for system VMs, since I understand
  that
system
   VMs cannot use RBD)
   - One NFS secondary storage
  
   However, now I am having problem with the system VMs: CPVM and
  SSVM,
  unable
   to start.
  
   Excerpt from management-server.log file is here:
   http://pastebin.com/ENkpCALY
  
   It seems that the VMs were not able to be created because unable
  to
find
   suitable StoragePools.
  
   I understand that system VMs will be using the NFS primary

Re: CloudStack Mirrors

2013-07-10 Thread Prasanna Santhanam
Hey Matthew,

This is a great offer! So I want to follow up on this. Would you be
willing to host nightly builds of cloudstack? We've had trouble
getting nightly builds and stable RPMs in place for users to test.

On Tue, Jul 09, 2013 at 07:31:05PM -0500, Matthew E. Porter wrote:
 If there is a need, we (Contegix) are happy to host one.
 
 
 Cheers,
   Matthew 
 
 
 ---
 Matthew E. Porter
 Contegix
 E-mail: matthew.por...@contegix.com
 Twitter: @meporter | http://twitter.com/meporter
 
 On Jul 9, 2013, at 7:24 PM, Maurice Lawler maurice.law...@me.com wrote:
 
  Greetings,
  
  Is there any plan to make use of mirrors for folks downloading / updating 
  from the repo. Or is there one in existence now?
  
  
  - Maurice

-- 
Prasanna.,


Powered by BigRock.com



Re: Swift in 4.2 is broken, anybody wants it to be supported in 4.2?

2013-07-03 Thread Prasanna Santhanam
There was someone in the community using swift in production and had
volunteered to do some testing. See 
http://issues.apache.org/jira/browse/CLOUDSTACK-3350

On Wed, Jul 03, 2013 at 09:57:14PM +, Angeline Shen wrote:
 Hi Edison, Anthony,  Developers who are  interested:
 
 I tested Swift integration with Cloudstack 3.x .
 
 Please let me know if  we need to first round  testing of how broken  Swift  
 is  in terms of integration with  campo 4.2.
 
 In the process of allocating hosts for Swift integration.
 
 Thanks.
 
 
 
 -Original Message-
 From: Edison Su [mailto:edison...@citrix.com] 
 Sent: Wednesday, July 03, 2013 2:30 PM
 To: d...@cloudstack.apache.org
 Cc: users@cloudstack.apache.org
 Subject: Swift in 4.2 is broken, anybody wants it to be supported in 4.2?
 
 Due to object store refactor, Swift is broken. The reason, is that, we only 
 have S3 test environment in our lab, so only S3 is tested for now.
 Before adding the feature back, I'd better ask from, the community, do we 
 want to support Swift? If so, which version of Swift? This will take some 
 efforts to support Swift, are there any volunteers can help the integration?

-- 
Prasanna.,


Re: Unable to register templates and ISOs

2013-06-28 Thread Prasanna Santhanam
On your SSVM can you check the health of the agent using the
ssvm-check.sh described in the wiki here:

https://cwiki.apache.org/confluence/x/5wLMAQ


On Fri, Jun 28, 2013 at 04:29:56PM -0400, Tim Schultheiss wrote:
 Hi all,
 
 I have a CS 4.1 zone with XenServer 6.1 hosts. They were configured locally,
 disconnected and sent to a remote site, and then reconnected. After
 reconnecting, I cannot register anything to the secondary storage in this
 zone. I checked the logs and saw that it said that my two secondary storage
 shares have no storage hosts. I have restarted the SSVM, deleted both it and
 the Console Proxy, and verified that they were remade.
 I can create instances from any templates already imported. The status of
 any template or ISO created is blank, and if I attempt to copy one over from
 another zone, it fails as well.
 
 Can anyone offer any insight?
 
 Here's what the log says:
 2013-06-28 14:21:45,987 DEBUG [cloud.api.ApiServlet] (catalina-exec-23:null)
 ===START===  74.122.165.4 -- GET
 command=registerIsoresponse=jsonsessionkey=H4EadP%2Bc8GKR0Ym224FWLav13Tw%3
 Dname=CentOS+6.4+MinimaldisplayText=CentOS+6.4+Minimalurl=http%3A%2F%2Fmi
 rrors.vpsnoc.com%2FCentOS%2F6%2Fisos%2Fx86_642FCentOS-6.4-x86_64-minimal.iso
 zoneid=5f86ad9d-d8bc-4832-8fcb-838586f2ba5cisextractable=falsebootable=tr
 ueosTypeId=63d22a42-d9a9-11e2-a93bb6bd483074ccispublic=falseisfeatured=fa
 lse_=1372443705867
 2013-06-28 14:21:46,225 WARN  [storage.download.DownloadMonitorImpl]
 (catalina-exec-23:null) There is no secondary storage VM for secondary
 storage host nfs://10.147.36.75/export/secondary
 2013-06-28 14:21:46,325 DEBUG [cloud.api.ApiServlet] (catalina-exec-23:null)
 ===END===  74.122.165.4 -- GET
 command=registerIsoresponse=jsonsessionkey=H4EadP%2Bc8GKR0Ym224FWLav13Tw%3
 Dname=CentOS+6.4+MinimaldisplayText=CentOS+6.4+Minimalurl=http%3A%2F%2Fmi
 rrors.vpsnoc.com%2FCentOS%2F6%2Fisos%2Fx86_642FCentOS-6.4-x86_64-minimal.iso
 zoneid=5f86ad9d-d8bc-4832-8fcb-838586f2ba5cisextractable=falsebootable=tr
 ueosTypeId=63d22a42-d9a9-11e2-a93bb6bd483074ccispublic=falseisfeatured=fa
 lse_=1372443705867
 2013-06-28 14:22:00,453 DEBUG
 [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 10
 is ready to launch secondary storage VM
 2013-06-28 14:22:01,218 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
 (consoleproxy-1:null) Zone 10 is ready to launch console proxy
 2013-06-28 14:22:03,252 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-2:null) VmStatsCollector is running...
 2013-06-28 14:22:03,295 DEBUG [agent.manager.ClusteredAgentAttache]
 (StatsCollector-2:null) Seq 26-927141969: Forwarding null to 147455086999471
 2013-06-28 14:22:04,256 DEBUG [agent.transport.Request]
 (StatsCollector-2:null) Seq 26-927141969: Received:  { Ans: , MgmtId:
 227165843378938, via: 26, Ver: v1, Flags: 10, {GetVmStatsAnswer } }
 2013-06-28 14:22:04,282 DEBUG [agent.manager.ClusteredAgentAttache]
 (StatsCollector-2:null) Seq 27-1832978880: Forwarding null to
 147455086999471
 2013-06-28 14:22:05,365 DEBUG [agent.transport.Request]
 (StatsCollector-2:null) Seq 27-1832978880: Received:  { Ans: , MgmtId:
 227165843378938, via: 27, Ver: v1, Flags: 10, {GetVmStatsAnswer } }
 2013-06-28 14:22:18,465 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-2:null) StorageCollector is running...
 2013-06-28 14:22:18,476 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-2:null) There is no secondary storage VM for secondary
 storage host nfs://10.147.36.75/export/secondary
 2013-06-28 14:22:18,480 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-2:null) There is no secondary storage VM for secondary
 storage host nfs://10.147.36.76/export/secondary
 2013-06-28 14:22:18,501 DEBUG [agent.manager.ClusteredAgentAttache]
 (StatsCollector-2:null) Seq 26-927141970: Forwarding null to 147455086999471
 
 

-- 
Prasanna.,


Powered by BigRock.com



Re: Security Groups and IGMP

2013-06-22 Thread Prasanna Santhanam
Filed https://issues.apache.org/jira/browse/CLOUDSTACK-3131

You can register for JIRA and up vote the ticket
https://issues.apache.org/jira/secure/Signup!default.jspa

On Fri, Jun 21, 2013 at 12:04:14PM +, Kenneth Warren wrote:
 Prasanna,
 
 We would love to see this added!
 
 Thanks!
 
 Kenny Warren
 Orbis Technologies, Inc.
 www.orbistechnologies.com
 
 
-- 
Prasanna.,


Powered by BigRock.com



Re: Security Groups and IGMP

2013-06-20 Thread Prasanna Santhanam
Should this be included as an enhancement perhaps?

On Fri, Jun 21, 2013 at 03:39:50AM +, Jayapal Reddy Uradi wrote:
 Hi,
 
 The IGMP packets are blocked by default.
 In case of xenserver multicast traffic is blocked in ebtables.
 
 To allow IGMP traffic please update the eatables and iptables rules on the 
 xenserver.
 For testing you can add rules to accept multicast traffic in the eatables and 
 iptables.
 

-- 
Prasanna.,


Powered by BigRock.com



Re: authentication error in host addition in cloudstack

2013-06-17 Thread Prasanna Santhanam
On Mon, Jun 17, 2013 at 03:43:30PM +0530, Nehal J. Wani wrote:
 As far as I know, I've never used ssh keys for adding hosts. I just pass on
 the username:root, password:root-password
 

but I think if you are managing 100s of hosts and place your ssh-keys
on installing the OS onto baremetal then simply adding the host via
ssh-keys would be more favourable. CloudStack then should attmept to
connect via ssh-keys, if not found, should look to authenticate using
passwd similar to how SSH works.

May be an enhancement?

 
 On Mon, Jun 17, 2013 at 3:24 PM, Er Krishna erkris...@gmail.com wrote:
 
  Hi All,
 
  I tried to add the host in cloudstack, but I got authentication error. Can
  Anyone pls tell me how to debug it? Is it due to ssh keygeneration or what
  ? Pls help me here.
 
  Krishna
 
 
 
 
 -- 
 Nehal J. Wani
 UG2, BTech CS+MS(CL)
 IIIT-Hyderabad
 http://commanlinewani.blogspot.com

-- 
Prasanna.,


Powered by BigRock.com



Re: What are Direct IPs

2013-06-10 Thread Prasanna Santhanam
On Mon, Jun 10, 2013 at 09:46:12AM +0100, CK wrote:
 So are Direct IPs different to Public IPs - what is the difference?

They needn't strictly be 'public' as in publicly accessible to the
world. But yes, any network that is flat.
 
 Can you direct me to where I can find howto file a doc bug?

Jessica's written up a doc on our wiki:
https://cwiki.apache.org/confluence/x/vRvVAQ

-- 
Prasanna.,


Powered by BigRock.com



Re: unable to add host

2013-06-06 Thread Prasanna Santhanam
On Thu, Jun 06, 2013 at 12:00:31PM +0530, Er Krishna wrote:
 Ahmad,
 
 I have restarted clod-agent and the log is as follows: at this time I have
 not tried to add the host from management server: This log is just after
 cloud-agent restart:
 
 2013-06-06 11:41:03,225 INFO  [utils.component.ComponentLocator]
 (main:null) Unable to find components.xml
 2013-06-06 11:41:03,226 INFO  [utils.component.ComponentLocator]
 (main:null) Skipping configuration using components.xml
 2013-06-06 11:41:03,226 INFO  [cloud.agent.AgentShell] (main:null)
 Implementation Version is 4.0.2.20130501180711
 2013-06-06 11:41:03,226 INFO  [cloud.agent.AgentShell] (main:null)
 agent.properties found at /etc/cloud/agent/agent.properties
 2013-06-06 11:41:03,227 INFO  [cloud.agent.AgentShell] (main:null)
 Defaulting to using properties file for storage
 2013-06-06 11:41:03,228 INFO  [cloud.agent.AgentShell] (main:null)
 Defaulting to the constant time backoff algorithm
 2013-06-06 11:41:03,350 INFO  [cloud.agent.Agent] (main:null) id is
 2013-06-06 11:41:03,352 ERROR [cloud.resource.ServerResourceBase]
 (main:null) Nics are not configured!
 2013-06-06 11:41:03,355 INFO  [cloud.resource.ServerResourceBase]
 (main:null) Designating private to be nic eth2
 2013-06-06 11:41:03,420 INFO
 [resource.virtualnetwork.VirtualRoutingResource] (main:null)
 VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
 2013-06-06 11:41:03,961 INFO  [kvm.resource.LibvirtComputingResource]
 (main:null) No libvirt.vif.driver specififed. Defaults to BridgeVifDriver.
 2013-06-06 11:41:04,016 INFO  [cloud.agent.Agent] (main:null) Agent [id =
 new : type = LibvirtComputingResource : zone = default : pod = default :
 workers = 5 : host = localhost : port = 8250
 2013-06-06 11:41:04,034 INFO  [utils.nio.NioClient] (Agent-Selector:null)
 Connecting to localhost:8250
 2013-06-06 11:41:04,036 ERROR [utils.nio.NioConnection]
 (Agent-Selector:null) Unable to connect to remote
 2013-06-06 11:41:09,041 INFO  [utils.nio.NioClient] (Agent-Selector:null)
 Connecting to localhost:8250
 2013-06-06 11:41:09,042 ERROR [utils.nio.NioConnection]
 (Agent-Selector:null) Unable to connect to remote
 
 
 
 
 
 
 I am first time using java and cloudstack so pls help me to set the log4j
 properties to debug or trace level. How to do it, I dont know. I have used
 repositories to install the cloudagent packages. pls tell me which file I
 need to make what entries and how to restart it ?

On the agent go to /etc/cloudstack/agent/log4j-*.xml. Within that
s/DEBUG/TRACE/g and that should turn on TRACE for all components.

Before that -
1. Is port 8250 open on the management server and listening for
connections?
2. On your ubuntu host what is the output of lsmod | grep kvm
 
 Krishna
 
 
 
 
 On Wed, Jun 5, 2013 at 10:22 PM, Ahmad Emneina aemne...@gmail.com wrote:
 
  Can you restart the cloud-agent service on the hypervisor host and post
  the output from those logs? Also ensure log4j is set to TRACE or DEBUG
  level logging before the restart.
 
  Ahmad
 
  On Jun 5, 2013, at 9:35 AM, Er Krishna erkris...@gmail.com wrote:
 
   On 5 Jun 2013 21:59, Ahmad Emneina aemne...@gmail.com wrote:
  
   Looks like there was a timeout connecting to the host. What hypervisor
   are you using?
  
   Kvm
  
   Ahmad
  
   On Jun 5, 2013, at 7:14 AM, Er Krishna erkris...@gmail.com wrote:
  
   Host and management Server are seperated and both have Ubuntu 12.0.4
  and
   cloudstack version on both node is 4.0.2 . I have exported primary and
   secondry directory via NFS from management to host.  On secondry node
  VM
   templates are there. I have configured NTP on both but still the
  problem
   persist. I have pasted management server log at following location:
  
  
   http://apaste.info/in3l
  
   Krishna
  
  
   On Tue, Jun 4, 2013 at 6:04 PM, David Nalley da...@gnsa.us wrote:
  
   How about we start with what platform and what version of CloudStack.
  
   Also - your agent.log timestamp and management server log timestamps
   have a 30 minute skew, and the management server logs are remotely
   related to adding an agent - can we see the actual time period that
   you tried to add a host - preferably several hundred lines -
   apaste.info that and share a link.
  
   --David
  
   On Tue, Jun 4, 2013 at 7:56 AM, Er Krishna erkris...@gmail.com
  wrote:
   I am not able to add host. Pls help me to debug this.
  
   My host machine agent.log is:
   2016-11-02 18:46:56,633 INFO  [utils.nio.NioClient]
   (Agent-Selector:null)
   Connecting to localhost:8250
   2016-11-02 18:46:56,633 ERROR [utils.nio.NioConnection]
   (Agent-Selector:null) Unable to connect to remote
   2016-11-02 18:46:56,732 INFO  [cloud.agent.Agent]
   (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
  
  
   Management server log is :
  
   2013-06-04 17:18:14,118 DEBUG
   [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
   Zone
   2
   is not ready to launch secondary storage VM yet
 

Re: unable to add host

2013-06-06 Thread Prasanna Santhanam
On Thu, Jun 06, 2013 at 01:58:51PM +0530, Er Krishna wrote:
 Ahmad
 
 You mean to say in same file I should replace info from Trace? And what
 about first line : debug = true is fine or shall I replace debug to trace
 and should do trace=true ?

First line doesn't matter. Just replace the instances of INFO with
TRACE and share the info post agent restart via a pastebin.


-- 
Prasanna.,


Powered by BigRock.com



Re: Unable to display UI

2013-05-31 Thread Prasanna Santhanam
It's rather odd because I started seeing this the same time with the
latest packages on the development release line too and filed a bug
here:

http://issues.apache.org/jira/browse/CLOUDSTACK-2758


Baffling.

On Sat, Jun 01, 2013 at 01:17:23AM +0800, wq meng wrote:
 Hello,
 
 I also have this problem since last weekend,  I do not very think that
 I have changed much how to setup the cloud management.
 
 Too worse that there is no logs left on my server.
 
 [root@localhost x86_64]# tail -n 200
 /var/log/cloud/management/management-server.log
 tail: cannot open `/var/log/cloud/management/management-server.log'
 for reading: No such file or directory
 
 What's have changed?I have try on  CentOS 6.4  X86_64 and  CS 4.02.
 
 
 For other logs.
 Only
 
 [root@localhost x86_64]# tail /var/log/cloud/setupManagement.log
 DEBUG:root:execute:service cloud-management status
 DEBUG:root:Failed to execute:cloud-management is stopped
 The pid file locates at /var/run/cloud-management.pid and lock file at
 /var/lock/subsys/cloud-management.
 Starting cloud-management will take care of them or you can
 manually clean up.
 DEBUG:root:execute:chkconfig --level 2345 cloud-management on
 DEBUG:root:execute:service cloud-management status
 DEBUG:root:Failed to execute:cloud-management is stopped
 The pid file locates at /var/run/cloud-management.pid and lock file at
 /var/lock/subsys/cloud-management.
 Starting cloud-management will take care of them or you can
 manually clean up.
 DEBUG:root:execute:service cloud-management start
 [root@localhost x86_64]#
 
 
 And
 
 
 [root@localhost x86_64]# cat /var/log/cloud/management/catalina.out
 /usr/sbin/tomcat6: line 30:
 /usr/share/cloud/management/logs/catalina.out: Permission denied
 /usr/sbin/tomcat6: line 30:
 /usr/share/cloud/management/logs/catalina.out: Permission denied
 /usr/sbin/tomcat6: line 30:
 /usr/share/cloud/management/logs/catalina.out: Permission denied
 /usr/sbin/tomcat6: line 30:
 /usr/share/cloud/management/logs/catalina.out: Permission denied
 
 
 
 
 Should be the Permission problem?
 
 Thanks
 
 On Fri, May 31, 2013 at 11:37 PM,  josee...@farmaenlace.com wrote:
  I run that command and it returns the following:
 
  ===
  cloud-management interrupted but a pid file exists
  The pid file locates at /var/run/cloud-management.pid and lock file at
  /var/lock/subsys/cloud-management.
  Starting cloud-management will take care of them or you can
  manually clean up.
  ===
 
  On /etc/hosts I got:
  127.0.0.1   localhost localhost.localdomain localhost4
  localhost4.localdomain4
  ::1 localhost localhost.localdomain localhost6
  localhost6.localdomain6
  #127.0.0.1 ServerManagement.xdomain.com
  ServerManagement.localhost.localdomain localhost
  192.168.238.40 ServerManagement.xdomain.com ServerManagement
 
  On /etc/network I got:
  NETWORKING=yes
  HOSTNAME=ServerManagement.xdomain.com
 
  Let me know if something is wrong in those files.
 
  Try to run
 
  service cloud-management status
 
  -Oded
 
  -Original Message-
  From: Pranav Saxena [mailto:pranav.sax...@citrix.com]
  Sent: Friday, May 31, 2013 4:55 PM
  To: users@cloudstack.apache.org
  Cc: rogelio.fiorenz...@gmail.com; josee...@farmaenlace.com
  Subject: RE: Unable to display UI
 
  Guys , can you check your management server logs and see if there is any
  exception being thrown ?
 
  Also can you try the following -
 
  Try editing  the HOSTNAME in the file /etc/sysconfig/network apart from
  the  file /etc/hosts
  For example
  /etc/hosts:
  192.168.1.1 x
 
  /etc/sysconfig/network:
  Hostname= x
 
  Thanks,
  Pranav
 
  -Original Message-
  From: Rogelio Fiorenzano [mailto:rogelio.fiorenz...@gmail.com]
  Sent: Friday, May 31, 2013 8:19 PM
  To: users@cloudstack.apache.org
  Subject: Re: Unable to display UI
 
  Jose--
 
  I'm avidly waiting to see the responses that come to you because I'm
  experiencing the very same issue. I've gone through the Quick
  Installation Guide about 10 times from beginning to end re-confirming
  that every step was followed.
 
  My setup is slightly different than the QIG in that I changed the
  private IP address to a 192.168.1.0/24 network as opposed to the
  172.16.10.0/24network in the document.
 
  I do not believe that there should be an issue with that as long as all
  the necessary steps are followed.
 
  Looking forward to see what help we can get.
 
  RF
 
 
 
 
  On Fri, May 31, 2013 at 10:38 AM, Jos?? Egas L??pez
  josee...@farmaenlace.comwrote:
 
  Hi,
 
  I finished the installation of CS 400, when I try to run the UI on a
  browser the common error Firefox can't establish a connection to the
  server is displayed.
  Is something missing on my installation?
  I did all steps from the CS Install Guide.
  --
  *J??se*
 
  ##**##
  FARMAENLACE ha procesado su mensaje y esta limpio No imprima este mail
  a menos que sea necesario
 
 

Re: Unable to display UI

2013-05-31 Thread Prasanna Santhanam
Thanks, it's probably something gone wrong with the upstream. It looks
like all versions including the 4.1.0 version I just tried have the
same issue. Two users separately brought it up today at my $dayjob
too. 

I've pasted my tomcat versions on the bug report.

On Sat, Jun 01, 2013 at 01:45:08AM +0800, wq meng wrote:
 Hello Prasanna,
 
 Thanks for the bug link,
 
 I have copied my latest reply to that link for a temporary fix with command
 
 chmod 777 /usr/share/cloud/management/logs/catalina.out
 
 Hope it will save others some time.
 
 Thank you .
 
 On Sat, Jun 1, 2013 at 1:24 AM, Prasanna Santhanam t...@apache.org wrote:
  It's rather odd because I started seeing this the same time with the
  latest packages on the development release line too and filed a bug
  here:
 
  http://issues.apache.org/jira/browse/CLOUDSTACK-2758
 
 
  Baffling.
 
  On Sat, Jun 01, 2013 at 01:17:23AM +0800, wq meng wrote:
  Hello,
 
  I also have this problem since last weekend,  I do not very think that
  I have changed much how to setup the cloud management.
 
  Too worse that there is no logs left on my server.
 
  [root@localhost x86_64]# tail -n 200
  /var/log/cloud/management/management-server.log
  tail: cannot open `/var/log/cloud/management/management-server.log'
  for reading: No such file or directory
 
  What's have changed?I have try on  CentOS 6.4  X86_64 and  CS 4.02.
 
 
  For other logs.
  Only
 
  [root@localhost x86_64]# tail /var/log/cloud/setupManagement.log
  DEBUG:root:execute:service cloud-management status
  DEBUG:root:Failed to execute:cloud-management is stopped
  The pid file locates at /var/run/cloud-management.pid and lock file at
  /var/lock/subsys/cloud-management.
  Starting cloud-management will take care of them or you can
  manually clean up.
  DEBUG:root:execute:chkconfig --level 2345 cloud-management on
  DEBUG:root:execute:service cloud-management status
  DEBUG:root:Failed to execute:cloud-management is stopped
  The pid file locates at /var/run/cloud-management.pid and lock file at
  /var/lock/subsys/cloud-management.
  Starting cloud-management will take care of them or you can
  manually clean up.
  DEBUG:root:execute:service cloud-management start
  [root@localhost x86_64]#
 
 
  And
 
 
  [root@localhost x86_64]# cat /var/log/cloud/management/catalina.out
  /usr/sbin/tomcat6: line 30:
  /usr/share/cloud/management/logs/catalina.out: Permission denied
  /usr/sbin/tomcat6: line 30:
  /usr/share/cloud/management/logs/catalina.out: Permission denied
  /usr/sbin/tomcat6: line 30:
  /usr/share/cloud/management/logs/catalina.out: Permission denied
  /usr/sbin/tomcat6: line 30:
  /usr/share/cloud/management/logs/catalina.out: Permission denied
 
 
 
 
  Should be the Permission problem?
 
  Thanks
 
  On Fri, May 31, 2013 at 11:37 PM,  josee...@farmaenlace.com wrote:
   I run that command and it returns the following:
  
   ===
   cloud-management interrupted but a pid file exists
   The pid file locates at /var/run/cloud-management.pid and lock file at
   /var/lock/subsys/cloud-management.
   Starting cloud-management will take care of them or you can
   manually clean up.
   ===
  
   On /etc/hosts I got:
   127.0.0.1   localhost localhost.localdomain localhost4
   localhost4.localdomain4
   ::1 localhost localhost.localdomain localhost6
   localhost6.localdomain6
   #127.0.0.1 ServerManagement.xdomain.com
   ServerManagement.localhost.localdomain localhost
   192.168.238.40 ServerManagement.xdomain.com ServerManagement
  
   On /etc/network I got:
   NETWORKING=yes
   HOSTNAME=ServerManagement.xdomain.com
  
   Let me know if something is wrong in those files.
  
   Try to run
  
   service cloud-management status
  
   -Oded
  
   -Original Message-
   From: Pranav Saxena [mailto:pranav.sax...@citrix.com]
   Sent: Friday, May 31, 2013 4:55 PM
   To: users@cloudstack.apache.org
   Cc: rogelio.fiorenz...@gmail.com; josee...@farmaenlace.com
   Subject: RE: Unable to display UI
  
   Guys , can you check your management server logs and see if there is any
   exception being thrown ?
  
   Also can you try the following -
  
   Try editing  the HOSTNAME in the file /etc/sysconfig/network apart 
   from
   the  file /etc/hosts
   For example
   /etc/hosts:
   192.168.1.1 x
  
   /etc/sysconfig/network:
   Hostname= x
  
   Thanks,
   Pranav
  
   -Original Message-
   From: Rogelio Fiorenzano [mailto:rogelio.fiorenz...@gmail.com]
   Sent: Friday, May 31, 2013 8:19 PM
   To: users@cloudstack.apache.org
   Subject: Re: Unable to display UI
  
   Jose--
  
   I'm avidly waiting to see the responses that come to you because I'm
   experiencing the very same issue. I've gone through the Quick
   Installation Guide about 10 times from beginning to end re-confirming
   that every step was followed.
  
   My setup is slightly different than the QIG in that I changed the
   private IP address to a 192.168.1.0/24

Re: errors starting new instance with devcloud

2013-05-30 Thread Prasanna Santhanam
On Wed, May 29, 2013 at 03:57:24PM -0400, Shane Witbeck wrote:
 Prasanna, 
 
 Our VM info was identical with the exception of the PAE setting
 which you have set to off although the docs say to enable this.
 You also have a snapshot where as I do not. Regardless of the PAE
 setting (I tried both disabled/enabled), I'm now getting a different
 exception when attempting to add an instance using the tiny Linux
 template. 

Ah - guess I'll enable that then.
 
 I've posted my management server log as well as my vm info in a gist
 here:
 
 https://gist.github.com/digitalsanctum/5673168
Are you hitting this consistently? InsufficientCapacityException
usually means the CPU, RAM constraints to be satisfied for planning
the VM deployment failed. If you hit this consistently, let us know
the steps, there might be a bug lurking in there.


 
 I've also tried installing the latest extension pack for VirtualBox
 and that didn't help either. I'm running with vbox version 4.2.12. 

Nah. the extensions aren't useful for devcloud.
 
 
 Thanks, 
 Shane
 
 
 
 
 
 
 On Wednesday, May 29, 2013 at 12:32 PM, Prasanna Santhanam wrote:
 
  Shane,
  
  I just tried this on latest master and was able to create a user
  instance using the tinyLinux template without a problem. From your
  gisst it seems like an Ubuntu ISO based VM failed to launch. Can you
  retry with the tinyLinux template again? 
  
  Since most of what you did seems right I'm wondering if there's a
  setting on VirtualBox that's different. I've dumped the VM info of my
  devcloud instance here:
  
  https://gist.github.com/vogxn/5671659
  
  -- 
  Prasanna.,
  
  On Wed, May 29, 2013 at 11:18:50AM -0400, Shane Witbeck wrote:
  
   Sebastien, 
   
   Thanks for your reply but I'm targeting 4.2 master since I'm suppose
   to be helping with automation tests there. 
   
   I tried Conrad's suggestion of hacking the db but that led to
   another issue.
   
   It seems like documentation for I have devcloud installed, now
   what? would be nice as well as hints about which versions it
   targets. I noticed in your video that you use an older (version 1?)
   of the devcloud appliance with 4.0.2.
   
  
  
  Would be nice if you could start one! Don't hesitate to edit the
  wiki(s).
  
   
   Since I've successfully installed devcloud and management server, at
   this point I'm going to move on and assume I'm doing something
   fundamentally wrong with trying to start a new instance.
   
   
   Thanks again, 
   Shane
   
   
   On Wednesday, May 29, 2013 at 3:13 AM, Sebastien Goasguen wrote:
   

On May 28, 2013, at 8:24 PM, Conrad Geiger cgei...@it1solutions.com 
(mailto:cgei...@it1solutions.com) (mailto:cgei...@it1solutions.com) 
wrote:

 The error you are getting is an HVM error (Hardware Virtualization). 
 You do not have HVM in devcloud since it is a VM itself. You need a 
 template without HVM. I though there was a work around already built 
 into devcloud, but you can hack the db to mark the tempate without 
 HVM by running this on the db: Update vm_templates set hvm=0.
 
 You might also shoot an email to the devlist to verify the expected 
 behavior.
 
 
 Sent from my Verizon Wireless 4G LTE phone
 
 
 
  Original message 
 From: Shane Witbeck sh...@digitalsanctum.com 
 (mailto:sh...@digitalsanctum.com) (mailto:sh...@digitalsanctum.com)
 Date: 05/28/2013 7:20 PM (GMT-05:00)
 To: users@cloudstack.apache.org (mailto:users@cloudstack.apache.org) 
 (mailto:users@cloudstack.apache.org)
 Subject: errors starting new instance with devcloud
 
 
 If have a fresh install of devcloud with management server running 
 separately on a mac. I'm attempting to start a new instance and keep 
 getting these errors:
 
 https://gist.github.com/digitalsanctum/5666858
 
 I've tried on both master and 4.1 branches using a couple of 
 different ISO's including the tiny Linux template that comes 
 bundled.
 
 Any ideas?
 
 
 Thanks,
 Shane
 



Shane, I did this screencast for 4.0.2 and devcloud, using a mac 10.8.2 
, it might help:

http://www.youtube.com/watch?v=vvgIkF1e1QElist=PLb899uhkHRoZCRE00h_9CRgUSiHEgFDbCindex=1
  
  
  
  Powered by BigRock.com (http://BigRock.com)
  
  
  
 
 

-- 
Prasanna.,


Powered by BigRock.com



Re: [jira] [Commented] (CLOUDSTACK-2702) unable to install XenServer Support Package (CSP) on Xen cloud platform 1.6

2013-05-29 Thread Prasanna Santhanam
Sorry - Like I mentioned, CSP was never packaged for XCP. If there's
any discrepancy in the docs, please file a doc bug so we can correct
that.

When I have some time I can test out the right packages that will
allow enabling security groups with XCP hypervisors. 

Off the top of my head:
1. ipset, ebtables, iptables (-devel), ip6tables-devel will be required
2. the network backend on the hypervisors should be bridge not ovs

-- 
Prasanna.,

On Wed, May 29, 2013 at 11:03:09AM +0800, Ryan Lei wrote:
 As I just tested, I was unable to install any of these support packages for
 XCP 1.1.
 
 # xe-install-supplemental-pack xenserver-cloud-supp.iso
 Error: Repository is not compatible with installed product (XenServer
 expected)
 Do you want to continue? (Y/N) y
 Error: unsatisfied dependency xs:main eq 6.0.0
 Do you want to continue? (Y/N) y
 Installing 'XenServer Cloud Supp Pack'...
 
 error: Failed dependencies:
 kernel-xen = 2.6.32.12-0.7.1.xs6.0.0.529.170661 is needed by
 ipset-modules-xen-2.6.32.12-0.7.1.xs6.0.0.529.170661-4.5-1.xs32.i686
 kernel-xen = 2.6.32.12-0.7.1.xs6.0.0.529.170661 is needed by
 ipset-modules-kdump-2.6.32.12-0.7.1.xs6.0.0.529.170661-4.5-1.xs32.i686
 ./install.sh: line 308: /etc/firstboot.d/99-XenServer-CSP-setup: No such
 file or directory
 FATAL: packages failed to install
 
 Does that mean security groups for basic zone + XCP is ONLY supported for
 XCP 1.6 (requiring CS 4.1 also), where the support package (CSP) is built
 in?
 
 
 
 On Wed, May 29, 2013 at 10:37 AM, Ryan Lei ryanlei750...@gmail.com wrote:
 
  May I also ask what versions of CSP should I install for XCP 1.1 and XCP
  1.5 beta?
  Current documentation points to sources for 3 XenServer versions:
 
  For XenServer 6.0.2:
  http://download.cloud.com/releases/3.0.1/XS-6.0.2/xenserver-cloud-supp.tgz
 
  For XenServer 6.0:
   http://download.cloud.com/releases/3.0/xenserver-cloud-supp.tgz
 
  For XenServer 5.6 SP2:
  http://download.cloud.com/releases/2.2.0/xenserver-cloud-supp.tgz
 
  Thanks
 
 
  On Wed, May 29, 2013 at 12:24 AM, Prasanna Santhanam t...@apache.orgwrote:
 
  On Tue, May 28, 2013 at 01:52:20PM +, Dean Kamali (JIRA) wrote:
  
   [
  https://issues.apache.org/jira/browse/CLOUDSTACK-2702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13668307#comment-13668307]
  
   Dean Kamali commented on CLOUDSTACK-2702:
   -
  
   According to  http://cloudstack.apache.org/  CloudStack currently
   supports the most popular hypervisors: VMware, KVM, XenServer and
   Xen Cloud Platform (XCP).
  
   Is XCP is not fully supported?
 
  The packages (ipset, ebtables etc) that come with the CSP are included
  in XenServer since 6.1. Similar instructions should work for XCP
  although I haven't tried it myself. The one step I do remember to
  enable security groups was to switch network backend to bridge.
 
  Rest of the functionality should be out of the box. If not there's
  probably some sysctl settings that can be tweaked.
 
 
  --
  Prasanna.,
 
  
  Powered by BigRock.com
 
 
 



Powered by BigRock.com



Re: cant add host to cloud: Nics are not configured! / Failed to get public nic name

2013-05-23 Thread Prasanna Santhanam
Yes the consistent naming scheme problem I *think* was fixed already
by Marcus and should be in 4.1 IIRC. Glad to hear that your problem is
solved.

On Thu, May 23, 2013 at 05:17:04PM +0200, Javier Rodriguez wrote:
 Hi Prasanna,
 
 Thanks very much for your response,
 
 [root@mnode-1 ~]# rpm -qa | grep qemu
 gpxe-roms-qemu-0.9.7-6.9.el6.noarch
 qemu-kvm-0.12.1.2-2.355.0.1.el6.centos.2.x86_64
 qemu-img-0.12.1.2-2.355.0.1.el6.centos.2.x86_64
 
 [root@mnode-1 ~]# rpm -qa | grep virt
 libvirt-client-0.10.2-18.el6_4.4.x86_64
 libvirt-0.10.2-18.el6_4.4.x86_64
 virt-what-1.11-1.2.el6.x86_64
 
 [root@mnode-1 ~]# rpm -qa | grep cloud
 cloud-deps-4.0.2-1.el6.x86_64
 cloud-utils-4.0.2-1.el6.x86_64
 cloud-scripts-4.0.2-1.el6.x86_64
 cloud-agent-libs-4.0.2-1.el6.x86_64
 cloud-python-4.0.2-1.el6.x86_64
 cloud-agent-4.0.2-1.el6.x86_64
 cloud-core-4.0.2-1.el6.x86_64
 
 
 I enabled the DEBUG mode like you asked (I did not find
 /etc/cloudstack/agent/log4j.xml, so I changed it in
 /etc/cloud/agent/log4j-cloud.xml instead), and I found something
 interesting:
 
 2013-05-23 12:26:26,210 DEBUG
 [kvm.resource.LibvirtComputingResource] (main:null) failing to get
 physical interface from bridgecloudbr0, did not find an eth*, bond*,
 or vlan* in /sys/devices/virtual/net/cloudbr0/brif
 
 The only file in /sys/devices/virtual/net/cloudbr0/brif is a symlink
 named em1.200, and apparently the cloud agent is expecting to find
 eth* devices.
 
 Apparently this has something to do with the Consistent Network
 Device naming feature introduced in later RH based distributions.
 (if eth0 is embedded in the motherboard it will be now called em1 by
 default).
 
 After investingating a bit I managed to rename the nics by removing
 the biosdevname package, renaming all em* ifcfg scripts to eth* and
 deleting the 70-persistent-net.rules in /etc/udev/rules.d (which
 gets automatically regenerated with proper values taken from ifcfg
 scripts by write_net_rules).
 
 After that I could add the host with no problem :) . I think the
 cloud agent not being able to manage Consistent Network Device
 Interfaces ( em* and p*p* ) is probably a bug in the cloud agent.
 
 Thanks for your help,
 
 -Javier

-- 
Prasanna.,


Powered by BigRock.com



Re: [ACSEDU] An update on CloudStack University

2013-05-19 Thread Prasanna Santhanam
On Fri, May 17, 2013 at 08:37:29AM -0400, Sebastien Goasguen wrote:
 Hi everyone,
 
 [bcc -dev and marketing,
 
 I just posted a blog about CloudStack University. 
 Checkout the screencasts they are amazing :)
 
 http://buildacloud.org/blog/259-cloudstack-university.html
 
Awesome, great work Sebastien. This is the sort of thing that brings
in more eyes on the project.

Hope to submit a few things when I have the time.

-- 
Prasanna.,


Powered by BigRock.com



Re: Unable to find provider VpcVirtualRouter in physical network

2013-04-25 Thread Prasanna Santhanam
On Wed, Apr 24, 2013 at 11:40:16PM -0700, Evan McGee wrote:
 Hi Alena,
 
 Thanks for the tips - very useful. It appears as though the VpcVirtualRouter 
 was inserted correctly during the upgrade (which we followed, using the repos 
 for kvm upgrade, from 
 http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.1-incubating/html/Release_Notes/upgrade-instructions.html#upgrade-from-3.0.2-to-4.0.1).
 
 Executing addNetworkServiceProvider returns: 
 com.cloud.utils.exception.CloudRuntimeException: The 'VpcVirtualRouter' 
 provider already exists on physical network : 1
 
 The return: 
 
 listnetworkserviceprovidersresponse 
 cloud-stack-version='4.0.1.20130201075054'
   networkserviceprovider
 nameVpcVirtualRouter/name
 
 physicalnetworkidd476a2f1-bd3d-4abe-9d8e-2ca0eebdf1e2/physicalnetworkid
 destinationphysicalnetworkid0/destinationphysicalnetworkid
 stateDisabled/state
 id4b13f9ba-2431-4a9e-e4fd-b8346bedf83b/id
   /networkserviceprovider
 SNIP
 /listnetworkserviceprovidersresponse
 
 So that's good - it appears the upgrade did add it to the physical network. 
 However running the next command fails with a very non-descriptive error:
 
 Executing: createVirtualRouterElementnspid= 
 4b13f9ba-2431-4a9e-e4fd-b8346bedf83bapikey=  530 Failed to add Virtual 
 Router entity to physical network
 catalina.out:  WARN  [cloud.api.ApiDispatcher] (catalina-exec-8:) class 
 com.cloud.api.ServerApiException : Failed to add Virtual Router entity to 
 physical network

You should do a configureVirtualRouterElementnspid=youridenabled=true since 
the provider is already present. 

-- 
Prasanna.,


Powered by BigRock.com



Re: issue after upgrade from 2.2.14 to 4.0.0 Unable to find or allocate console proxy resource

2013-04-09 Thread Prasanna Santhanam
On Tue, Apr 09, 2013 at 07:17:48AM +, Shashi Dahal wrote:
 Hi kelven, 
 
 Log level is set to ALL. 

The loglevels are INFO,WARN,DEBUG,TRACE. Find
/etc/cloud/management/log4j-cloud.xml and s/DEBUG/TRACE/g to enable
trace logs for all modules. This will write a lot of logs and can
consume disk space quickly. So be prepared to turn it off by replacing
TRACE with DEBUG.

You may put up the logs on paste.cloudstack.org.

 
 This is all that I have regarding consoleproxy. 
 
 2013-04-09 09:09:44,425 DEBUG [utils.component.ComponentLocator] (main:null) 
 Looking for class com.cloud.consoleproxy.ConsoleProxyBalanceAllocator
 2013-04-09 09:09:44,426 INFO  [utils.component.ComponentLocator] (main:null) 
 Found component: com.cloud.consoleproxy.ConsoleProxyAllocator in 
 com.cloud.consoleproxy.ConsoleProxyBalanceAllocator - Balance
 2013-04-09 09:09:44,842 INFO  [utils.component.ComponentLocator] (main:null) 
 Found component: com.cloud.consoleproxy.ConsoleProxyManager in 
 com.cloud.consoleproxy.ConsoleProxyManagerImpl - ConsoleProxyManager
 2013-04-09 09:09:44,842 INFO  [utils.component.ComponentLocator] (main:null) 
 Found component: com.cloud.consoleproxy.ConsoleProxyService in 
 com.cloud.consoleproxy.ConsoleProxyManagerImpl - ConsoleProxyManager
 2013-04-09 09:09:48,664 INFO  [cloud.consoleproxy.ConsoleProxyManagerImpl] 
 (main:null) Start configuring console proxy manager : ConsoleProxyManager
 2013-04-09 09:09:48,664 INFO  [cloud.consoleproxy.ConsoleProxyManagerImpl] 
 (main:null) Console proxy max session soft limit : 50
 2013-04-09 09:09:48,664 INFO  [cloud.consoleproxy.ConsoleProxyManagerImpl] 
 (main:null) Console proxy standby capacity : 100
 2013-04-09 09:09:48,685 INFO  [cloud.consoleproxy.ConsoleProxyManagerImpl] 
 (main:null) Console Proxy Manager is configured.
 2013-04-09 09:09:49,692 INFO  [cloud.consoleproxy.ConsoleProxyManagerImpl] 
 (main:null) Start console proxy manager
 2013-04-09 09:10:48,711 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] 
 (consoleproxy-1:null) Zone 1 is not ready to launch console proxy yet
 2013-04-09 09:11:18,706 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] 
 (consoleproxy-1:null) Zone 1 is not ready to launch console proxy yet
 2013-04-09 09:11:48,709 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] 
 (consoleproxy-1:null) Zone 1 is not ready to launch console proxy yet
 2013-04-09 09:12:18,702 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] 
 (consoleproxy-1:null) Zone 1 is not ready to launch console proxy yet
 2013-04-09 09:12:48,705 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] 
 (consoleproxy-1:null) Zone 1 is not ready to launch console proxy yet
 2013-04-09 09:13:18,702 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] 
 (consoleproxy-1:null) Zone 1 is not ready to launch console proxy yet
 2013-04-09 09:13:48,701 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] 
 (consoleproxy-1:null) Zone 1 is not ready to launch console proxy yet
 2013-04-09 09:13:59,110 WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] 
 (catalina-exec-20:null) Unable to find or allocate console proxy resource
 2013-04-09 09:14:18,704 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] 
 (consoleproxy-1:null) Zone 1 is not ready to launch console proxy yet
 
 
-- 
Prasanna.,