Re: Not able to authenticate using microsoft AD

2018-03-20 Thread Rajani Karuturi
Can you check if LDAP is allowed in authenticators list? It's a global
configuration.

~Rajani

Sent from phone.

On 20 Mar 2018 11:27 am, "soundar rajan"  wrote:

> Hi Daan,
>
> I dont see any request hitting  our domain controller while logging but i
> am able to import all users. Any idea.
>
> Regards
> Shyam
>
> On Mon, Mar 19, 2018 at 11:20 PM, Daan Hoogland 
> wrote:
>
> > Shyam, do you have any related log message, preferably with stack trace
> > that is related? Do you see that request are coming in on your AD?
> >
> > On Mon, Mar 19, 2018 at 12:41 PM, soundar rajan 
> > wrote:
> >
> > > Please find the error message
> > >
> > > Authentication failure:
> > > {"loginresponse":{"uuidList":[],"errorcode":531,"errortext":"Failed to
> > > authenticate user shyam.soundar in domain 1; please provide valid
> > > credentials"}}
> > >
> > >
> > > On Mon, Mar 19, 2018 at 6:10 PM, soundar rajan  >
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > Version i use is 4.11
> > > >
> > > > Regards
> > > > Shyam
> > > >
> > > > On Mon, Mar 19, 2018 at 5:38 PM, Daan Hoogland <
> > daan.hoogl...@gmail.com>
> > > > wrote:
> > > >
> > > >> Shyam, sorry to hear. What versions are you using?
> > > >>
> > > >> On Mon, Mar 19, 2018 at 11:55 AM, soundar rajan <
> > bsoundara...@gmail.com
> > > >
> > > >> wrote:
> > > >>
> > > >> > Hi ALL,
> > > >> >
> > > >> > I have successfully configured Active directory and able to import
> > the
> > > >> > users to cloudstack.
> > > >> >
> > > >> > But users is not able to login with there domain credentials do i
> > miss
> > > >> > anything in the configuration?
> > > >> >
> > > >> > Regards
> > > >> > Shyam
> > > >> >
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> Daan
> > > >>
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > Daan
> >
>


Re: Building saml plugin

2018-03-01 Thread Rajani Karuturi
Rafael,
Did you use it with self signed certificates?

~Rajani

Sent from phone.

On 1 Mar 2018 8:17 pm, "Rafael Weingärtner" 
wrote:

> No. I found no problems.
>
> I have seen this thread before, and there is something I do not understand.
> Pallavi is talking about building the plugin, but the plug-in is already
> there. You only need to configure it after the ACS installation. The last
> time I used this plugin with ACS 4.9.2.0.
>
> On Thu, Mar 1, 2018 at 11:43 AM, Rohit Yadav 
> wrote:
>
> > Okay Pallavi, let me find some time next week (no promises) to setup an
> > IdP environment and see if there is any genuine regression.
> >
> >
> > Rafael, Marco - have you guys had any chance testing SAML stuff with
> 4.11,
> > or if you have seen such errors before? Thanks.
> >
> >
> > - Rohit
> > 
> >
> >
> > rohit.ya...@shapeblue.com
> > www.shapeblue.com
> > @shapeblue
> >
> >
> >
> > --
> > *From:* Pallavi Dumbre 
> > *Sent:* Thursday, March 1, 2018 9:22:38 AM
> > *To:* users@cloudstack.apache.org
> > *Subject:* RE: Building saml plugin
> >
> > Hi Rohit,
> >
> > I tried to build ACS master branch by following steps given in
> > https://cwiki.apache.org/confluence/display/CLOUDSTACK/
> > SAML+2.0+Plugin#SAML2.0Plugin-Introduction
> > But still hitting same exception. PFA exception trace. Also keystore
> table
> > entries seems fine. PFA database entries for keystore table.
> >
> > Thanks,
> > Pallavi
> >
> > -Original Message-
> > From: Rohit Yadav [mailto:rohit.ya...@shapeblue.com
> > ]
> > Sent: Monday, February 26, 2018 7:35 PM
> > To: users@cloudstack.apache.org
> > Subject: Re: Building saml plugin
> >
> > Pallavi,
> >
> >
> > I think the build system works okay we've not seen any build failures on
> > recent 4.11 and master branch. Which branch are you using? If this is
> > closed-source ACP, we may not be able to help you, however, keep
> exploring
> > (such as put breakpoints) on the code you see in the stack trace and see
> > what may be causing those failures.
> >
> >
> > - Rohit
> >
> > 
> >
> >
> >
> > 
> > From: Pallavi Dumbre 
> > Sent: Monday, February 26, 2018 2:19:31 PM
> > To: users@cloudstack.apache.org
> > Subject: FW: Building saml plugin
> >
> >
> > Hi All,
> >
> > I have followed steps in given following FS for building cloudstack with
> > saml support but getting errors during jetty startup
> > https://cwiki.apache.org/confluence/display/CLOUDSTACK/SAML+2.0+Plugin
> >
> > Errors:
> > 2018-02-26 17:25:12.656:WARN:oejw.WebAppContext:main: Failed startup of
> > context o.e.j.m.p.JettyWebAppContext@21f9c6ea{/client,file:/home/
> > user/acp/Accelerite-CloudPlatform/client/target/
> classes/META-INF/webapp/,
> > STARTING}{file:/home/user/acp/Accelerite-CloudPlatform/
> > client/target/classes/META-INF/webapp/} > JettyWebAppContext@21f9c6ea%7b/client,file:/home/user/acp/
> > Accelerite-CloudPlatform/client/target/classes/META-
> > INF/webapp/,STARTING%7d%7bfile:/home/user/acp/Accelerite-CloudPlatform/
> > client/target/classes/META-INF/webapp/%7d>
> > java.lang.NullPointerException
> > at org.apache.cloudstack.utils.security.CertUtils.
> > pemToPrivateKey(CertUtils.java:130)
> > at org.apache.cloudstack.saml.SAML2AuthManagerImpl.initSP(
> > SAML2AuthManagerImpl.java:172)
> > at org.apache.cloudstack.saml.SAML2AuthManagerImpl.setup(
> > SAML2AuthManagerImpl.java:378)
> > at org.apache.cloudstack.saml.SAML2AuthManagerImpl.start(
> > SAML2AuthManagerImpl.java:129)
> >
> >
> > Also checked keystore database entry in cloud db and seems to be fine.
> > Please let me know if anyone has idea related to same.
> >
> > Thanks,
> > Pallavi
> > DISCLAIMER
> > ==
> > This e-mail may contain privileged and confidential information which is
> > the property of Accelerite, a Persistent Systems business. It is intended
> > only for the use of the individual or entity to which it is addressed. If
> > you are not the intended recipient, you are not authorized to read,
> retain,
> > copy, print, distribute or use this message. If you have received this
> > communication in error, please notify the sender and delete all copies of
> > this message. Accelerite, a Persistent Systems business does not accept
> any
> > liability for virus infected mails.
> >
> > rohit.ya...@shapeblue.com
> > www.shapeblue.com
> > 53 Chandos Place, Covent Garden, London
> >  Garden,+London+WC2N=gmail=g>
> > WC2N
> >  Garden,+London+WC2N=gmail=g>
> > 4HSUK @shapeblue
> >
> >
> >
> >
>
>
> --
> Rafael Weingärtner
>


RE: [ANNOUNCE] Syed Mushtaq Ahmed has joined the PMC

2017-10-09 Thread Rajani Karuturi
Congratulations Syed!

~Rajani

Sent from phone.

On 9 Oct 2017 5:07 pm, "Simon Weller"  wrote:

> Congrats Syed!
>
> Simon Weller/615-312-6068
>
> -Original Message-
> From: Wido den Hollander [w...@widodh.nl]
> Received: Monday, 09 Oct 2017, 6:31AM
> To: Paul Angus [paul.an...@shapeblue.com]; d...@cloudstack.apache.org [
> d...@cloudstack.apache.org]; users@cloudstack.apache.org [
> users@cloudstack.apache.org]
> Subject: Re: [ANNOUNCE] Syed Mushtaq Ahmed has joined the PMC
>
>
> > Op 9 oktober 2017 om 13:26 schreef Paul Angus  >:
> >
> >
> > Fellow CloudStackers,
> >
> > It gives me great pleasure to say that Syed has be invited to join the
> PMC and has gracefully accepted.
> > Please joining me in congratulating Syed!
> >
> >
>
> Congratulations Syed! Welcome :-)
>
> Wido
>
> > Kind regards,
> >
> > Paul Angus
> >
> >
> > paul.an...@shapeblue.com
> > www.shapeblue.com
> > 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> > @shapeblue
> >
> >
> >
>


[ANNOUNCE][CLOUDSTACK] Apache CloudStack 4.10.0.0

2017-08-31 Thread Rajani Karuturi
# Apache CloudStack Release 4.10.0.0

The Apache CloudStack project is pleased to announce the release of the
CloudStack 4.10.0.0 This release includes 339 pull requests and fixes more
than 272 bugs since
the CloudStack's previous release.

A few highlights:

- IPV6 support for basic networking
- Virtio-Scsi disk controller support for KVM
- Ability to disable primary storage to secondary storage backups for
snapshots
- VMSnapshot (including memory) support for KVM on NFS
- RBD snapshot backups to secondary are now QCOW2 rather than raw to save
space
- Strongwan VPN Improvements
- Nuage VSP SDN Plugin: Shared networks support, Guest DNS support, Source-
and Static-nat to Underlay and support for Nuage VSP 4.0
- Significant performances improvements related to Virtual Router Deployment
- Force power off/stop support for KVM, VMware and XenServer
- Lots of bug fixes and performance improvements


Apache CloudStack is an integrated Infrastructure-as-a-Service (IaaS)
software platform that allows users to build feature-rich public and
private cloud environments. CloudStack includes an intuitive user interface
and rich API for managing the compute, networking, software, and storage
resources. The project became an Apache top level project in March, 2013.

More information about Apache CloudStack can be found at:
http://cloudstack.apache.org/

# Documentation

What's new in CloudStack 4.10:
http://docs.cloudstack.apache.org/projects/cloudstack-release-notes/en/4.10/about.html

The 4.10.0 release notes include a full list of corrected issues, as well
as upgrade instructions from previous versions of Apache CloudStack, and
can be found at:
http://docs.cloudstack.apache.org/projects/cloudstack-release-notes/en/4.10/

The official installation, administration and API documentation for
each release are available on our Documentation Page:
http://docs.cloudstack.apache.org/

# Downloads

The official source code for the 4.10.0 release can be downloaded from our
downloads page:
http://cloudstack.apache.org/downloads.html

## Downloads

The official source code release can be downloaded from:

http://cloudstack.apache.org/downloads.html

In addition to the official source code release, individual contributors
have also made convenience binaries available on the Apache CloudStack
download page, and can be found at:

https://download.cloudstack.org/ubuntu/
https://download.cloudstack.org/centos/7/

http://download.cloudstack.org/centos/6/

http://shapeblue.com/packages/



Thanks,
~Rajani
http://cloudplatform.accelerite.com/


Re: Recreating SystemVM's

2017-06-09 Thread Rajani Karuturi
on xenserver log, did you check what is causing "
HOST_CANNOT_ATTACH_NETWORK"?

~Rajani
http://cloudplatform.accelerite.com/

On Fri, Jun 9, 2017 at 7:00 PM, Jeremy Peterson <jpeter...@acentek.net>
wrote:

> 08:28:43select * from vm_instance where name like 's-%' limit
> 1 7481 row(s) returned0.000 sec / 0.032 sec
>
> All vm's 'state' returned Destoryed outside of the current vm 7873 which
> is in a Stopped state but that goes Destroyed and a new get created.
>
> Any other suggestions?
>
> Jeremy
>
>
> -Original Message-
> From: Jeremy Peterson [mailto:jpeter...@acentek.net]
> Sent: Thursday, June 8, 2017 12:47 AM
> To: users@cloudstack.apache.org
> Subject: Re: Recreating SystemVM's
>
> I'll make that change in the am.
>
> Today I put a host in maintence and rebooted because proxy and secstore vm
> were constantly being created on that host and still no change.
>
> Let you know tomorrow.
>
> Jeremy
>
>
> Sent from my Verizon, Samsung Galaxy smartphone
>
>
>  Original message 
> From: Rajani Karuturi <raj...@apache.org>
> Date: 6/8/17 12:07 AM (GMT-06:00)
> To: Users <users@cloudstack.apache.org>
> Subject: Re: Recreating SystemVM's
>
> Did you check SMLog on xenserver?
> unable to destroy task(com.xensource.xenapi.Task@256829a8) on
> host(b34f086e-fabf-471e-9feb-8f54362d7d0f) due to You gave an invalid
> object reference.  The object may have recently been deleted.  The class
> parameter gives the type of reference given, and the handle parameter
> echoes the bad value given.
>
> Looks like Destroy of SSVM failed. What state is SSVM in? mark it as
> Destroyed in cloud DB and wait for cloudstack to create a new SSVM.
>
> ~Rajani
> http://cloudplatform.accelerite.com/
>
> On Thu, Jun 8, 2017 at 1:11 AM, Jeremy Peterson <jpeter...@acentek.net>
> wrote:
>
> > Probably agreed.
> >
> > But I ran toolstack restart on all hypervisors and v-3193 just tried
> > to create and fail along with s-5398.
> >
> > The PIF error went away. But VM's are still recreating
> >
> > https://pastebin.com/4n4xBgMT
> >
> > New log from this afternoon.
> >
> > My catalina.out is over 4GB
> >
> > Jeremy
> >
> >
> > -Original Message-
> > From: Makrand [mailto:makrandsa...@gmail.com]
> > Sent: Wednesday, June 7, 2017 12:52 AM
> > To: users@cloudstack.apache.org
> > Subject: Re: Recreating SystemVM's
> >
> > Hi there,
> >
> > Looks more like hypervisor issue.
> >
> > Just run *xe-toolstack-restart* on hosts where these VMs are trying to
> > start or if you don't have too many hosts, better run on all members
> > including master. most of i/o related issues squared off by toolstack
> > bounce.
> >
> > --
> > Makrand
> >
> >
> > On Wed, Jun 7, 2017 at 3:01 AM, Jeremy Peterson
> > <jpeter...@acentek.net>
> > wrote:
> >
> > > Ok so I pulled this from Sunday morning.
> > >
> > > https://pastebin.com/nCETw1sC
> > >
> > >
> > > errorInfo: [HOST_CANNOT_ATTACH_NETWORK,
> > > OpaqueRef:65d0c844-bd70-81e9-4518-8809e1dc0ee7,
> > > OpaqueRef:0093ac3f-9f3a-37e1-9cdb-581398d27ba2]
> > >
> > > XenServer error.
> > >
> > > Now this still gets me because all of the other VM's launched just
> fine.
> > >
> > > Going into XenCenter I see an error at the bottom This PIF is a bond
> > > slave and cannot be plugged.
> > >
> > > ???
> > >
> > > If I go to networking on the hosts I see the storage vlans and bonds
> > > are all there.
> > >
> > > I see my GUEST-PUB bond is there and LACP is setup correct.
> > >
> > > Any suggestions ?
> > >
> > >
> > > Jeremy
> > >
> > >
> > > -Original Message-
> > > From: Jeremy Peterson [mailto:jpeter...@acentek.net]
> > > Sent: Tuesday, June 6, 2017 9:23 AM
> > > To: users@cloudstack.apache.org
> > > Subject: RE: Recreating SystemVM's
> > >
> > > Thank you all for those responses.
> > >
> > > I'll comb through my management-server.log and post a pastebin if
> > > I'm scratching my head.
> > >
> > > Jeremy
> > >
> > > -Original Message-
> > > From: Rajani Karuturi [mailto:raj...@apache.org]
> > > Sent: Tuesday, June 6, 2017 6:53 AM
> > > To: users@cloudstack.apache.org
> > > Subject: Re: Recreatin

Re: Recreating SystemVM's

2017-06-07 Thread Rajani Karuturi
Did you check SMLog on xenserver?
unable to destroy task(com.xensource.xenapi.Task@256829a8) on
host(b34f086e-fabf-471e-9feb-8f54362d7d0f) due to You gave an invalid
object reference.  The object may have recently been deleted.  The class
parameter gives the type of reference given, and the handle parameter
echoes the bad value given.

Looks like Destroy of SSVM failed. What state is SSVM in? mark it as
Destroyed in cloud DB and wait for cloudstack to create a new SSVM.

~Rajani
http://cloudplatform.accelerite.com/

On Thu, Jun 8, 2017 at 1:11 AM, Jeremy Peterson <jpeter...@acentek.net>
wrote:

> Probably agreed.
>
> But I ran toolstack restart on all hypervisors and v-3193 just tried to
> create and fail along with s-5398.
>
> The PIF error went away. But VM's are still recreating
>
> https://pastebin.com/4n4xBgMT
>
> New log from this afternoon.
>
> My catalina.out is over 4GB
>
> Jeremy
>
>
> -Original Message-
> From: Makrand [mailto:makrandsa...@gmail.com]
> Sent: Wednesday, June 7, 2017 12:52 AM
> To: users@cloudstack.apache.org
> Subject: Re: Recreating SystemVM's
>
> Hi there,
>
> Looks more like hypervisor issue.
>
> Just run *xe-toolstack-restart* on hosts where these VMs are trying to
> start or if you don't have too many hosts, better run on all members
> including master. most of i/o related issues squared off by toolstack
> bounce.
>
> --
> Makrand
>
>
> On Wed, Jun 7, 2017 at 3:01 AM, Jeremy Peterson <jpeter...@acentek.net>
> wrote:
>
> > Ok so I pulled this from Sunday morning.
> >
> > https://pastebin.com/nCETw1sC
> >
> >
> > errorInfo: [HOST_CANNOT_ATTACH_NETWORK,
> > OpaqueRef:65d0c844-bd70-81e9-4518-8809e1dc0ee7,
> > OpaqueRef:0093ac3f-9f3a-37e1-9cdb-581398d27ba2]
> >
> > XenServer error.
> >
> > Now this still gets me because all of the other VM's launched just fine.
> >
> > Going into XenCenter I see an error at the bottom This PIF is a bond
> > slave and cannot be plugged.
> >
> > ???
> >
> > If I go to networking on the hosts I see the storage vlans and bonds
> > are all there.
> >
> > I see my GUEST-PUB bond is there and LACP is setup correct.
> >
> > Any suggestions ?
> >
> >
> > Jeremy
> >
> >
> > -Original Message-
> > From: Jeremy Peterson [mailto:jpeter...@acentek.net]
> > Sent: Tuesday, June 6, 2017 9:23 AM
> > To: users@cloudstack.apache.org
> > Subject: RE: Recreating SystemVM's
> >
> > Thank you all for those responses.
> >
> > I'll comb through my management-server.log and post a pastebin if I'm
> > scratching my head.
> >
> > Jeremy
> >
> > -Original Message-
> > From: Rajani Karuturi [mailto:raj...@apache.org]
> > Sent: Tuesday, June 6, 2017 6:53 AM
> > To: users@cloudstack.apache.org
> > Subject: Re: Recreating SystemVM's
> >
> > If the zone is enabled, cloudstack should recreate them automatically.
> >
> > ~ Rajani
> >
> > http://cloudplatform.accelerite.com/
> >
> > On June 6, 2017 at 11:37 AM, Erik Weber (terbol...@gmail.com)
> > wrote:
> >
> > CloudStack should recreate automatically, check the mgmt server logs
> > for hints of why it doesn't happen.
> >
> > --
> > Erik
> >
> > tir. 6. jun. 2017 kl. 04.29 skrev Jeremy Peterson
> > <jpeter...@acentek.net>:
> >
> > I had an issue Sunday morning with cloudstack 4.9.0 and xenserver 6.5.0.
> > My hosts stop sending LACP PDU's and caused a network drop to iSCSI
> > primary storage.
> >
> > So all my instances recovered via HA enabled.
> >
> > But my console proxy and secondary storage system VM's got stuck in a
> > boot state that would not power on.
> >
> > At this time they are expunged and gone.
> >
> > How do I tell cloudstack-management to recreate system VM's?
> >
> > I'm drawing a blank since deploying CS two years ago and just keeping
> > things running and adding hosts and more storage everything has been
> > so stable.
> >
> > Jeremy
> >
>


Re: Recreating SystemVM's

2017-06-06 Thread Rajani Karuturi
If the zone is enabled, cloudstack should recreate them
automatically.

~ Rajani

http://cloudplatform.accelerite.com/

On June 6, 2017 at 11:37 AM, Erik Weber (terbol...@gmail.com)
wrote:

CloudStack should recreate automatically, check the mgmt server
logs for
hints of why it doesn't happen.

--
Erik

tir. 6. jun. 2017 kl. 04.29 skrev Jeremy Peterson
:

I had an issue Sunday morning with cloudstack 4.9.0 and xenserver
6.5.0.
My hosts stop sending LACP PDU's and caused a network drop to
iSCSI primary
storage.

So all my instances recovered via HA enabled.

But my console proxy and secondary storage system VM's got stuck
in a boot
state that would not power on.

At this time they are expunged and gone.

How do I tell cloudstack-management to recreate system VM's?

I'm drawing a blank since deploying CS two years ago and just
keeping
things running and adding hosts and more storage everything has
been so
stable.

Jeremy

Re: SSVM NIO SSL Handshake error

2017-05-24 Thread Rajani Karuturi
Can you check java version? Set the default java to 1.7 and delete keystore
files and restart MS

~Rajani

Sent from phone.

On 24 May 2017 9:15 p.m., "Jason Kinsella"  wrote:

> I have now moved management server to a fresh CentOS7 server. But
> unfortunately I’m getting the exact same SSL handshake error. Back to
> square one.
>
> On 24/5/17, 11:40 pm, "Jason Kinsella"  wrote:
>
> Hi All,
> Based on the feedback it seems like the issue is related to CentOS
> version, so I’ve built a new CentOS7 Management server using Blueshape
> noredist. I’ve restored the 4.9.2.0 DB into this server and
> management-server.logs look clean on boot. The only problem is that I can’t
> log into the webUI.
>
> The logs show a successful login (user = kinsja), but the the API
> command either is not allowed or doesn’t exist for the user. This means the
> UI doesn’t load.
>
> Anyone seen this with a restored DB?
>
> 2017-05-24 09:26:08,239 DEBUG [c.c.u.AccountManagerImpl]
> (catalina-exec-17:ctx-ee2c5e26) (logid:a8ca5ee5) User: kinsja in domain 1
> has successfully logged in
> 2017-05-24 09:26:08,246 INFO  [c.c.a.ApiServer] 
> (catalina-exec-17:ctx-ee2c5e26)
> (logid:a8ca5ee5) Current user logged in under  timezone
> 2017-05-24 09:26:08,246 INFO  [c.c.a.ApiServer] 
> (catalina-exec-17:ctx-ee2c5e26)
> (logid:a8ca5ee5) Timezone offset from UTC is: 0.0
> 2017-05-24 09:26:08,251 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-17:ctx-ee2c5e26)
> (logid:a8ca5ee5) ===END===  192.168.10.38 -- POST
> 2017-05-24 09:26:08,320 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-13:ctx-a1d38347)
> (logid:3404c663) ===START===  192.168.10.38 -- GET
> command=listCapabilities=json&_=1495632368256
> 2017-05-24 09:26:08,325 DEBUG [c.c.a.ApiServer]
> (catalina-exec-13:ctx-a1d38347 ctx-960796a5) (logid:3404c663) The user with
> id:31 is not allowed to request the API command or the API command does not
> exist: listCapabilities
>
> Thanks
> Jason
>
> From: Jason Kinsella 
> Date: Tuesday, 23 May 2017 at 10:11 pm
> To: "users@cloudstack.apache.org" 
> Subject: SSVM NIO SSL Handshake error
>
> Hi,
> We recently upgraded from 4.5.0 to 4.9.2.0 and encountered a problem
> with the SSVM and Console Proxy. They cannot connect to the management
> server. The SSVM cloud.log repeats this error every couple of seconds.
>
> 2017-05-23 11:58:22,461 INFO  [utils.nio.NioClient] (main:null)
> Connecting to 192.168.12.1:8250
> 2017-05-23 11:58:22,465 WARN  [utils.nio.Link] (main:null) This SSL
> engine was forced to close inbound due to end of stream.
> 2017-05-23 11:58:22,465 ERROR [utils.nio.Link] (main:null) Failed to
> send server's CLOSE message due to socket channel's failure.
> 2017-05-23 11:58:22,466 ERROR [utils.nio.NioClient] (main:null) SSL
> Handshake failed while connecting to host: 192.168.12.1 port: 8250
> 2017-05-23 11:58:22,466 ERROR [utils.nio.NioConnection] (main:null)
> Unable to initialize the threads.
> java.io.IOException: SSL Handshake failed while connecting to host:
> 192.168.12.1 port: 8250
> at com.cloud.utils.nio.NioClient.
> init(NioClient.java:67)
> at com.cloud.utils.nio.NioConnection.start(
> NioConnection.java:88)
> at com.cloud.agent.Agent.start(Agent.java:237)
> at com.cloud.agent.AgentShell.
> launchAgent(AgentShell.java:399)
> at com.cloud.agent.AgentShell.
> launchAgentFromClassInfo(AgentShell.java:367)
> at com.cloud.agent.AgentShell.
> launchAgent(AgentShell.java:351)
> at com.cloud.agent.AgentShell.
> start(AgentShell.java:456)
> at com.cloud.agent.AgentShell.
> main(AgentShell.java:491)
> 2017-05-23 11:58:22,468 INFO  [utils.exception.CSExceptionErrorCode]
> (main:null) Could not find exception: 
> com.cloud.utils.exception.NioConnectionException
> in error code list for exceptions
> 2017-05-23 11:58:22,468 WARN  [cloud.agent.Agent] (main:null) NIO
> Connection Exception  com.cloud.utils.exception.NioConnectionException:
> SSL Handshake failed while connecting to host: 192.168.12.1 port: 8250
>
> The setup is very simple. Single management server and ports are open.
>
> Things checked / tried:
>
> · Destroyed SSVM multiple times – still same problem.
>
> · SSH to SSVM from MS using ssh -i 
> /var/cloudstack/management/.ssh/id_rsa
> -p 3922 root@IPADDRESS – PASS
>
> · SSVM telnet on 8250 to MS – PASS
>
> I’ve also tested a restore of the DB into our working development
> 4.9.2.0 server. It also exhibits the handshake errors, so most likely DB
> related.
>
> I’ve used up all my skills. Please help
>
> Regards,
> Jason
>
>
>
>


Re: SSVM NIO SSL Handshake error

2017-05-24 Thread Rajani Karuturi
That might due to the new dynamic role based access checker.
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Dynamic+Role+Based+API+Access+Checker+for+CloudStack


~Rajani

Sent from phone.

On 24 May 2017 7:10 p.m., "Jason Kinsella"  wrote:

> Hi All,
> Based on the feedback it seems like the issue is related to CentOS
> version, so I’ve built a new CentOS7 Management server using Blueshape
> noredist. I’ve restored the 4.9.2.0 DB into this server and
> management-server.logs look clean on boot. The only problem is that I can’t
> log into the webUI.
>
> The logs show a successful login (user = kinsja), but the the API command
> either is not allowed or doesn’t exist for the user. This means the UI
> doesn’t load.
>
> Anyone seen this with a restored DB?
>
> 2017-05-24 09:26:08,239 DEBUG [c.c.u.AccountManagerImpl]
> (catalina-exec-17:ctx-ee2c5e26) (logid:a8ca5ee5) User: kinsja in domain 1
> has successfully logged in
> 2017-05-24 09:26:08,246 INFO  [c.c.a.ApiServer] 
> (catalina-exec-17:ctx-ee2c5e26)
> (logid:a8ca5ee5) Current user logged in under  timezone
> 2017-05-24 09:26:08,246 INFO  [c.c.a.ApiServer] 
> (catalina-exec-17:ctx-ee2c5e26)
> (logid:a8ca5ee5) Timezone offset from UTC is: 0.0
> 2017-05-24 09:26:08,251 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-17:ctx-ee2c5e26)
> (logid:a8ca5ee5) ===END===  192.168.10.38 -- POST
> 2017-05-24 09:26:08,320 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-13:ctx-a1d38347)
> (logid:3404c663) ===START===  192.168.10.38 -- GET
> command=listCapabilities=json&_=1495632368256
> 2017-05-24 09:26:08,325 DEBUG [c.c.a.ApiServer]
> (catalina-exec-13:ctx-a1d38347 ctx-960796a5) (logid:3404c663) The user with
> id:31 is not allowed to request the API command or the API command does not
> exist: listCapabilities
>
> Thanks
> Jason
>
> From: Jason Kinsella 
> Date: Tuesday, 23 May 2017 at 10:11 pm
> To: "users@cloudstack.apache.org" 
> Subject: SSVM NIO SSL Handshake error
>
> Hi,
> We recently upgraded from 4.5.0 to 4.9.2.0 and encountered a problem with
> the SSVM and Console Proxy. They cannot connect to the management server.
> The SSVM cloud.log repeats this error every couple of seconds.
>
> 2017-05-23 11:58:22,461 INFO  [utils.nio.NioClient] (main:null) Connecting
> to 192.168.12.1:8250
> 2017-05-23 11:58:22,465 WARN  [utils.nio.Link] (main:null) This SSL engine
> was forced to close inbound due to end of stream.
> 2017-05-23 11:58:22,465 ERROR [utils.nio.Link] (main:null) Failed to send
> server's CLOSE message due to socket channel's failure.
> 2017-05-23 11:58:22,466 ERROR [utils.nio.NioClient] (main:null) SSL
> Handshake failed while connecting to host: 192.168.12.1 port: 8250
> 2017-05-23 11:58:22,466 ERROR [utils.nio.NioConnection] (main:null) Unable
> to initialize the threads.
> java.io.IOException: SSL Handshake failed while connecting to host:
> 192.168.12.1 port: 8250
> at com.cloud.utils.nio.NioClient.init(NioClient.java:67)
> at com.cloud.utils.nio.NioConnection.start(
> NioConnection.java:88)
> at com.cloud.agent.Agent.start(Agent.java:237)
> at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:
> 399)
> at com.cloud.agent.AgentShell.launchAgentFromClassInfo(
> AgentShell.java:367)
> at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:
> 351)
> at com.cloud.agent.AgentShell.start(AgentShell.java:456)
> at com.cloud.agent.AgentShell.main(AgentShell.java:491)
> 2017-05-23 11:58:22,468 INFO  [utils.exception.CSExceptionErrorCode]
> (main:null) Could not find exception: 
> com.cloud.utils.exception.NioConnectionException
> in error code list for exceptions
> 2017-05-23 11:58:22,468 WARN  [cloud.agent.Agent] (main:null) NIO
> Connection Exception  com.cloud.utils.exception.NioConnectionException:
> SSL Handshake failed while connecting to host: 192.168.12.1 port: 8250
>
> The setup is very simple. Single management server and ports are open.
>
> Things checked / tried:
>
> · Destroyed SSVM multiple times – still same problem.
>
> · SSH to SSVM from MS using ssh -i 
> /var/cloudstack/management/.ssh/id_rsa
> -p 3922 root@IPADDRESS – PASS
>
> · SSVM telnet on 8250 to MS – PASS
>
> I’ve also tested a restore of the DB into our working development 4.9.2.0
> server. It also exhibits the handshake errors, so most likely DB related.
>
> I’ve used up all my skills. Please help
>
> Regards,
> Jason
>
>


Re: Alternative Cloudstack UI for KVM and Basic Zones (with SG)

2017-04-25 Thread Rajani Karuturi
Looks very good. Thanks for open sourcing it :)

~ Rajani

http://cloudplatform.accelerite.com/

On April 25, 2017 at 12:42 PM, Ivan Kudryavtsev
(kudryavtsev...@bw-sw.com) wrote:

Hello, Cloudstack community.

We are proud to present our last development effort to you.
During the last
5 months we spend some time to develop alternative Cloudstack UI
for basic
zones with KVM hypervisor and security groups. This is basically
the thing
we are using in our clouds. During the design of the software we
tried to
fulfill the expectations of our average cloud users and simplify
operations
as much as possible.

The project is OSS and can be found at GitHub with bunch of
screenshots and
deployment guide. It's under active development so, we will ge
glad if you
join and provide us with additional feedback, UX considerations
and other
interesting information.

Project page at GitHub: https://bwsw.github.io/cloudstack-ui/
Source code: https://github.com/bwsw/cloudstack-ui

Have a good day. Looking forward hearing your feedback.

--
With best regards, Ivan Kudryavtsev
Bitworks Software, Ltd.
Cell: +7-923-414-1515
WWW: http://bw-sw.com/

Re: CloudStack related changes in Ansible 2.3

2017-04-13 Thread Rajani Karuturi
Great work Rene. Thank you.

~ Rajani

http://cloudplatform.accelerite.com/

On April 12, 2017 at 8:43 PM, Rene Moser (m...@renemoser.net)
wrote:

Hi CloudStack users

Ansible 2.3 is about to be released, I would like to summarize
the
CloudStack related features and changes in this release.

New modules
---

- cs_host
- cs_nic
- cs_region
- cs_role
- cs_vpc

Examples and usage for these modules can be found in the docs,
http://docs.ansible.com/ansible/list_of_cloud_modules.html#cloudstack
as
usual.

Docs


The CloudStack guide
http://docs.ansible.com/ansible/guide_cloudstack.html has been
updated,
note the new feature "Environment Variables"
http://docs.ansible.com/ansible/guide_cloudstack.html#environment-variables

VPC
---

The VPC support has been improved in the related modules, but
there is
still some work to do.

Integration tests
-

Soon, CloudStack related new Ansible PRs will be automatically
tested
(~1.000 tasks) on a CI against a CloudStack Simulator running
4.9.x.

Future Module Development
-

Due some other side projects of mine (writing books takes more
time than
one would might think), development of new modules is lagging a
bit. One
module (cs_serviceoffer) is currently WIP
https://github.com/ansible/ansible/pull/19041.

But no worries, new modules are planed:
- cs_diskoffer
- modules for VPN setup

Cloud Role
--

At SWISS TXT, we created a Ansible role for setting up VMs in a
cloudstack cloud with advanced networking for different customer
projects, The role is open source (BSD) and can be found on
GitHub
https://github.com/swisstxt/ansible-role-cloud-infra

Feel free to fork and improve it.

Goal of my Ansible CloudStack Project
-

I often get ask, why I am doing it.

My goal is to not only install and upgrade CloudStack by Ansible
(that
is relatively easy... and can even be done without that much
cloudstack
api interaction) but configure _and_ maintaining a cloud (basic
or
advanced networking) in a reliable way!

It will install the OS and install cloudstack management server,
install
the OS on the hosts, setup hypversisors, create zones, pods,
clusters,
accounts, users, add configured hosts to cloudstack all this by
a single
run and the best of it, you can re-run it safely again and
again,
without fear breaking anything.

Have to add a new host? No problem, put the hardware in the rack
and
connect it to the net, ansible will take care on the next run:
it can be
that simple.

Also note, ansible can manage your network switches, routers and
firewalls too!
http://docs.ansible.com/ansible/list_of_network_modules.html

The possibilities are endless...

Thanks
René

new systemvm template for master

2017-02-15 Thread Rajani Karuturi
FYI,

With strongswan[1] and java8[2] changes, a new systemvm template
is required on master.

Latest systemvm template is available at
https://builds.cloudstack.org/job/build-master-systemvm/lastSuccessfulBuild/

Thank you Pierre-Luc Dion for creating the build :)

[1] https://github.com/apache/cloudstack/pull/1741

[2] https://github.com/apache/cloudstack/pull/1888

~ Rajani

http://cloudplatform.accelerite.com/

Re: Link Domain to LDAP

2016-10-14 Thread Rajani Karuturi
> Hi,
>
> I'ld verify the settings via mysql
>
> mysql> select * from ldap_configuration \G
> *** 1. row ***
>   id: 2
> hostname: YOUR_LDAP_SERVER
> port: 636
>
> also check, if you're able to resolve the hostname and connect to it
> from your management host.
>
> mysql> select * from ldap_trust_map \G
> *** 1. row ***
>   id: 1
>domain_id: 2
> type: OU
> name: dc=FOO,dc=BAR
> account_type: 0
>
> you'ld also need to import the specific users. I checked them via
>
> mysql> select * from user where username="XX" \G
> *** X. row ***
>   id: NNN
> uuid: ----
> username: XX
> password: XX==:10
>   account_id: NNN
>firstname: John
> lastname: Doe
>email: X@XX
>state: enabled
>  api_key: NULL
>   secret_key: NULL
>  created: -NN-NN NN:NN:NN
>  removed: NULL
> timezone: NULL
>   registration_token: NULL
>is_registered: 0
> incorrect_login_attempts: 0
>  default: 0
>   source: LDAP
>  external_entity: NULL
>
>
>
> - Stephan
>
> Am Freitag, den 14.10.2016, 02:06 + schrieb Marty Godsey:
> > I have confirmed that when I am attempting to login with the user
> > that is failing, or any user in the group specified for that matter,
> > the packets are not even hitting the domain controller. I did a
> > packet capture at the DC and logged in with a known AD user that is
> > already configured in another ACS domain. This ACS domain does not
> > have any LDAP bindings just the "default" LDAP settings. I was able
> > to see my packets hit the DC and authenticate. When attempting to log
> > in from a user in the linked domain, no packets are seen.. Is there a
> > service or a library I need to check?
> >
> > Regards,
> > Marty Godsey
> >
> > -Original Message-
> > From: Marty Godsey [mailto:ma...@gonsource.com]
> > Sent: Thursday, October 13, 2016 9:37 PM
> > To: users@cloudstack.apache.org
> > Subject: RE: Link Domain to LDAP
> >
> > Whenever I try to bind to LDAP using the users credentials, its
> > works.
> >
> > root@cs3-mgmt:/var/log/cloudstack/management# ldapwhoami -vvv -h
> > x.x.x.x -p 389 -D "CN=John Doe,OU=test1,OU=test2,DC=mydomain,DC=com"
> > -x -w Password1234!
> > ldap_initialize( ldap://10.253.0.21:389 ) u:domain\john.doe
> > Result: Success (0)
> >
> > If I also run an ldapsearch on this user, it is successful..
> >
> > However upon trying to authenticate with the same credentials on the
> > ACS screen, I receive an incorrect password error. When I look in the
> > log file all that is the following:
> >
> > Authentication failure:
> > {"loginresponse":{"uuidList":[],"errorcode":531,"errortext":"User is
> > not allowed CloudStack login"}}
> >
> > I have recreated this domain and liked it to GROUP and OU. Nested
> > groups is set to true in the ldap settings.
> >
> > Thoughts?
> >
> > Regards,
> > Marty Godsey
> >
> > -Original Message-
> > From: Rajani Karuturi [mailto:raj...@apache.org]
> > Sent: Wednesday, October 12, 2016 3:01 AM
> > To: users@cloudstack.apache.org
> > Subject: Re: Link Domain to LDAP
> >
> > Yes, you can have LDAP configured at global and domain level.
> > Did you give fully qualified name of GROUP/OU while linking?
> >
> > Easiest way to debug is to run the ldap query manually and see if it
> > returns any results ldapsearch -x -h hostname -p port "basedn" -s sub
> > -D "username"
> > -w password
> > "(&(objectClass=user)(sAMAccountName=*)(memberof=linked_group_name))"
> >
> > Also check that `ldap.provider` is set to correct value and there are
> > direct users in the group.
> > Nested groups will only work with MicrosoftAD provider and with
> > configuration `ldap.nested.groups.enable` set to true.
> >
> > There is a demo of the feature at
> > https://youtu.be/GI9b9MiOQkw?t=4m10s
> >
> > Thanks,
> > ~ Rajani
> > http://clou

Re: Link Domain to LDAP

2016-10-12 Thread Rajani Karuturi
Yes, you can have LDAP configured at global and domain level.
Did you give fully qualified name of GROUP/OU while linking?

Easiest way to debug is to run the ldap query manually and see if
it returns any results
ldapsearch -x -h hostname -p port "basedn" -s sub -D "username"
-w password
"(&(objectClass=user)(sAMAccountName=*)(memberof=linked_group_name))"

Also check that `ldap.provider` is set to correct value and there
are direct users in the group.
Nested groups will only work with MicrosoftAD provider and with
configuration `ldap.nested.groups.enable` set to true.

There is a demo of the feature at
https://youtu.be/GI9b9MiOQkw?t=4m10s

Thanks,
~ Rajani
http://cloudplatform.accelerite.com/

On October 12, 2016 at 6:23 AM, Marty Godsey
(ma...@gonsource.com) wrote:
Hello,

I have an ACS 4.9 instance that runs well with no issues. I have
enabled LDAP authentication at the Global Level and this works
without issue. The question I have is the "Link Domain to LDAP"
function at the domain level. I have a domain that I want to auto
sync. I added this sub domain ( lets call it ROOT/LDAPTest ) that
I configured with the DN of the group I am wanting to populate
from (I also attempted this with the OU setting as well) and the
user that was created cannot authenticate nor are any of the test
accounts in Active Directory being created in ACS.

I have LDAP configured globally and I also, as a test made the
user part of the group I indicated for "LDAP Accounts" and the
user shows up, but the "Link Domain to LDAP" does not seem to
work. I tried looking in the logs and did not see any error or
attempts to query Active Directory.

Is this a broken function? Can you have both globally set LDAP
settings and "Link Domain to LDAP" settings?

Regards,
Marty Godsey

Re: cloudstack-usage no longer working / error saving account to cloud_usage db

2016-08-18 Thread Rajani Karuturi
role_id in account table shouldn't be null. If the upgrade was
successful, it should have updated it with proper mapping from
account type. (check the db upgrade log for any exceptions)

I suggest you do the update manually following the logic at
https://github.com/apache/cloudstack/blob/4.9/engine/schema/src/com/cloud/upgrade/dao/Upgrade481to490.java#L68-L92

Also check that roles and role_permissions tables have the
required data.

~ Rajani
http://cloudplatform.accelerite.com/

On August 16, 2016 at 7:10 PM, Stephan Seitz
(s.se...@secretresearchfacility.com) wrote:
Hi!

We've recently noticed cloudstack-usage is no longer able to
write
usage data into mysql. I assume this happened after updateing to
4.8.0.1 or 4.9 - we missed that error in our testsetup...

Here's the usage.log: http://pastebin.com/Zpvnw4xX

Finally it fails with following message:

ERROR [usage.dao.UsageDaoImpl] (Usage-Job-1:null) (logid:) error
saving
account to cloud_usage db

I've checked the changes between 4.8 and 4.9

https://fossies.org/diffs/apache-cloudstack/4.8.0.1-src_vs_4.9.0-src/en
gine/schema/src/com/cloud/usage/dao/UsageDaoImpl.java-diff.html

cloud_usage.account now shows role_id, but that table looks good
to me:

mysql> show create table account \G
*** 1. row ***
Table: account
Create Table: CREATE TABLE `account` (
`id` bigint(20) unsigned NOT NULL,
`account_name` varchar(100) DEFAULT NULL COMMENT 'an account
name set
by the creator of the account, defaults to username for single
accounts',
`uuid` varchar(40) DEFAULT NULL,
`type` int(1) unsigned NOT NULL,
`role_id` bigint(20) unsigned DEFAULT NULL,
`domain_id` bigint(20) unsigned DEFAULT NULL,
`state` varchar(10) NOT NULL DEFAULT 'enabled',
`removed` datetime DEFAULT NULL COMMENT 'date removed',
`cleanup_needed` tinyint(1) NOT NULL DEFAULT '0',
`network_domain` varchar(100) DEFAULT NULL COMMENT 'Network
domain
name of the Vms of the account',
`default_zone_id` bigint(20) unsigned DEFAULT NULL,
`default` int(1) unsigned NOT NULL DEFAULT '0' COMMENT '1 if
account
is default',
PRIMARY KEY (`id`),
UNIQUE KEY `uc_account__uuid` (`uuid`),
KEY `i_account__removed` (`removed`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
1 row in set (0.00 sec)

Having a look at that data, I'm a bit confused since uuid,
network_domain and default_zone_id are NULL for every account.

As an example:

mysql> select * from account limit 1 \G
*** 1. row ***
id: 1
account_name: system
uuid: NULL
type: 1
role_id: NULL
domain_id: 1
state: enabled
removed: NULL
cleanup_needed: 0
network_domain: NULL
default_zone_id: NULL
default: 0
1 row in set (0.00 sec)

I've already looked at plain SQL statements logged by the mysqld,
but
that's really messy and grepping for INSERT/UPDATE queries
defined in
UsageDaoImpl didn't show anything. Finally grepping for
'statistics' in
the raw sql-log doesn't result a line.

Could someone please shed some light how I could get the usage
service
collecting and reporting data again?

Thanks in advance!

cheers,

- Stephan

Re: Download Error when download templates from Cloudstack

2016-08-16 Thread Rajani Karuturi
Yes please.

~ Rajani
http://cloudplatform.accelerite.com/

On August 16, 2016 at 1:57 PM, 조대형 (carl...@renet.kr) wrote:

Hi,
I have checked the file permissions.
Please, see the belows.

Do I have to give the permissions on SecStorage ?
# chmod +R 755 ?

root@s-4-VM:/mnt/SecStorage/e03d6434-5d50-3fb4-9523-bde0108865ec/template/tmpl/2/

drwxrwxrwx 3 root root 1024 Aug 16 07:41 SecStorage

d- 6 root root 4096 Mar 8 08:10
e03d6434-5d50-3fb4-9523-bde0108865ec

Thanks,

-Original Message-
From: Rajani Karuturi [mailto:raj...@apache.org]
Sent: Tuesday, August 16, 2016 5:12 PM
To: users@cloudstack.apache.org; users@cloudstack.apache.org
Subject: Re: Download Error when download templates from
Cloudstack

Can you check the file permissions at /var/www/html/*on the SSVM
in the download URL?

~ Rajani
http://cloudplatform.accelerite.com/

On August 16, 2016 at 12:56 PM, 조대형 (carl...@renet.kr) wrote:
Hi, Al

I need your help.

I am trying to download templates from cloudstack.

But, it gives me error like this;

Do you have any ideas?

Forbidden

You don't have permission to access
/userdata/1405dcd6-021a-413d-9b5a-
183b913d6d7e.vhd on this server.

Thanks,

Re: Download Error when download templates from Cloudstack

2016-08-16 Thread Rajani Karuturi
Can you check the file permissions at /var/www/html/*on the SSVM
in the download URL?

~ Rajani
http://cloudplatform.accelerite.com/

On August 16, 2016 at 12:56 PM, 조대형 (carl...@renet.kr) wrote:
Hi, Al

I need your help.

I am trying to download templates from cloudstack.

But, it gives me error like this;

Do you have any ideas?

Forbidden

You don't have permission to access
/userdata/1405dcd6-021a-413d-9b5a-
183b913d6d7e.vhd on this server.

Thanks,

Re: Meet BlueOrangutan

2016-08-08 Thread Rajani Karuturi
This is great. Thanks for all the hardwork Rohit. Will start using it.

~Rajani
http://cloudplatform.accelerite.com/

On Sat, Aug 6, 2016 at 2:44 PM, Rohit Yadav 
wrote:

> All,
>
>
> Meet blueorangutan [1], a Github bot account that will help us automate
> CloudStack (PR) testing [2][3] among other things.
>
>
> It works by polling Github notifications for the apache/cloudstack
> repository every minutes and then reacts to comments. We can post comments
> on a apache/cloudstack PR and ask @blueorangutan to perform certain build
> jobs such as building packages, then running Trillian [2] tests (across a
> set of hypervisors) using those packages, and finally report us the results.
>
>
> Since, the task of building packages and testing them are expensive. A
> typical packaging job may take up to 30 minutes, a typical Trillian [2][3]
> environment can take about 30 minutes to build/deploy a zone, and a
> Trillian (smoke) test run may take hours while an exhaustive Trillian
> (component+smoke) test run may take 3-4 days. Due to these reasons, for now
> the '@blueorangutan test' task is restricted to a selected Github users (my
> colleagues at ShapeBlue). Running Trillian test for each PR may be
> expensive, we may consider batching smaller thoroughly reviewed PRs, then
> create packages for a set of PRs and test them all at once as well.
>
>
> The task to build (centos6, centos7, debian) packages is relatively less
> expensive and anyone can request blueorangutan to build packages now by
> commenting '@blueorangutan package' on a PR.
>
>
> The great blue ape aims to be a quite friendly and polite bot, go on any
> apache/cloudstack PR and try:
>
> '@blueorangutan hello'
>
>
> Or, build package for a PR:
>
> '@blueorangutan package'
>
>
> Or, if it helps you build packages you may say:
>
> '@blueorangutan thanks'
>
>
> This is an experiment and I hope to improve this over time, any feedback
> and comments are welcome.
>
>
> [1] https://github.com/blueorangutan
>
> [2] http://www.shapeblue.com/trillian-flexible-on-demand-
> individual-cloud-environment-creation/
>
> [3] http://www.shapeblue.com/cloudstack-test-automation-
> with-trillian-and-jenkins/
>
> Regards.
>
> rohit.ya...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> @shapeblue
>
>
>
>


Re: Architecture Advice

2016-08-03 Thread Rajani Karuturi
As of now, VPN users cannot be managed via LDAP in CloudStack.

~ Rajani
http://cloudplatform.accelerite.com/

On August 3, 2016 at 11:18 AM, ilya
(ilya.mailing.li...@gmail.com) wrote:Matthew,
Noticed that you are on users list, if you get no response, try
askingon dev list.
Also, perhaps refine the subject to VR VPN + LDAP access. Lastly,
thereis StrongSwan initiative to replace OpenSwan, but nothing
about LDAPintegration that i could find.
Regardsilya
On 8/2/16 12:52 PM, Matthew Smart wrote:Ilya,
Thanks for the response. For the most part, our deployment is
muchsimpler than yours. We allow only our senior sysadmins access
to theCloudstack UI (and only have 2 senior sysadmins currently).
This accessis already tied to LDAP and working perfectly. I don't
mind using a vmfor VPN since we have sysadmin staff with direct
physical access to thedatacenter 24/7. Worst case in an outtage
they can connect directly tothe bare metal servers and interface
with a VM through the hypervisorvnc port just like the Cloudstack
Console Proxy does.
What we are stumbling on is allowing our development staff,
sysadmins,and clients to access the vms directly via ssh and
other accessprotocols. I have to allow them the ability to remote
into vms toperform maintenance, configuration, and
troubleshooting but have to keepthese networks completely
segregated and managed by our centralized LDAPsystem. This access
is currently facilitated in our non-cloudstackenvironment by
allowing them to VPN into segregated networks anddirectly access
the vms but we do so by allowing our VPN cluster toaccess ALL
segregated networks. This creates a single point ofvulnerability
in that if an attacker gains access to a server in the VPNcluster
they have penetrated our segregation and can access all networks.
My plan was to use the built in VPN capabilities of the
VRouterinstances to provide for a more secure asset segregation
while allowingstakeholders the necessary access to their vms. The
stumbling pointright now is how we manage the vpns for the 50-60
separate networks wewill have when this is rolled out. From what
I can find, the current VPNimplementation allows for the manual
creation of 8 VPN users for eachCloudstack Account and I cannot
find anything to indicate whether theVPN users can be managed via
LDAP the way that the Cloudstack UI users are.
Does anyone have any guidance on the capabilities of the VRouter
VPNoffering? Am I correct in my determination that there is not
currentlyany way to configure it to pull auth and access rights
from LDAP?
Thanks,
Matthew SmartPresidentSmart Software Solutions Inc.108 S Pierre
St.Pierre, SD 57501
Phone: (605) 280-0383Skype:
msmart13Email: msm...@smartsoftwareinc.com (
msm...@smartsoftwareinc.com )
On 07/29/2016 02:30 AM, ilya wrote:Matthew,
Interesting challenge, i operate in slightly different
environment -let me explain how it works in places i've been too
in past and you candecide if its something you see being a fit.
Since data center access is treated as top tier - access to it
must beguaranteed at all times - especially to sysadmin. Hence,
i'm personally,hesitant placing it on a VM - managed by
cloudstack, openstack or vmwareor any virtual technology..
I'd prefer for it to be a physical redundant VPN appliance - but
itsjust me, being overly paranoid, bitten by many outages - and
probablynot cloudy enough.
With that said, the VPN profile - will inherit a configuration
that canaccess whatever number of VLANs you have to offer - on
the networklayer. For example, i'd create a Admin network that
can access allnetworks underneath that is bound to my VPN users.
As for cloudstack access, i see few ways of solving your
challenge - buti also believe i may not fully understand you
design.
For example, in my environment, i may have close to 100 cloud
admins.These are the people that tend to different environments
across manydatacenters doing different things. Some fix
hypervisors, other dealwith network and vms or do capacity
planning.
When they login to cloudstack to perfom management task - select
few -that we may trust - get root admin priveleges. They can
access allcloudstack entities below ROOT domain - there are no
restrictions. Thisis something that is available now cloudstack.
However, i may also have 98 users that i dont trust as much and
want tolimit what they can do, for that - we will leverage
another featurecalled Dynamic CloudStack Roles A.K.A. RBAC.
link: http://www.shapeblue.com/cloudstack-101/ ( 
http://www.shapeblue.com/cloudstack-101/ ) - scroll down
toManagement
What RBAC gets is an ability to define you won custom role
withincloudstack to perform only specific operations based on
fairly granularcloudstack API. For example, you may want a user
who needs to be able toREAD content from CloudStack - but not
make any changes.You would create a role with "List*" priveleges,
assing an account anduser on ROOT domain. This would be
equivalent of read-only-admin user.
Other admins, could do VM stop, 

Re: [PROPOSAL] Early LTS Initial Release

2016-08-03 Thread Rajani Karuturi
The idea of maintaing the release branch longer can be discussed.
But, I am -1 for separate branches and separate release trains.
Maintaing the upgrade paths would be a big overhead.
We are not doing regular releases on the main release branches.
Rohit did a great job for 4.5(though it was backporting and not
forward merging at that time). Beyond that, we are not doing
regular releases. If we do regular updates on the release
branches, users who wish to take a release once in 6 months can
do so even now. It will just be current+6 release (assuming we do
regular minor releases every month)
~ Rajanihttp://cloudplatform.accelerite.com/
On August 3, 2016 at 4:07 AM, John Burwell
(john.burw...@shapeblue.com) wrote:Rajani,
As I mentioned in my previous email, the original motivation for
a completely separate branch was based on objections by some
community members that the longer, more conservative LTS release
cycle would place a drag on the velocity of regular
releases. Additionally, users interested in LTS releases voiced
their desire to have fewer releases a year. Therefore, where the
regular release cycle is scheduled to make major releases every 2
months and maintenance releases every month, the LTS cycle makes
major releases every 6 months and maintenance releases less
frequently (e.g. every 3 months). These longer cycles allow
users with longer acceptance test/verification cycles to more
easily keep up with upgrades. Completely separate branches and
release cycles were proposed to serve both use cases (rapid,
leading upgrades and more traditional maintenance cycles).
I am open to collapsing LTS into the regular maintenance releases
(e.g. 4.9 simply becomes supported for 20 months instead of 4
months). Ultimately, I would like that decision to be based on
user feedback since separate release branches/cycles have been
previously discussed with no objections [1]. I have CC’ed users@
to solicit thoughts from our users on which approach would be
preferred.
Thanks,-John
[1]: http://markmail.org/thread/zh43rc6ahs4te46l ( 
http://markmail.org/thread/zh43rc6ahs4te46l ) john.burw...@shapeblue.com ( 
john.burw...@shapeblue.com
) www.shapeblue.com ( http://www.shapeblue.com )53 Chandos
Place, Covent Garden, London VA WC2N 4HSUK@shapeblue
On Aug 2, 2016, at 3:57 AM, Rajani Karuturi <raj...@apache.org (
raj...@apache.org )> wrote:
We already maintain the release branches and do
regularreleases(of the past two releases) on them. What are we
achievingthrough this LTS model? How is 4.9.1 different from
4.9.0.0_1.0?
~ Rajanihttp://cloudplatform.accelerite.com/On August 2, 2016 at
2:33 AM, John Burwell(john.burw...@shapeblue.com (
john.burw...@shapeblue.com )) wrote:Wido,
As proposed, LTS will be a branch of 4.9.0 with a six (6)
weekperiod of additional testing (i.e. soak/endurance,
scalability,and more extensive plugin testing). Therefore, LTS
releases willbe named _ meaning that
the first LTSrelease would be 4.9.0.0_1.0. The original
motivation for thisapproach was that the regular release cycle
performed testing fora week which was not enough time to execute
long running tests(e.g. the entire test suite requires roughly 4
days to run, agood endurance/soak test should run for 5-7
days,etc). Additionally, there was concern that LTS would impede
thevelocity of the regular release cycle. By decoupling
theregular and LTS release branches, there would be no
opportunityfor LTS constraints to impede velocity of the regular
releasecycle.
Since my original proposal, a number of aspects about the
releasecycle have changed. I am open to adjust LTS to simply be
anextension of the support period on the 4.9.0.0release.
Personally, I think the risk of the LTS cycle impedingregular
releases is very low. I also think it would be moreconsistent
with the way we have managed long running releases inthe past. We
would still perform the additional test we plannedfor LTS, but it
would on the 4.9 release branch rather than aseparate LTS branch.
Are there any objections to this change to the way LTS
branchesare managed and releases named? For now, I will leave the
LTSreleases in the schedule as defined in the originalproposal.
If/when we gain consensus on this change, I willadjust the
schedule.
Thanks,-JohnFrom: Wido den
Hollander<w...@widodh.nl ( w...@widodh.nl ) ( w...@widodh.nl (
w...@widodh.nl ) )>Sent: Friday, July 15, 20164:15:36
AMTo: d...@cloudstack.apache.org ( d...@cloudstack.apache.org
) (d...@cloudstack.apache.org ( d...@cloudstack.apache.org ) );
John BurwellSubject: Re: [PROPOSAL]Early LTS Initial ReleaseOp 13
juli 2016 om 18:25 schreef John
Burwell<john.burw...@shapeblue.com ( john.burw...@shapeblue.com
) ( john.burw...@shapeblue.com ( john.burw...@shapeblue.com ) )>:
All,Since LTS introduces a new release stream, I would like
topropose that we cut the first LTS quickly to verify that
variousaspects of the release cycle and version number
dependentcomponents will work properly wi

Re: LDAP (Active Directory) password concerns

2016-08-01 Thread Rajani Karuturi
CloudStack doesnt store LDAP password locally. It queries AD
server for every authentication.Both the passwords being usable
for sometime is actually AD feature. You can change the time
interval for which both are usable in AD. I think the default is
60 min.https://support.microsoft.com/en-us/kb/906305

~ Rajanihttp://cloudplatform.accelerite.com/
On August 1, 2016 at 11:32 AM, Marty Godsey (ma...@gonsource.com)
wrote:Hello,
I have a lab CloudStack that is authenticating to an active
directory and it works great accept one thing. If I change the
password on the AD user, ACS still allows the user to log into
the ACS portal with the old AND the new password...
Is there a refresh interval for LDAP accounts? Does it store a
hash in the ACS database? Did I miss a setting?
Regards,Marty Godsey

Re: problem with ldap authentication w/ grouOfNames

2016-07-25 Thread Rajani Karuturi
Are you trying to manually import users to cloudstack? Or did you
link ldap to a domain?
If its the later, users will get automatically imported to the
domain once its linked.In this case, check for the values in
ldap_trust_map.Here is a demo
https://www.youtube.com/watch?v=GI9b9MiOQkw
~ Rajanihttp://cloudplatform.accelerite.com/
On July 22, 2016 at 7:52 PM, Stephan Seitz
(s.se...@secretresearchfacility.com) wrote:Hi guys!
We've currently setup acs 4.8 and trying to integrate
theauthentication for different domains with different kind of
grouOfNamesusing openldap.
Users are getting imported, but are unable to authenticate
withfollowing log:

2016-07-22 16:10:50,523 INFO [o.a.c.l.LdapContextFactory]
(catalina-exec-19:ctx-25b685df) (logid:f6a56bdc) LDAP SSL
enabled.2016-07-22 16:10:50,527 DEBUG
[o.a.c.l.LdapContextFactory] (catalina-exec-19:ctx-25b685df)
(logid:f6a56bdc) initializing ldap with providerurl:
ldaps://X:6362016-07-22 16:10:50,589 DEBUG
[o.a.c.l.LdapManagerImpl] (catalina-exec-19:ctx-25b685df)
(logid:f6a56bdc) ldap Exception: javax.naming.NamingException: No
user found for basednou=Groups,dc=,dc=YY and
searchString(&(objectClass=inetOrgPerson)(uid=N))
Interestingly enough, the basedn is expanded to ou=Groups,
rest ofthe dn is ok.
I'ld expecting an ldapquery with the given basedn instead
ofou=Groups,basedn...
could someone please shed some light where or how to configure
thissearchfilter?
we double-checked the entries for:ldap.basedn set to our
baseldap.group.object groupOfNamesldap.group.user.uniquemenber
member
as said, importing the users is working as expected.
Thanks in advance!
cheers,
- Stephan

Re: Can't login to API created user

2016-07-13 Thread Rajani Karuturi
whats the cloudstack version? Can you share logs when the user is created
and when you try to login?

~Rajani

On Wed, Jul 13, 2016 at 7:29 PM, Joshua  wrote:

> Hello all,
>
> It appears that I am unable to login to the CS management portal as a user
> created by HostBill. Is there some sort of flag that separates which
> accounts can login to the portal?
>
> It appears that changing the user details (and manually editing the
> database to replace the domain UUID) in HostBill to a user created via the
> management portal results in the error "User doesn't exist on the server."
>
> I'm using HostBill as a substitute interface for the end user because the
> default CS management portal gives too much control.
>
> Thanks in advance!
>
> Regards
> Joshua
>


Re: Help with Usage data - There is no data from Cloudmonkey of types: 4,5,10,21,22,23 or 24 (Network and VM Disk data)

2016-06-23 Thread Rajani Karuturi
I think it should go to usage_network table.
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Usage+and+Usage+Events
https://github.com/apache/cloudstack/blob/master/usage/src/com/cloud/usage/UsageManagerImpl.java#L668

~Rajani

On Wed, Jun 22, 2016 at 7:38 PM, Cory Fuchs  wrote:

> As an update if anyone can offer any assistance.
>
> The data is flowing into cloud_usage.user_statistics.  Data is updating
> after the usage timer runs.
>
> Where is it supposed to flow from there?
>
> Cory Fuchs
>
>
> 
> From: Cory Fuchs 
> Sent: Tuesday, June 21, 2016 9:22 AM
> To: users@cloudstack.apache.org
> Subject: Re: Help with Usage data - There is no data from Cloudmonkey of
> types: 4,5,10,21,22,23 or 24 (Network and VM Disk data)
>
> Hello Ilya,
>
> I have not found a resolution yet.  Any help would be greatly appreciated.
>
> I have been going through logs and trying to pin down where it is
> failing.  However, without knowing the workflow of the data I have been
> shooting in the dark.  This is what I have found so far.
>
> From the /var/log/cloudstack/management/management-server.log file
> I am seeing entries like this.  Telling me that the management server is
> doing the collecting of the data.
>
> 2016-06-21 02:49:03,423 DEBUG [c.c.a.t.Request]
> (DirectAgent-189:ctx-49882d6b) Seq 11-6346697774871958512: Processing:  {
> Ans: , MgmtId: 345049798930, via: 11, Ver: v1, Flags: 10,
> [{"com.cloud.agent.api.NetworkUsageAnswer":{"routerName":"r-610-VM","bytesSent":1139691977597,"bytesReceived":163740483889,"result":true,"details":"success","wait":0}}]
> }
>
>
> If I query cloud.user_statistics table for device_id 610  (i.e. r-610-vm
> matches the device_id 610).
> The following entries are increasing.
> current_bytes_received: 163614052302
> current_bytes_sent: 1137990941434
> agg_bytes_received: 8817678036
> agg_bytes_sent: 33498435712
>
> I just started tracking the values in the cloud_usage.user_statistics
> table for device_id 610.  However I didn't track it until after our
> usage.stats.job.execution had already ran and it will not run again for
> another 11 hours.  So I don't know if the cloud_usage.user_statistics is
> getting updated.
>
> Are there any other data points that I can track to help troubleshoot this?
> Am I looking in the wrong places?
>
> Any information you can provide would be appreciated.
>
> Cory Fuchs
>
>
> 
> From: ilya 
> Sent: Tuesday, June 21, 2016 1:57 AM
> To: users@cloudstack.apache.org
> Subject: Re: Help with Usage data - There is no data from Cloudmonkey of
> types: 4,5,10,21,22,23 or 24 (Network and VM Disk data)
>
> Cory
>
> Just curious if you made any headway on this issue or still need help.
>
> Regards
> ilya
>
> On 6/17/16 8:38 AM, Cory Fuchs wrote:
> > Hello Everyone,
> >
> >
> > I hope that someone can point me in the direction of how to resolve my
> issue and let me know what I am doing wrong.
> >
> >
> > Cloudstack version: 4.5.2
> >
> >
> > Running the following command from Cloudmonkey returns no results.
> >
> >
> >  list usagerecords startdate=2016-06-16 enddate=2016-06-17 type=4
> >
> >
> > Changing the type to any of the following returns no results: 4, 5, 10,
> 21, 22, or 23
> >
> > Changing the type to any of the following does return results: 1, 2, 3,
> 6, 7, 8, 9, 11, 12, 13, 14, or 25
> >
> >
> > This tells me the usage job is running and collecting data.  Just not on
> the Network or VM Disk data.
> >
> >
> > Looking at /var/log/cloudstack/usage/usage.log
> >
> >
> > Grepping for an accountId that I know has usage on.  I get lines like
> the following.
> >
> >
> >  2016-06-17 00:15:03,347 DEBUG [cloud.usage.UsageManagerImpl]
> (Usage-Job-1:null) creating networkHelperEntry...accountId: 7 in zone: 1;
> abr: 142919240951; abs: 40911793471; curABS: 40911793471; curABR:
> 142919240951; ubs: 0; ubr: 0
> >
> >  2016-06-17 00:15:03,348 DEBUG [cloud.usage.UsageManagerImpl]
> (Usage-Job-1:null) getting current accounted bytes for... accountId: 7 in
> zone: 1; abr: 39361808078; abs: 1006529247
> >
> >   2016-06-17 00:15:03,348 DEBUG [cloud.usage.UsageManagerImpl]
> (Usage-Job-1:null) creating networkHelperEntry... accountId: 7 in zone: 1;
> abr: 39361808078; abs: 1006529247; curABS: 1006529247; curABR: 39361808078;
> ubs: 0; ubr: 0
> >
> >
> >
> > Grepping for account 7.  I get some of the following lines:
> >
> >
> >  2016-06-17 00:15:13,976 DEBUG [usage.parser.NetworkUsageParser]
> (Usage-Job-1:null) No usage record (0 bytes used) generated for account: 7
> >
> >  2016-06-17 00:15:13,976 DEBUG [usage.parser.NetworkUsageParser]
> (Usage-Job-1:null) No usage record (0 bytes used) generated for account: 7
> >
> >  2016-06-17 00:15:13,976 DEBUG [usage.parser.VmDiskUsageParser]
> (Usage-Job-1:null) Parsing all Vm Disk usage events for account: 7
> >
> >  2016-06-17 

Re: Secondary Storage Problem

2016-06-16 Thread Rajani Karuturi
what error do you see for the add secondary storage command?
can you share the logs on pastebin/imgur?
attachments aren't allowed.

~Rajani

On Thu, Jun 16, 2016 at 7:49 AM, Mohd Zainal Abidin Rabani <
zai...@nocser.net> wrote:

> Refer attachmen.
>
> -Original Message-
> From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net]
> Sent: Thursday, June 16, 2016 10:13 AM
> To: users@cloudstack.apache.org
> Subject: RE: Secondary Storage Problem
>
> I keep getting this error from management-server.log.
>
> 2016-06-16 10:11:50,534 WARN  [o.a.c.alerts] (secstorage-1:ctx-3d0765e7)
> (logid:a03ac555)  alertType:: 19 // dataCenterId:: 1 // podId:: null //
> clusterId:: null // message:: Secondary Storage Vm creation failure. zone:
> AIMS, error details: null
>
> -Original Message-
> From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net]
> Sent: Thursday, June 16, 2016 10:02 AM
> To: users@cloudstack.apache.org
> Subject: Secondary Storage Problem
>
> Hi,
>
>
>
> I have install cloudstack 4.8 on new centos 7 with latest kernel. I manage
> to make cloudstack management up and running. I have success adding primary
> storage using nfs. When I try to add secondary storage from same nfs
> server,
> from dashboard it show 0 KB. But using same nfs same server no problem on
> primary. I'm still confuse. Is this a bug?
>
>
>
> Thanks.
>
>


Re: I cannot start agent - Cloudstack 4.8 - Connection closed with -1 on reading size

2016-05-02 Thread Rajani Karuturi
also check java version and upgrade nss
http://blog.backslasher.net/java-ssl-crash.html

~Rajani

On Tue, May 3, 2016 at 7:36 AM, Simon Weller  wrote:

> Ellie,
>
> Can you try forcing ACS Management to only bind to IPV4?
> Normally this is done in the JAVA_OPTS by setting
> -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true
>
> I think on the ACS Ubuntu release, JAVA_OPTS is set in your init scripts,
> but I'm not absolutely sure about that.
>
> Maybe someone who runs Ubuntu can chime in on this.
>
> - Si
>
>
>
> 
> From: Elie MABO 
> Sent: Monday, May 2, 2016 8:38 PM
> To: Users; Dev
> Subject: I cannot start agent - Cloudstack 4.8 -  Connection closed with
> -1 on reading size
>
> Hi,
>
> I have upgraded my cloudstack from 4.4 to 4.8. After upgrading, the agent
> on hosts cannot start. I receive the following message:
>  20:08:45,833 ERROR [cloud.agent.AgentShell] (main:null) (logid:) Unable
> to start agent:
> com.cloud.utils.exception.CloudRuntimeException: Unable to start the
> connection!
> at com.cloud.agent.Agent.start(Agent.java:230)
> at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:399)
> at
> com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:367)
> at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:351)
> at com.cloud.agent.AgentShell.start(AgentShell.java:461)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:243)
> Caused by: com.cloud.utils.exception.NioConnectionException: Connection
> closed with -1 on reading size.
> at com.cloud.utils.nio.NioConnection.start(NioConnection.java:94)
> at com.cloud.agent.Agent.start(Agent.java:228)
> ... 9 more
> Caused by: java.io.IOException: Connection closed with -1 on reading size.
> at com.cloud.utils.nio.Link.doHandshake(Link.java:513)
> at com.cloud.utils.nio.NioClient.init(NioClient.java:80)
> at com.cloud.utils.nio.NioConnection.start(NioConnection.java:88)
> ... 10 more
> 2016-05-02 20:08:45,834 INFO  [cloud.agent.Agent]
> (AgentShutdownThread:null) (logid:) Stopping the agent: Reason = sig.kill
>
> I tried to troubleshoot, but nothing. Please, can anybody help me to solve
> my problem ?
>
> Additional information
>
> 1- The output of netstat command shows that management server does not
> listen on TCP port 8250, but on TCP6 port 8250
> admin@mgnt:~$ sudo netstat -tanp | grep 8250
> tcp6   0  0 :::8250 :::*
> LISTEN  20101/jsvc.exec
>
> 2- The telnet command on port 8250 return the message "Connection closed
> by foreign host."admin@mgnt:~$ telnet 192.168.1.10 8250
> Trying 192.168.1.10...
> Connected to 192.168.1.10.
> Escape character is '^]'.
> Connection closed by foreign host.
>
> 3- Management server and hosts (2) are running Ubuntu 14.04 LTS as
> operating system, and all are up-to-date.
> Thank you in advance.
> Elie
>


Re: [ANNOUNCE] Open source distributed virtual machine scheduling platform

2016-04-26 Thread Rajani Karuturi
congratulations guys..

~Rajani

On Wed, Apr 27, 2016 at 2:29 AM, Gabriel Beims Bräscher <
gabrasc...@gmail.com> wrote:

> Hello CloudStack community members (@dev and @users),
>
> This email is meant to announce the publication of a project on Github that
> provides a distributed virtual machine scheduling platform that can be
> easily integrated with Apache CloudStack (ACS). The project is available at
> [1], you can find a detailed explanation of the idea of the project, its
> aspirations, basic concepts, installation and uninstallation processes and
> other information at [2]. Also, if you want to know more about the
> Autonomiccs and its creators, you can access the link [3].
>
> The code that was opened at Github is part of a bigger system that has the
> goal of managing a cloud computing environment autonomously. All of that is
> being developed and used in my Ph. D. thesis and the masters’ thesis of
> some colleagues. The formalization of that component will be published at
> the 12th IEEE World Congress on Services (SERVICES 2016) at San Francisco
> USA.
>
> You can see the stats of our code at [4] and [5]. Right now we only have
> ~40% of code test coverage. However, we intend to increase that value to
> ~60% until next week and ~90% until the end of June.
>
> To give you a picture of what we are preparing for the future, we can
> highlight the following goals for this year (You can find others short term
> goals at [6]):
>
>-
>
>Integrate our platform [1] with a multi-agent system (MAS) platform, in
>order to facilitate the development of agents. Currently, we are using
>Spring-integration to “emulate” and an agent life cycle; that can
> become a
>problem when needing to add more agents and they start to communicate
> with
>each other. Therefore, we will integrate the platform in [1] with JADE
> [7];
>-
>
>Today the metrics about the use of resource are not properly gathered by
>ACS; in order to develop more accurate predictions we need to store
>resource usage metrics. Also, those metrics have to be gathered in a
>distributed way without causing service degradation. For that and a few
>other reasons (you can send us an email so we can provide you more
>details), we are developing an autonomic monitoring platform that will
>integrate with the system available in [1];
>-
>
>We also foresee the need to develop a better way to visualize the cloud
>environment, a way to detect hot spots (pods and hosts) with higher
>resource usage trends (VMs trends). We see the need to change the rustic
>view of the environment with tables for a better suitable one for humans
>(this is a surprise that we intend to present at the CCCBR).
>
> We hope you like the software and that it meets your expectations. If it
> does not suffice all of your needs, let’s work together to improve it. If
> you have any doubts or suggestions please send us an email; we will reply
> it as fast as we can. Also, critics that can help us improve that platform
> are very welcome.
>
> [1] https://github.com/Autonomiccs/autonomiccs-platform
>
> [2] https://github.com/Autonomiccs/autonomiccs-platform/wiki
>
> [3] http://autonomiccs.com.br/
>
> [4] http://jenkins.autonomiccs.com.br/
>
> [5] http://sonar.autonomiccs.com.br/
>
> [6] https://github.com/Autonomiccs/autonomiccs-platform#project-evolution
>
> [7] http://jade.tilab.com/
>
>
> Cheers, Gabriel.
>


Re: Cloudstack 4.7 password reset issue.

2016-04-12 Thread Rajani Karuturi
Can you check the vm_instance table for the VR entry and update
vm_template_id?

This might be helpful https://gist.github.com/terbolous/102ae8edd1cda192561c

~Rajani

On Sat, Apr 9, 2016 at 5:45 AM, Richard Klein (RSI) 
wrote:

> I found the password reset issue and it ended up being a Python script on
> the VR.  I ended up modifying the "/opt/cloud/bin/configure.py" to resolve
> the issue.  Basically there is a "/etc/cloud/vmpassword.json" file that is
> updated with the IP/password pair when the GUI password change is
> performed.  During the power on process the VM configuration info is sent
> to the router which reads the vmpassword.json file and sends the password
> changes to the password server cache file.  When the client retrieved the
> password it was cleared from the password cache file but not the
> vmpassword.json file.  So every time a VM started the last password reset
> was sent to the password server again.
>
> The question I have now is how do I get the system VM template updated
> with the change?  Since we are using CS v4.7 we used the system template
> for v4.6 per the installation instructions for CentOS7 and KVM.  I
> performed the following steps to use a new system VM template:
>
> * I copied the system vm template QCOW2 file from secondary storage to a
> work server and made a backup of it.
> * On the work server I mounted the QCOW2 template file using "guestmount"
> tools and made the code changes to the template.
> * I then copied this modified template file to a web server and registered
> the template in cloudstack with all checkboxes off except for "routing".
> * Then we set the cloudstack global value of "router.template.kvm" to the
> name of the new template.
> * The management services were restarted.
> * I picked a test VR, powered it off, destroyed it then let the system
> recreate it.
> * When I look at the code I changed on the new VR it does not appear.
>
> I even doubled checked the database and the vm_instance table for the test
> VR showed the new template ID.  I must be missing something or I don't
> really understand how the system templates are created.  Any
> help/suggestions would be appreciated.
>
>
>
> Richard Klein  
> RSI
> 5426 Guadalupe, Suite 100
> Austin TX 78751
>
>
>
> > -Original Message-
> > From: Richard Klein (RSI)
> > Sent: Tuesday, April 05, 2016 2:32 PM
> > To: users@cloudstack.apache.org
> > Subject: RE: Cloudstack 4.7 password reset issue.
> >
> > The snippets for before and after the reboot via console look the same
> so I
> > pasted the 2nd set of message instead of the first.  Sorry about that.
> I did
> > discover that the /var/lib/dhclient/dhclient.leases existed but was
> empty.  I've
> > run across an issue with CentOS 7 where the lease file is missing so I
> wrote a
> > "cloud-dhcp-check" service that makes sure it exists but now I need to
> validate
> > its content.  That being said, I have insured that the dhclient_leases
> was valid
> > and replicated the problem.
> >
> > The cloud-set-guest- scripts are from the master branch GitHub
> repository
> > for apaches/cloudstack using the
> > "
> https://github.com/apache/cloudstack/blob/master/setup/bindir/cloud-set-
> > guest-password.in" and the
> > "
> https://github.com/apache/cloudstack/blob/master/setup/bindir/cloud-set-
> > guest-sshkey.in" links.
> >
> > I have attached the entire log from the VR but have some snippets below
> along
> > with the VM client logs and the issue still occurs after fixing the dhcp
> lease file.
> > I did not perform any password resets via the GUI during this process.
> >
>
>


Re: Failed CloudStack 4.6 Upgrade

2015-11-25 Thread Rajani Karuturi
from which version are you trying to upgrade? Were there any custom changes
on top of ACS?

~Rajani

On Tue, Nov 24, 2015 at 3:39 AM, Dustin Wright <
dwri...@untangledtechnology.com> wrote:

> I’ve facing an SQL error while trying to upgrade a CloudStack environment.
> Any suggestions?
>
> [root@controller management]# tail management-server.log -f
> Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to
> execute upgrade script:
> /usr/share/cloudstack-management/setup/db/schema-452to460.sql
> at
> com.cloud.upgrade.DatabaseUpgradeChecker.runScript(DatabaseUpgradeChecker.java:284)
> at
> com.cloud.upgrade.DatabaseUpgradeChecker.upgrade(DatabaseUpgradeChecker.java:341)
> at
> com.cloud.upgrade.DatabaseUpgradeChecker.check(DatabaseUpgradeChecker.java:468)
> ... 45 more
> Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
> Duplicate column name 'min_iops'
> at com.cloud.utils.db.ScriptRunner.runScript(ScriptRunner.java:185)
> at com.cloud.utils.db.ScriptRunner.runScript(ScriptRunner.java:87)
> at
> com.cloud.upgrade.DatabaseUpgradeChecker.runScript(DatabaseUpgradeChecker.java:275)
> ... 47 more
> ^C
> [root@controller management]# mysql cloud <
> /usr/share/cloudstack-management/setup/db/schema-452to460.sql
> ERROR 1060 (42S21) at line 22: Duplicate column name 'min_iops'


Re: SSVM can not connect to Management

2015-11-17 Thread Rajani Karuturi
what is the java version? upgrading java or nss might help. details at
http://blog.backslasher.net/java-ssl-crash.html

~Rajani

On Wed, Nov 18, 2015 at 10:02 AM, Yan Bai  wrote:

> Hi All,
>
> I have an issue of connection between SSVM and Management server. I am
> using Cloudstack 4.5.2 and XenServer 6.2
>
> 192.168.1.10 is the Management server. I have turn off firewall of
> Management server.
>
>
> Below is the error log in SSVM(/var/log/cloud.log):
>
> 2015-11-18 04:21:37,989 INFO  [utils.nio.NioClient] (Agent-Selector:null)
> Connecting to 192.168.1.10:8250
>
> 2015-11-18 04:22:38,069 ERROR [utils.nio.NioConnection]
> (Agent-Selector:null) Unable to initialize the threads.
>
> java.io.IOException: Connection closed with -1 on reading size.
>
> at com.cloud.utils.nio.Link.doHandshake(Link.java:513)
>
> at com.cloud.utils.nio.NioClient.init(NioClient.java:81)
>
> at com.cloud.utils.nio.NioConnection.run(NioConnection.java:113)
>
> at java.lang.Thread.run(Thread.java:745)
>
> 2015-11-18 04:22:43,076 INFO  [utils.nio.NioClient] (Agent-Selector:null)
> Connecting to 192.168.1.10:8250
>
> 2015-11-18 04:23:43,154 ERROR [utils.nio.NioConnection]
> (Agent-Selector:null) Unable to initialize the threads.
>
> java.io.IOException: Connection closed with -1 on reading size.
>
> at com.cloud.utils.nio.Link.doHandshake(Link.java:513)
>
> at com.cloud.utils.nio.NioClient.init(NioClient.java:81)
>
> at com.cloud.utils.nio.NioConnection.run(NioConnection.java:113)
>
> at java.lang.Thread.run(Thread.java:745)
>
>
>
> I have ran health check in SSVM and everything looks fine:
>
> root@s-1-VM:/usr/local/cloud/systemvm# ./ssvm-check.sh
>
> 
>
> First DNS server is  192.168.1.1
>
> PING 192.168.1.1 (192.168.1.1): 48 data bytes
>
> 56 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=1.037 ms
>
> 56 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.895 ms
>
> --- 192.168.1.1 ping statistics ---
>
> 2 packets transmitted, 2 packets received, 0% packet loss
>
> round-trip min/avg/max/stddev = 0.895/0.966/1.037/0.071 ms
>
> Good: Can ping DNS server
>
> 
>
> Good: DNS resolves download.cloud.com
>
> 
>
> nfs is currently mounted
>
> 
>
> Management server is 192.168.1.10. Checking connectivity.
>
> Good: Can connect to management server port 8250
>
> 
>
> Good: Java process is running
>
> 
>
> Tests Complete. Look for ERROR or WARNING above.
>
>
> I feel like something with SSL connection. Seems that the connection
> between SSVM and Management server is SSL connection. So maybe something
> wrong with those ssl keys.
>
>
> -Yan
>


Re: Authentication with old LDAP passwords

2015-10-26 Thread Rajani Karuturi
ACS doesnt cache passwords. Everytime, the authentication requests goes to
the LDAP server.
In case of Microsoft AD, this is a AD feature. It allows authentication for
certain period of time. Default lifetime period for an old password is 60
minutes.
more details at https://support.microsoft.com/en-us/kb/906305

~Rajani

On Mon, Oct 26, 2015 at 8:00 PM, Rene Moser  wrote:

> ACS 4.5.1
>
> Hi
>
> We discovered an issue which can be security relevant and may also exist
> in 4.6.
>
> We use LDAP for user authentication, once a user is authenticated, it
> seems this password will be cached on cloudstack management.
>
> If the password has been changed on LDAP, the old password(s) still
> works for authentication unless you restart the management server.
>
> We didn't find a global setting related to this. Is this wanted?
>
> Otherwise I would create a bug report.
>
> Yours
> René
>
>
>
>


Re: Problem in Agent for system VM

2015-10-26 Thread Rajani Karuturi
virtual router will be created only when you launch an instance.

Regarding the connection issue, what is the java version?
upgrading java or nss might help.
details at http://blog.backslasher.net/java-ssl-crash.html

~Rajani

On Mon, Oct 26, 2015 at 8:51 PM, Ghaith Bannoura  wrote:

> Hello All,
> I installed Apache Cloud stack on my environment but after that i have
> multiple problems on it as per below :
> 1- Virtual router not created 2-system VMs (CPVM and SSVM) is running but
> the agent in the UI is not running , i used health check in SSVM
> (/usr/local/cloud/systemvm/ssvm-check.sh) and everything is appear running
> normally , but i checked the cloud.log  but i founded the error that as
> below :
> 2015-10-26 13:48:49,621 INFO  [utils.nio.NioClient] (Agent-Selector:null)
> Connecting to 192.168.100.2:82502015-10-26 13:49:35,461 ERROR
> [utils.nio.NioConnection] (Agent-Selector:null) Unable to initialize the
> threads.java.io.IOException: Connection closed with -1 on reading size.
> at com.cloud.utils.nio.Link.doHandshake(Link.java:513)at
> com.cloud.utils.nio.NioClient.init(NioClient.java:81)at
> com.cloud.utils.nio.NioConnection.run(NioConnection.java:113)at
> java.lang.Thread.run(Thread.java:745)2015-10-26 13:49:40,469 INFO
> [utils.nio.NioClient] (Agent-Selector:null) Connecting to
> 192.168.100.2:8250 ..
>
>
> the third problem that i have is no any templates or ISO can be downloaded
> , i think this problem related for the agent in SSVM and CPVM .
>
> Please advice how can i resolve this issue .
>
> Best RegardsGhaith Bannoura
>


Re: Instance reboot issue - CS 4.5.1 - Xen 6.5

2015-09-03 Thread Rajani Karuturi
its in 4.5.2 and will also be in 4.6.0

~Rajani

On Wed, Sep 2, 2015 at 5:33 PM, cs user  wrote:

> Hi Folks,
>
> Looks like this is fixed in https://github.com/apache/cloudstack/pull/479
> ?
>
> Which cloudstack release contains this fix?
>
> Many thanks!
>
> On Wed, Sep 2, 2015 at 11:16 AM, cs user  wrote:
>
> > Forwarding to users channel in case anyone else has seen this...
> >
> >
> >
> > Hi All,
> >
> > We have seen this in 2 separate environments, both running the same
> > versions of Cloudstack and Xenserver. When we reboot an instance, we lose
> > access to it.
> >
> > Looking at the iptables config on the xen host, we can see that the vif
> is
> > incremented for the bridged entries, but not updated for the rules.
> >
> > For example, this is how the iptables look before a reboot:
> >
> > [root@xen001 cloud]# iptables -L|grep 25075
> > i-2-25075-def  all  --  anywhere anywhere PHYSDEV
> > match --physdev-in vif108.0 --physdev-is-bridged
> > i-2-25075-def  all  --  anywhere anywhere PHYSDEV
> > match --physdev-out vif108.0 --physdev-is-bridged
> > Chain i-2-25075-VM (1 references)
> > Chain i-2-25075-VM-eg (1 references)
> > Chain i-2-25075-def (2 references)
> > RETURN udp  --  anywhere anywhere PHYSDEV
> > match --physdev-in vif108.0 --physdev-is-bridged match-set i-2-25075-VM
> src
> > udp dpt:domain
> > DROP   all  --  anywhere anywhere PHYSDEV
> > match --physdev-in vif108.0 --physdev-is-bridged ! match-set i-2-25075-VM
> > src
> > DROP   all  --  anywhere anywhere PHYSDEV
> > match --physdev-out vif108.0 --physdev-is-bridged ! match-set
> i-2-25075-VM
> > dst
> > i-2-25075-VM-eg  all  --  anywhere anywhere
> > PHYSDEV match --physdev-in vif108.0 --physdev-is-bridged match-set
> > i-2-25075-VM src
> > i-2-25075-VM  all  --  anywhere anywhere PHYSDEV
> > match --physdev-out vif108.0 --physdev-is-bridged
> >
> > After a reboot, we can see the following:
> >
> > [root@xen001 cloud]# iptables -L|grep 25075
> > i-2-25075-def  all  --  anywhere anywhere PHYSDEV
> > match --physdev-in vif109.0 --physdev-is-bridged
> > i-2-25075-def  all  --  anywhere anywhere PHYSDEV
> > match --physdev-out vif109.0 --physdev-is-bridged
> > Chain i-2-25075-VM (1 references)
> > Chain i-2-25075-VM-eg (1 references)
> > Chain i-2-25075-def (2 references)
> > RETURN udp  --  anywhere anywhere PHYSDEV
> > match --physdev-in vif108.0 --physdev-is-bridged match-set i-2-25075-VM
> src
> > udp dpt:domain
> > DROP   all  --  anywhere anywhere PHYSDEV
> > match --physdev-in vif108.0 --physdev-is-bridged ! match-set i-2-25075-VM
> > src
> > DROP   all  --  anywhere anywhere PHYSDEV
> > match --physdev-out vif108.0 --physdev-is-bridged ! match-set
> i-2-25075-VM
> > dst
> > i-2-25075-VM-eg  all  --  anywhere anywhere
> > PHYSDEV match --physdev-in vif108.0 --physdev-is-bridged match-set
> > i-2-25075-VM src
> > i-2-25075-VM  all  --  anywhere anywhere PHYSDEV
> > match --physdev-out vif108.0 --physdev-is-bridged
> >
> > You can see that the bridged entries have been incremented to vif109,
> > where as the rules still reference vif108.
> >
> > Stopping the instance appears to clear out the rules, and then everything
> > works fine again once the instance is started.
> >
> > Is this a known issue? Is anyone able to replicate this?
> >
> > Cheers!
> >
> >
>


Re: Facing BOOT issues (if DATA drives are attached) on VMs in CCP 4.5.0

2015-09-02 Thread Rajani Karuturi
whats the host and guest os?

~Rajani

On Wed, Sep 2, 2015 at 2:33 PM, anil lakineni <
anilkumar459.lakin...@gmail.com> wrote:

> Hi All,
>
> We are facing boot issues when VMs have DATA drives.
>
>
> *After VM was shut down we were unable to power on server unless we detach
> Data Drive.*
>
> We are using Citrix Cloud Portal 4.5.0 and XenServer 6.2
>
> *Note: *We have not facing this issue on some of the VM's which also have
> DATA drives but facing this kind of boot issue on only some VMs.
>
> If any one would have this kind of issue, please let us know the persistent
> solution to fix the issue.
> Thanks in advance.
>
> Regards,
> Anil.
>


Re: CentOS 5.5(64-bit) no GUI (KVM) not ready

2015-08-26 Thread Rajani Karuturi
check the value of host in configuration table. 
select * from configuration where name like ‘host’;
Change it to the right value and destroy SSVM.

~Rajani



On 26-Aug-2015, at 7:05 pm, Cristian Ciobanu cristian.c@istream.today wrote:

 Hello,
 
 Yes, i found something and i know why is not able to connect to the host 
 ( the ip from the log is a external IP from the management server, I'm not 
 sure why is try to connect via this IP.
 
 2015-08-26 13:29:38,412 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
 Connecting to 167.114.xxx.xx:8250 ( 
 2015-08-26 13:29:41,411 ERROR [utils.nio.NioConnection] (Agent-Selector:null) 
 Unable to initialize the threads.
 java.net.NoRouteToHostException: No route to host
 
  Also i was able to connect to this System VM only via virsh console:
 
 [root@kvm001 agent]# ssh -i /root/.ssh/id_rsa.cloud 172.20.255.12 -p 3922  
 (Private IP)
 ssh: connect to host 172.20.255.12 port 3922: Connection refused
 [root@kvm001 agent]# ssh -i /root/.ssh/id_rsa.cloud 172.20.255.12 -p 22  
 (Private IP)
 
 [root@kvm001 agent]# virsh console s-3-VM
 Connected to domain s-3-VM
 
  Can you let me know how to change this ?
 
 Regards,
 Cristian
 
 
 Regards,
 Cristian
 www.istream.today [http://www.istream.today/]
 www.shape.host [http://www.shape.host/]
 +40.733.955.922
  
 On 8/26/2015 4:23:15 PM, Erik Weber terbol...@gmail.com wrote:
 Log in to the SSVM and view any relevant logs (/var/log/*).
 Also, is there anything in your management server logs?
 
 
 --
 Erik
 
 On Wed, Aug 26, 2015 at 3:05 PM, ShapeHost wrote:
 
 Hello,
 
 I installed the cloudstack finally and works, but i have a issue
 regarding Templates, when i check the status for
 CentOS 5.5(64-bit) no GUI (KVM) i see (Ready - NO)
 also i'm not able to deploy new instance because i don't have templates.
 i tried to add an ISO, but without success ( Ready - NO )
 
 My environment is configured in this way :
 
 1x Cent OS 6 - Management
 1x Cent OS 6 - KVM
 
 I have configured with local storage. also i have the System VM's up
 and running:
 
 1x Secondary Storage VM
 1x Console Proxy VM
 
 I'm not sure how to fix those issue, because i don't see nothing
 relevant in the logs ( or maybe i don't understand )
 
 
 
 Can someone provide i little help ?
 
 Thanks you !
 
 
 
 Regards,
 Cristian
 



Re: Usage Records are still generating even VM removed.

2015-08-18 Thread Rajani Karuturi
update the usage_event table with VM.DESTROY event for this vm.
I would say create a vm, destroy it and observer the entries in usage_event
table. create a similar entry for the manually destroyed vm.


~Rajani

On Tue, Aug 18, 2015 at 12:12 AM, raja sekhar rajsekhar@gmail.com
wrote:

 Hi All,

 The usage records are still generating even if the vm is removed from
 cloudstack.
 The actual scenario is:
 The xenserver host went to alert state and the vms in it are not
 accessible.
 we have removed the vms from backend by updating vm_instance,volume table.
 can any one help me what is the exact table to update?
 i am using cloudstack 4.2

 waiting for your valuable suggestions.


 regards,
 rajasekhar.



Re: Usage Records are still generating even VM removed.

2015-08-18 Thread Rajani Karuturi
, 2015 at 11:49 AM, Rajani Karuturi raj...@apache.org
 wrote:

  update the usage_event table with VM.DESTROY event for this vm.
  I would say create a vm, destroy it and observer the entries in
 usage_event
  table. create a similar entry for the manually destroyed vm.
 
 
  ~Rajani
 
  On Tue, Aug 18, 2015 at 12:12 AM, raja sekhar rajsekhar@gmail.com
  wrote:
 
   Hi All,
  
   The usage records are still generating even if the vm is removed from
   cloudstack.
   The actual scenario is:
   The xenserver host went to alert state and the vms in it are not
   accessible.
   we have removed the vms from backend by updating vm_instance,volume
  table.
   can any one help me what is the exact table to update?
   i am using cloudstack 4.2
  
   waiting for your valuable suggestions.
  
  
   regards,
   rajasekhar.
  
 



Re: Few implementation questions

2015-07-28 Thread Rajani Karuturi
For 1: I am working on the following feature. This might be done in 4.7
timeframe. Please review and give your comments/suggestions
https://cwiki.apache.org/confluence/display/CLOUDSTACK/LDAP%3A+Trust+AD+and+Auto+Import
For 2: Thats the expected behaviour


~Rajani

On Mon, Jul 27, 2015 at 11:34 PM, Lior Moneta monetali...@gmail.com wrote:

 Hi,
 I'm implementing CS in my environment and I encountered a few issues I
 couldn't find a clear answer to online.

 A little bit about my environment:

- I'm currently using one management server that holds both the MySQL DB
and the NFS for the secondary storage.
- I'm using vSphere 5.5 as my hypervisor.
- I've installed CloudStack 4.5.1.

 These are my questions:

1. *Microsoft LDAP integration* - I succeeded to integrate CS with my MS
AD but it seems that I have to manage all the users manually and I can't
find a way to manage it with AD groups. Is there a way to create a CS
account for a specific AD group? I would like to manage the users for
 the
accounts in the AD level and not manually in CS. I succeeded to create
 an
account that takes all the users from a specific group but it doesn't
update when I add a new user to the AD group.
2. *Duplicate for templates on each primary storage* - I have 2 primary
storage (2 VMware vmfs datastores) and I noticed that If the template
doesn't yet exists on the datastore on which it deploys the VM, CS copy
 the
template from the secondary storage to that datastore although the
 template
already exist on the second datastore. Should it behave like that? Is
 there
a way to fix it?
3. *Console delay* - I'm experiencing about 1 second delay between my
actions and the response from the VM's console. This is an issue for me
since the VM's are going to be accessed only by the console window and
 not
by remote desktop or SSH. Wondering if this behavior is normal or is
 there
any configuration I need to implement in order to fix it. I'm
 experiencing
this delay both in Windows and Linux VM's with VMware Tools installed
 and
updated to the latest version.

 Thanks!
 Lior.



Re: User data is too long for an http GET request

2015-07-17 Thread Rajani Karuturi
I agree with this approach. But, the default shouldnt be GET but
configurable.

and each api call can have the additional requesttype=[POST|GET|PUT] to
overwrite the default

~Rajani

On Fri, Jul 17, 2015 at 5:30 PM, Pierre-Luc Dion pd...@cloudops.com wrote:

 Their is the possibility that sysadmin managing CloudStack would block
 request type POST on their firewall. Because of that I would be tempted to
 ask for a param in cloudmonkey for the request type.  So when you use
 deploy virtualmachine userdata=ASDASHDAD name=...  we could add the param
 requesttype=post and by default it would be a get.

 Or the user simplicity method, automatically do a post if the query is
 larger then 2KB.

 Cheers,


 On Fri, Jul 17, 2015 at 5:30 AM, Rohit Yadav rohit.ya...@shapeblue.com
 wrote:

   How about we add feature in CloudMonkey to do HTTP post for non-listing
  APIs? Should we do it, or add a specific if-else for this API call?
 
  On 16-Jul-2015, at 9:31 pm, Pierre-Luc Dion pd...@cloudops.com wrote:
 
  Martins,
 
  post will work,  if there is no feature request on cloudmonkey could you
  add one in Jira ? I found too that it could be a valuable feature to
  cloudmonkey.
 
 
  ref:
  http://docs.cloudstack.apache.org/projects/cloudstack-
  administration/en/4.5/virtual_machines.html#user-data-and-meta-data
 
  Cheers,
 
 
 
  On Thu, Jul 16, 2015 at 9:31 AM, Mārtiņš Jakubovičs mart...@vertigs.lv
  wrote:
 
  Looks like API calls with GET method can have only 4KB of userdata, but
  with POST it can be till 32 KB.
 
 
 
 https://github.com/apache/cloudstack/blob/master/server/src/com/cloud/vm/UserVmManagerImpl.java#L3434
  CloudMonkey use GET method, when change method in source code to POST it
  is possible to send API calls with bigger userdata.
 
 
  On 2015.07.16. 15:31, Mārtiņš Jakubovičs wrote:
 
  Hello,
 
  I try to push 8KB user-data when deploy new instance though cloudmonkey,
  but I receive error message:
 
  Error 431: User data is too long for an http GET request
  cserrorcode = 4350
  errorcode = 431
  errortext = User data is too long for an http GET request
  uuidList:
 
  Looks like CloudStack can't handle so big request, but as documentation
  describe, it should handle till 32KB.
  http://cloudstack-administration.readthedocs.org/en/4.3/api.html
 
  ACS 4.3.2.
 
  Best regards,
  Martins
 
 
 
 
  Regards,
  Rohit Yadav
  Software Architect, ShapeBlue
 
 
 
 
  M. +91 88 262 30892 | rohit.ya...@shapeblue.com
  Blog: bhaisaab.org | Twitter: @_bhaisaab
 
 
 
 
   Find out more about ShapeBlue and our range of CloudStack related
  services
 
  IaaS Cloud Design  Build
  http://shapeblue.com/iaas-cloud-design-and-build//
  CSForge – rapid IaaS deployment framework http://shapeblue.com/csforge/
 
  CloudStack Consulting http://shapeblue.com/cloudstack-consultancy/
  CloudStack Software Engineering
  http://shapeblue.com/cloudstack-software-engineering/
  CloudStack Infrastructure Support
  http://shapeblue.com/cloudstack-infrastructure-support/
  CloudStack Bootcamp Training Courses
  http://shapeblue.com/cloudstack-training/
 
  This email and any attachments to it may be confidential and are intended
  solely for the use of the individual to whom it is addressed. Any views
 or
  opinions expressed are solely those of the author and do not necessarily
  represent those of Shape Blue Ltd or related companies. If you are not
 the
  intended recipient of this email, you must neither take any action based
  upon its contents, nor copy or show it to anyone. Please contact the
 sender
  if you believe you have received this email in error. Shape Blue Ltd is a
  company incorporated in England  Wales. ShapeBlue Services India LLP is
 a
  company incorporated in India and is operated under license from Shape
 Blue
  Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in
 Brasil
  and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd
 is
  a company registered by The Republic of South Africa and is traded under
  license from Shape Blue Ltd. ShapeBlue is a registered trademark.
 



Re: enable local storage

2015-05-29 Thread Rajani Karuturi
As far as I know, that is not possible.

~Rajani

On Thu, May 28, 2015 at 8:41 PM, S. Brüseke - proIO GmbH 
s.brues...@proio.com wrote:

 Is it possible to attach only specific local storage to CS? We using raid1
 for XenServer installation and during installation xs created local storage
 of the rest of this raid1. We installed a new raid5 with ssd and named it
 localSSD. This is the local storage with I want CS installing instances
 on.

 Mit freundlichen Grüßen / With kind regards,

 Swen Brüseke

 -Ursprüngliche Nachricht-
 Von: Koushik Das [mailto:koushik@citrix.com]
 Gesendet: Donnerstag, 28. Mai 2015 15:57
 An: users@cloudstack.apache.org
 Betreff: Re: enable local storage

 After enabling local storage for zone, MS restart is required for local
 storage to be discovered for already added hosts. For new hosts it gets
 added at the time of adding host.

 On 28-May-2015, at 7:03 PM, S. Brüseke - proIO GmbH s.brues...@proio.com
 wrote:

  Hi,
 
  I installed new disks in some of our XenServer hosts and added the raid
 to the XenServer-host. Now I need to add this new storage to CS.
  I enabled local storage for the zone, but I am still unable to see the
 new local storage as primary storage. Is there some kind of cron which
 needs to run before I see this storage on infrastructure tab in CS UI? Does
 the local storage needs to use a specific name or can I use a random name
 as name-label inside XenServer?
 
  Mit freundlichen Grüßen / With kind regards,
 
  Swen Brüseke
 
 
 
 
  - proIO GmbH -
  Geschäftsführer: Swen Brüseke
  Sitz der Gesellschaft: Frankfurt am Main
 
  USt-IdNr. DE 267 075 918
  Registergericht: Frankfurt am Main - HRB 86239
 
  Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
 Informationen.
  Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
  erhalten haben, informieren Sie bitte sofort den Absender und vernichten
 Sie diese Mail.
  Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind
 nicht gestattet.
 
  This e-mail may contain confidential and/or privileged information.
  If you are not the intended recipient (or have received this e-mail in
  error) please notify the sender immediately and destroy this e-mail.
  Any unauthorized copying, disclosure or distribution of the material in
 this e-mail is strictly forbidden.
 
 




 - proIO GmbH -
 Geschäftsführer: Swen Brüseke
 Sitz der Gesellschaft: Frankfurt am Main

 USt-IdNr. DE 267 075 918
 Registergericht: Frankfurt am Main - HRB 86239

 Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
 Informationen.
 Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
 erhalten haben,
 informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
 Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind
 nicht gestattet.

 This e-mail may contain confidential and/or privileged information.
 If you are not the intended recipient (or have received this e-mail in
 error) please notify
 the sender immediately and destroy this e-mail.
 Any unauthorized copying, disclosure or distribution of the material in
 this e-mail is strictly forbidden.





Re: enable local storage

2015-05-28 Thread Rajani Karuturi
Do a host reconnect or management server restart. They will automatically
be show under primary storage.


On Thu, May 28, 2015 at 19:03 PM, S. Brüseke - proIO GmbH 
s.brues...@proio.com wrote:

Hi,

I installed new disks in some of our XenServer hosts and added the raid to
the XenServer-host. Now I need to add this new storage to CS.
I enabled local storage for the zone, but I am still unable to see the new
local storage as primary storage. Is there some kind of cron which needs to
run before I see this storage on infrastructure tab in CS UI? Does the
local storage needs to use a specific name or can I use a random name as
name-label inside XenServer?

Mit freundlichen Grüßen / With kind regards,

Swen Brüseke




- proIO GmbH -
Geschäftsführer: Swen Brüseke
Sitz der Gesellschaft: Frankfurt am Main

USt-IdNr. DE 267 075 918
Registergericht: Frankfurt am Main - HRB 86239

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
erhalten haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind
nicht gestattet.

This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail in
error) please notify
the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the material in
this e-mail is strictly forbidden.




-- 
-
Sent from Windows Phone
~Rajani


Re: Unable to set SSVM

2015-05-22 Thread Rajani Karuturi
for the private ips issue, take a look at this
https://issues.apache.org/jira/browse/CLOUDSTACK-4735 it might be related.

check this wiki for troubleshooting SSVM
https://cwiki.apache.org/confluence/display/CLOUDSTACK/SSVM,+templates,+Secondary+storage+troubleshooting


~Rajani

On Tue, May 12, 2015 at 3:02 PM, mer...@students.iitmandi.ac.in wrote:

 Hi,

 I have installed Cloudstack4.4 on Ubuntu 14.04 server system. The server
 system has an IP Address:-10.8.15.5 gw: 10.8.0.1
 I used basic setup to begin with. I gave POD a series of 5 IP's beginning
 with 10.8.2.11-10.8.2.15 and then set up guest VM's with another 5 IP's
 10.8.2.16-10.8.2.20.
 On the server system I followed the :

 http://www.greenhills.co.uk/2015/02/23/cloudstack-4.4-single-server-on-ubuntu-14.04.1-with-kvm.html
 guide and set up primary and secondary storage.
 Also the Cloudstack agent and management server are all on one
 system(server). The various problems faced:

 1) Now after having successfully launched the zones,pods,clusters,host
 and storage, I cant download an ISO image(cent o.s) and if, I upload an
 ISO image. It gets uploaded but in the properties shows no option to
 download or copy. Similarly for templates.
 2) After few hours on the dashboard-system capacity page, The secondary
 storage reads- 0.00Kb/0.00Kb
 And when I open the Infrastructure page , the system VM's page, has SSVm
 disconnected. It tries to reconnect and recreate. like s-1086-vm, s-108-vm
 and keeps getting disconnected.
 3) Also I followed  the guide to ping and ssh to run the ./install.sh
 script in the secondary storage, But I am unable to do so(Public IP
 Address 10.8.2.19
 Private IP Address  10.8.2.11
 Link Local IP Address   169.254.2.1) on any one of them.
 4) There is no virtual router.
 5) There were few errors on dashboard , that I do not understand, or find
 any posts related to
 (i)No usage server process running
 (ii)System Alert: Number of unallocated private IPs is low in pod test_pod
 of availability zone test_zone
 (iii)Management network CIDR is not configured originally. Set it default
 to 10.8.0.0/16
 (iv)VM state sync alert






Re: Incorrect Network setup on agent

2015-05-21 Thread Rajani Karuturi
Hi Vladislav,
As per the bug you mentioned, its fixed in 4.2.
Which version of cloudstack are you using? If its not working in 4.2+, can
you reopen the bug?

~Rajani

On Wed, May 20, 2015 at 10:39 PM, Vladislav Nazarenko 
vladislav.nazare...@gmail.com wrote:

 Found the problem by googling  renamed network interfaces rom pXpY to
 ethZ

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



 On 20.05.2015 18:30, Vladislav Nazarenko wrote:

 Hi Vadim,

 thanx for your response ...

 my setup:

 1. KVM

 2. Network

 eth0
   cloudbr0 (mgmt) (X.X.X.176/28)
 public (X.X.X.0/24)

 eth1
   cloudbr1
 guest 10.0.30.0/21 VLAN 20-39
 storage  10.0.40.0/24 VLAN 40

 3. Cloudstack 4.4.3 on centos 7
Advanced zone

 4. Agent Conf
 #Storage
 #Wed May 20 18:27:31 CEST 2015
 guest.network.device=cloudbr1
 workers=5
 private.network.device=cloudbr0
 port=8250
 resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
 pod=1
 zone=1
 hypervisor.type=kvm
 guid=f6ce77af-ebe3-31b7-b8b6-fcc58dad925e
 public.network.device=cloudbr0
 cluster=1
 local.storage.uuid=c37e767f-911b-4503-816a-7b965a962661
 domr.scripts.dir=scripts/network/domr/kvm
 LibvirtComputingResource.id=0
 host=X.X.X.178


 Logs on the compute node:
 2015-05-20 18:28:44,327{GMT} INFO  [utils.nio.NioClient]
 (Agent-Selector:) SSL: Handshake done
 2015-05-20 18:28:44,328{GMT} INFO  [utils.nio.NioClient]
 (Agent-Selector:) Connected to X.X.X.178:8250
 2015-05-20 18:28:44,452{GMT} INFO  [cloud.agent.Agent] (Agent-Handler-2:)
 Proccess agent startup answer, agent id = 0
 2015-05-20 18:28:44,452{GMT} INFO  [cloud.agent.Agent] (Agent-Handler-2:)
 Set agent id 0
 2015-05-20 18:28:44,453{GMT} INFO  [cloud.agent.Agent] (Agent-Handler-2:)
 Startup Response Received: agent id = 0
 2015-05-20 18:28:44,638{GMT} INFO  [agent.transport.Request]
 (UgentTask-5:) not building log message for '[{}]', _cmds.length == 1
 2015-05-20 18:28:44,639{GMT} WARN  [cloud.agent.Agent] (UgentTask-5:)
 Unable to send request: null
 2015-05-20 18:28:44,726{GMT} INFO  [agent.transport.Request]
 (Agent-Handler-4:) not building log message for '[{}]', _cmds.length == 1
 2015-05-20 18:28:44,726{GMT} WARN  [cloud.agent.Agent] (Agent-Handler-4:)
 Unable to send response: null
 2015-05-20 18:28:49,329{GMT} INFO  [cloud.agent.Agent] (Agent-Handler-1:)
 Connected to the server
 2015-05-20 18:28:49,600{GMT} INFO  [cloud.agent.Agent] (Agent-Handler-1:)
 Lost connection to the server. Dealing with the remaining commands...



 Alerts in the dashboard

 Incorrect Network setup on agentReinitialize agent after network names
 are setupdetails : Can not find network: cloudbr0

 20 May 2015 18:11:52



 On 19.05.2015 21:39, Vadim Kimlaychuk wrote:

 Vlad,

You should provide a little bit more than that.  At least the
 following:
 1. Hypervisor type and version.
 2. Network setup (physical and logical). In brief. I guess you use KVM,
 so do you have openvswitch or do you use linux bridge?
 3. Cloudstack version and type of zone you are trying to configure
 (basic, advanced) ?
 4. Agent conf file would be also great

 Vadim
 
 From: Vladislav Nazarenko vladislav.nazare...@gmail.com
 Sent: Tuesday, May 19, 2015 19:09
 To: users@cloudstack.apache.org
 Subject: Incorrect Network setup on agent

 Hi Everybody,

 getting the following error trying to install a cloudstack agent. Can
 anybody help?

 Incorrect Network setup on agent, Reinitialize agent after network names
 are setup, details : Can not find network: mgmtbr

 Please advice
 Vlad







Re: CPVM does not listen on port 443

2015-05-13 Thread Rajani Karuturi
which version of ACS are you using?
Can you check the property values in consoleproxy.properties file?  Its at
/usr/local/cloud/systemvm/conf/consoleproxy.properties on CPVM

~Rajani

On Thu, May 14, 2015 at 9:56 AM, Vadim Kimlaychuk vadim.kimlayc...@elion.ee
 wrote:

 Hello all,


   I have replaced router at my network and after that noticed CPVM
 has stopped to work. Connection to management server has been established
 correctly. Agent state at UI is UP

 Troubleshooting console proxy I have found that there is no listener on
 public interface port 443.  I have tried to restart VM several times with
 no success.  Reading cloud.out file shows some strange lines:

 2015-05-14 03:53:04,339 INFO  [cloud.consoleproxy.ConsoleProxy]
 (Console-Proxy-Main:null) Property name: v-2-VM
 2015-05-14 03:53:04,339 INFO  [cloud.consoleproxy.ConsoleProxy]
 (Console-Proxy-Main:null) Property consoleproxy.reconnectMaxRetry: 5
 2015-05-14 03:53:04,339 INFO  [cloud.consoleproxy.ConsoleProxy]
 (Console-Proxy-Main:null) Property consoleproxy.tcpListenPort: 0

   . and further on...
 2015-05-14 03:53:04,344 INFO  [cloud.consoleproxy.ConsoleProxy]
 (Console-Proxy-Main:null) Property mgmtcidr: 192.2.0.1/24 -- I have mgmt
 network at 172.17.0.0/24 and public net has /25 net mask so this is
 totally wrong

 Should 443 port be mentioned here or consoleproxy.tcpListenPort: 0 is
 bogus?
 How router replacement has interfered local process start-up ? Where to
 search errors  -- cloud.out does not give me a hint about wrong behaviour?


 Please, help me to find the reason why listener is not starting.


 Thanks,


 Vadim



Re: CPVM does not listen on port 443

2015-05-13 Thread Rajani Karuturi
I have the exact same values on a 4.5 setup.

As far as I see from the code, tcpListenPort is not used. httpListenPort is
the one that is used.
It is hardcoded to 443 if the property premium is set to true

So, If you want it to listen on 443 and use secure connection, you could
try adding premium=true in the consoleproxy.properties file.


~Rajani

On Thu, May 14, 2015 at 11:12 AM, Vadim Kimlaychuk 
vadim.kimlayc...@elion.ee wrote:

 I am using CS 4.5.1-RC20150407

 consoleproxy.properties file :
 
 consoleproxy.tcpListenPort=0
 consoleproxy.httpListenPort=80
 consoleproxy.httpCmdListenPort=8001
 consoleproxy.jarDir=./applet/
 consoleproxy.viewerLinger=180
 consoleproxy.reconnectMaxRetry=5
 -

 Vadim.

 -Original Message-
 From: Rajani Karuturi [mailto:raj...@apache.org]
 Sent: Thursday, May 14, 2015 8:38 AM
 To: users@cloudstack.apache.org
 Subject: Re: CPVM does not listen on port 443

 which version of ACS are you using?
 Can you check the property values in consoleproxy.properties file?  Its at
 /usr/local/cloud/systemvm/conf/consoleproxy.properties on CPVM

 ~Rajani

 On Thu, May 14, 2015 at 9:56 AM, Vadim Kimlaychuk 
 vadim.kimlayc...@elion.ee
  wrote:

  Hello all,
 
 
I have replaced router at my network and after that noticed
  CPVM has stopped to work. Connection to management server has been
  established correctly. Agent state at UI is UP
 
  Troubleshooting console proxy I have found that there is no listener
  on public interface port 443.  I have tried to restart VM several
  times with no success.  Reading cloud.out file shows some strange lines:
 
  2015-05-14 03:53:04,339 INFO  [cloud.consoleproxy.ConsoleProxy]
  (Console-Proxy-Main:null) Property name: v-2-VM
  2015-05-14 03:53:04,339 INFO  [cloud.consoleproxy.ConsoleProxy]
  (Console-Proxy-Main:null) Property consoleproxy.reconnectMaxRetry: 5
  2015-05-14 03:53:04,339 INFO  [cloud.consoleproxy.ConsoleProxy]
  (Console-Proxy-Main:null) Property consoleproxy.tcpListenPort: 0
 
. and further on...
  2015-05-14 03:53:04,344 INFO  [cloud.consoleproxy.ConsoleProxy]
  (Console-Proxy-Main:null) Property mgmtcidr: 192.2.0.1/24 -- I have
  mgmt network at 172.17.0.0/24 and public net has /25 net mask so this
  is totally wrong
 
  Should 443 port be mentioned here or consoleproxy.tcpListenPort: 0 is
  bogus?
  How router replacement has interfered local process start-up ? Where
  to search errors  -- cloud.out does not give me a hint about wrong
 behaviour?
 
 
  Please, help me to find the reason why listener is not starting.
 
 
  Thanks,
 
 
  Vadim
 



Re: [urgent] not able to start SSVM in new deployment.

2015-04-17 Thread Rajani Karuturi
Can you check smlog on xenserver?
/var/log/SMlog

~Rajani

On Fri, Apr 17, 2015 at 4:51 PM, Tejas Sheth tshet...@gmail.com wrote:

 installed vhd-util on
 /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver and also i
 have copied vhd-util to xenservers manually in /opt/xensource/bin and
 /opt/cloud/bin and then i added xenservers to cloudstack

  Still the same issue System VMs are not able to start on hypervisor

 Updated logs
 http://pastebin.com/BZg0sj2u

 Thanks,
 Tejas


 On Fri, Apr 17, 2015 at 3:34 PM, Erik Weber terbol...@gmail.com wrote:

  Did you remember to copy vhd-util as per [1]?
 
 
  [1]
 
 
 http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.4/installation.html#management-server-installation
 
 
  --
  Erik
 
  On Fri, Apr 17, 2015 at 10:22 AM, Tejas Sheth tshet...@gmail.com
 wrote:
 
   following is the log link
  
   https://s3-ap-southeast-1.amazonaws.com/fbstest/management-server.log
  
   really appreciate in advance
  
   Thanks,
   Tejas
  
   On Fri, Apr 17, 2015 at 1:15 PM, Tejas Sheth tshet...@gmail.com
 wrote:
  
Hello,
   
  I have deployed cloudstack 4.3 with septate database server. once
initial configuration finishes i do not see any system vm comming up
 on
   any
of the Xenservers (6.2 SP1).
   
 NOTE: i am using preSetup primary storage in xenserver.
   
  I know its kinda lame and frequently asked question but i have
 tried
many times deploying template on secondary storage and reconfigured
cloudstack but no effect.
   
 Can any one guide me for the same?
   
Thanks
   
  
 



Re: No response received when trying to login

2015-04-16 Thread Rajani Karuturi
Can you check if its blocked on raising the login event? probably activemq
is down or the events table is full..

~Rajani

On Thu, Apr 16, 2015 at 1:35 PM, Erik Weber terbol...@gmail.com wrote:

 I have a Cloudstack 4.3.2 installation, where most apis work with
 cloudmonkey, but I'm unable to login to the UI.

 Looking at developer tools I can see the request going, and in the ACS log
 I can see that the user is authenticated, but the HTTP request does not get
 any response (neither headers nor body).

 I've got no errors or exceptions in the log to help troubleshoot it..

 Anyone got any clues or experienced similar?

 --
 Erik



Re: volume download link will not be deleted

2015-04-07 Thread Rajani Karuturi
bug exists on 4.5.1 as well. Can you log it in jira?


~Rajani

On Tue, Apr 7, 2015 at 5:50 PM, S. Brüseke - proIO GmbH 
s.brues...@proio.com wrote:

 Hi,

 we are using CS 4.3.0.2 and I think we found a bug.

 1. Create a volume out of a snapshot
 2. Extract (download) the volume via UI
 3. Delete volume

 If you do this the garbage collector will not delete the symlink on
 secondary storage in /var/www/html/userdata/
 If you do not delete the volume before the garbage collector time the
 symlink will be removed!

 Is this a known bug?
 Can somebody test this on CS 4.5.1?

 Thank you for your help!

 Mit freundlichen Grüßen / With kind regards,

 Swen Brüseke



 - proIO GmbH -
 Geschäftsführer: Swen Brüseke
 Sitz der Gesellschaft: Frankfurt am Main

 USt-IdNr. DE 267 075 918
 Registergericht: Frankfurt am Main - HRB 86239

 Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
 Informationen.
 Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
 erhalten haben,
 informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
 Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind
 nicht gestattet.

 This e-mail may contain confidential and/or privileged information.
 If you are not the intended recipient (or have received this e-mail in
 error) please notify
 the sender immediately and destroy this e-mail.
 Any unauthorized copying, disclosure or distribution of the material in
 this e-mail is strictly forbidden.





Re: CloudStack Dev Environment

2015-03-31 Thread Rajani Karuturi
you could start with
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Development+101

and then proceed to
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Coding+conventions

dev environment setup
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+CloudStack+Development+Environment

github PRs https://github.com/apache/cloudstack/pulls





~Rajani

On Tue, Mar 31, 2015 at 4:24 PM, mvs babu mvsbabu0...@outlook.com wrote:

 Hi Team,




 Can any one share a step by step document to set up CloudStack development
 environment?



 Thank you,

 Suneel.




 Sent from Windows Mail


Re: [ANNOUNCE] New committer: Karen Vuong

2015-03-19 Thread Rajani Karuturi
Congratulations Karen!!

~Rajani

On Fri, Mar 20, 2015 at 9:32 AM, Ahmad Emneina aemne...@gmail.com wrote:

 WOW! Well deserved Karen!!! Congrats!

 On Thu, Mar 19, 2015 at 8:55 PM, Koushik Das koushik@citrix.com
 wrote:

  Congrats Karen!
 
  On 20-Mar-2015, at 3:37 AM, Pierre-Luc Dion pd...@cloudops.com wrote:
 
   The Project Management Committee (PMC) for Apache CloudStack
   has asked Karen Vuong to become a committer and we are pleased to
   announce that she have accepted.
  
   Karen is doing a huge effort on promoting CloudStack and organizing
   events such as CloudStack days, CloudStack collaboration conferences
   and meetups. She is helping a lot on the marketing effort as well.
  
   Being a committer allows many contributors to contribute more
   autonomously. For developers, it makes it easier to submit changes and
   eliminates the need to have contributions reviewed via the patch
   submission process. Whether contributions are development-related or
   otherwise, it is a recognition of a contributor's participation in the
   project and commitment to the project and the Apache Way.
  
   Please join me in congratulating Karen (karenv)
  
   --Pierre-Luc
   on behalf of the CloudStack PMC
 
 



Re: SSVM could not access Management Server.

2014-11-10 Thread Rajani Karuturi
Did you check if the agent is running on SSVM?
This wiki might help.
https://cwiki.apache.org/confluence/display/CLOUDSTACK/SSVM,+templates,+Secondary+storage+troubleshooting

~Rajani

On Tue, Nov 11, 2014 at 5:04 AM, Dan Dong dongda...@gmail.com wrote:

 Some more info, on SSVM I can see the following routes, there is route
 there, so why SSVM(eth2: 192.168.0.134) could not contact Management
 Server(192.168.0.100)? Can someone help here? Thanks
 root@s-1-VM:~# ip route
 default via 192.168.0.100 dev eth2
 169.254.0.0/16 dev eth0  proto kernel  scope link  src 169.254.1.47
 172.20.10.0/24 via 192.168.0.100 dev eth1
 172.20.10.30 via 192.168.0.100 dev eth1
 192.168.0.0/24 dev eth1  proto kernel  scope link  src 192.168.0.22
 192.168.0.0/24 dev eth2  proto kernel  scope link  src 192.168.0.134
 192.168.0.0/24 dev eth3  proto kernel  scope link  src 192.168.0.25


 2014-11-10 15:12 GMT-06:00 Dan Dong dongda...@gmail.com:

  Hi, All,
When debugging why my ISOs could not be registered, I found when I
  logged into SSVM, I could not even ping the Management Server, although
  they are both in the 192.168.0.0/24 network, so of course could not ping
  outside world. Here are my simple network settings of my
 cloud(1Management
  Server + 1 KVM hypervisor):
 
  1. Management server have 2 NICs:
 em2 pointing outside with 10.0.0.100/24
 em1 pointing inside with 192.168.0.100/24 (also serves as DNS
  and Gateway of the cloud)
  2. One KVM hypervisor which has 1 NIC: em1 with 192.168.0.101/24
  3. VMs created on KVM hypervisor will sit on the same network of
  192.168.0.0/24
 
  The weird thing is that I can access the internet from the KVM hypervisor
  as NAT is enabled on the Management Server, but for the SSVM(IP of eth2:
  192.168.0.89) running on it, it could not even see the Management
  Server(192.168.0.100 on em1). Should one manually re-configure routing
  tables on the SSVM to solve this problem or it is caused by the initial
  network design of the cloud? Thanks!
 
  Cheers,
  Dan
 
 



Re: [VOTE] Release Apache CloudStack CloudMonkey 5.3.0 (round #5)

2014-11-04 Thread Rajani Karuturi
+1 from me again.
Was able to upgrade to the latest and run some api calls.

~Rajani

On Tue, Nov 4, 2014 at 2:45 PM, Nux! n...@li.nux.ro wrote:

 +1, works for me in basic tests

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro

 - Original Message -
  From: Rohit Yadav rohit.ya...@shapeblue.com
  To: dev d...@cloudstack.apache.org
  Cc: users@cloudstack.apache.org
  Sent: Tuesday, 4 November, 2014 07:35:05
  Subject: [VOTE] Release Apache CloudStack CloudMonkey 5.3.0 (round #5)

  Hi All,
 
  I've created a 5.3.0 release of CloudMonkey, with the following
 artifacts up for
  a vote:
 
  Git Branch and Commit SH:
 
 https://git-wip-us.apache.org/repos/asf?p=cloudstack-cloudmonkey.git;a=shortlog;h=refs/heads/5.3
  Commit: beb369c5913f3c19e2b8132892c1bcd116394ceb
 
  List of changes:
 
 https://git-wip-us.apache.org/repos/asf?p=cloudstack-cloudmonkey.git;a=blob_plain;f=CHANGES;hb=5.3
 
  Source release (checksums and signatures are available at the same
  location):
  https://dist.apache.org/repos/dist/dev/cloudstack/cloudmonkey-5.3.0/
 
  PGP release keys (signed using 0EE3D884):
  https://dist.apache.org/repos/dist/release/cloudstack/KEYS
 
  Testing procedure:
 
 https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudMonkey+Release+test+procedure
 
  This release aims to provide better parameter and filter completion,
 error
  handling and utf8/unicode support in CloudMonkey and therefore needs
 testing
  efforts in these areas. UTF-8 encoded string parameters usage needs to be
  tested in API calls, shell and piped calls, for example:
 
  $ create user account=admin username=रोहित lastname=यादव firstname=रोहित
  email=bhais...@apache.org
 password=正體字/繁體字日本人français한국فارسیpassword123”
  $ list users | grep रोहित
 
  The vote will be open till Thursday (72 hours). Please test this release
 and
  give your votes. Thanks.
 
  For sanity in tallying the vote, can PMC members please be sure to
 indicate
  (binding) with their vote?
 
  [ ] +1  approve
  [ ] +0  no opinion
  [ ] -1  disapprove (and reason why)
 
 
  Regards,
  Rohit Yadav
  Software Architect, ShapeBlue
  M. +91 88 262 30892 | rohit.ya...@shapeblue.com
  Blog: bhaisaab.org | Twitter: @_bhaisaab
 
  Find out more about ShapeBlue and our range of CloudStack related
 services
 
  IaaS Cloud Design  Build
 http://shapeblue.com/iaas-cloud-design-and-build//
  CSForge – rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/
  CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/
  CloudStack Infrastructure
  Supporthttp://shapeblue.com/cloudstack-infrastructure-support/
  CloudStack Bootcamp Training Courses
 http://shapeblue.com/cloudstack-training/
 
  This email and any attachments to it may be confidential and are
 intended solely
  for the use of the individual to whom it is addressed. Any views or
 opinions
  expressed are solely those of the author and do not necessarily
 represent those
  of Shape Blue Ltd or related companies. If you are not the intended
 recipient
  of this email, you must neither take any action based upon its contents,
 nor
  copy or show it to anyone. Please contact the sender if you believe you
 have
  received this email in error. Shape Blue Ltd is a company incorporated in
  England  Wales. ShapeBlue Services India LLP is a company incorporated
 in
  India and is operated under license from Shape Blue Ltd. Shape Blue
 Brasil
  Consultoria Ltda is a company incorporated in Brasil and is operated
 under
  license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company
 registered by
  The Republic of South Africa and is traded under license from Shape Blue
 Ltd.
  ShapeBlue is a registered trademark.



Re: Templates and ISO files are not listed !

2014-09-25 Thread Rajani Karuturi
Can you check if the template is in ready state?

you can check by calling the listtemplates api or by clicking on the
template in templates page

~Rajani

On Thu, Sep 25, 2014 at 2:56 PM, Omar Moneer o...@cloudland.sa wrote:

 Hello

 I have followed the Quick Installation Guide for Cent-OS 
 http://cloudstack-installation.readthedocs.org/en/latest/qig.htmlto
 deploy a basic installation of cloudstack
 I did all the steps and everything was fine.. and no problem occurred!

 But when I logged on to the dashboard, and tried to create an Instance
 from  a template , the template wasn't listed in the box and nothing is
 listed , I tried to create an instance using ISO files, but the same
 problem occurred.I have taken screenshots of what's happening:
 http://s7.postimg.org/nwgkiu2yz/Choosing_Template.png

 Although there is two tempplates and  another two ISO files:
 http://s9.postimg.org/gyqndnnnj/Templates.png
 http://s23.postimg.org/gh5jykh57/ISOs.png

 This what dashboard looks like:
 http://s8.postimg.org/ldg69tzp1/Dashboard.png

 So I think the problem in the secondary storage since the dashboard shows
 the size of it is 0.00/0.00KB
 But when I navigate to the Infrastructure panel it shows that there is a
 vm called seccondary and it's running:
 http://s27.postimg.org/lowsj9bnn/Secondary_VM.png


 I don't know where is the problem exactly!
 Please Help!!
 http://cloudstack-installation.readthedocs.org/en/latest/qig.html



Re: CloudStack DataBase HA Restoration Test

2014-09-24 Thread Rajani Karuturi
)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
 at java.lang.Class.forName0(Native Method)
 ... 70 more
 2014-09-23 05:24:29,485 INFO  [c.c.u.c.ComponentContext] (main:null)
 Configuring
 com.cloud.bridge.persist.dao.CloudStackAccountDaoImpl_EnhancerByCloudStack_901525bd
 2014-09-23 05:24:29,497 INFO  [c.c.u.c.ComponentContext] (main:null)
 Configuring
 com.cloud.bridge.persist.dao.OfferingDaoImpl_EnhancerByCloudStack_251f9517
 2014-09-23 05:24:29,497 INFO  [c.c.u.c.ComponentContext] (main:null)
 Configuring
 com.cloud.bridge.persist.dao.SMetaDaoImpl_EnhancerByCloudStack_41c6850f
 2014-09-23 05:24:29,502 INFO  [c.c.u.c.ComponentContext] (main:null)
 Configuring
 com.cloud.bridge.persist.dao.UserCredentialsDaoImpl_EnhancerByCloudStack_e2c8502e
 2014-09-23 05:24:29,502 INFO  [c.c.u.c.ComponentContext] (main:null)
 Configuring
 com.cloud.bridge.persist.dao.MultipartMetaDaoImpl_EnhancerByCloudStack_292f07ce
 2014-09-23 05:24:29,502 INFO  [c.c.u.c.ComponentContext] (main:null)
 Configuring
 com.cloud.bridge.persist.dao.CloudStackConfigurationDaoImpl_EnhancerByCloudStack_50fa97ec

 Thank you,
 Suneel Mallela.

 -Original Message-
 From: Rajani Karuturi [mailto:raj...@apache.org]
 Sent: Thursday, September 18, 2014 6:08 PM
 To: users@cloudstack.apache.org
 Subject: Re: CloudStack DataBase HA Restoration Test

 Can you share the logs?

 you might be hitting the bug
 https://issues.apache.org/jira/browse/CLOUDSTACK-6892
 The fix is in 4.4.1 branch.
 As workaround, you can manually update catalina.properties as per the
 changes in the fix [1]

 [1]

 https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f=client/tomcatconf/catalina.properties.in;h=282892bb763a74b3898c9402423245670f69d546;hp=ce03ff6390b19e21d11c87c68adb7bd07a8c95eb;hb=539db08;hpb=cc913cf0bb7e62b7a216e2de793336e61a49b485

 ~Rajani

 On Thu, Sep 18, 2014 at 5:25 PM, Venkata Suneel Babu Mallela 
 sunee...@simplifydc.com wrote:

  Hi All,
 
  I've configured CloudStack DataBase replication(Master-Slave)
  successfully and the setup is,
 
  Management Server   - 10.0.0.10
  DataBase_1(Master)   - 10.0.0.11
  DataBase_2(Slave)   - 10.0.0.12
 
  I want to test restoration process. I've followed the below link and
  edited the /etc/cloudstack/management/db.properties file,
 
 
  http://docs.cloudstack.apache.org/projects/cloudstack-administration/e
  n/4.4/reliability.html
 
  db.ha.enabled=true
  db.cloud.slaves=10.0.0.12
  db.usage.slaves=10.0.0.12
 
  But, I'm getting HTTP Status 404 error.
 
  Can anyone explain the step by step process to make slave as mater and
  master as slave in CloudStack point of view?
 
  I'm using ACS4.4.0.
 
  Thank you,
  Suneel Mallela
 



Re: CloudStack DataBase HA Restoration Test

2014-09-18 Thread Rajani Karuturi
Can you share the logs?

you might be hitting the bug
https://issues.apache.org/jira/browse/CLOUDSTACK-6892
The fix is in 4.4.1 branch.
As workaround, you can manually update catalina.properties as per the
changes in the fix [1]

[1]
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f=client/tomcatconf/catalina.properties.in;h=282892bb763a74b3898c9402423245670f69d546;hp=ce03ff6390b19e21d11c87c68adb7bd07a8c95eb;hb=539db08;hpb=cc913cf0bb7e62b7a216e2de793336e61a49b485

~Rajani

On Thu, Sep 18, 2014 at 5:25 PM, Venkata Suneel Babu Mallela 
sunee...@simplifydc.com wrote:

 Hi All,

 I've configured CloudStack DataBase replication(Master-Slave) successfully
 and the setup is,

 Management Server   - 10.0.0.10
 DataBase_1(Master)   - 10.0.0.11
 DataBase_2(Slave)   - 10.0.0.12

 I want to test restoration process. I've followed the below link and
 edited the /etc/cloudstack/management/db.properties file,


 http://docs.cloudstack.apache.org/projects/cloudstack-administration/en/4.4/reliability.html

 db.ha.enabled=true
 db.cloud.slaves=10.0.0.12
 db.usage.slaves=10.0.0.12

 But, I'm getting HTTP Status 404 error.

 Can anyone explain the step by step process to make slave as mater and
 master as slave in CloudStack point of view?

 I'm using ACS4.4.0.

 Thank you,
 Suneel Mallela



Re: Error Creating Backup Cloud database

2014-09-10 Thread Rajani Karuturi
you need not stop management server to take a dump.
Which version of cloudstack is it?
Can you also share the output of show create table
'cloud_test.account_netstats_view'?
Are you seeing this error while taking the dump or applying it?

This is the command I use to save a db dump and works perfectly fine even
when the management server is running.
$mysqldump -uusername --databases cloud cloudbridge cloud_usage | bzip2 
/tmp/db_dumps/ACS.sql.bz2

~Rajani

On Wed, Sep 10, 2014 at 9:37 AM, Hollman Enciso R. hollman.enc...@gmail.com
 wrote:

 any idea ?

 i'm just create a crontab with normal mysqldump of the database cloud but i
 always obtain these error.

 maybe I have to stop the management or something to backing up the database
 ?

 On Fri, Sep 5, 2014 at 11:25 AM, Hollman Enciso R. 
 hollman.enc...@gmail.com
  wrote:

  Hello, i'm trying to generate a backup of cloud database but it's
  generating this error.
 
  Any idea why or how can I made a Backup of cloud database?
 
 
  ERROR 1356 (HY000) at line 8807: View 'cloud_test.account_netstats_view'
  references invalid table(s) or column(s) or function(s) or
 definer/invoker
  of view lack rights to use them
 
  thanks
 
  --
  Hollman Eduardo Enciso R.
  http://algolibre.com
  @hollman
 



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



Re: Simulator Build Failed

2014-09-09 Thread Rajani Karuturi
Are you on master?

~Rajani

On Tue, Sep 9, 2014 at 1:04 PM, Deepal Jayasekara dpjayasek...@gmail.com
wrote:

 I started the deployment of the simulator again and then I got a different
 error. I think this is the same error about which I started this thread
 Could not find corresponding resource manager for simulator


  Log Folder Path:
 /tmp//MarvinLogs//DeployDataCenter__Sep_09_2014_12_58_11_DQPFS2. All logs
 will be available here 

  Deploy DC Started 
 Exception Occurred ['Traceback (most recent call last):\n', '  File
 marvin/deployDataCenter.py, line 185, in createClusters\n
 clusterresponse = self.__apiClient.addCluster(clustercmd)\n', '  File

 /usr/local/lib/python2.7/dist-packages/Marvin-4.5.0_SNAPSHOT-py2.7.egg/marvin/cloudstackAPI/cloudstackAPIClient.py,
 line 1549, in addCluster\nresponse =
 self.connection.marvinRequest(command, response_type=response,
 method=method)\n', '  File

 /usr/local/lib/python2.7/dist-packages/Marvin-4.5.0_SNAPSHOT-py2.7.egg/marvin/cloudstackConnection.py,
 line 379, in marvinRequest\nraise e\n', 'CloudstackAPIException:
 Execute cmd: addcluster failed, due to: errorCode: 431, errorText:Could not
 find corresponding resource manager for simulator\n']

 ===deploy dc failed, so cleaning the created entries===

 DeployDC: CleanUp Started

 Clean Up Entries=== {'PhysicalNetwork':
 [u'fb49eeae-4382-4f26-a1fa-8719e9b1748e'], 'Pod':
 [u'11e1508b-0d4b-4e0b-bb58-62d8a934eedb'], 'order': ['Pod',
 'PhysicalNetwork', 'Zone'], 'Zone':
 [u'ae46f6fc-f153-45d0-9114-9418addbcd17']}

 ===Removing DataCenter Successful===


 On Tue, Sep 9, 2014 at 12:54 PM, Deepal Jayasekara dpjayasek...@gmail.com
 
 wrote:

  Yup. It was successful. And the database deployments were also
 sucecssful.
 
  On Tue, Sep 9, 2014 at 12:47 PM, Rajani Karuturi raj...@apache.org
  wrote:
 
  Did you run mvn clean install with developer profile and was it
  successful?
  $mvn -Pdeveloper -Dsimulator clean install -DskipTests=true
 
  ~Rajani
 
  On Tue, Sep 9, 2014 at 11:48 AM, Deepal Jayasekara 
  dpjayasek...@gmail.com
  wrote:
 
   I installed marvin as @Rajani said, and then tried to deploy the
  simulator.
   But I got following error:
  
   Traceback (most recent call last):
 File marvin/deployDataCenter.py, line 29, in module
   from marvin.cloudstackException import (
   ImportError: cannot import name GetDetailExceptionInfo
  
   Searching through some mails, I decided install marvin again as she
  said.
   But this time I encountered following error:
  
   running install
   running bdist_egg
   running egg_info
   writing requirements to Marvin.egg-info/requires.txt
   writing Marvin.egg-info/PKG-INFO
   writing top-level names to Marvin.egg-info/top_level.txt
   writing dependency_links to Marvin.egg-info/dependency_links.txt
   writing entry points to Marvin.egg-info/entry_points.txt
   error: package directory 'marvin/cloudstackAPI' does not exist
  
   On Mon, Sep 8, 2014 at 6:47 PM, Daan Hoogland 
 daan.hoogl...@gmail.com
   wrote:
  
On Mon, Sep 8, 2014 at 12:05 PM, Rajani Karuturi raj...@apache.org
 
wrote:
   
 ~/cloudstack/$ mvn -Pdeveloper -Dsimulator clean install
 ~/cloudstack/$ mvn -Pdeveloper -pl developer -Ddeploydb
 ~/cloudstack/$ mvn -Pdeveloper -pl developer -Ddeploydb-simulator

 ~/cloudstack/tools/marvin$ sudo python setup.py install

   
​export ​
MAVEN_OPTS=-Xmx2048m -XX:MaxPermSize=800m -Xmx2g -Xdebug
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
​
~/cloudstack/$ ​
mvn -pl client jetty:run -Dsimulator
​
#​
​not sure if the -Dsimulator is need, I just add it default same as
-Dnoredist​
   
   
   
 ~/cloudstack/tools/marvin$ python marvin/deployDataCenter.py -i
 ​ ​
 ../../setup/dev/advanced.cfg

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

Re: Simulator Build Failed

2014-09-08 Thread Rajani Karuturi
I ran simulator using the below commands on 4.3 and it worked for me

~/cloudstack/$ mvn -Pdeveloper -Dsimulator clean install
~/cloudstack/$ mvn -Pdeveloper -pl developer -Ddeploydb
~/cloudstack/$ mvn -Pdeveloper -pl developer -Ddeploydb-simulator

~/cloudstack/tools/marvin$ sudo python setup.py install

~/cloudstack/tools/marvin$ python marvin/deployDataCenter.py -i
../../setup/dev/advanced.cfg

~Rajani

On Fri, Sep 5, 2014 at 5:18 PM, Deepal Jayasekara dpjayasek...@gmail.com
wrote:

 I am trying to build Cloudstack from the source and was able to build
 Cloudstack following the steps in the documentation. But when I try to
 build the simulator, I encountered with following errors:

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

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

 Step1 :Parsing Options And Check Went Fine

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

 Marvin Initialization Failed
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 50.773s
 [INFO] Finished at: Fri Sep 05 03:04:24 IST 2014
 [INFO] Final Memory: 31M/235M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (pre-integration-test) on
 project cloud-marvin: Command execution failed. Process exited with an
 error: 1 (Exit value: 1) - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
 switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

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

 Thank you.


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



Re: ACS in a VMware environment

2014-09-01 Thread Rajani Karuturi
I think you are hitting this defect
https://issues.apache.org/jira/browse/CLOUDSTACK-6892
The fix is in 4.3.1 and  4.4.1 branches.
As workaround, you can manually update catalina.properties as per the
changes in the fix [1]

[1]
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f=client/tomcatconf/catalina.properties.in;h=282892bb763a74b3898c9402423245670f69d546;hp=ce03ff6390b19e21d11c87c68adb7bd07a8c95eb;hb=539db08;hpb=cc913cf0bb7e62b7a216e2de793336e61a49b485


~Rajani


On Thu, Aug 28, 2014 at 7:00 PM, Xerex Bueno xbu...@lpsintegration.com
wrote:

 So I have found the cause of the problem, can someone explain why?  The
 issue is happens when I enable DB HA.  Below is the log output

 2014-08-28 08:17:03,792 INFO  [c.c.u.d.T.Transaction] (main:null) Is Data
 Base High Availiability enabled? Ans : true
 2014-08-28 08:17:03,824 INFO  [c.c.u.d.T.Transaction] (main:null) The
 slaves configured for Cloud Data base is/are : 10.200.5.14
 2014-08-28 08:17:03,886 ERROR [c.c.u.d.Merovingian2] (main:null) Unable to
 get a new db connection
 java.sql.SQLException: Invalid load balancing strategy
 'com.cloud.utils.db.StaticStrategy'.





 On 8/28/14, 8:17 AM, Xerex Bueno xbu...@lpsintegration.com wrote:

 I must be missing something.  So I am installing this on a CentOS 6.5
 fully patched server that is configured as a basic server.  Here are the
 steps I take when installing ACS.
 
 1. Extract the RPMs and run ‘createrepo’
 2. Create the .repo, and run yum install cloudstack-management
 3. Run setenforce 0
 4. Run cloudstack-setup-databases cloud:password@‘DB Server IP’
 ―deploy-as=root:password -k key -m key
 5. Run cloudstack-setup-management
 6. Connect secondary storage and run
 /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-t
 m
 plt -m /mnt/secondary -u
 
 http://download.cloud.com/templates/4.3/systemvm64template-2014-06-23-mast
 e
 r-vmware.ova -h vmware -s key
 7. Try to connect to http://'ip':8080/client
 
 At this point it doesn’t matter how long I wait the management interface
 never comes up.  What am I missing?
 
 
 
 
 
 
 On 8/28/14, 3:06 AM, ilya musayev ilya.mailing.li...@gmail.com wrote:
 
 Xerex
 
 I've just rebuild cloudstack. I had no issues with this build. no 404s.
 
 
 http://download.cloudsand.com/cloudsand/rhel/6/x86_64/cloudstack-4.3.0.1-
 0
 8282014.rpm.tgz
 
 Regards
 ilya
 On 8/27/14, 2:31 PM, Xerex Bueno wrote:
  Ilya,
 
  I have installed from the packages you provided.  However I am running
  into a 404 error when I try and access the Web UI.  Have you
 experienced
  this issue?
 
 
 
 
 
  On 8/20/14, 10:23 AM, Xerex Bueno xbu...@lpsintegration.com wrote:
 
  Thanks for the info and the link.  I will give it a shot.
 
 
 
 
 
  On 8/19/14, 3:46 PM, ilya musayev ilya.mailing.li...@gmail.com
 wrote:
 
  Xerex,
 
  Dont use forward branch, you need to use 4.3 under heads.
 
  example: git checkout remotes/origin/4.3
 
  16 servers is rather small. I've just completed a rebuild of 4.3.0.1
  from source (includes noredist packages).
 
 
 http://download.cloudsand.com/cloudsand/rhel/6/x86_64/cloudstack-4.3.0
 .
 1-
  0
  8192014.rpm.tgz
 
  There are few patches that help with vmware connection pool/threads,
  they haven't been committed yet by Citrix dev.
 
  I have many smaller environments and i would not see any issues there
  without the mentioned fix. However, in larger environments where
  hypervisor count goes into hundreds, this issue will be more
 prominent.
 
  Regards
  ilya
 
 
 
 
 
 
  On 8/18/14, 7:36 PM, Xerex Bueno wrote:
  It is going to start with a max of 16 servers and I don¹t see it
  utilizing
  more then four servers to start with.  As for the 4.3.1 source code,
 is
  that under Github 4.3.0 forward?  Also do I still need to compile it
  with
  -NoRedist and the vmware .jar files?
 
 
 
 
  On 8/18/14, 3:27 PM, ilya musayev ilya.mailing.li...@gmail.com
  wrote:
 
  Xerex
 
  You want the latest 4.3.0.1 (aka 4.3.1), build it from source.
 There
  are
  few patches that haven't been committed upstream yet, but they
 address
  a
  specific issue witnessed only on large vmware envs.
 
  Depending on how large is your environment, you may want to tweak
 the
  java heap size and additional settings limit.conf
 
  What size of env do you have in mind?
 
  Regards
  ilya
 
  On 8/18/14, 9:40 AM, Xerex Bueno wrote:
  My question for the group is I want to deploy a very stable
 version
  of
  ACS into an environment running Vmware with standard vSwitches.
 What
  version would you recommend?
 
  
 
  This document is PROPRIETARY and CONFIDENTIAL and may not be
  duplicated, redistributed, or displayed to any other party without
  the
  expressed written permission of LPS Integration, Inc. If you are
 not
  the
  intended recipient and have received this email in error, please
  destroy
  the email and contact the LPS Integration Security Officer at
  866-577-2902 (Phone), 615-349-9009 (Fax) or 230 

Re: error api-doc

2014-08-13 Thread Rajani Karuturi
$ git checkout master  git pull --rebase
and then continue with the mvn build.

Please go through this document to understand git branches, how to move
between them.
http://git-scm.com/book/en/Git-Branching-Basic-Branching-and-Merging



On Wed, Aug 13, 2014 at 6:44 PM, sandeep khandekar 
cloudstack.sand...@gmail.com wrote:

 root@cloudstack:/home/cloudstack/cloudstack# git remote update  git
 status
 Fetching origin
 # On branch 4.2
 nothing to commit (working directory clean

 This is the o/p I got what to do now?



 On Tue, Aug 12, 2014 at 1:51 PM, Rajani Karuturi raj...@apache.org
 wrote:

  assuming you did a git clone of the repo, doing git remote update  git
  status should tell you.
 
 
  On Tue, Aug 12, 2014 at 12:55 PM, sandeep khandekar 
  cloudstack.sand...@gmail.com wrote:
 
   How can I check I am on master and on latest commit?
   How to fix these apidoc dependency issues?
  
  
   Thankyou
  
  
   On Tue, Aug 12, 2014 at 9:25 AM, Rajani Karuturi raj...@apache.org
   wrote:
  
This is the latest commit I see for cloud-apidocs
   
commit 5ddd0cff32c6ea417f31daa82f88b02f0a440c36
Author: Hugo Trippaers htrippa...@schubergphilis.com
AuthorDate: Thu Jul 31 12:05:25 2014 +0200
Commit: Hugo Trippaers htrippa...@schubergphilis.com
CommitDate: Thu Jul 31 12:06:54 2014 +0200
   
Fix dependency issue in apidoc, depends on server as that is
 where
ApiXmlDocWriter lives
   
   
Can you check if you are on master and on latest commit?
   
   
On Mon, Aug 11, 2014 at 8:53 PM, sandeep khandekar 
cloudstack.sand...@gmail.com wrote:
   
 Dear cloud stackers,
 I was building cloudstack I got the following error during build
 everything was success, but cloudapidocs i got the error - can
 anyone
tell
 me why I got these error.

 [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0
 is
 missing, no dependency information available
 [WARNING] Failed to retrieve plugin descriptor for
 org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin
 org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies
   could
 not be resolved: Failed to read artifact descriptor for
 org.eclipse.m2e:lifecycle-mapping:jar:1.0.0
 Downloading:


   
  
 
 http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
 Downloading:

  
 http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
 Downloaded:


   
  
 
 http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
 (13 KB at 14.6 KB/sec)
 Downloaded:

  
 http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
 (20 KB at 18.5 KB/sec)
 [INFO]

  
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] Apache CloudStack . SKIPPED
 [INFO] Apache CloudStack Utils ... SKIPPED
 [INFO] Apache CloudStack API . SKIPPED
 [INFO] Apache CloudStack Framework ... SKIPPED
 [INFO] Apache CloudStack Framework - REST  SKIPPED
 [INFO] Apache CloudStack Framework - IPC . SKIPPED
 [INFO] Apache CloudStack Cloud Engine  SKIPPED
 [INFO] Apache CloudStack Cloud Engine API  SKIPPED
 [INFO] Apache CloudStack Cloud Engine Internal Components API
   SKIPPED
 [INFO] Apache CloudStack Cloud Engine Schema Component ... SKIPPED
 [INFO] Apache CloudStack Core  SKIPPED
 [INFO] Apache CloudStack Agents .. SKIPPED
 [INFO] Apache CloudStack Framework - Jobs  SKIPPED
 [INFO] Apache CloudStack Framework - Event Notification .. SKIPPED
 [INFO] Apache CloudStack Server .. SKIPPED
 [INFO] Apache CloudStack Usage Server  SKIPPED
 [INFO] Apache XenSource XAPI . SKIPPED
 [INFO] Apache CloudStack Cloud Engine Compute Component .. SKIPPED
 [INFO] Apache CloudStack Cloud Engine Orchestration Component
   SKIPPED
 [INFO] Apache CloudStack SystemVM Patches  SKIPPED
 [INFO] Apache CloudStack Cloud Services .. SKIPPED
 [INFO] Apache CloudStack Secondary Storage Service ... SKIPPED
 [INFO] Apache CloudStack Engine Storage Component  SKIPPED
 [INFO] Apache CloudStack Engine Storage Volume Component . SKIPPED
 [INFO] Apache CloudStack Engine Storage Image Component .. SKIPPED
 [INFO] Apache CloudStack Engine Storage Data Motion Component
   SKIPPED
 [INFO] Apache CloudStack Engine Storage Cache Component .. SKIPPED
 [INFO] Apache CloudStack Engine Storage Snapshot Component  SKIPPED
 [INFO] Apache CloudStack Cloud Engine API  SKIPPED

Re: error api-doc

2014-08-12 Thread Rajani Karuturi
assuming you did a git clone of the repo, doing git remote update  git
status should tell you.


On Tue, Aug 12, 2014 at 12:55 PM, sandeep khandekar 
cloudstack.sand...@gmail.com wrote:

 How can I check I am on master and on latest commit?
 How to fix these apidoc dependency issues?


 Thankyou


 On Tue, Aug 12, 2014 at 9:25 AM, Rajani Karuturi raj...@apache.org
 wrote:

  This is the latest commit I see for cloud-apidocs
 
  commit 5ddd0cff32c6ea417f31daa82f88b02f0a440c36
  Author: Hugo Trippaers htrippa...@schubergphilis.com
  AuthorDate: Thu Jul 31 12:05:25 2014 +0200
  Commit: Hugo Trippaers htrippa...@schubergphilis.com
  CommitDate: Thu Jul 31 12:06:54 2014 +0200
 
  Fix dependency issue in apidoc, depends on server as that is where
  ApiXmlDocWriter lives
 
 
  Can you check if you are on master and on latest commit?
 
 
  On Mon, Aug 11, 2014 at 8:53 PM, sandeep khandekar 
  cloudstack.sand...@gmail.com wrote:
 
   Dear cloud stackers,
   I was building cloudstack I got the following error during build
   everything was success, but cloudapidocs i got the error - can anyone
  tell
   me why I got these error.
  
   [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is
   missing, no dependency information available
   [WARNING] Failed to retrieve plugin descriptor for
   org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin
   org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies
 could
   not be resolved: Failed to read artifact descriptor for
   org.eclipse.m2e:lifecycle-mapping:jar:1.0.0
   Downloading:
  
  
 
 http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
   Downloading:
  
 http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
   Downloaded:
  
  
 
 http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
   (13 KB at 14.6 KB/sec)
   Downloaded:
  
 http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
   (20 KB at 18.5 KB/sec)
   [INFO]
  
 
   [INFO] Reactor Summary:
   [INFO]
   [INFO] Apache CloudStack . SKIPPED
   [INFO] Apache CloudStack Utils ... SKIPPED
   [INFO] Apache CloudStack API . SKIPPED
   [INFO] Apache CloudStack Framework ... SKIPPED
   [INFO] Apache CloudStack Framework - REST  SKIPPED
   [INFO] Apache CloudStack Framework - IPC . SKIPPED
   [INFO] Apache CloudStack Cloud Engine  SKIPPED
   [INFO] Apache CloudStack Cloud Engine API  SKIPPED
   [INFO] Apache CloudStack Cloud Engine Internal Components API  SKIPPED
   [INFO] Apache CloudStack Cloud Engine Schema Component ... SKIPPED
   [INFO] Apache CloudStack Core  SKIPPED
   [INFO] Apache CloudStack Agents .. SKIPPED
   [INFO] Apache CloudStack Framework - Jobs  SKIPPED
   [INFO] Apache CloudStack Framework - Event Notification .. SKIPPED
   [INFO] Apache CloudStack Server .. SKIPPED
   [INFO] Apache CloudStack Usage Server  SKIPPED
   [INFO] Apache XenSource XAPI . SKIPPED
   [INFO] Apache CloudStack Cloud Engine Compute Component .. SKIPPED
   [INFO] Apache CloudStack Cloud Engine Orchestration Component  SKIPPED
   [INFO] Apache CloudStack SystemVM Patches  SKIPPED
   [INFO] Apache CloudStack Cloud Services .. SKIPPED
   [INFO] Apache CloudStack Secondary Storage Service ... SKIPPED
   [INFO] Apache CloudStack Engine Storage Component  SKIPPED
   [INFO] Apache CloudStack Engine Storage Volume Component . SKIPPED
   [INFO] Apache CloudStack Engine Storage Image Component .. SKIPPED
   [INFO] Apache CloudStack Engine Storage Data Motion Component  SKIPPED
   [INFO] Apache CloudStack Engine Storage Cache Component .. SKIPPED
   [INFO] Apache CloudStack Engine Storage Snapshot Component  SKIPPED
   [INFO] Apache CloudStack Cloud Engine API  SKIPPED
   [INFO] Apache CloudStack Cloud Engine Service  SKIPPED
   [INFO] Apache CloudStack Plugin POM .. SKIPPED
   [INFO] Apache CloudStack Plugin - API Rate Limit . SKIPPED
   [INFO] Apache CloudStack Plugin - API Discovery .. SKIPPED
   [INFO] Apache CloudStack Plugin - ACL Static Role Based .. SKIPPED
   [INFO] Apache CloudStack Plugin - Host Anti-Affinity Processor  SKIPPED
   [INFO] Apache CloudStack Plugin - Explicit Dedication Processor
  SKIPPED
   [INFO] Apache CloudStack Plugin - User Concentrated Pod Deployment
  Planner
   SKIPPED
   [INFO] Apache CloudStack Plugin - User Dispersing Deployment Planner
   SKIPPED
   [INFO] Apache CloudStack Plugin - Implicit Dedication Planner  SKIPPED
   [INFO] Apache CloudStack Plugin - HA Planner . SKIPPED

Re: Migration of cloud environments

2014-08-12 Thread Rajani Karuturi
Cloudstack Marvin[1] can do the import if you give the cfg file. Maybe
export functionality could be added to it.

More details about marvin are in the wiki[2]

This is what I usually do to deploy:

cloudstack/tools/marvin(master)$ sudo python setup.py install # to install
marvin

cloudstack/tools/marvin(master)$ python marvin/deployDataCenter.py -i
../../setup/dev/advanced.cfg # to deploy datacenter in the configuration
file

[1] https://pypi.python.org/pypi/cloudstack-marvin/4.4.0
[2]
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Marvin+-+Testing+with+Python


On Wed, Aug 13, 2014 at 2:42 AM, ilya musayev ilya.mailing.li...@gmail.com
wrote:

 One other thought,

 CloudMonkey can print output with JSON format via set display json.

 If that same output can be fed into CloudStack via CloudMonkey, it would
 achieve the same result.


 On 8/12/14, 12:11 PM, Andrei Mikhailovsky wrote:

 Hello guys,

 I thought to share some ideas on migrating the cloud environment from one
 build to another. Let's say you have a cloudstack build with a bunch of
 domains, users, guest vms and networks and you would like to replicate or
 move it across to a different setup (It may be a different physical
 location with different network setup, etc.).

 At the moment, there is no way of doing this. There is not even a
 function to reliably export a vm with all of it's volumes and networking
 settings. Would it not be a great feature to have in ACS - a backup/restore
 or export/import like functionality which is built in to almost every
 single commercial software nowadays. The use cases for this are limitless
 (from a simple recovery of the broken ACS install/database to replication
 of dev/test/qa/production environments). It would be even more useful if
 one could choose which hierarchy within ACS to migrate/export/backup. Like
 account/domain/project/root level backup and restore. The function should
 go over the existing setup and accumulate all settings required in
 producing the identical setup elsewhere. This would include not only the
 guest vms and the attached volumes, but also, the networking setup, access
 rights, qos settings, snapshots, etc.

 The end result should be something like a folder with exported data that
 one could simply point his/her newly created ACS setup and say - Import
 this cloud setup please.

 Should ACS has this functionality or is it too complicated and too much
 to ask?

 Thanks for your thoughts


 Andrei








-- 
~Rajani


Re: error api-doc

2014-08-11 Thread Rajani Karuturi
This is the latest commit I see for cloud-apidocs

commit 5ddd0cff32c6ea417f31daa82f88b02f0a440c36
Author: Hugo Trippaers htrippa...@schubergphilis.com
AuthorDate: Thu Jul 31 12:05:25 2014 +0200
Commit: Hugo Trippaers htrippa...@schubergphilis.com
CommitDate: Thu Jul 31 12:06:54 2014 +0200

Fix dependency issue in apidoc, depends on server as that is where
ApiXmlDocWriter lives


Can you check if you are on master and on latest commit?


On Mon, Aug 11, 2014 at 8:53 PM, sandeep khandekar 
cloudstack.sand...@gmail.com wrote:

 Dear cloud stackers,
 I was building cloudstack I got the following error during build
 everything was success, but cloudapidocs i got the error - can anyone tell
 me why I got these error.

 [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is
 missing, no dependency information available
 [WARNING] Failed to retrieve plugin descriptor for
 org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin
 org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could
 not be resolved: Failed to read artifact descriptor for
 org.eclipse.m2e:lifecycle-mapping:jar:1.0.0
 Downloading:

 http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
 Downloading:
 http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
 Downloaded:

 http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
 (13 KB at 14.6 KB/sec)
 Downloaded:
 http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
 (20 KB at 18.5 KB/sec)
 [INFO]
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] Apache CloudStack . SKIPPED
 [INFO] Apache CloudStack Utils ... SKIPPED
 [INFO] Apache CloudStack API . SKIPPED
 [INFO] Apache CloudStack Framework ... SKIPPED
 [INFO] Apache CloudStack Framework - REST  SKIPPED
 [INFO] Apache CloudStack Framework - IPC . SKIPPED
 [INFO] Apache CloudStack Cloud Engine  SKIPPED
 [INFO] Apache CloudStack Cloud Engine API  SKIPPED
 [INFO] Apache CloudStack Cloud Engine Internal Components API  SKIPPED
 [INFO] Apache CloudStack Cloud Engine Schema Component ... SKIPPED
 [INFO] Apache CloudStack Core  SKIPPED
 [INFO] Apache CloudStack Agents .. SKIPPED
 [INFO] Apache CloudStack Framework - Jobs  SKIPPED
 [INFO] Apache CloudStack Framework - Event Notification .. SKIPPED
 [INFO] Apache CloudStack Server .. SKIPPED
 [INFO] Apache CloudStack Usage Server  SKIPPED
 [INFO] Apache XenSource XAPI . SKIPPED
 [INFO] Apache CloudStack Cloud Engine Compute Component .. SKIPPED
 [INFO] Apache CloudStack Cloud Engine Orchestration Component  SKIPPED
 [INFO] Apache CloudStack SystemVM Patches  SKIPPED
 [INFO] Apache CloudStack Cloud Services .. SKIPPED
 [INFO] Apache CloudStack Secondary Storage Service ... SKIPPED
 [INFO] Apache CloudStack Engine Storage Component  SKIPPED
 [INFO] Apache CloudStack Engine Storage Volume Component . SKIPPED
 [INFO] Apache CloudStack Engine Storage Image Component .. SKIPPED
 [INFO] Apache CloudStack Engine Storage Data Motion Component  SKIPPED
 [INFO] Apache CloudStack Engine Storage Cache Component .. SKIPPED
 [INFO] Apache CloudStack Engine Storage Snapshot Component  SKIPPED
 [INFO] Apache CloudStack Cloud Engine API  SKIPPED
 [INFO] Apache CloudStack Cloud Engine Service  SKIPPED
 [INFO] Apache CloudStack Plugin POM .. SKIPPED
 [INFO] Apache CloudStack Plugin - API Rate Limit . SKIPPED
 [INFO] Apache CloudStack Plugin - API Discovery .. SKIPPED
 [INFO] Apache CloudStack Plugin - ACL Static Role Based .. SKIPPED
 [INFO] Apache CloudStack Plugin - Host Anti-Affinity Processor  SKIPPED
 [INFO] Apache CloudStack Plugin - Explicit Dedication Processor  SKIPPED
 [INFO] Apache CloudStack Plugin - User Concentrated Pod Deployment Planner
 SKIPPED
 [INFO] Apache CloudStack Plugin - User Dispersing Deployment Planner
 SKIPPED
 [INFO] Apache CloudStack Plugin - Implicit Dedication Planner  SKIPPED
 [INFO] Apache CloudStack Plugin - HA Planner . SKIPPED
 [INFO] Apache CloudStack Plugin - Host Allocator Random .. SKIPPED
 [INFO] Apache CloudStack Plugin - Dedicated Resources  SKIPPED
 [INFO] Apache CloudStack Plugin - Hypervisor OracleVM  SKIPPED
 [INFO] Apache CloudStack Plugin - Open vSwitch ... SKIPPED
 [INFO] Apache CloudStack Plugin - Hypervisor Xen . SKIPPED
 [INFO] Apache CloudStack Plugin - Hypervisor KVM . SKIPPED
 [INFO] Apache CloudStack Plugin - RabbitMQ Event Bus . SKIPPED
 [INFO] Apache CloudStack Plugin - Hypervisor Baremetal ... SKIPPED
 [INFO] Apache 

Re: working howto for building cloudstack from sources

2014-08-11 Thread Rajani Karuturi
Can you share the error messages? I do not see any exception while running
the mvn command on master.

Can you share the docs you followed?
The one in the install doc worked for me a long time ago
http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/building_from_source.html#building-deb-packages


On Tue, Aug 12, 2014 at 4:59 AM, Andrei Mikhailovsky and...@arhont.com
wrote:

 Hello guys,

 I was hoping someone could share a working howto on building cloudstack
 from sources. In particular, I am planning to build 4.4.0 .deb packages
 with several cherrypicks and my build server is Ubuntu 12.04 with the
 latest updates.

 I've followed two different howtos, both from the cloudstack website, but
 unfortunately, they are a bit different and they produce different errors
 when executing mvn3 -P deps.

 Thanks

 Andrei




-- 
~Rajani


Re: lxc on cloudstack

2014-08-01 Thread Rajani Karuturi
registering the template with requireshvm=false or executing the below query 
worked for me
update vm_template set hvm=0 where id=‘TEMPLATE_ID’;

I don’t know what the flag does or why it doesn’t work with lxc.

~Rajani



On 01-Aug-2014, at 11:09 am, Osamu Ikehara ikeh...@joes.co.jp wrote:

 Hello,
 
 I am stacking about cloudstack + lxc.
 
 what I did is 
 
 Ubuntu 14.04 trusty, cloudstack 4.4 installed from 
 http://cloudstack.apt-get.eu/ubuntu/dists/trusty/
 
 create management node - fine
 add kvm cluster - fine
 add kvm agent - fine
 create second storage vm, console vm - fine
 add lxc cluster - fine
 add lxc agent - seems to be fine
 
 add lxc instance adding iso - .
 
 log is below.
 
 is anyone able to create lxc instance on cloudstack?
 what is the mean 'they are not HVM enabled' ?
 please tell me how to create lxc.
 
 Thank you.
 
 2014-08-01 13:08:43,304 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
 (API-Job-Executor-52:ctx-0f32ce3a job-56) Executing AsyncJobVO {id:56, 
 userId: 2, accountId: 2, instanceType: VirtualMachine, instanceId: 3, cmd: 
 org.apache.cloudstack.api.command.admin.vm.DeployVMCmdByAdmin, cmdInfo: 
 {serviceofferingid:ca9ec6a0-10e3-4101-9b4e-32da49929397,sessionkey:ZXZElEJY2wGlUjbYc8mYMTjEKDU\u003d,cmdEventType:VM.CREATE,ctxUserId:2,zoneid:e32f5ae1-5a01-4f44-b4ae-cc09419efd11,httpmethod:GET,templateid:60a6ae31-3690-4122-8cbe-ad106f18679f,response:json,id:3,ctxDetails:{\com.cloud.template.VirtualMachineTemplate\:\60a6ae31-3690-4122-8cbe-ad106f18679f\,\com.cloud.vm.VirtualMachine\:\f362e2be-e7a7-40a6-9388-556e95583d0b\,\com.cloud.offering.DiskOffering\:\842daf1f-bfd5-425b-a6f3-3f6fa06fd90a\,\com.cloud.dc.DataCenter\:\e32f5ae1-5a01-4f44-b4ae-cc09419efd11\,\com.cloud.offering.ServiceOffering\:\ca9ec6a0-10e3-4101-9b4e-32da49929397\},hypervisor:L
 XC,iptonetworklist[0].networkid:c220e198-baf3-419d-b561-dddb2b79540a,_:1406866122712,uuid:f362e2be-e7a7-40a6-9388-556e95583d0b,ctxAccountId:2,diskofferingid:842daf1f-bfd5-425b-a6f3-3f6fa06fd90a,ctxStartEventId:147},
  cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
 null, initMsid: 109955820418, completeMsid: null, lastUpdated: null, 
 lastPolled: null, created: null}
 2014-08-01 13:08:43,405 DEBUG [c.c.n.NetworkModelImpl] 
 (API-Job-Executor-52:ctx-0f32ce3a job-56 ctx-f436dcd7) Service SecurityGroup 
 is not supported in the network id=208
 2014-08-01 13:08:43,408 DEBUG [c.c.n.NetworkModelImpl] 
 (API-Job-Executor-52:ctx-0f32ce3a job-56 ctx-f436dcd7) Service SecurityGroup 
 is not supported in the network id=208
 2014-08-01 13:08:43,427 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
 (API-Job-Executor-52:ctx-0f32ce3a job-56 ctx-f436dcd7) Deploy avoids pods: 
 [], clusters: [], hosts: []
 2014-08-01 13:08:43,428 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
 (API-Job-Executor-52:ctx-0f32ce3a job-56 ctx-f436dcd7) DeploymentPlanner 
 allocation algorithm: com.cloud.deploy.FirstFitPlanner@5e99834a
 2014-08-01 13:08:43,428 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
 (API-Job-Executor-52:ctx-0f32ce3a job-56 ctx-f436dcd7) Trying to allocate a 
 host and storage pools from dc:2, pod:null,cluster:null, requested cpu: 500, 
 requested ram: 536870912
 2014-08-01 13:08:43,428 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
 (API-Job-Executor-52:ctx-0f32ce3a job-56 ctx-f436dcd7) Is ROOT volume READY 
 (pool already allocated)?: No
 2014-08-01 13:08:43,429 DEBUG [c.c.d.FirstFitPlanner] 
 (API-Job-Executor-52:ctx-0f32ce3a job-56 ctx-f436dcd7) Searching all possible 
 resources under this Zone: 2
 2014-08-01 13:08:43,430 DEBUG [c.c.d.FirstFitPlanner] 
 (API-Job-Executor-52:ctx-0f32ce3a job-56 ctx-f436dcd7) Listing clusters in 
 order of aggregate capacity, that have (atleast one host with) enough CPU and 
 RAM capacity under this Zone: 2
 2014-08-01 13:08:43,433 DEBUG [c.c.d.FirstFitPlanner] 
 (API-Job-Executor-52:ctx-0f32ce3a job-56 ctx-f436dcd7) Removing from the 
 clusterId list these clusters from avoid set: []
 2014-08-01 13:08:43,439 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
 (API-Job-Executor-52:ctx-0f32ce3a job-56 ctx-f436dcd7) Checking resources in 
 Cluster: 3 under Pod: 2
 2014-08-01 13:08:43,439 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
 (API-Job-Executor-52:ctx-0f32ce3a job-56 ctx-f436dcd7 
 FirstFitRoutingAllocator) Looking for hosts in dc: 2  pod:2  cluster:3
 2014-08-01 13:08:43,441 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
 (API-Job-Executor-52:ctx-0f32ce3a job-56 ctx-f436dcd7 
 FirstFitRoutingAllocator) FirstFitAllocator has 1 hosts to check for 
 allocation: [Host[-5-Routing]]
 2014-08-01 13:08:43,443 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
 (API-Job-Executor-52:ctx-0f32ce3a job-56 ctx-f436dcd7 
 FirstFitRoutingAllocator) Not considering hosts: [Host[-5-Routing]]  to 
 deploy template: Tmpl[201-ISO-201-2-e9eacfcd-1360-3e1d-8b5b-497997678249 as 
 they are not HVM enabled
 2014-08-01 13:08:43,444 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
 (API-Job-Executor-52:ctx-0f32ce3a job-56 ctx-f436dcd7 
 

Re: cloudstack 4.2.1 XenServer 6.2 VM starting in management

2014-07-30 Thread Rajani Karuturi
Are the system vms up?
Is the vm i-2-8-* in running state in xencenter? 

Did you try changing the state of it manually in db and start again?
mysq update vm_instance set state='Stopped' where state=‘Starting’ and 
id=‘PUT_ID_HERE’;


~Rajani



On 30-Jul-2014, at 2:28 am, motty cruz motty.c...@gmail.com wrote:

 Hi, I had to shutdown two servers in Cloudstack, prior to shutting down I
 had one VM running, after both XenServer came backup VM is in Starting
 mode in CloudStack, in XenCenter I see i-2-8-VM-ISO
 
 any ideas on how to start VM?
 
 Thanks,



Re: Unable to stop or delete vm's

2014-07-28 Thread Rajani Karuturi
,accessDetails:{router.guest.ip:XXX.XXX.X.172,zone.network.type:Basic,router.ip:169.254.3.178,router.name:r-4-VM},wait:0}}]
 } to 279278805451651
2014-07-28 11:40:14,881 DEBUG [agent.manager.ClusteredAgentAttache] 
(AgentManager-Handler-2:null) Seq 1-988151911: Forwarding Seq 1-988151911:  { 
Cmd , MgmtId: 187796561440775, via: 1, Ver: v1, Flags: 100111, 
[{routing.DhcpEntryCommand:{vmMac:06:7c:3a:00:00:14,vmIpAddress:XXX.XXX.X.179,vmName:CentOS-6-5-new,defaultRouter:XXX.XXX.X.1,defaultDns:XXX.XXX.X.172,duid:00:03:00:01:06:7c:3a:00:00:14,isDefault:true,accessDetails:{router.guest.ip:XXX.XXX.X.172,zone.network.type:Basic,router.ip:169.254.3.178,router.name:r-4-VM},wait:0}}]
 } to 279278805451651
2014-07-28 11:40:14,883 DEBUG [agent.manager.ClusteredAgentAttache] 
(AgentManager-Handler-8:null) Seq 1-988151911: Forwarding Seq 1-988151911:  { 
Cmd , MgmtId: 187796561440775, via: 1, Ver: v1, Flags: 100111, 
[{routing.DhcpEntryCommand:{vmMac:06:7c:3a:00:00:14,vmIpAddress:XXX.XXX.X.179,vmName:CentOS-6-5-new,defaultRouter:XXX.XXX.X.1,defaultDns:XXX.XXX.X.172,duid:00:03:00:01:06:7c:3a:00:00:14,isDefault:true,accessDetails:{router.guest.ip:XXX.XXX.X.172,zone.network.type:Basic,router.ip:169.254.3.178,router.name:r-4-VM},wait:0}}]
 } to 279278805451651
2014-07-28 11:40:14,884 DEBUG [agent.manager.ClusteredAgentAttache] 
(AgentManager-Handler-5:null) Seq 1-988151911: Forwarding Seq 1-988151911:  { 
Cmd , MgmtId: 187796561440775, via: 1, Ver: v1, Flags: 100111, 
[{routing.DhcpEntryCommand:{vmMac:06:7c:3a:00:00:14,vmIpAddress:XXX.XXX.X.179,vmName:CentOS-6-5-new,defaultRouter:XXX.XXX.X.1,defaultDns:XXX.XXX.X.172,duid:00:03:00:01:06:7c:3a:00:00:14,isDefault:true,accessDetails:{router.guest.ip:XXX.XXX.X.172,zone.network.type:Basic,router.ip:169.254.3.178,router.name:r-4-VM},wait:0}}]
 } to 279278805451651





From: Rajani Karuturi 
rajani.karut...@citrix.commailto:rajani.karut...@citrix.com
To: users@cloudstack.apache.orgmailto:users@cloudstack.apache.org 
users@cloudstack.apache.orgmailto:users@cloudstack.apache.org; Giri Prasad 
g_p...@yahoo.commailto:g_p...@yahoo.com
Sent: Monday, 28 July 2014 11:01 AM
Subject: Re: Unable to stop or delete vm's

You cannot stop a vm in starting state.
Can you change the state of it manually in db and share the logs?

mysq update vm_instance set state='Stopped' where state=‘Starting’ and 
id=‘PUT_ID_HERE’;

~Rajani



On 28-Jul-2014, at 10:53 am, Giri Prasad 
g_p...@yahoo.com.INVALIDmailto:g_p...@yahoo.com.INVALID wrote:

 Hello All,

  I installed CS 4.1 on Ubuntu 12.04 LTS. Installed two vm's, one each with 
 centos 6.5 and ubuntu 12.04. Single server, local hdd storage.

  After a few days, I powerdown the entire linux box, and after booting up and 
 starting the CS ms console, I started the vm's (26-Jul-2014). The vm's are 
 telling me a status of 'Starting' for a long time.  Powered down the entire 
 linux box, after a few hours.


 Today once again booted the linux box, started CS ms console, the CS gui 
 says, the vm's state as 'Starting'.

  I tried to stop or delete the vm thru cloudmonkey, but it is giving some 
 errors. Any insights?

 Thanks  Regards,
 Giri

 mycloudmonkeytpj  stopVirtualMachine 
 id=7757211b-d8a6-47aa-ba9f-24967499ba97
 .Async job 08cf9cb9-d2f7-46b7-af56-12d16a9c1290 failed
 Error 530, We cannot stop VM[User|ubuntu-12-04-64-bit] when it is in state 
 Starting
 {
  accountid: ,
  cmd: org.apache.cloudstack.api.command.user.vm.StopVMCmd,
  created: 2014-07-28T10:38:28+0530,
  jobid: 08cf9cb9-d2f7-46b7-af56-12d16a9c1290,
  jobprocstatus: 0,
  jobresult: {
errorcode: 530,
errortext: We cannot stop VM[User|ubuntu-12-04-64-bit] when it is in 
 state Starting
  },
  jobresultcode: 530,
  jobresulttype: object,
  jobstatus: 2,
  userid: 
 }

 mycloudmonkeytpj stopVirtualMachine id=b74e6737-ec83-4483-b1a2-ab60045d941b
 .Async job d52f900d-dfa4-4b70-9d6a-8d4ba983e1aa failed
 Error 530, We cannot stop VM[User|CentOS-6-5-x86-64] when it is in state 
 Starting
 {
  accountid: ,
  cmd: org.apache.cloudstack.api.command.user.vm.StopVMCmd,
  created: 2014-07-28T10:39:11+0530,
  jobid: d52f900d-dfa4-4b70-9d6a-8d4ba983e1aa,
  jobprocstatus: 0,
  jobresult: {
errorcode: 530,
errortext: We cannot stop VM[User|CentOS-6-5-x86-64] when it is in 
 state Starting
  },
  jobresultcode: 530,
  jobresulttype: object,
  jobstatus: 2,
  userid: 
 }

 mycloudmonkeytpj destroyVirtualMachine 
 id=7757211b-d8a6-47aa-ba9f-24967499ba97
 .Async job b3dc2bab-1b03-45d1-ba02-0c861f5043df failed
 Error 530, We cannot stop VM[User|ubuntu-12-04-64-bit] when it is in state 
 Starting
 {
  accountid: ,
  cmd: org.apache.cloudstack.api.command.user.vm.DestroyVMCmd,
  created: 2014-07-28T10:39:21+0530,
  jobid: b3dc2bab-1b03-45d1-ba02-0c861f5043df,
  jobprocstatus

Re: Unable to stop or delete vm's

2014-07-28 Thread Rajani Karuturi
looks like agent isn’t able to connect to management server.
Did your management server ip change? is the agent state connected in 
cloudstack UI for the system vms?

~Rajani



On 28-Jul-2014, at 12:16 pm, Giri Prasad 
g_p...@yahoo.commailto:g_p...@yahoo.com wrote:

Thanks.

Here is the agent.log:

tail -50 /var/log/cloudstack/agent/agent.log
at java.lang.Thread.run(Thread.java:701)
2014-07-28 12:13:59,274 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
Connecting to XXX.XXX.X.3:8250
2014-07-28 12:14:02,273 ERROR [utils.nio.NioConnection] (Agent-Selector:null) 
Unable to initialize the threads.
java.net.NoRouteToHostException: No route to host
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:534)
at com.cloud.utils.nio.NioClient.init(NioClient.java:64)
at com.cloud.utils.nio.NioConnection.run(NioConnection.java:108)
at java.lang.Thread.run(Thread.java:701)
2014-07-28 12:14:07,274 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
Connecting to XXX.XXX.X.3:8250
2014-07-28 12:14:10,273 ERROR [utils.nio.NioConnection] (Agent-Selector:null) 
Unable to initialize the threads.
java.net.NoRouteToHostException: No route to host
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:534)
at com.cloud.utils.nio.NioClient.init(NioClient.java:64)
at com.cloud.utils.nio.NioConnection.run(NioConnection.java:108)
at java.lang.Thread.run(Thread.java:701)
2014-07-28 12:14:15,274 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
Connecting to XXX.XXX.X.3:8250
2014-07-28 12:14:18,273 ERROR [utils.nio.NioConnection] (Agent-Selector:null) 
Unable to initialize the threads.
java.net.NoRouteToHostException: No route to host
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:534)
at com.cloud.utils.nio.NioClient.init(NioClient.java:64)
at com.cloud.utils.nio.NioConnection.run(NioConnection.java:108)
at java.lang.Thread.run(Thread.java:701)
2014-07-28 12:14:23,274 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
Connecting to XXX.XXX.X.3:8250
2014-07-28 12:14:26,273 ERROR [utils.nio.NioConnection] (Agent-Selector:null) 
Unable to initialize the threads.
java.net.NoRouteToHostException: No route to host
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:534)
at com.cloud.utils.nio.NioClient.init(NioClient.java:64)
at com.cloud.utils.nio.NioConnection.run(NioConnection.java:108)
at java.lang.Thread.run(Thread.java:701)
2014-07-28 12:14:31,274 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
Connecting to XXX.XXX.X.3:8250
2014-07-28 12:14:34,273 ERROR [utils.nio.NioConnection] (Agent-Selector:null) 
Unable to initialize the threads.
java.net.NoRouteToHostException: No route to host
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:534)
at com.cloud.utils.nio.NioClient.init(NioClient.java:64)
at com.cloud.utils.nio.NioConnection.run(NioConnection.java:108)
at java.lang.Thread.run(Thread.java:701)
2014-07-28 12:14:39,274 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
Connecting to XXX.XXX.X.3:8250
2014-07-28 12:14:42,273 ERROR [utils.nio.NioConnection] (Agent-Selector:null) 
Unable to initialize the threads.
java.net.NoRouteToHostException: No route to host
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:534)
at com.cloud.utils.nio.NioClient.init(NioClient.java:64)
at com.cloud.utils.nio.NioConnection.run(NioConnection.java:108)
at java.lang.Thread.run(Thread.java:701)
2014-07-28 12:14:47,274 INFO  [utils.nio.NioClient] (Agent-Selector:null) 
Connecting to XXX.XXX.X.3:8250



From: Rajani Karuturi 
rajani.karut...@citrix.commailto:rajani.karut...@citrix.com
To: Giri Prasad g_p...@yahoo.commailto:g_p...@yahoo.com
Cc: users@cloudstack.apache.orgmailto:users@cloudstack.apache.org 
users@cloudstack.apache.orgmailto:users@cloudstack.apache.org
Sent: Monday, 28 July 2014 12:11 PM
Subject: Re: Unable to stop or delete vm's

DHCP command failed.
Did you check the agent.log on the host and /var/log/cloud.log on VR?

~Rajani



On 28-Jul-2014, at 11:49 am, Giri Prasad 
g_p...@yahoo.commailto:g_p...@yahoo.com wrote:

Thanks for the update.

I updated the db to set the vm state as Stopped, and then destroyed the 
instance via cloudmonkey. Went thru fine, the gui shows the vm state as 
Destroyed.

 Then, I created a new vm, using the ISO option (already uploaded ISO into CS 
infra), for centos 6.5, the management server log repeats as given below. These 
log entries keep coming out for a few minutes to hours, and then says: Unable 
to create a new instance.

Giri

2014-07-28 11:40:14,863 DEBUG [agent.manager.ClusteredAgentAttache] 
(AgentManager-Handler-1:null) Seq 1

Re: Error while deploying a new VM

2014-07-27 Thread Rajani Karuturi
enabling maintenance mode on primary and then cancelling it might help. It 
sends the mount commands again.

~Rajani



On 26-Jul-2014, at 10:40 am, sandeep khandekar cloudstack.sand...@gmail.com 
wrote:

 you are right rajesh my primary storage is not coming up now.
 I dont know how to fix it now. I used certain set of mount commands to
 mount secondary and primary. If I mount primary first secondary doesnt
 comes up, and vice versa also. as secondary is keeping all the zones pods
 and clusters hosts templates work properly I am mounting secondary first
 and primary next. Any commands how to bring primary up in ubuntu, to bring
 back my cloudstack in running stage.
 
 
 On Fri, Jul 25, 2014 at 1:38 PM, Rajesh Battala rajesh.batt...@citrix.com
 wrote:
 
 To deploy the VM, first virtual router will be deployed.
 From the logs, to deploy the virtual router there is an issue.
 Deployment for virtual router is failing due to its not able to find any
 storage pool ( local, cluster, zone) wide pool to allocate the root disk
 for the VR. Hence VR deployment is failing causing the VM deployment
 failure.
 Can you check what's wrong with the primary storage!
 
 
 2014-07-25 11:43:42,859 DEBUG
 [storage.allocator.LocalStoragePoolAllocator] (Job-Executor-6:job-15 = [
 06e5b887-a9ef-4668-a1b3-623911e16ab4 ]) LocalStoragePoolAllocator returning
 0 suitable storage pools
 2014-07-25 11:43:42,860 DEBUG
 [storage.allocator.ClusterScopeStoragePoolAllocator] (Job-Executor-6:job-15
 = [ 06e5b887-a9ef-4668-a1b3-623911e16ab4 ])
 ClusterScopeStoragePoolAllocator looking for storage pool
 2014-07-25 11:43:42,860 DEBUG
 [storage.allocator.ZoneWideStoragePoolAllocator] (Job-Executor-6:job-15 = [
 06e5b887-a9ef-4668-a1b3-623911e16ab4 ]) ZoneWideStoragePoolAllocator to
 find storage pool
 2014-07-25 11:43:42,860 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
 (Job-Executor-6:job-15 = [ 06e5b887-a9ef-4668-a1b3-623911e16ab4 ]) No
 suitable pools found for volume: Vol[4|vm=4|ROOT] under cluster: 1
 2014-07-25 11:43:42,860 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
 (Job-Executor-6:job-15 = [ 06e5b887-a9ef-4668-a1b3-623911e16ab4 ]) No
 suitable pools found
 2014-07-25 11:43:42,860 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
 (Job-Executor-6:job-15 = [ 06e5b887-a9ef-4668-a1b3-623911e16ab4 ]) No
 suitable storagePools found under this Cluster: 1
 2014-07-25 11:43:42,861 DEBUG [cloud.deploy.DeploymentPlanningManagerImpl]
 (Job-Executor-6:job-15 = [ 06e5b887-a9ef-4668-a1b3-623911e16ab4 ]) Could
 not find suitable Deployment Destination for this VM under any clusters,
 returning.
 
 
 
 Thanks
 Rajesh Battala
 
 -Original Message-
 From: sandeep khandekar [mailto:cloudstack.sand...@gmail.com]
 Sent: Friday, July 25, 2014 1:24 PM
 To: users@cloudstack.apache.org
 Subject: Re: Error while deploying a new VM
 
 Please find the  copy of log the details on the link below for  job-15
 http://paste.algolibre.com/115
 Thank you
 
 
 
 On Fri, Jul 25, 2014 at 12:05 PM, sandeep khandekar 
 cloudstack.sand...@gmail.com wrote:
 
 Dear ALL,
 
 Previously I used to have cloudstack, it was running properly, created
 the instances successfully also.  I destroyed the prevoius
 installation of cloudstack.  not removed any of the files of previous
 cloudstack(/export/secondary, /export/primary) . I just wiped the
 database drop database cloud;  and again created the database and
 installed/downloaded isos everything properly.
 
 Everything is coming up except my virtual router. is these causing
 problem?
 Any idea how to solve these ?
 
 
 On Fri, Jul 25, 2014 at 11:44 AM, sandeep khandekar 
 cloudstack.sand...@gmail.com wrote:
 
 
 root@cloudstack:/home/cloudstack# tail -f
 /var/log/cloudstack/management/management-server.log|grep exception
 com.cloud.exception.InsufficientServerCapacityException: Unable to
 create a deployment for VM[DomainRouter|r-4-VM]Scope=interface
 com.cloud.dc.DataCenter; id=1
 2014-07-25 11:43:45,754 INFO  [user.vm.DeployVMCmd]
 (Job-Executor-6:job-15 = [ 06e5b887-a9ef-4668-a1b3-623911e16ab4 ])
 com.cloud.exception.InsufficientServerCapacityException: Unable to
 create a deployment for VM[User|a]Scope=interface
 com.cloud.dc.DataCenter; id=1
 com.cloud.exception.InsufficientServerCapacityException: Unable to
 create a deployment for VM[User|a]Scope=interface
 com.cloud.dc.DataCenter; id=1
 
 
 
 On Fri, Jul 25, 2014 at 11:39 AM, Suresh Sadhu
 suresh.sa...@citrix.com
 wrote:
 
 Dear Sandeep,
 
 Please cut and paste the error/exception content from the logs.
 without  logs it difficult to analyse the problem.
 
 Regards
 Sadhu
 
 
 -Original Message-
 From: sandeep khandekar [mailto:cloudstack.sand...@gmail.com]
 Sent: 25 July 2014 10:31
 To: users@cloudstack.apache.org
 Subject: Re: Error while deploying a new VM
 
 host is up and running
 
 
 On Fri, Jul 25, 2014 at 10:29 AM, sandeep khandekar 
 cloudstack.sand...@gmail.com wrote:
 
 I am working on single node.
 
 
 On Fri, Jul 25, 2014 at 9:42 AM, 

Re: Unable to stop or delete vm's

2014-07-27 Thread Rajani Karuturi
You cannot stop a vm in starting state. 
Can you change the state of it manually in db and share the logs?

mysq update vm_instance set state='Stopped' where state=‘Starting’ and 
id=‘PUT_ID_HERE’;

~Rajani



On 28-Jul-2014, at 10:53 am, Giri Prasad g_p...@yahoo.com.INVALID wrote:

 Hello All,
 
  I installed CS 4.1 on Ubuntu 12.04 LTS. Installed two vm's, one each with 
 centos 6.5 and ubuntu 12.04. Single server, local hdd storage.
 
  After a few days, I powerdown the entire linux box, and after booting up and 
 starting the CS ms console, I started the vm's (26-Jul-2014). The vm's are 
 telling me a status of 'Starting' for a long time.  Powered down the entire 
 linux box, after a few hours.
 
 
 Today once again booted the linux box, started CS ms console, the CS gui 
 says, the vm's state as 'Starting'.
 
  I tried to stop or delete the vm thru cloudmonkey, but it is giving some 
 errors. Any insights?
 
 Thanks  Regards,
 Giri
 
 mycloudmonkeytpj  stopVirtualMachine 
 id=7757211b-d8a6-47aa-ba9f-24967499ba97
 .Async job 08cf9cb9-d2f7-46b7-af56-12d16a9c1290 failed
 Error 530, We cannot stop VM[User|ubuntu-12-04-64-bit] when it is in state 
 Starting
 {
   accountid: ,
   cmd: org.apache.cloudstack.api.command.user.vm.StopVMCmd,
   created: 2014-07-28T10:38:28+0530,
   jobid: 08cf9cb9-d2f7-46b7-af56-12d16a9c1290,
   jobprocstatus: 0,
   jobresult: {
 errorcode: 530,
 errortext: We cannot stop VM[User|ubuntu-12-04-64-bit] when it is in 
 state Starting
   },
   jobresultcode: 530,
   jobresulttype: object,
   jobstatus: 2,
   userid: 
 }
 
 mycloudmonkeytpj stopVirtualMachine id=b74e6737-ec83-4483-b1a2-ab60045d941b
 .Async job d52f900d-dfa4-4b70-9d6a-8d4ba983e1aa failed
 Error 530, We cannot stop VM[User|CentOS-6-5-x86-64] when it is in state 
 Starting
 {
   accountid: ,
   cmd: org.apache.cloudstack.api.command.user.vm.StopVMCmd,
   created: 2014-07-28T10:39:11+0530,
   jobid: d52f900d-dfa4-4b70-9d6a-8d4ba983e1aa,
   jobprocstatus: 0,
   jobresult: {
 errorcode: 530,
 errortext: We cannot stop VM[User|CentOS-6-5-x86-64] when it is in 
 state Starting
   },
   jobresultcode: 530,
   jobresulttype: object,
   jobstatus: 2,
   userid: 
 }
 
 mycloudmonkeytpj destroyVirtualMachine 
 id=7757211b-d8a6-47aa-ba9f-24967499ba97
 .Async job b3dc2bab-1b03-45d1-ba02-0c861f5043df failed
 Error 530, We cannot stop VM[User|ubuntu-12-04-64-bit] when it is in state 
 Starting
 {
   accountid: ,
   cmd: org.apache.cloudstack.api.command.user.vm.DestroyVMCmd,
   created: 2014-07-28T10:39:21+0530,
   jobid: b3dc2bab-1b03-45d1-ba02-0c861f5043df,
   jobprocstatus: 0,
   jobresult: {
 errorcode: 530,
 errortext: We cannot stop VM[User|ubuntu-12-04-64-bit] when it is in 
 state Starting
   },
   jobresultcode: 530,
   jobresulttype: object,
   jobstatus: 2,
   userid: 
 }
 
 mycloudmonkeytpj destroyVirtualMachine 
 id=b74e6737-ec83-4483-b1a2-ab60045d941b
 .Async job 81e7e2c4-efc9-4673-90f7-8a69287cfa80 failed
 Error 530, We cannot stop VM[User|CentOS-6-5-x86-64] when it is in state 
 Starting
 {
   accountid: ,
   cmd: org.apache.cloudstack.api.command.user.vm.DestroyVMCmd,
   created: 2014-07-28T10:39:31+0530,
   jobid: 81e7e2c4-efc9-4673-90f7-8a69287cfa80,
   jobprocstatus: 0,
   jobresult: {
 errorcode: 530,
 errortext: We cannot stop VM[User|CentOS-6-5-x86-64] when it is in 
 state Starting
   },
   jobresultcode: 530,
   jobresulttype: object,
   jobstatus: 2,
   userid: 
 }



Re: CS 4.2.1 - XenServer 6.2 - SSVM not starting, change from starting to Stopped

2014-07-23 Thread Rajani Karuturi
any exceptions in the logs? can you share logs?

~Rajani



On 23-Jul-2014, at 10:35 pm, motty cruz motty.c...@gmail.com wrote:

 Hi,
 SSVM are not starting, status changes from Starting to Stopped keeps
 looping,
 
 any ideas?



Re: CloudStack 4.2.1

2014-07-21 Thread Rajani Karuturi
Can you share more logs?? Did you try restarting the agent??

~Rajani



On 18-Jul-2014, at 8:25 pm, motty cruz motty.c...@gmail.com wrote:

 Hello all,
 one of KVM hosts is showing an Alert status; In the log I see the following
 error:
 
 014-07-18 07:52:05,338 INFO  [cloud.agent.Agent] (Agent-Handler-3:null)
 Lost connection to the server. Dealing with the remaining commands...
 2014-07-18 07:52:05,338 INFO  [cloud.agent.Agent] (Agent-Handler-3:null)
 Cannot connect because we still have 5 commands in progress
 
 how would I get this host back on from Alert status?
 
 Thanks,



Re: Ikoula Cloud, #1 in Performance on the French Market!

2014-07-16 Thread Rajani Karuturi
Wow.. great news.. congratulations..

~Rajani



On 16-Jul-2014, at 7:10 pm, Anne Claire Pourchasse 
apourcha...@ikoula.commailto:apourcha...@ikoula.com wrote:

Hello,

A great news for Ikoula that I would like to share with you all !

Our Ikoula Cloud solution, based on the CloudStack technology is #1 in 
performance on the French market well above Google, AWS and Microsoft Azure.

We are #2 at the Cloud General Ranking (performance/price) right after Google 
Compute Engine… only 1 hundredth gap!

Here is a link to this ranking (in French): 
http://www.journaldunet.com/solutions/cloud-computing/comparatif-cloud.shtml

We are proud to share this success and show how the CloudStack solution is a 
reality, a well-tried technology which has proven its effectiveness on our 
market.

Good day to you all.

Anne-Claire




Anne-Claire Pourchasse |  Responsable Communication
Ikoula - 175/177 rue d’Aguesseau - 92100 Boulogne Billancourt - France
Tel : +33 1 84 01 02 69  |  Fax : +33 1 84 01 02 50 |  
www.ikoula.comhttp://www.ikoula.com/


Ikoula, c'est trois divisions
Express Hosting : Des solutions d’hébergements packagées et flexibles allant du 
nom de domaine aux serveurs dédiés physiques ou virtuels disponibles en 15 min.

Enterprise Services : Spécialiste de l’infogérance, du cloud computing et des 
plateformes collaboratives, Ikoula assure en 24/7 sur site, la haute 
disponibilité de vos applications et garantit votre tranquillité.

EX10 : la place de marché de solutions collaboratives dans le Cloud, en marque 
blanche, spécialement conçue pour les revendeurs et intégrateurs informatiques.


https://www.facebook.com/ikoula  https://twitter.com/ikoula   
https://plus.google.com/108087908639247353192   
http://www.linkedin.com/company/ikoula   
http://fr.viadeo.com/fr/company/ikoula   http://www.youtube.com/ikoulanet


Avant d'imprimer ce courrier, réfléchissons à l'impact sur l'environnement !




Re: Unable to fetch Active Directory Users Information !

2014-07-07 Thread Rajani Karuturi
and the output of direct ldap query from command line.
$ ldapsearch -x -h mind.motherson.comhttp://mind.motherson.com -p 389 -b 
“PUT-ldap.basedn-VALUE-HERE -s sub -D “PUT-ldap.bind.principal-VALUE-HERE  -w 
PUT-ldap.bind.password-PASSWORD-HERE (objectClass=User)

~Rajani



On 07-Jul-2014, at 11:51 am, Rajani Karuturi 
rajani.karut...@citrix.commailto:rajani.karut...@citrix.com wrote:

can you share the log and configuration params?

~Rajani



On 07-Jul-2014, at 11:20 am, Deepak Yadav 
deepak@gmail.commailto:deepak@gmail.com wrote:

I am getting this out put while executing Api call.


http://localhost:8096/client/api?command=listLdapUserslisttype=newresponse=jsonapiKey=bzujkgpBXBoQGQgBf1948nCK3pparYHoYzbStJeGb4LNOCpcYU9OeZlPXNisYAZO7ceF6wSbaD13x45CfZPVgwsignature=TXgt_exc6VMMvjAMYkcrmyP9LfF9URejJbK0RB5IqP6UQ8ngOESmdEjAPNTgBaDUF9BxcPHJ-Nr4AUw0knZbNg

OUTPUT :

{ ldapuserresponse : { } }


On Mon, Jul 7, 2014 at 10:54 AM, Rajani Karuturi rajani.karut...@citrix.com
wrote:

On port 8080, you should specify session key. Look for this api call and
the output in firebug when you are on the add ldap account dialog.

or you cloud use cloud monkey
https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+cloudmonkey+CLI


to disable encryption, set db.cloud.encryption.type=none in db.properties.
you will have to redeploy database and do all the configuration again
after this.


to share the config values, either copy paste the values from the ui or
put the screenshot somewhere and share the url.


~Rajani



On 07-Jul-2014, at 10:38 am, Deepak Yadav deepak@gmail.commailto:
deepak@gmail.com wrote:

I am able to connect both the port from Cloud Server :  389, 3268.

Still I am not getting any data after removing
ldap.search.group.principle  from Global Settings.

I am not able to connect this web URL from my cloud system because this
8096 port is not running on my system, When I use my default port 8080 I am
getting error  Unable to verify the user credential and or/ request
Signature.

And As i know that I am not using any encryption on my system so please let
me know how can disable and share u required log !






On Mon, Jul 7, 2014 at 10:11 AM, Rajani Karuturi 
rajani.karut...@citrix.commailto:rajani.karut...@citrix.com
wrote:

looks like you have encryption enabled. hence, I wasn't able to read the
configuration table values.

few observations:
Are you able to connect to your ldap server on port 389 outside
cloudstack?? the default port of AD is 3268

ldap.search.group.principle is not a compulsory field. its just a way to
limit this users to only that group. you can remove that and try.

Can you check the listldapusers api call output?

http://localhost:8096/client/api?command=listLdapUserslisttype=newresponse=json
May be you are hitting this UI Issue?
https://issues.apache.org/jira/browse/CLOUDSTACK-6487

if none of this helps, share the unencrypted configuration values.

~Rajani



On 07-Jul-2014, at 9:51 am, Deepak Yadav deepak@gmail.commailto:
deepak@gmail.commailto:
deepak@gmail.commailto:deepak@gmail.com wrote:

Thnaks for your response !


Please find the attached output of the command.


On Mon, Jul 7, 2014 at 9:45 AM, Rajani Karuturi 
rajani.karut...@citrix.commailto:rajani.karut...@citrix.commailto:
rajani.karut...@citrix.com wrote:
images are stripped.

Can you share the output of following two queries?
mysql select * from ldap_configuration;
mysql select * from configuration where name like '%ldap%';

~Rajani



On 07-Jul-2014, at 9:24 am, Deepak Yadav deepak@gmail.commailto:
deepak@gmail.commailto:
deepak@gmail.commailto:deepak@gmail.com wrote:

Hi,


I want to join my cloud stack application to Active Directory LDAP to get
user !

I am following this Blog to configure my LDAP settings !



http://shapeblue.com/cloudstack/using-cloudstack-4-3-with-microsoft-active-directory/

But I am unable to fetch user account from my LDAP data. I am also
attaching screen shot of my Configuration !

Please let me know the correct way to configure LDAP in cloud stack !




--
Thanks  Regards
Deepak Yadav





--
Thanks  Regards
Deepak Yadav
M +91  9015150337 |
E  deepak.ya...@mind-infotech.commailto:deepak.ya...@mind-infotech.com
mailto:deepak.ya...@mind-infotech.com
| www.mind-infotech.comhttp://www.mind-infotech.com/
http://www.mind-infotech.com/ |




--
Thanks  Regards
Deepak Yadav
M +91  9015150337 |
E  deepak.ya...@mind-infotech.commailto:deepak.ya...@mind-infotech.com
mailto:deepak.ya...@mind-infotech.com
| www.mind-infotech.comhttp://www.mind-infotech.com/
http://www.mind-infotech.com/ |


output.txt




--
Thanks  Regards
Deepak Yadav




--
Thanks  Regards
Deepak Yadav




Re: Unable to fetch Active Directory Users Information !

2014-07-07 Thread Rajani Karuturi
-e param specifies the encryption type and the default is file. looks like it 
accepts only file and web. i don’t know how to specify none there. (I use the 
dev mvn build and its always disabled there)

ldap integration should work fine even with encryption enabled. if its just for 
sharing the configuration values, can you put the screenshot somewhere and 
share the url?

if you want to disable encryption for different reasons, please start a new 
thread with correct subject to attract others attention.

~Rajani



On 07-Jul-2014, at 11:53 am, Deepak Yadav deepak@gmail.com wrote:

 Hi
 
 
 When I am again deploying Cloud stack from scratch It automatically use
 db.cloud.encryption.type=file !
 
 I am using this command while setup new database :
 cloudstack-setup-databases cloud:PassWord@localhost --deploy-as=root
 
 
 On Mon, Jul 7, 2014 at 11:20 AM, Deepak Yadav deepak@gmail.com wrote:
 
 I am getting this out put while executing Api call.
 
 
 
 http://localhost:8096/client/api?command=listLdapUserslisttype=newresponse=jsonapiKey=bzujkgpBXBoQGQgBf1948nCK3pparYHoYzbStJeGb4LNOCpcYU9OeZlPXNisYAZO7ceF6wSbaD13x45CfZPVgwsignature=TXgt_exc6VMMvjAMYkcrmyP9LfF9URejJbK0RB5IqP6UQ8ngOESmdEjAPNTgBaDUF9BxcPHJ-Nr4AUw0knZbNg
 
 OUTPUT :
 
 { ldapuserresponse : { } }
 
 
 On Mon, Jul 7, 2014 at 10:54 AM, Rajani Karuturi 
 rajani.karut...@citrix.com wrote:
 
 On port 8080, you should specify session key. Look for this api call and
 the output in firebug when you are on the add ldap account dialog.
 
 or you cloud use cloud monkey
 https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+cloudmonkey+CLI
 
 
 to disable encryption, set db.cloud.encryption.type=none in db.properties.
 you will have to redeploy database and do all the configuration again
 after this.
 
 
 to share the config values, either copy paste the values from the ui or
 put the screenshot somewhere and share the url.
 
 
 ~Rajani
 
 
 
 On 07-Jul-2014, at 10:38 am, Deepak Yadav deepak@gmail.commailto:
 deepak@gmail.com wrote:
 
 I am able to connect both the port from Cloud Server :  389, 3268.
 
 Still I am not getting any data after removing
 ldap.search.group.principle  from Global Settings.
 
 I am not able to connect this web URL from my cloud system because this
 8096 port is not running on my system, When I use my default port 8080 I
 am
 getting error  Unable to verify the user credential and or/ request
 Signature.
 
 And As i know that I am not using any encryption on my system so please
 let
 me know how can disable and share u required log !
 
 
 
 
 
 
 On Mon, Jul 7, 2014 at 10:11 AM, Rajani Karuturi 
 rajani.karut...@citrix.commailto:rajani.karut...@citrix.com
 wrote:
 
 looks like you have encryption enabled. hence, I wasn't able to read the
 configuration table values.
 
 few observations:
 Are you able to connect to your ldap server on port 389 outside
 cloudstack?? the default port of AD is 3268
 
 ldap.search.group.principle is not a compulsory field. its just a way to
 limit this users to only that group. you can remove that and try.
 
 Can you check the listldapusers api call output?
 
 http://localhost:8096/client/api?command=listLdapUserslisttype=newresponse=json
 May be you are hitting this UI Issue?
 https://issues.apache.org/jira/browse/CLOUDSTACK-6487
 
 if none of this helps, share the unencrypted configuration values.
 
 ~Rajani
 
 
 
 On 07-Jul-2014, at 9:51 am, Deepak Yadav deepak@gmail.commailto:
 deepak@gmail.commailto:
 deepak@gmail.commailto:deepak@gmail.com wrote:
 
 Thnaks for your response !
 
 
 Please find the attached output of the command.
 
 
 On Mon, Jul 7, 2014 at 9:45 AM, Rajani Karuturi 
 rajani.karut...@citrix.commailto:rajani.karut...@citrix.commailto:
 rajani.karut...@citrix.com wrote:
 images are stripped.
 
 Can you share the output of following two queries?
 mysql select * from ldap_configuration;
 mysql select * from configuration where name like '%ldap%';
 
 ~Rajani
 
 
 
 On 07-Jul-2014, at 9:24 am, Deepak Yadav deepak@gmail.commailto:
 deepak@gmail.commailto:
 deepak@gmail.commailto:deepak@gmail.com wrote:
 
 Hi,
 
 
 I want to join my cloud stack application to Active Directory LDAP to get
 user !
 
 I am following this Blog to configure my LDAP settings !
 
 
 
 http://shapeblue.com/cloudstack/using-cloudstack-4-3-with-microsoft-active-directory/
 
 But I am unable to fetch user account from my LDAP data. I am also
 attaching screen shot of my Configuration !
 
 Please let me know the correct way to configure LDAP in cloud stack !
 
 
 
 
 --
 Thanks  Regards
 Deepak Yadav
 
 
 
 
 
 --
 Thanks  Regards
 Deepak Yadav
 M +91  9015150337 |
 E  deepak.ya...@mind-infotech.commailto:deepak.ya...@mind-infotech.com
 mailto:deepak.ya...@mind-infotech.com
 | www.mind-infotech.comhttp://www.mind-infotech.com/
 http://www.mind-infotech.com/ |
 
 
 
 
 --
 Thanks  Regards
 Deepak Yadav
 M +91  9015150337 |
 E  deepak.ya...@mind

Re: Unable to fetch Active Directory Users Information !

2014-07-07 Thread Rajani Karuturi
Everything seems to be correct. I don’t see anything in the logs as well.
I am not sure if this is the issue but, can you remove the quotes around basedn 
and bind.principal and try again?

remove the quotes, remove the ldap server(ip and port) and add again. check the 
logs to see for any exception.

BTW, when you query the ldap from command line, is it returning users? 
ldap server should have some users listed under the basedn provided and 
accessible to bind.principal with bind.password.
Can you confirm this by command line query to ldap outside of cloudstack?


~Rajani



On 07-Jul-2014, at 1:52 pm, Deepak Yadav deepak@gmail.com wrote:

 Hi
 
 
 Please find the log and screen shot from this location !
 
 https://ci.mindeservices.com/data/
 
 
 On Mon, Jul 7, 2014 at 12:49 PM, Rajani Karuturi rajani.karut...@citrix.com
 wrote:
 
 -e param specifies the encryption type and the default is file. looks like
 it accepts only file and web. i don't know how to specify none there. (I
 use the dev mvn build and its always disabled there)
 
 ldap integration should work fine even with encryption enabled. if its
 just for sharing the configuration values, can you put the screenshot
 somewhere and share the url?
 
 if you want to disable encryption for different reasons, please start a
 new thread with correct subject to attract others attention.
 
 ~Rajani
 
 
 
 On 07-Jul-2014, at 11:53 am, Deepak Yadav deepak@gmail.com wrote:
 
 Hi
 
 
 When I am again deploying Cloud stack from scratch It automatically use
 db.cloud.encryption.type=file !
 
 I am using this command while setup new database :
 cloudstack-setup-databases cloud:PassWord@localhost --deploy-as=root
 
 
 On Mon, Jul 7, 2014 at 11:20 AM, Deepak Yadav deepak@gmail.com
 wrote:
 
 I am getting this out put while executing Api call.
 
 
 
 
 http://localhost:8096/client/api?command=listLdapUserslisttype=newresponse=jsonapiKey=bzujkgpBXBoQGQgBf1948nCK3pparYHoYzbStJeGb4LNOCpcYU9OeZlPXNisYAZO7ceF6wSbaD13x45CfZPVgwsignature=TXgt_exc6VMMvjAMYkcrmyP9LfF9URejJbK0RB5IqP6UQ8ngOESmdEjAPNTgBaDUF9BxcPHJ-Nr4AUw0knZbNg
 
 OUTPUT :
 
 { ldapuserresponse : { } }
 
 
 On Mon, Jul 7, 2014 at 10:54 AM, Rajani Karuturi 
 rajani.karut...@citrix.com wrote:
 
 On port 8080, you should specify session key. Look for this api call
 and
 the output in firebug when you are on the add ldap account dialog.
 
 or you cloud use cloud monkey
 
 https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+cloudmonkey+CLI
 
 
 to disable encryption, set db.cloud.encryption.type=none in
 db.properties.
 you will have to redeploy database and do all the configuration again
 after this.
 
 
 to share the config values, either copy paste the values from the ui or
 put the screenshot somewhere and share the url.
 
 
 ~Rajani
 
 
 
 On 07-Jul-2014, at 10:38 am, Deepak Yadav deepak@gmail.com
 mailto:
 deepak@gmail.com wrote:
 
 I am able to connect both the port from Cloud Server :  389, 3268.
 
 Still I am not getting any data after removing
 ldap.search.group.principle  from Global Settings.
 
 I am not able to connect this web URL from my cloud system because this
 8096 port is not running on my system, When I use my default port 8080
 I
 am
 getting error  Unable to verify the user credential and or/ request
 Signature.
 
 And As i know that I am not using any encryption on my system so please
 let
 me know how can disable and share u required log !
 
 
 
 
 
 
 On Mon, Jul 7, 2014 at 10:11 AM, Rajani Karuturi 
 rajani.karut...@citrix.commailto:rajani.karut...@citrix.com
 wrote:
 
 looks like you have encryption enabled. hence, I wasn't able to read
 the
 configuration table values.
 
 few observations:
 Are you able to connect to your ldap server on port 389 outside
 cloudstack?? the default port of AD is 3268
 
 ldap.search.group.principle is not a compulsory field. its just a way
 to
 limit this users to only that group. you can remove that and try.
 
 Can you check the listldapusers api call output?
 
 
 http://localhost:8096/client/api?command=listLdapUserslisttype=newresponse=json
 May be you are hitting this UI Issue?
 https://issues.apache.org/jira/browse/CLOUDSTACK-6487
 
 if none of this helps, share the unencrypted configuration values.
 
 ~Rajani
 
 
 
 On 07-Jul-2014, at 9:51 am, Deepak Yadav deepak@gmail.commailto:
 deepak@gmail.commailto:
 deepak@gmail.commailto:deepak@gmail.com wrote:
 
 Thnaks for your response !
 
 
 Please find the attached output of the command.
 
 
 On Mon, Jul 7, 2014 at 9:45 AM, Rajani Karuturi 
 rajani.karut...@citrix.commailto:rajani.karut...@citrix.commailto:
 rajani.karut...@citrix.com wrote:
 images are stripped.
 
 Can you share the output of following two queries?
 mysql select * from ldap_configuration;
 mysql select * from configuration where name like '%ldap%';
 
 ~Rajani
 
 
 
 On 07-Jul-2014, at 9:24 am, Deepak Yadav deepak@gmail.commailto:
 deepak@gmail.commailto:
 deepak

Re: Unable to fetch Active Directory Users Information !

2014-07-07 Thread Rajani Karuturi
Everything seems to be correct. I don’t see anything in the logs as well.
I am not sure if this is the issue but, can you remove the quotes around basedn 
and bind.principal and try again?

remove the quotes, remove the ldap server(ip and port) and add again. check the 
logs to see for any exception.

BTW, when you query the ldap from command line, is it returning users? 
ldap server should have some users listed under the basedn provided and 
accessible to bind.principal with bind.password.
Can you confirm this by command line query to ldap outside of cloudstack?


~Rajani



On 07-Jul-2014, at 1:52 pm, Deepak Yadav deepak@gmail.com wrote:

 Hi
 
 
 Please find the log and screen shot from this location !
 
 https://ci.mindeservices.com/data/
 
 
 On Mon, Jul 7, 2014 at 12:49 PM, Rajani Karuturi rajani.karut...@citrix.com
 wrote:
 
 -e param specifies the encryption type and the default is file. looks like
 it accepts only file and web. i don't know how to specify none there. (I
 use the dev mvn build and its always disabled there)
 
 ldap integration should work fine even with encryption enabled. if its
 just for sharing the configuration values, can you put the screenshot
 somewhere and share the url?
 
 if you want to disable encryption for different reasons, please start a
 new thread with correct subject to attract others attention.
 
 ~Rajani
 
 
 
 On 07-Jul-2014, at 11:53 am, Deepak Yadav deepak@gmail.com wrote:
 
 Hi
 
 
 When I am again deploying Cloud stack from scratch It automatically use
 db.cloud.encryption.type=file !
 
 I am using this command while setup new database :
 cloudstack-setup-databases cloud:PassWord@localhost --deploy-as=root
 
 
 On Mon, Jul 7, 2014 at 11:20 AM, Deepak Yadav deepak@gmail.com
 wrote:
 
 I am getting this out put while executing Api call.
 
 
 
 
 http://localhost:8096/client/api?command=listLdapUserslisttype=newresponse=jsonapiKey=bzujkgpBXBoQGQgBf1948nCK3pparYHoYzbStJeGb4LNOCpcYU9OeZlPXNisYAZO7ceF6wSbaD13x45CfZPVgwsignature=TXgt_exc6VMMvjAMYkcrmyP9LfF9URejJbK0RB5IqP6UQ8ngOESmdEjAPNTgBaDUF9BxcPHJ-Nr4AUw0knZbNg
 
 OUTPUT :
 
 { ldapuserresponse : { } }
 
 
 On Mon, Jul 7, 2014 at 10:54 AM, Rajani Karuturi 
 rajani.karut...@citrix.com wrote:
 
 On port 8080, you should specify session key. Look for this api call
 and
 the output in firebug when you are on the add ldap account dialog.
 
 or you cloud use cloud monkey
 
 https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+cloudmonkey+CLI
 
 
 to disable encryption, set db.cloud.encryption.type=none in
 db.properties.
 you will have to redeploy database and do all the configuration again
 after this.
 
 
 to share the config values, either copy paste the values from the ui or
 put the screenshot somewhere and share the url.
 
 
 ~Rajani
 
 
 
 On 07-Jul-2014, at 10:38 am, Deepak Yadav deepak@gmail.com
 mailto:
 deepak@gmail.com wrote:
 
 I am able to connect both the port from Cloud Server :  389, 3268.
 
 Still I am not getting any data after removing
 ldap.search.group.principle  from Global Settings.
 
 I am not able to connect this web URL from my cloud system because this
 8096 port is not running on my system, When I use my default port 8080
 I
 am
 getting error  Unable to verify the user credential and or/ request
 Signature.
 
 And As i know that I am not using any encryption on my system so please
 let
 me know how can disable and share u required log !
 
 
 
 
 
 
 On Mon, Jul 7, 2014 at 10:11 AM, Rajani Karuturi 
 rajani.karut...@citrix.commailto:rajani.karut...@citrix.com
 wrote:
 
 looks like you have encryption enabled. hence, I wasn't able to read
 the
 configuration table values.
 
 few observations:
 Are you able to connect to your ldap server on port 389 outside
 cloudstack?? the default port of AD is 3268
 
 ldap.search.group.principle is not a compulsory field. its just a way
 to
 limit this users to only that group. you can remove that and try.
 
 Can you check the listldapusers api call output?
 
 
 http://localhost:8096/client/api?command=listLdapUserslisttype=newresponse=json
 May be you are hitting this UI Issue?
 https://issues.apache.org/jira/browse/CLOUDSTACK-6487
 
 if none of this helps, share the unencrypted configuration values.
 
 ~Rajani
 
 
 
 On 07-Jul-2014, at 9:51 am, Deepak Yadav deepak@gmail.commailto:
 deepak@gmail.commailto:
 deepak@gmail.commailto:deepak@gmail.com wrote:
 
 Thnaks for your response !
 
 
 Please find the attached output of the command.
 
 
 On Mon, Jul 7, 2014 at 9:45 AM, Rajani Karuturi 
 rajani.karut...@citrix.commailto:rajani.karut...@citrix.commailto:
 rajani.karut...@citrix.com wrote:
 images are stripped.
 
 Can you share the output of following two queries?
 mysql select * from ldap_configuration;
 mysql select * from configuration where name like '%ldap%';
 
 ~Rajani
 
 
 
 On 07-Jul-2014, at 9:24 am, Deepak Yadav deepak@gmail.commailto:
 deepak@gmail.commailto:
 deepak

Re: Unable to fetch Active Directory Users Information !

2014-07-07 Thread Rajani Karuturi
awesome!!

~Rajani



On 07-Jul-2014, at 3:05 pm, Deepak Yadav deepak@gmail.com wrote:

 Thnaks !
 
 
 After removingquotes from ldap.basedn and ldap.bind.principal issue
 get resolved !
 
 
 On Mon, Jul 7, 2014 at 2:53 PM, Rajani Karuturi rajani.karut...@citrix.com
 wrote:
 
 Everything seems to be correct. I don't see anything in the logs as well.
 I am not sure if this is the issue but, can you remove the quotes around
 basedn and bind.principal and try again?
 
 remove the quotes, remove the ldap server(ip and port) and add again.
 check the logs to see for any exception.
 
 BTW, when you query the ldap from command line, is it returning users?
 ldap server should have some users listed under the basedn provided and
 accessible to bind.principal with bind.password.
 Can you confirm this by command line query to ldap outside of cloudstack?
 
 
 ~Rajani
 
 
 
 On 07-Jul-2014, at 1:52 pm, Deepak Yadav deepak@gmail.com wrote:
 
 Hi
 
 
 Please find the log and screen shot from this location !
 
 https://ci.mindeservices.com/data/
 
 
 On Mon, Jul 7, 2014 at 12:49 PM, Rajani Karuturi 
 rajani.karut...@citrix.com
 wrote:
 
 -e param specifies the encryption type and the default is file. looks
 like
 it accepts only file and web. i don't know how to specify none there. (I
 use the dev mvn build and its always disabled there)
 
 ldap integration should work fine even with encryption enabled. if its
 just for sharing the configuration values, can you put the screenshot
 somewhere and share the url?
 
 if you want to disable encryption for different reasons, please start a
 new thread with correct subject to attract others attention.
 
 ~Rajani
 
 
 
 On 07-Jul-2014, at 11:53 am, Deepak Yadav deepak@gmail.com wrote:
 
 Hi
 
 
 When I am again deploying Cloud stack from scratch It automatically use
 db.cloud.encryption.type=file !
 
 I am using this command while setup new database :
 cloudstack-setup-databases cloud:PassWord@localhost --deploy-as=root
 
 
 On Mon, Jul 7, 2014 at 11:20 AM, Deepak Yadav deepak@gmail.com
 wrote:
 
 I am getting this out put while executing Api call.
 
 
 
 
 
 http://localhost:8096/client/api?command=listLdapUserslisttype=newresponse=jsonapiKey=bzujkgpBXBoQGQgBf1948nCK3pparYHoYzbStJeGb4LNOCpcYU9OeZlPXNisYAZO7ceF6wSbaD13x45CfZPVgwsignature=TXgt_exc6VMMvjAMYkcrmyP9LfF9URejJbK0RB5IqP6UQ8ngOESmdEjAPNTgBaDUF9BxcPHJ-Nr4AUw0knZbNg
 
 OUTPUT :
 
 { ldapuserresponse : { } }
 
 
 On Mon, Jul 7, 2014 at 10:54 AM, Rajani Karuturi 
 rajani.karut...@citrix.com wrote:
 
 On port 8080, you should specify session key. Look for this api call
 and
 the output in firebug when you are on the add ldap account dialog.
 
 or you cloud use cloud monkey
 
 
 https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+cloudmonkey+CLI
 
 
 to disable encryption, set db.cloud.encryption.type=none in
 db.properties.
 you will have to redeploy database and do all the configuration again
 after this.
 
 
 to share the config values, either copy paste the values from the ui
 or
 put the screenshot somewhere and share the url.
 
 
 ~Rajani
 
 
 
 On 07-Jul-2014, at 10:38 am, Deepak Yadav deepak@gmail.com
 mailto:
 deepak@gmail.com wrote:
 
 I am able to connect both the port from Cloud Server :  389, 3268.
 
 Still I am not getting any data after removing
 ldap.search.group.principle  from Global Settings.
 
 I am not able to connect this web URL from my cloud system because
 this
 8096 port is not running on my system, When I use my default port
 8080
 I
 am
 getting error  Unable to verify the user credential and or/ request
 Signature.
 
 And As i know that I am not using any encryption on my system so
 please
 let
 me know how can disable and share u required log !
 
 
 
 
 
 
 On Mon, Jul 7, 2014 at 10:11 AM, Rajani Karuturi 
 rajani.karut...@citrix.commailto:rajani.karut...@citrix.com
 wrote:
 
 looks like you have encryption enabled. hence, I wasn't able to read
 the
 configuration table values.
 
 few observations:
 Are you able to connect to your ldap server on port 389 outside
 cloudstack?? the default port of AD is 3268
 
 ldap.search.group.principle is not a compulsory field. its just a way
 to
 limit this users to only that group. you can remove that and try.
 
 Can you check the listldapusers api call output?
 
 
 
 http://localhost:8096/client/api?command=listLdapUserslisttype=newresponse=json
 May be you are hitting this UI Issue?
 https://issues.apache.org/jira/browse/CLOUDSTACK-6487
 
 if none of this helps, share the unencrypted configuration values.
 
 ~Rajani
 
 
 
 On 07-Jul-2014, at 9:51 am, Deepak Yadav deepak@gmail.com
 mailto:
 deepak@gmail.commailto:
 deepak@gmail.commailto:deepak@gmail.com wrote:
 
 Thnaks for your response !
 
 
 Please find the attached output of the command.
 
 
 On Mon, Jul 7, 2014 at 9:45 AM, Rajani Karuturi 
 rajani.karut...@citrix.commailto:rajani.karut...@citrix.com
 mailto:
 rajani.karut...@citrix.com wrote

Re: Unable to fetch Active Directory Users Information !

2014-07-07 Thread Rajani Karuturi
Hi Geoff,
Deepak shared his settings and logs in his previous email. 
According to his latest email, his problem is resolved.

~Rajani



On 07-Jul-2014, at 3:07 pm, Geoff Higginbottom 
geoff.higginbot...@shapeblue.com wrote:

 Hi Rajani,
 
 I wrote that blog article.
 
 If you can share the settings you have used for all of LDAP configuration 
 within CloudStack, and also confirm you AD configuration I will check the 
 setting for you.
 
 Regards
 
 Geoff Higginbottom
 
 D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
 
 geoff.higginbot...@shapeblue.com
 
 -Original Message-
 From: Rajani Karuturi [mailto:rajani.karut...@citrix.com]
 Sent: 07 July 2014 10:24
 To: users@cloudstack.apache.org
 Subject: Re: Unable to fetch Active Directory Users Information !
 
 Everything seems to be correct. I don’t see anything in the logs as well.
 I am not sure if this is the issue but, can you remove the quotes around 
 basedn and bind.principal and try again?
 
 remove the quotes, remove the ldap server(ip and port) and add again. check 
 the logs to see for any exception.
 
 BTW, when you query the ldap from command line, is it returning users?
 ldap server should have some users listed under the basedn provided and 
 accessible to bind.principal with bind.password.
 Can you confirm this by command line query to ldap outside of cloudstack?
 
 
 ~Rajani
 
 
 
 On 07-Jul-2014, at 1:52 pm, Deepak Yadav deepak@gmail.com wrote:
 
 Hi
 
 
 Please find the log and screen shot from this location !
 
 https://ci.mindeservices.com/data/
 
 
 On Mon, Jul 7, 2014 at 12:49 PM, Rajani Karuturi
 rajani.karut...@citrix.com
 wrote:
 
 -e param specifies the encryption type and the default is file. looks
 like it accepts only file and web. i don't know how to specify none
 there. (I use the dev mvn build and its always disabled there)
 
 ldap integration should work fine even with encryption enabled. if
 its just for sharing the configuration values, can you put the
 screenshot somewhere and share the url?
 
 if you want to disable encryption for different reasons, please start
 a new thread with correct subject to attract others attention.
 
 ~Rajani
 
 
 
 On 07-Jul-2014, at 11:53 am, Deepak Yadav deepak@gmail.com wrote:
 
 Hi
 
 
 When I am again deploying Cloud stack from scratch It automatically
 use db.cloud.encryption.type=file !
 
 I am using this command while setup new database :
 cloudstack-setup-databases cloud:PassWord@localhost --deploy-as=root
 
 
 On Mon, Jul 7, 2014 at 11:20 AM, Deepak Yadav deepak@gmail.com
 wrote:
 
 I am getting this out put while executing Api call.
 
 
 
 
 http://localhost:8096/client/api?command=listLdapUserslisttype=newr
 esponse=jsonapiKey=bzujkgpBXBoQGQgBf1948nCK3pparYHoYzbStJeGb4LNOCpcY
 U9OeZlPXNisYAZO7ceF6wSbaD13x45CfZPVgwsignature=TXgt_exc6VMMvjAMYkcrm
 yP9LfF9URejJbK0RB5IqP6UQ8ngOESmdEjAPNTgBaDUF9BxcPHJ-Nr4AUw0knZbNg
 
 OUTPUT :
 
 { ldapuserresponse : { } }
 
 
 On Mon, Jul 7, 2014 at 10:54 AM, Rajani Karuturi 
 rajani.karut...@citrix.com wrote:
 
 On port 8080, you should specify session key. Look for this api
 call
 and
 the output in firebug when you are on the add ldap account dialog.
 
 or you cloud use cloud monkey
 
 https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+clo
 udmonkey+CLI
 
 
 to disable encryption, set db.cloud.encryption.type=none in
 db.properties.
 you will have to redeploy database and do all the configuration
 again after this.
 
 
 to share the config values, either copy paste the values from the
 ui or put the screenshot somewhere and share the url.
 
 
 ~Rajani
 
 
 
 On 07-Jul-2014, at 10:38 am, Deepak Yadav deepak@gmail.com
 mailto:
 deepak@gmail.com wrote:
 
 I am able to connect both the port from Cloud Server :  389, 3268.
 
 Still I am not getting any data after removing
 ldap.search.group.principle  from Global Settings.
 
 I am not able to connect this web URL from my cloud system because
 this
 8096 port is not running on my system, When I use my default port
 8080
 I
 am
 getting error  Unable to verify the user credential and or/
 request Signature.
 
 And As i know that I am not using any encryption on my system so
 please let me know how can disable and share u required log !
 
 
 
 
 
 
 On Mon, Jul 7, 2014 at 10:11 AM, Rajani Karuturi 
 rajani.karut...@citrix.commailto:rajani.karut...@citrix.com
 wrote:
 
 looks like you have encryption enabled. hence, I wasn't able to
 read
 the
 configuration table values.
 
 few observations:
 Are you able to connect to your ldap server on port 389 outside
 cloudstack?? the default port of AD is 3268
 
 ldap.search.group.principle is not a compulsory field. its just a
 way
 to
 limit this users to only that group. you can remove that and try.
 
 Can you check the listldapusers api call output?
 
 
 http://localhost:8096/client/api?command=listLdapUserslisttype=newr
 esponse=json
 May be you are hitting this UI Issue?
 https://issues.apache.org/jira

Re: Template Default SystemVM

2014-07-07 Thread Rajani Karuturi
As far as i can see, both the commands are same except a ‘-‘ is missing in the 
url filename in the first call.
in the first run it failed with 403 whereas in the second run it was able to 
download.

the script gets the template id by executing the below command:
mysql -h $dbHost --user=$dbUser --password=$dbPassword --skip-column-names -U 
cloud -e select max(id) from cloud.vm_template where type = \SYSTEM\ and 
hypervisor_type = \VMware\ and removed is null”

looks like you are getting NULL instead of the id with the above. 

can you run the above query and see if its returning properly?


~Rajani



On 07-Jul-2014, at 7:30 pm, Yesid Mora ym...@o4it.com wrote:

 Hello Rajani, the connection to database is good, the DB server is localhost 
 is the same server that Cloudstack, attached the file db.properties and the 
 output for your command generate error
 
 /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt
  -m /mnt/secondary -u 
 http://download.cloud.com/templates/4.3/systemvm64template-2014-04-13-mastervmware.ova
  -h vmware -F
 --2014-07-07 09:56:08--  
 http://download.cloud.com/templates/4.3/systemvm64template-2014-04-13-mastervmware.ova
 Resolving download.cloud.com... 54.231.1.249
 Connecting to download.cloud.com|54.231.1.249|:80... connected.
 HTTP request sent, awaiting response... 403 Forbidden
 2014-07-07 09:56:08 ERROR 403: Forbidden.
 
 Failed to fetch system vm template from 
 http://download.cloud.com/templates/4.3/systemvm64template-2014-04-13-mastervmware.ova
 Installation failed
 
 
 But execute the other command the ouput is:
 
 /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt
  -m /mnt/secondary -u 
 http://download.cloud.com/templates/4.3/systemvm64template-2014-04-13-master-vmware.ova
  -h vmware -F
 --2014-07-07 09:52:22--  
 http://download.cloud.com/templates/4.3/systemvm64template-2014-04-13-master-vmware.ova
 Resolving download.cloud.com... 176.32.99.39
 Connecting to download.cloud.com|176.32.99.39|:80... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 314015744 (299M) [application/x-virtualbox-ova]
 Saving to: 
 “/usr/share/cloudstack-common/scripts/storage/secondary/c0739fbf-7e7b-462a-95f8-5273d8b4da9c.ova”
 
 100%[]
  314,015,744 2.48M/s   in 2m 41s
 
 2014-07-07 09:55:04 (1.86 MB/s) - 
 “/usr/share/cloudstack-common/scripts/storage/secondary/c0739fbf-7e7b-462a-95f8-5273d8b4da9c.ova”
  saved [314015744/314015744]
 
 File 
 /usr/share/cloudstack-common/scripts/storage/secondary/c0739fbf-7e7b-462a-95f8-5273d8b4da9c.ova
  does not appear to be compressed
 Moving to 
 /mnt/secondary/template/tmpl/1/NULL///c0739fbf-7e7b-462a-95f8-5273d8b4da9c.ova...could
  take a while
 Successfully installed system VM template  to 
 /mnt/secondary/template/tmpl/1/NULL/
 
 Thanks,
 
 
 
 Cordialmente,
 
 Yesid Mora | Orchestration Engineer | O4IT
 PBX: 251 Ext +57 (1) 423-5460 | Cel: 3124509565
 | Oficina 202 |
 http://www.o4it.com | mailto:ym...@o4it.com
 
 
 
 -Original Message-
 From: Rajani Karuturi [mailto:rajani.karut...@citrix.com]
 Sent: Sunday, July 06, 2014 11:52 PM
 To: users@cloudstack.apache.org
 Subject: Re: Template Default SystemVM
 
 looks like a mysql connection issue to me. Is the mysql server running and 
 are you able to connect to your mysql server from the cloudstack management 
 server??
 
 Can you share the output when you run the install system template script?
 /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt
  -m /mnt/secondary -u 
 http://download.cloud.com/templates/4.3/systemvm64template-2014-04-13-mastervmware.ova
  -h vmware -F
 
 
 ~Rajani
 
 
 
 On 04-Jul-2014, at 6:31 pm, Yesid Mora ym...@o4it.com wrote:
 
 Hello, yes I check secondary storage and I see the template but the path in 
 the template is
 
 /template/tmpl/1/NULL/files for template
 
 Buti don’t know why the folder is NULL, And I verify in the database but not 
 register the template not see the template, additionally yes I add the 
 primary and secondary storage in Cloudstack and state is good is UP
 
 The output for file template.properties is
 
 filename=47322085-b559-4f7c-ac67-5eb969042cff.ova
 description=SystemVM Template
 checksum=
 hvm=false
 size=314015744
 ova=true
 id=NULL
 public=true
 ova.filename=47322085-b559-4f7c-ac67-5eb969042cff.ova
 uniquename=routing-NULL
 ova.virtualsize=314015744
 virtualsize=314015744
 ova.size=314015744
 
 
 thanks
 
 
 
 Cordialmente,
 
 Yesid Mora | Orchestration Engineer | O4IT
 PBX: 251 Ext +57 (1) 423-5460 | Cel: 3124509565
 | Oficina 202 |
 http://www.o4it.com | mailto:ym...@o4it.com
 
 
 
 -Original Message-
 From: Harikrishna Patnala [mailto:harikrishna.patn...@citrix.com]
 Sent: Friday, July 04, 2014 1:01 AM
 To: users@cloudstack.apache.org
 Subject: Re: Template Default SystemVM
 
 Do add

Re: Unable to fetch Active Directory Users Information !

2014-07-06 Thread Rajani Karuturi
images are stripped.

Can you share the output of following two queries?
mysql select * from ldap_configuration;
mysql select * from configuration where name like '%ldap%';

~Rajani



On 07-Jul-2014, at 9:24 am, Deepak Yadav deepak@gmail.com wrote:

 Hi,
 
 
 I want to join my cloud stack application to Active Directory LDAP to get
 user !
 
 I am following this Blog to configure my LDAP settings !
 
 http://shapeblue.com/cloudstack/using-cloudstack-4-3-with-microsoft-active-directory/
 
 But I am unable to fetch user account from my LDAP data. I am also
 attaching screen shot of my Configuration !
 
 Please let me know the correct way to configure LDAP in cloud stack !
 
 
 
 
 -- 
 Thanks  Regards
 Deepak Yadav
 
 
 
 
 
 -- 
 Thanks  Regards
 Deepak Yadav
 M +91  9015150337 |
 E  deepak.ya...@mind-infotech.com | www.mind-infotech.com |



Re: Unable to fetch Active Directory Users Information !

2014-07-06 Thread Rajani Karuturi
looks like you have encryption enabled. hence, I wasn’t able to read the 
configuration table values.

few observations:
Are you able to connect to your ldap server on port 389 outside cloudstack?? 
the default port of AD is 3268

ldap.search.group.principle is not a compulsory field. its just a way to limit 
this users to only that group. you can remove that and try.

Can you check the listldapusers api call output? 
http://localhost:8096/client/api?command=listLdapUserslisttype=newresponse=json
May be you are hitting this UI Issue? 
https://issues.apache.org/jira/browse/CLOUDSTACK-6487

if none of this helps, share the unencrypted configuration values.

~Rajani



On 07-Jul-2014, at 9:51 am, Deepak Yadav 
deepak@gmail.commailto:deepak@gmail.com wrote:

Thnaks for your response !


Please find the attached output of the command.


On Mon, Jul 7, 2014 at 9:45 AM, Rajani Karuturi 
rajani.karut...@citrix.commailto:rajani.karut...@citrix.com wrote:
images are stripped.

Can you share the output of following two queries?
mysql select * from ldap_configuration;
mysql select * from configuration where name like '%ldap%';

~Rajani



On 07-Jul-2014, at 9:24 am, Deepak Yadav 
deepak@gmail.commailto:deepak@gmail.com wrote:

 Hi,


 I want to join my cloud stack application to Active Directory LDAP to get
 user !

 I am following this Blog to configure my LDAP settings !

 http://shapeblue.com/cloudstack/using-cloudstack-4-3-with-microsoft-active-directory/

 But I am unable to fetch user account from my LDAP data. I am also
 attaching screen shot of my Configuration !

 Please let me know the correct way to configure LDAP in cloud stack !




 --
 Thanks  Regards
 Deepak Yadav





 --
 Thanks  Regards
 Deepak Yadav
 M +91  9015150337 |
 E  deepak.ya...@mind-infotech.commailto:deepak.ya...@mind-infotech.com | 
 www.mind-infotech.comhttp://www.mind-infotech.com/ |




--
Thanks  Regards
Deepak Yadav
M +91  9015150337 |
E  deepak.ya...@mind-infotech.commailto:deepak.ya...@mind-infotech.com | 
www.mind-infotech.comhttp://www.mind-infotech.com/ |


output.txt



Re: Template Default SystemVM

2014-07-06 Thread Rajani Karuturi
looks like a mysql connection issue to me. Is the mysql server running and are 
you able to connect to your mysql server from the cloudstack management 
server?? 

Can you share the output when you run the install system template script?
 /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt
  -m /mnt/secondary -u 
 http://download.cloud.com/templates/4.3/systemvm64template-2014-04-13-mastervmware.ova
  -h vmware -F


~Rajani



On 04-Jul-2014, at 6:31 pm, Yesid Mora ym...@o4it.com wrote:

 Hello, yes I check secondary storage and I see the template but the path in 
 the template is
 
 /template/tmpl/1/NULL/files for template
 
 Buti don’t know why the folder is NULL, And I verify in the database but not 
 register the template not see the template, additionally yes I add the 
 primary and secondary storage in Cloudstack and state is good is UP
 
 The output for file template.properties is
 
 filename=47322085-b559-4f7c-ac67-5eb969042cff.ova
 description=SystemVM Template
 checksum=
 hvm=false
 size=314015744
 ova=true
 id=NULL
 public=true
 ova.filename=47322085-b559-4f7c-ac67-5eb969042cff.ova
 uniquename=routing-NULL
 ova.virtualsize=314015744
 virtualsize=314015744
 ova.size=314015744
 
 
 thanks
 
 
 
 Cordialmente,
 
 Yesid Mora | Orchestration Engineer | O4IT
 PBX: 251 Ext +57 (1) 423-5460 | Cel: 3124509565
 | Oficina 202 |
 http://www.o4it.com | mailto:ym...@o4it.com
 
 
 
 -Original Message-
 From: Harikrishna Patnala [mailto:harikrishna.patn...@citrix.com]
 Sent: Friday, July 04, 2014 1:01 AM
 To: users@cloudstack.apache.org
 Subject: Re: Template Default SystemVM
 
 Do add the host, secondary storage and primary storage into the Cloudstack ?
 
 -Harikrishna
 On 04-Jul-2014, at 9:25 am, Rajani Karuturi 
 rajani.karut...@citrix.commailto:rajani.karut...@citrix.com wrote:
 
 Do you see the template in your secondary storage?
 
 Can you check the size and state of the template in vm_template table?
 
 
 ~Rajani
 
 
 
 On 04-Jul-2014, at 2:59 am, Yesid Mora 
 ym...@o4it.commailto:ym...@o4it.commailto:ym...@o4it.com wrote:
 
 
 Hello, I installed cloudstack 4.3.0 and create de zone,pod,cluster,  I upload 
 the template for system vm but and not see in the GUI and CLI inform that 
 upload is good the command execute is
 
 /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt
  -m /mnt/secondary -u 
 http://download.cloud.com/templates/4.3/systemvm64template-2014-04-13-mastervmware.ova
  -h vmware -F
 
 Please help me
 
 Thanks,
 
 
 
 Cordialmente / Best regards,
 
 
 
 
 
 Yesid Mora | Orchestration Engineer | O4IT
 
 PBX:+57 (1) 423-5460  Ext  251  | Cel: 3124509565
 
 | Oficina 202 |
 
 www.o4it.comhttp://www.o4it.com/http://www.o4it.com/ | 
 ym...@o4it.commailto:ym...@o4it.commailto:ym...@o4it.com
 
 
 
 
 
 http://www.o4it.com/http://www.linkedin.com/company/1207504https://twitter.com/o4ithttps://www.facebook.com/o4itofficialhttps://www.youtube.com/user/o4itofficial
 
 
 
 
 CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is 
 for the sole use of the intended recipient(s) and may contain confidential or 
 proprietary information. Any unauthorized review, use, disclosure or 
 distribution is prohibited. If you are not the intended recipient, 
 immediately contact the sender by reply e-mail and destroy all copies of the 
 original message.
 



Re: Unable to fetch Active Directory Users Information !

2014-07-06 Thread Rajani Karuturi
On port 8080, you should specify session key. Look for this api call and the 
output in firebug when you are on the add ldap account dialog.

or you cloud use cloud monkey 
https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+cloudmonkey+CLI


to disable encryption, set db.cloud.encryption.type=none in db.properties.
you will have to redeploy database and do all the configuration again after 
this.


to share the config values, either copy paste the values from the ui or put the 
screenshot somewhere and share the url.


~Rajani



On 07-Jul-2014, at 10:38 am, Deepak Yadav 
deepak@gmail.commailto:deepak@gmail.com wrote:

I am able to connect both the port from Cloud Server :  389, 3268.

Still I am not getting any data after removing
ldap.search.group.principle  from Global Settings.

I am not able to connect this web URL from my cloud system because this
8096 port is not running on my system, When I use my default port 8080 I am
getting error  Unable to verify the user credential and or/ request
Signature.

And As i know that I am not using any encryption on my system so please let
me know how can disable and share u required log !






On Mon, Jul 7, 2014 at 10:11 AM, Rajani Karuturi 
rajani.karut...@citrix.commailto:rajani.karut...@citrix.com
wrote:

looks like you have encryption enabled. hence, I wasn't able to read the
configuration table values.

few observations:
Are you able to connect to your ldap server on port 389 outside
cloudstack?? the default port of AD is 3268

ldap.search.group.principle is not a compulsory field. its just a way to
limit this users to only that group. you can remove that and try.

Can you check the listldapusers api call output?
http://localhost:8096/client/api?command=listLdapUserslisttype=newresponse=json
May be you are hitting this UI Issue?
https://issues.apache.org/jira/browse/CLOUDSTACK-6487

if none of this helps, share the unencrypted configuration values.

~Rajani



On 07-Jul-2014, at 9:51 am, Deepak Yadav 
deepak@gmail.commailto:deepak@gmail.commailto:
deepak@gmail.commailto:deepak@gmail.com wrote:

Thnaks for your response !


Please find the attached output of the command.


On Mon, Jul 7, 2014 at 9:45 AM, Rajani Karuturi 
rajani.karut...@citrix.commailto:rajani.karut...@citrix.commailto:rajani.karut...@citrix.com
 wrote:
images are stripped.

Can you share the output of following two queries?
mysql select * from ldap_configuration;
mysql select * from configuration where name like '%ldap%';

~Rajani



On 07-Jul-2014, at 9:24 am, Deepak Yadav 
deepak@gmail.commailto:deepak@gmail.commailto:
deepak@gmail.commailto:deepak@gmail.com wrote:

Hi,


I want to join my cloud stack application to Active Directory LDAP to get
user !

I am following this Blog to configure my LDAP settings !


http://shapeblue.com/cloudstack/using-cloudstack-4-3-with-microsoft-active-directory/

But I am unable to fetch user account from my LDAP data. I am also
attaching screen shot of my Configuration !

Please let me know the correct way to configure LDAP in cloud stack !




--
Thanks  Regards
Deepak Yadav





--
Thanks  Regards
Deepak Yadav
M +91  9015150337 |
E  
deepak.ya...@mind-infotech.commailto:deepak.ya...@mind-infotech.commailto:deepak.ya...@mind-infotech.com
| 
www.mind-infotech.comhttp://www.mind-infotech.com/http://www.mind-infotech.com/
 |




--
Thanks  Regards
Deepak Yadav
M +91  9015150337 |
E  
deepak.ya...@mind-infotech.commailto:deepak.ya...@mind-infotech.commailto:deepak.ya...@mind-infotech.com
| 
www.mind-infotech.comhttp://www.mind-infotech.com/http://www.mind-infotech.com/
 |


output.txt




--
Thanks  Regards
Deepak Yadav



Re: Template Default SystemVM

2014-07-03 Thread Rajani Karuturi
Do you see the template in your secondary storage?

Can you check the size and state of the template in vm_template table?


~Rajani



On 04-Jul-2014, at 2:59 am, Yesid Mora ym...@o4it.commailto:ym...@o4it.com 
wrote:


Hello, I installed cloudstack 4.3.0 and create de zone,pod,cluster,  I upload 
the template for system vm but and not see in the GUI and CLI inform that 
upload is good the command execute is

/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt 
-m /mnt/secondary -u 
http://download.cloud.com/templates/4.3/systemvm64template-2014-04-13-mastervmware.ova
 -h vmware -F

Please help me

Thanks,



Cordialmente / Best regards,





Yesid Mora | Orchestration Engineer | O4IT

PBX:+57 (1) 423-5460  Ext  251  | Cel: 3124509565

 | Oficina 202 |

www.o4it.comhttp://www.o4it.com/ | ym...@o4it.commailto:ym...@o4it.com





http://www.o4it.com/http://www.linkedin.com/company/1207504https://twitter.com/o4ithttps://www.facebook.com/o4itofficialhttps://www.youtube.com/user/o4itofficial




CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential or 
proprietary information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, immediately 
contact the sender by reply e-mail and destroy all copies of the original 
message.




Re: Unable to connect to Cloudstack UI - v4.3

2014-07-01 Thread Rajani Karuturi
The exception says cannot connect to mysql server.
are you able to access mysql server from your management server?

~Rajani



On 30-Jun-2014, at 6:01 pm, Brisset Simon 
simon.bris...@gmail.commailto:simon.bris...@gmail.com wrote:

@Rajani , it's not working
@Rajesh : management log in attached file

and on port 8080 there is :
tcp0  0 :::8080 :::*LISTEN  3998/java


2014-06-30 12:19 GMT+02:00 Rajesh Battala 
rajesh.batt...@citrix.commailto:rajesh.batt...@citrix.com:
Can you post mgmt. log.
Looks like another application is running on 8080 port.
Can you netstat and see which app is running on 8080 port.


Thanks
Rajesh Battala

-Original Message-
From: Brisset Simon 
[mailto:simon.bris...@gmail.commailto:simon.bris...@gmail.com]
Sent: Monday, June 30, 2014 2:58 PM
To: users@cloudstack.apache.orgmailto:users@cloudstack.apache.org
Subject: Unable to connect to Cloudstack UI - v4.3

Hi Everyone,

I have a bit of an issue to connect to the web interface. I have an 
environnment test on Cloudstack 4.3 The management server is on a centos 6.4 
(NFS share too).

I tried things but none of them worked more than 1 time :

- Restart the service cloudstack-management
- Restart the service tomcat6 (this one cause me a lot of trouble)

I checked the log

/cloudstack/management/catalina.out
- java.net.BindException: Address already in use null:8080

- netstat –ntap | grep 8080
try yo kill -15 the pid

- ps -ax | grep tomcat
try yo kill -9 the pid

I also had this :

cloudstack-management dead but pid file exists

The pid file locates at /var/run/cloudstack-management.pid and lock file at

var/lock/subsys/cloudstack-management.
But after restarted the service , it seemed ok.

- Try to RM /var/lock/subsys/tomcat6


Anyway, i tried a lot of things, but if anyone already had this issue before 
and had a process to do in this case, please help me !


Thanks .

--
*BRISSET Simon*
Troisième année, Promotion 2014

Mail : simon.bris...@gmail.commailto:simon.bris...@gmail.com
Tel : 06.58.55.40.83



--
BRISSET Simon
Troisième année, Promotion 2014

Mail : simon.bris...@gmail.commailto:simon.bris...@gmail.com
Tel : 06.58.55.40.83
management-serverlog.txt



Re: Unable to connect to Cloudstack UI - v4.3

2014-06-30 Thread Rajani Karuturi
Can you do killall java and try again??

I sometimes get a SocketException on my development setup and management server 
fails to listen on 8080/8096


~Rajani



On 30-Jun-2014, at 2:58 pm, Brisset Simon simon.bris...@gmail.com wrote:

 Hi Everyone,
 
 I have a bit of an issue to connect to the web interface. I have an
 environnment test on Cloudstack 4.3
 The management server is on a centos 6.4 (NFS share too).
 
 I tried things but none of them worked more than 1 time :
 
 - Restart the service cloudstack-management
 - Restart the service tomcat6 (this one cause me a lot of trouble)
 
 I checked the log
 
 /cloudstack/management/catalina.out
 - java.net.BindException: Address already in use null:8080
 
 - netstat –ntap | grep 8080
 try yo kill -15 the pid
 
 - ps -ax | grep tomcat
 try yo kill -9 the pid
 
 I also had this :
 
 cloudstack-management dead but pid file exists
 
 The pid file locates at /var/run/cloudstack-management.pid and lock file at
 
 var/lock/subsys/cloudstack-management.
 But after restarted the service , it seemed ok.
 
 - Try to RM /var/lock/subsys/tomcat6
 
 
 Anyway, i tried a lot of things, but if anyone already had this issue
 before and had a process to do in this case, please help me !
 
 
 Thanks .
 
 -- 
 *BRISSET Simon*
 Troisième année, Promotion 2014
 
 Mail : simon.bris...@gmail.com
 Tel : 06.58.55.40.83



Re: Cloud Stack | Unable to add KVM host

2014-06-24 Thread Rajani Karuturi
did you do agent install?
http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/hypervisor/kvm.html#install-and-configure-the-agent


~Rajani



On 24-Jun-2014, at 11:32 am, Ali Ahsan 
ali.ah...@northbaysolutions.netmailto:ali.ah...@northbaysolutions.net wrote:

Hi,

I have configured Cloud stack but unable to add KVM host both mangment and KVM 
hosted on Same VM (Vmwear ). Please see the log below.


INFO  [c.c.a.ApiServer] (catalina-exec-19:ctx-5d9e0c4a ctx-17cfe177) Unable to 
add the host
INFO  [c.c.r.ResourceManagerImpl] (catalina-exec-20:ctx-94e1f583 ctx-867ef602) 
Trying to add a new host at http://10.10.0.244 in data center 1
WARN  [c.c.r.ResourceManagerImpl] (catalina-exec-20:ctx-94e1f583 ctx-867ef602) 
Unable to find the server resources at http://10.10.0.244
INFO  [c.c.u.e.CSExceptionErrorCode] (catalina-exec-20:ctx-94e1f583 
ctx-867ef602) Could not find exception: com.cloud.exception.DiscoveryException 
in error code list for exceptions
WARN  [o.a.c.a.c.a.h.AddHostCmd] (catalina-exec-20:ctx-94e1f583 ctx-867ef602) 
Exception:
com.cloud.exception.DiscoveryException: Unable to add the host
   at 
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:780)
   at 
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:575)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
   at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
   at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at com.sun.proxy.$Proxy145.discoverHosts(Unknown Source)
   at 
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
   at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
   at com.cloud.api.ApiServer.queueCommand(ApiServer.java:531)
   at com.cloud.api.ApiServer.handleRequest(ApiServer.java:374)
   at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:323)
   at com.cloud.api.ApiServlet.access$000(ApiServlet.java:53)
   at com.cloud.api.ApiServlet$1.run(ApiServlet.java:115)
   at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
   at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
   at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
   at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:112)
   at com.cloud.api.ApiServlet.doPost(ApiServlet.java:79)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
   at 
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
   at 
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
   at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
   at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)
INFO  [c.c.a.ApiServer] (catalina-exec-20:ctx-94e1f583 ctx-867ef602) Unable to 
add the 

Re: Usage Server Issues

2014-06-13 Thread Rajani Karuturi
, cloud_usage.network_id,
cloud_usage.start_date, cloud_usage.end_date FROM cloud_usage WHERE
cloud_usage.start_date BETWEEN '2014-06-01 04:00:00' AND '2014-06-14
03:59:59'  AND cloud_usage.end_date BETWEEN '2014-06-01 04:00:00' AND
'2014-06-14 03:59:59'  ORDER BY cloud_usage.start_date DESC  LIMIT 0,
500
2014-06-13 00:12:37,616 - requester.py:41 - [DEBUG]  END
Request 

Now we are getting somewhere.  When running the query in mysql we can see that 
a column is missing.


mysql SELECT cloud_usage.id, cloud_usage.zone_id,
mysql cloud_usage.account_id, cloud_usage.domain_id,
mysql cloud_usage.description, cloud_usage.usage_display,
mysql cloud_usage.usage_type, cloud_usage.raw_usage,
mysql cloud_usage.vm_instance_id, cloud_usage.vm_name,
mysql cloud_usage.offering_id, cloud_usage.template_id,
mysql cloud_usage.usage_id, cloud_usage.type, cloud_usage.size,
mysql cloud_usage.virtual_size, cloud_usage.network_id,
mysql cloud_usage.start_date, cloud_usage.end_date FROM cloud_usage
mysql WHERE cloud_usage.start_date BETWEEN '2014-06-01 04:00:00' AND
mysql '2014-06-14 03:59:59'  AND cloud_usage.end_date BETWEEN
mysql '2014-06-01 04:00:00' AND '2014-06-14 03:59:59'  ORDER BY
mysql cloud_usage.start_date DESC  LIMIT 0, 500;
ERROR 1054 (42S22): Unknown column 'cloud_usage.virtual_size' in 'field list'
mysql

I don't see the virtual_size table being created in the cloud_usage schema file.

So it looks like virtual_size and size are missing from my DB.  It is my 
understanding that the DB is created with create-database-premium.sql  
create-schema-premium.sql.  The create database is fine, but the schema is 
missing virtual_size and size as well.

CREATE TABLE  `cloud_usage`.`cloud_usage` (
 `id` bigint unsigned NOT NULL auto_increment,
 `zone_id` bigint unsigned NOT NULL,
 `account_id` bigint unsigned NOT NULL,
 `domain_id` bigint unsigned NOT NULL,
 `description` varchar(1024) NOT NULL,
 `usage_display` varchar(255) NOT NULL,
 `usage_type` int(1) unsigned,
 `raw_usage` DOUBLE UNSIGNED NOT NULL,
 `vm_instance_id` bigint unsigned,
 `vm_name` varchar(255),
 `offering_id` bigint unsigned,
 `template_id` bigint unsigned,
 `usage_id` bigint unsigned,
 `type` varchar(32),
 `size` bigint unsigned,
 `network_id` bigint unsigned,
 `start_date` DATETIME NOT NULL,
 `end_date` DATETIME NOT NULL,
 PRIMARY KEY  (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


Does anyone have an updated copy of the usageDB schema?  I am not sure how 
anyone’s usage servers are working since this is a fresh install of 4.3 on my 
end and they should be missing the tables as well.   The usage job will 
populate account and user_statistics because they seem not to be dependent on 
the cloud_usage table.

Any help would be appreciated.

Steve Searles



On Jun 13, 2014, at 1:46 AM, Shweta Agarwal 
shweta.agar...@citrix.commailto:shweta.agar...@citrix.commailto:shweta.agar...@citrix.com
 wrote:

You can use generateUsageRecords api  . It Generates usage records. This will 
generate records only if there any records to be generated, i.e if the 
scheduled usage job was not run or failed
Request parameters
Parameter Name Description Required
enddate End date range for usage record query. Use -MM-dd as the date 
format, e.g. startDate=2009-06-03. true
startdate Start date range for usage record query. Use -MM-dd as the date 
format, e.g. startDate=2009-06-01. true
domainid List events for the specified domain. false
Response Tags
Response Name Description
displaytext any text associated with the success or failure
success true if operation is executed successfully

Hope this will help .

If you can share the logs it will be easier for us to help more.

Thanks
Shweta

-Original Message-
From: Rajani Karuturi [mailto:rajani.karut...@citrix.com]
Sent: Friday, June 13, 2014 10:36 AM
To: 
users@cloudstack.apache.orgmailto:users@cloudstack.apache.orgmailto:users@cloudstack.apache.org
Subject: Re: Usage Server Issues

Can you share logs?

I don't know if you can start it manually. But, you can definitely tweak the 
configs to start every 10 min.
http://docs.cloudstack.apache.org/projects/cloudstack-administration/en/latest/usage.html


~Rajani



On 13-Jun-2014, at 8:41 am, Steve Searles 
ssear...@zimcom.netmailto:ssear...@zimcom.netmailto:ssear...@zimcom.net 
wrote:

Any experts on the usage server out there?  I have a weird problem where my 
accounts table and user_statistics table are populated but the rest of the 
tables in the DB are empty (with the exception of usage_job).  Does anyone know 
how to manually fire off the usage job from the command line rather than 
waiting for it to happen? Any pointers on how to debug this?  I have about 40 
vm's running in my lab that should be making plenty of data.

CS 4.3

Steve Searles











Re: Usage Server Issues

2014-06-12 Thread Rajani Karuturi
Can you share logs?

I don’t know if you can start it manually. But, you can definitely tweak the 
configs to start every 10 min.
http://docs.cloudstack.apache.org/projects/cloudstack-administration/en/latest/usage.html


~Rajani



On 13-Jun-2014, at 8:41 am, Steve Searles 
ssear...@zimcom.netmailto:ssear...@zimcom.net wrote:

Any experts on the usage server out there?  I have a weird problem where my 
accounts table and user_statistics table are populated but the rest of the 
tables in the DB are empty (with the exception of usage_job).  Does anyone know 
how to manually fire off the usage job from the command line rather than 
waiting for it to happen? Any pointers on how to debug this?  I have about 40 
vm's running in my lab that should be making plenty of data.

CS 4.3

Steve Searles







Re: cannot call listUsageRecords API

2014-06-10 Thread Rajani Karuturi
Can you share the logs and ACS version?

you might be hitting this bug 
https://issues.apache.org/jira/browse/CLOUDSTACK-6472 which is fixed in 4.4 and 
will also be 4.3.1 if there is a a release.



~Rajani



On 10-Jun-2014, at 3:39 pm, dimas yoga pratama 
smid...@gmail.commailto:smid...@gmail.com wrote:

Hi all,

I want to records cpu and memory in usage records, so I call
listUsageRecords API but I kept getting following error :

{ listusagerecordsresponse :
{uuidList:[],errorcode:530,cserrorcode:} }

this is my example request :
http://10.151.32.51:8080/client/api?apiKey=Fh4eX2m8gm4St28GjowZ79byBKD6bewD4SQZIwDJed_E9QAwucvIXG39aa86kv5IlimjwZoM_1sFSHufSr-PzQcommand=listUsageRecordsenddate=2014-06-10response=jsonstartdate=2014-06-09signature=Qn1szkTAAIoIXFSIigIk3xqtAiU%3D

I can call another API, except this one.

Thanks, looking forward for your answer.

Dimas.



Re: cannot call listUsageRecords API

2014-06-10 Thread Rajani Karuturi
patch I don’t know.
But, you can take the 4.3 branch [1]  from the source, create an rpm from it 
and use it

http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/building_from_source.html#building-rpms-from-source

[1] 
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=tree;h=refs/heads/4.3;hb=4.3

~Rajani



On 10-Jun-2014, at 4:12 pm, dimas yoga pratama 
smid...@gmail.commailto:smid...@gmail.com wrote:

Hi,

Yes I'm using ACS 4.3 version and this is my MS log:

ERROR [c.c.a.ApiServer] (catalina-exec-22:ctx-cc6f745d ctx-d76a4da9
ctx-316bd6f5) unhandled exception executing api command: listUsageRecords
java.lang.NullPointerException
   at
com.cloud.api.ApiResponseHelper.createUsageResponse(ApiResponseHelper.java:3367)
   at
org.apache.cloudstack.api.command.admin.usage.GetUsageRecordsCmd.execute(GetUsageRecordsCmd.java:119)
   at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
   at com.cloud.api.ApiServer.queueCommand(ApiServer.java:531)
   at com.cloud.api.ApiServer.handleRequest(ApiServer.java:374)
   at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:323)
   at com.cloud.api.ApiServlet.access$000(ApiServlet.java:53)
   at com.cloud.api.ApiServlet$1.run(ApiServlet.java:115)
   at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
   at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
   at
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
   at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:112)
   at com.cloud.api.ApiServlet.doGet(ApiServlet.java:74)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
   at
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
   at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
   at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
   at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)
2014-06-10 17:38:19,850 DEBUG [c.c.a.ApiServlet]
(catalina-exec-22:ctx-cc6f745d ctx-d76a4da9 ctx-316bd6f5) ===END===
10.151.32.52 -- GET
apiKey=Fh4eX2m8gm4St28GjowZ79byBKD6bewD4SQZIwDJed_E9QAwucvIXG39aa86kv5IlimjwZoM_1sFSHufSr-PzQcommand=listUsageRecordsenddate=2014-06-10response=jsonstartdate=2014-06-09signature=Qn1szkTAAIoIXFSIigIk3xqtAiU%3D


How I can fix this?How I can apply the patch?
sorry I'm new to Cloudstack.

Thanks,
Dimas.


On Tue, Jun 10, 2014 at 5:28 PM, Rajani Karuturi 
rajani.karut...@citrix.commailto:rajani.karut...@citrix.com
wrote:

Can you share the logs and ACS version?

you might be hitting this bug
https://issues.apache.org/jira/browse/CLOUDSTACK-6472 which is fixed in
4.4 and will also be 4.3.1 if there is a a release.



~Rajani



On 10-Jun-2014, at 3:39 pm, dimas yoga pratama 
smid...@gmail.commailto:smid...@gmail.commailto:
smid...@gmail.commailto:smid...@gmail.com wrote:

Hi all,

I want to records cpu and memory in usage records, so I call
listUsageRecords API but I kept getting following error :

{ listusagerecordsresponse :
{uuidList:[],errorcode:530,cserrorcode:} }

this is my example request :

http://10.151.32.51:8080/client/api?apiKey=Fh4eX2m8gm4St28GjowZ79byBKD6bewD4SQZIwDJed_E9QAwucvIXG39aa86kv5IlimjwZoM_1sFSHufSr-PzQcommand=listUsageRecordsenddate=2014-06-10response=jsonstartdate=2014-06-09signature=Qn1szkTAAIoIXFSIigIk3xqtAiU%3D

I can call another API, except this one.

Thanks, looking forward for your answer.

Dimas.





Re: Cloudstack:: cloud_usage table empty

2014-05-22 Thread Rajani Karuturi
you might want to look at https://issues.apache.org/jira/browse/CLOUDSTACK-6360 
and the commits.


~Rajani



On 23-May-2014, at 3:49 am, Fabrice Brazier 
fabrice.braz...@apalia.netmailto:fabrice.braz...@apalia.net wrote:

Hi Saulo,

There was an issue with mysql connector. Starting 4.3 mysql connector is no
longer bundled with ACS.
I created a symbolic link to make it available to usage server:
ln -s /usr/share/java/mysql-connector-java.jar
/usr/share/cloudstack-usage/lib/mysql-connector-java.jar

This issue is being added to 4.3 release docs.

Usage server  is working fine now.

Regards,
Fabrice Brazier
Le 23 mai 2014 00:14, Saulo Zimbaro 
saulozimb...@gmail.commailto:saulozimb...@gmail.com a écrit :

My cloud_usage table still empty. When I start cloudstack-usage I got error
bellow:


Caused by: java.sql.SQLException: No suitable driver found for

jdbc:mysql://localhost:3306/cloud?autoReconnect=trueprepStmtCacheSize=517cachePrepStmts=true
   at java.sql.DriverManager.getConnection(DriverManager.java:635)
   at java.sql.DriverManager.getConnection(DriverManager.java:195)
   at

org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75)
   at

org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
   at

org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1188)
   at

org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
   at

com.cloud.utils.db.TransactionLegacy.getConnection(TransactionLegacy.java:556)
   at

com.cloud.utils.db.TransactionLegacy.prepareStatement(TransactionLegacy.java:467)
   at

com.cloud.utils.db.TransactionLegacy.prepareAutoCloseStatement(TransactionLegacy.java:460)
   at

com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:394)


I use cloudstack 4.3 and works fine.


--
*Saulo Zimbaro*

Mobile ) (+55) 21 99800-0100

*saulozimb...@gmail.commailto:saulozimb...@gmail.com

*sa...@zimbaro.commailto:sa...@zimbaro.com