Re: Welcoming Simon Weller & Paul Angus to the PMC

2017-01-13 Thread Ian Duffy
Congrats Simon and Paul.

On 13 January 2017 at 22:21, Rohit Yadav  wrote:

> Congratulations to both Simon and Paul, well deserved :)
>
>
> Regards.
>
> 
> From: Will Stevens 
> Sent: 13 January 2017 22:00:20
> To: d...@cloudstack.apache.org; users@cloudstack.apache.org
> Subject: Welcoming Simon Weller & Paul Angus to the PMC
>
> Join me in welcoming Simon Weller and Paul Angus to the Apache CloudStack
> PMC.  Both have been dedicated members of the community and it is with
> great pleasure that we welcome them to the PMC.
>
> Next time you see either of them, buy them a drink.  :)
>
> Welcome guys...
>
> rohit.ya...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> @shapeblue
>
>
>
>


Re: Automated generation of Windows templates for CloudStack

2016-02-25 Thread Ian Duffy
Doing this in a fully automated way, however it is not pretty and requires
lots of tools.

I have a jenkins master node that has 3 slave nodes which have vmware,
virtualbox and qemu installed respectively.

Each image: CentOS6, CentOS7, Windows has its own pipeline configured. The
pipeline clones some packer configuration, something like
https://github.com/boxcutter executes a validate, kicks of building across
the three slave nodes uploading the image to some potential releases store.

It then goes on to validate the images by running some serverspec tests.

Assuming all tests pass the images are moved to a release store and upload
to our IaaS via cli clients.

Hope this helps.. https://github.com/boxcutter/windows is most likely
the starting point.


On 25 February 2016 at 00:04, Nux!  wrote:

> I do a similar thing (so zero automation).
> In addition I have an extra step involving a generalized sysprep,
> otherwhise the template is not really "unique".
>
> --
> Sent from the Delta quadrant using Borg technology!
>
> Nux!
> www.nux.ro
>
> - Original Message -
> > From: "Cristian Ciobanu" 
> > To: users@cloudstack.apache.org
> > Cc: users@cloudstack.apache.org
> > Sent: Wednesday, 24 February, 2016 22:06:55
> > Subject: Re: Automated generation of Windows templates for CloudStack
>
> > Hi,
> >
> > For me work very nice for windows 2008 and 2012  just with "cloud
> init"
> > installed on template.
> >
> >1. install Windows from ISO, Set any password, enable rdp, you can
> also set to
> >off  "IE sec" ( install drivers, apps if needed)
> > 2. Restart.
> > 3. Install "cloud init"
> > 4. Shutdown
> > 5. Create Template
> >
> > Right now I test "cloudbase init" for Win 10, 8.1, and 7.
> >
> > Regards.
> > Cristian
> >
> >
> >
> > On Feb 24, 2016, 11:21 PM, at 11:21 PM, ilya <
> ilya.mailing.li...@gmail.com>
> > wrote:
> >>Has anyone came across a good way (or figured out) out end-to-end
> >>automated windows template generation and cloudstack integration?
> >>
> >>I'd like to lower my dependency on external tools as much as possible,
> >>unless there is a reliable way of getting it to work.
> >>
> >>Is there anything besides packer?
> >>
> >>thanks
> > >ilya
>


Re: Working Debian template

2016-01-07 Thread Ian Duffy
> Do I need to do some changes on CS?

No just on the template. /etc/cloud/cloud-config if memory serves me
correctly.

> Will change password script of CS still work if I use cloud-init?

Yes.
http://shankerbalan.net/blog/cloud-init-supports-cloudstack-as-data-source/

On 7 January 2016 at 09:11, S. Brüseke - proIO GmbH <s.brues...@proio.com>
wrote:

> Hi Ian,
>
> thank you for the link. I am not really familiar with cloud-init. Do I
> need to do some changes on CS?
> Will change password script of CS still work if I use cloud-init?
>
> Mit freundlichen Grüßen / With kind regards,
>
> Swen
>
>
> -----Ursprüngliche Nachricht-
> Von: Ian Duffy [mailto:i...@ianduffy.ie]
> Gesendet: Donnerstag, 7. Januar 2016 09:55
> An: users@cloudstack.apache.org; S. Brüseke - proIO GmbH
> Betreff: Re: Working Debian template
>
> In order to get the functionality you desire the cloud-init config must be
> modified in order to enable hosts file management.
>
> Please see
>
> https://github.com/number5/cloud-init/blob/master/doc/examples/cloud-config.txt#L408-L482
> for a full documented cloud-config example.
>
> Thanks,
> Ian.
>
> On 7 January 2016 at 08:49, S. Brüseke - proIO GmbH <s.brues...@proio.com>
> wrote:
>
> > Hi Glenn,
> >
> > thank you for your reply. Can you please check if /etc/hosts will be
> > updated in your templates? As far as my testing goes it will not be
> > updated after first boot of an instance created out of a template. It
> > will still show a "127.0.1.1" entry. After the second boot it will add
> > a correct entry at the end of the file, but still leave the "127.0.1.1"
> entry in /etc/hosts.
> >
> > Mit freundlichen Grüßen / With kind regards,
> >
> > Swen Brüseke
> >
> >
> > proIO GmbH
> > Kleyerstr. 79 - 89 / Tor 13
> > D-60326 Frankfurt am Main
> >
> > Mail: s.brues...@proio.com
> > Tel:  +(49) (0) 69 739049-15
> > Fax:  +(49) (0) 69 739049-25
> > Web:  www.proio.com
> >
> > - Support -
> > Mail: supp...@proio.com
> > 24h:  +(49) (0) 1805 522 855
> >
> > Von: Glenn Wagner [mailto:glenn.wag...@shapeblue.com]
> > Gesendet: Donnerstag, 7. Januar 2016 09:43
> > An: users@cloudstack.apache.org; S. Brüseke - proIO GmbH
> > Betreff: Re: Working Debian template
> >
> > Hi,
> >
> > We have created a few of these for projects, using the same documents
> > if you want a quick template you can try
> > http://dl.openvm.eu/cloudstack/debian/vanilla/old/x86_64/
> >
> > Thanks
> > Glenn
> >
> >
> >
> >
> >
> >
> >  Glenn Wagner
> >
> >  Senior Consultant
> >  ,
> >  ShapeBlue
> >
> >
> >  d:
> >   | s: +27 21 527 0091
> >   |
> >  m:
> >  +27 73 917 4111
> >
> >  e:
> >  glenn.wag...@shapeblue.com | t:
> >   |
> >  w:
> >  www.shapeblue.com
> >
> >  a:
> >  2nd Floor, Oudehuis Centre, 122 Main Rd, Somerset West Cape Town 7130
> > South Africa
> >
> >
> >  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.
> > 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.
> >
> > 
> > From: S. Brüseke - proIO GmbH <s.brues...@proio.com>
> > Sent: Thursday, January 7, 2016 3:09 AM
> > To: users@cloudstack.apache.org
> > Subject: Working Debian template
> >
> > Hi,
> >
> > does someone created a working template with Debian 7 for CS?
> > I used
> > http://docs.cloudstack.apache.org/projects/cloudstack-administration/e
> > n/4.6/templates.html#creating-a-linux-template

Re: Running Multiple Jobs in parallel

2015-10-10 Thread Ian Duffy
In global settings look for the following:

execute.in.sequence.hypervisor.commands
execute.in.sequence.network.element.commands

If they are set to false, try setting them to true to see if the
behaviour improves.

On 9 October 2015 at 13:02, Timothy Lothering 
wrote:

> Hi All,
>
>
>
> Has anyone seen a similar issue around running multiple jobs in parallel
> on VMware 5.5?
>
>
>
> I am trying to upload Templates, provision servers, attach volumes, but it
> seems like only 1x job is being executed in vCenter?
>
>
>
> System Specifications:
>
> ACS 4.3
>
> VMware 5.5
>
>
>
> Kind Regards,
>
>
>
> Timothy Lothering
>
>
> [image: www.datacentrix.co.za]  *Timothy
> Lothering*
> Solutions Architect
> Managed Services T: +27877415535
> F: +27877415100
> C: +27824904099
> E: tlother...@datacentrix.co.za
> *www.datacentrix.co.za *
>*Serious about performance,* *passionate about value*
>
>
>
> 
> --
> *Disclaimer*
> Everything in this e-mail and any attachments relating to the official
> business of Datacentrix Holdings Ltd. and its subsidiaries ('Datacentrix')
> is proprietary to Datacentrix. It is confidential, legally privileged and
> protected by law. Datacentrix does not own and endorse any other content.
> Views and opinions are those of the sender unless clearly stated as being
> that of Datacentrix. The person addressed in the e-mail is the sole
> authorised recipient. Please notify the sender immediately if it has
> unintentionally reached you and do not read, disclose or use the content in
> any way. Datacentrix cannot assure that the integrity of this communication
> has been maintained nor that it is free of errors, virus, interception or
> interference.
> --
>
>


Re: Cloud-Stack Configuration | Vagrant

2015-01-21 Thread Ian Duffy
: PIF== xenserver: uuid: ==
 xenserver: The uuid you supplied was invalid.== xenserver: type: PIF==
 xenserver: uuid: The SSH command responded with a non-zero exit status.
 Vagrantassumes that this means the command failed. The output for this
 commandshould be in the log above. Please read the output to determine
 whatwent wrong.*

 Would like to know the reason and a way to overcome this.

 @Geroff thank you for the link I will look into that as well.

 Thank you,
 Regards



 *Supun Rasitha Muthutantrige*
 Software Engineer | Intern
 WSO2 Inc: http://wso2.com
 lean.enterprise.middleware
 Mobile: 0758374608

 On Sun, Jan 11, 2015 at 10:33 PM, Geoff Higginbottom 
 geoff.higginbot...@shapeblue.com wrote:

 Hi Supun,

 As an alternative you could try building a test CloudStack system on
 Virtualbox using this guide

 http://shapeblue.com/cloudstack/virtualbox-test-env/


 Kind Regards

 Geoff Higginbottom
 CTO / Cloud Architect

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

 geoff.higginbot...@shapeblue.com | www.shapeblue.com |
 Twitter:@shapeblue

 ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS

 
 From: Ian Duffy i...@ianduffy.ie
 Sent: 11 January 2015 16:51:43
 To: users@cloudstack.apache.org
 Subject: Re: Cloud-Stack Configuration | Vagrant

 Hey,

 You need to install vagrant berkshelf as I mentioned. Vagrant berkshelf
 has
 a dependency on chefdk so you'll need that too.

 Documentation really needs to be updated.
 On 11 Jan 2015 12:59, Supun Muthutantrige sup...@wso2.com wrote:

  Hi,
 
  Cloned from the latest repository. made the network adjustments and
 ran the
  bash scripts/vagrant_prep.sh vbox command, but due to the above
 mentioned
  errors, still haven't been able to configure cloudstack properly. Would
  highly appreciate your support and suggestions about what might be
 going
  wrong.
 
  Thank you,
  Regards.
 
 
  *Supun Rasitha Muthutantrige*
  Software Engineer | Intern
  WSO2 Inc: http://wso2.com
  lean.enterprise.middleware
  Mobile: 0758374608
 
  On Sat, Jan 10, 2015 at 2:04 PM, Supun Muthutantrige sup...@wso2.com
  wrote:
 
   As instructed, before running the Vagrant up command, I have run
 bash
   scripts/vagrant_prep.sh vbox command and the output as follows
  
  
 
 /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/lib/vagrant/pre-rubygems.rb:31:
   warning: Insecure world writable dir
 /./opt/apache-maven-3.2.3/bin in
   PATH, mode 040777
  
 
 /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/lib/vagrant/pre-rubygems.rb:31:
   warning: Insecure world writable dir
 /./opt/apache-maven-3.2.3/bin in
   PATH, mode 040777
  
 /opt/vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/runtime.rb:222:
   warning: Insecure world writable dir
 /./opt/apache-maven-3.2.3/bin in
   PATH, mode 040777
  
 
 /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/lib/vagrant/pre-rubygems.rb:31:
   warning: Insecure world writable dir
 /./opt/apache-maven-3.2.3/bin in
   PATH, mode 040777
  
 /opt/vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/runtime.rb:222:
   warning: Insecure world writable dir
 /./opt/apache-maven-3.2.3/bin in
   PATH, mode 040777
   All plugins are installed!
  
  
  
  
   *Supun Rasitha Muthutantrige*
   Software Engineer | Intern
   WSO2 Inc: http://wso2.com
   lean.enterprise.middleware
   Mobile: 0758374608
  
   On Sat, Jan 10, 2015 at 12:31 PM, Ian Duffy i...@ianduffy.ie wrote:
  
   You need vagrant-berkshelf as the error says.
  
   vagrant plugin install vagrant-berkshelf
  
   On 10 January 2015 at 03:50, Supun Muthutantrige sup...@wso2.com
  wrote:
Hi,
   
I have cloned the latest version. Now when running the vagrant up
   command
getting the following error
   
*There was an error loading a Vagrantfile. The file being loaded*
*and the error message are shown below. This is usually caused by*
*a syntax error.*
   
*Path: /binary-installation-advanced/Vagrantfile*
*Message: vagrant-berkshelf is not installed!*
   
   
Thank you,
Regards
   
   
   
*Supun Rasitha Muthutantrige*
Software Engineer | Intern
WSO2 Inc: http://wso2.com
lean.enterprise.middleware
Mobile: 0758374608
   
On Fri, Jan 9, 2015 at 5:38 PM, Supun Muthutantrige 
 sup...@wso2.com
   wrote:
   
Great Iwill try this out and update the thread
   
   
Thank you,
Regards
   
   
*Supun Rasitha Muthutantrige*
Software Engineer | Intern
WSO2 Inc: http://wso2.com
lean.enterprise.middleware
Mobile: 0758374608
   
On Fri, Jan 9, 2015 at 2:52 AM, Ian Duffy i...@ianduffy.ie
 wrote:
   
That issue should be fixed. Can you confirm your on the latest
  clone?
   Just
do a git pull.
   
If it still fails remove ~/.berkshelf and try again.
On 8 Jan 2015 14:04, Supun Muthutantrige sup...@wso2.com
 wrote:
   
 Hi Ian,

 Thank you for the information. When I run the vagrant up

Re: Cloud-Stack Configuration | Vagrant

2015-01-11 Thread Ian Duffy
Hey,

You need to install vagrant berkshelf as I mentioned. Vagrant berkshelf has
a dependency on chefdk so you'll need that too.

Documentation really needs to be updated.
On 11 Jan 2015 12:59, Supun Muthutantrige sup...@wso2.com wrote:

 Hi,

 Cloned from the latest repository. made the network adjustments and ran the
 bash scripts/vagrant_prep.sh vbox command, but due to the above mentioned
 errors, still haven't been able to configure cloudstack properly. Would
 highly appreciate your support and suggestions about what might be going
 wrong.

 Thank you,
 Regards.


 *Supun Rasitha Muthutantrige*
 Software Engineer | Intern
 WSO2 Inc: http://wso2.com
 lean.enterprise.middleware
 Mobile: 0758374608

 On Sat, Jan 10, 2015 at 2:04 PM, Supun Muthutantrige sup...@wso2.com
 wrote:

  As instructed, before running the Vagrant up command, I have run bash
  scripts/vagrant_prep.sh vbox command and the output as follows
 
 
 /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/lib/vagrant/pre-rubygems.rb:31:
  warning: Insecure world writable dir /./opt/apache-maven-3.2.3/bin in
  PATH, mode 040777
 
 /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/lib/vagrant/pre-rubygems.rb:31:
  warning: Insecure world writable dir /./opt/apache-maven-3.2.3/bin in
  PATH, mode 040777
  /opt/vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/runtime.rb:222:
  warning: Insecure world writable dir /./opt/apache-maven-3.2.3/bin in
  PATH, mode 040777
 
 /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/lib/vagrant/pre-rubygems.rb:31:
  warning: Insecure world writable dir /./opt/apache-maven-3.2.3/bin in
  PATH, mode 040777
  /opt/vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/runtime.rb:222:
  warning: Insecure world writable dir /./opt/apache-maven-3.2.3/bin in
  PATH, mode 040777
  All plugins are installed!
 
 
 
 
  *Supun Rasitha Muthutantrige*
  Software Engineer | Intern
  WSO2 Inc: http://wso2.com
  lean.enterprise.middleware
  Mobile: 0758374608
 
  On Sat, Jan 10, 2015 at 12:31 PM, Ian Duffy i...@ianduffy.ie wrote:
 
  You need vagrant-berkshelf as the error says.
 
  vagrant plugin install vagrant-berkshelf
 
  On 10 January 2015 at 03:50, Supun Muthutantrige sup...@wso2.com
 wrote:
   Hi,
  
   I have cloned the latest version. Now when running the vagrant up
  command
   getting the following error
  
   *There was an error loading a Vagrantfile. The file being loaded*
   *and the error message are shown below. This is usually caused by*
   *a syntax error.*
  
   *Path: /binary-installation-advanced/Vagrantfile*
   *Message: vagrant-berkshelf is not installed!*
  
  
   Thank you,
   Regards
  
  
  
   *Supun Rasitha Muthutantrige*
   Software Engineer | Intern
   WSO2 Inc: http://wso2.com
   lean.enterprise.middleware
   Mobile: 0758374608
  
   On Fri, Jan 9, 2015 at 5:38 PM, Supun Muthutantrige sup...@wso2.com
  wrote:
  
   Great Iwill try this out and update the thread
  
  
   Thank you,
   Regards
  
  
   *Supun Rasitha Muthutantrige*
   Software Engineer | Intern
   WSO2 Inc: http://wso2.com
   lean.enterprise.middleware
   Mobile: 0758374608
  
   On Fri, Jan 9, 2015 at 2:52 AM, Ian Duffy i...@ianduffy.ie wrote:
  
   That issue should be fixed. Can you confirm your on the latest
 clone?
  Just
   do a git pull.
  
   If it still fails remove ~/.berkshelf and try again.
   On 8 Jan 2015 14:04, Supun Muthutantrige sup...@wso2.com wrote:
  
Hi Ian,
   
Thank you for the information. When I run the vagrant up command
in binary-installation-advanced folder the following error
  occurred. I
tried this after stopping and starting the mysql server, changed
 the
default mysql 3306 port, but the error seems to be there, Would
  like to
know the reason
   
Terminal output as follows,
   
   
  
 
 --
   
== management: [2015-01-08T13:54:31+00:00] INFO: Forking chef
  instance
   to
converge...
== management: [2015-01-08T13:54:31+00:00] WARN:
== management: * * * * * * * * * * * * * * * * * * * * * * * * *
 *
  * *
   * *
* * * * * * * * * *
== management: SSL validation of HTTPS requests is disabled.
 HTTPS
connections are still
== management: encrypted, but chef is not able to detect forged
   replies or
man in the middle
== management: attacks.
== management:
== management: To fix this issue add an entry like this to your
configuration file:
== management:
== management: ```
== management:   # Verify all HTTPS connections (recommended)
== management:   ssl_verify_mode :verify_peer
== management:
== management:   # OR, Verify only connections to chef-server
== management:   verify_api_cert true
== management

Re: Cloud-Stack Configuration | Vagrant

2015-01-09 Thread Ian Duffy
You need vagrant-berkshelf as the error says.

vagrant plugin install vagrant-berkshelf

On 10 January 2015 at 03:50, Supun Muthutantrige sup...@wso2.com wrote:
 Hi,

 I have cloned the latest version. Now when running the vagrant up command
 getting the following error

 *There was an error loading a Vagrantfile. The file being loaded*
 *and the error message are shown below. This is usually caused by*
 *a syntax error.*

 *Path: /binary-installation-advanced/Vagrantfile*
 *Message: vagrant-berkshelf is not installed!*


 Thank you,
 Regards



 *Supun Rasitha Muthutantrige*
 Software Engineer | Intern
 WSO2 Inc: http://wso2.com
 lean.enterprise.middleware
 Mobile: 0758374608

 On Fri, Jan 9, 2015 at 5:38 PM, Supun Muthutantrige sup...@wso2.com wrote:

 Great Iwill try this out and update the thread


 Thank you,
 Regards


 *Supun Rasitha Muthutantrige*
 Software Engineer | Intern
 WSO2 Inc: http://wso2.com
 lean.enterprise.middleware
 Mobile: 0758374608

 On Fri, Jan 9, 2015 at 2:52 AM, Ian Duffy i...@ianduffy.ie wrote:

 That issue should be fixed. Can you confirm your on the latest clone? Just
 do a git pull.

 If it still fails remove ~/.berkshelf and try again.
 On 8 Jan 2015 14:04, Supun Muthutantrige sup...@wso2.com wrote:

  Hi Ian,
 
  Thank you for the information. When I run the vagrant up command
  in binary-installation-advanced folder the following error occurred. I
  tried this after stopping and starting the mysql server, changed the
  default mysql 3306 port, but the error seems to be there, Would like to
  know the reason
 
  Terminal output as follows,
 
 
 --
 
  == management: [2015-01-08T13:54:31+00:00] INFO: Forking chef instance
 to
  converge...
  == management: [2015-01-08T13:54:31+00:00] WARN:
  == management: * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * *
  * * * * * * * * * *
  == management: SSL validation of HTTPS requests is disabled. HTTPS
  connections are still
  == management: encrypted, but chef is not able to detect forged
 replies or
  man in the middle
  == management: attacks.
  == management:
  == management: To fix this issue add an entry like this to your
  configuration file:
  == management:
  == management: ```
  == management:   # Verify all HTTPS connections (recommended)
  == management:   ssl_verify_mode :verify_peer
  == management:
  == management:   # OR, Verify only connections to chef-server
  == management:   verify_api_cert true
  == management: ```
  == management:
  == management: To check your SSL configuration, or troubleshoot errors,
  you can use the
  == management: `knife ssl check` command like so:
  == management:
  == management: ```
  == management:   knife ssl check -c /tmp/vagrant-chef-2/solo.rb
  == management: ```
  == management:
  == management: * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * *
  * * * * * * * * * *
  == management:
  == management: [2015-01-08T13:54:31+00:00] INFO: *** Chef 11.16.0 ***
  == management: [2015-01-08T13:54:31+00:00] INFO: Chef-client pid: 2932
  == management: [2015-01-08T13:54:36+00:00] INFO: Setting the run_list
 to
  [recipe[nat-router], recipe[cloudstack::management-server]] from CLI
  options
  == management: [2015-01-08T13:54:36+00:00] INFO: Run List is
  [recipe[nat-router], recipe[cloudstack::management-server]]
  == management: [2015-01-08T13:54:36+00:00] INFO: Run List expands to
  [nat-router, cloudstack::management-server]
  == management: [2015-01-08T13:54:36+00:00] INFO: Starting Chef Run for
  localhost
  == management: [2015-01-08T13:54:36+00:00] INFO: Running start handlers
  == management: [2015-01-08T13:54:36+00:00] INFO: Start handlers
 complete.
  == management:
  == management:
 
 
 
  == management: Recipe Compile Error
  == management:
 
 
 
  == management:
  == management:
  == management: Chef::Exceptions::RecipeNotFound
  == management: 
  == management: could not find recipe client for cookbook mysql
  == management:
  == management:
  == management: [2015-01-08T13:54:36+00:00] ERROR: Running exception
  handlers
  == management: [2015-01-08T13:54:36+00:00] ERROR: Exception handlers
  complete
  == management: [2015-01-08T13:54:36+00:00] FATAL: Stacktrace dumped to
  /var/chef/cache/chef-stacktrace.out
  == management: [2015-01-08T13:54:36+00:00] ERROR: could not find recipe
  client for cookbook mysql
  == management: [2015-01-08T13:54:37+00:00] FATAL:
  Chef::Exceptions::ChildConvergeError: Chef run process exited
  unsuccessfully (exit code 1)
  Chef never successfully completed! Any errors should be visible

Re: Cloud-Stack Configuration | Vagrant

2015-01-08 Thread Ian Duffy
(Dropping dev list)

Hi Supun,

The referred [1] either binary-installation-basic (4.3 or 4.4) or
binary-installation-advanced (4.3 only, will work with 4.4 but expect
failures and to have to set your xen network labels manually.) should work
for you.
Just ensure you have your virtualbox interfaces configured accordingly.

I believe your some of your colleagues are using [1].

Hope this helps.
Ian

On 8 January 2015 at 06:28, Supun Muthutantrige sup...@wso2.com wrote:

 Hi all,

 Currently I am in the process of configuring cloud-stack into my local
 machine. I would like to know what would be the fastest way to perform this
 task. If there are  resources to use vagrant sort of scripts to get
 cloud-stack up and running

 Currently following [1] to configure cloud-stack

 [1]. https://github.com/imduffy15/devcloud4



 Thank you,
 Regards


 *Supun Rasitha Muthutantrige*
 Software Engineer | Intern
 WSO2 Inc: http://wso2.com
 lean.enterprise.middleware
 Mobile: 0758374608



Re: Cloud-Stack Configuration | Vagrant

2015-01-08 Thread Ian Duffy
That issue should be fixed. Can you confirm your on the latest clone? Just
do a git pull.

If it still fails remove ~/.berkshelf and try again.
On 8 Jan 2015 14:04, Supun Muthutantrige sup...@wso2.com wrote:

 Hi Ian,

 Thank you for the information. When I run the vagrant up command
 in binary-installation-advanced folder the following error occurred. I
 tried this after stopping and starting the mysql server, changed the
 default mysql 3306 port, but the error seems to be there, Would like to
 know the reason

 Terminal output as follows,

 --

 == management: [2015-01-08T13:54:31+00:00] INFO: Forking chef instance to
 converge...
 == management: [2015-01-08T13:54:31+00:00] WARN:
 == management: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * * * * * * * * * *
 == management: SSL validation of HTTPS requests is disabled. HTTPS
 connections are still
 == management: encrypted, but chef is not able to detect forged replies or
 man in the middle
 == management: attacks.
 == management:
 == management: To fix this issue add an entry like this to your
 configuration file:
 == management:
 == management: ```
 == management:   # Verify all HTTPS connections (recommended)
 == management:   ssl_verify_mode :verify_peer
 == management:
 == management:   # OR, Verify only connections to chef-server
 == management:   verify_api_cert true
 == management: ```
 == management:
 == management: To check your SSL configuration, or troubleshoot errors,
 you can use the
 == management: `knife ssl check` command like so:
 == management:
 == management: ```
 == management:   knife ssl check -c /tmp/vagrant-chef-2/solo.rb
 == management: ```
 == management:
 == management: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * * * * * * * * * *
 == management:
 == management: [2015-01-08T13:54:31+00:00] INFO: *** Chef 11.16.0 ***
 == management: [2015-01-08T13:54:31+00:00] INFO: Chef-client pid: 2932
 == management: [2015-01-08T13:54:36+00:00] INFO: Setting the run_list to
 [recipe[nat-router], recipe[cloudstack::management-server]] from CLI
 options
 == management: [2015-01-08T13:54:36+00:00] INFO: Run List is
 [recipe[nat-router], recipe[cloudstack::management-server]]
 == management: [2015-01-08T13:54:36+00:00] INFO: Run List expands to
 [nat-router, cloudstack::management-server]
 == management: [2015-01-08T13:54:36+00:00] INFO: Starting Chef Run for
 localhost
 == management: [2015-01-08T13:54:36+00:00] INFO: Running start handlers
 == management: [2015-01-08T13:54:36+00:00] INFO: Start handlers complete.
 == management:
 == management:

 
 == management: Recipe Compile Error
 == management:

 
 == management:
 == management:
 == management: Chef::Exceptions::RecipeNotFound
 == management: 
 == management: could not find recipe client for cookbook mysql
 == management:
 == management:
 == management: [2015-01-08T13:54:36+00:00] ERROR: Running exception
 handlers
 == management: [2015-01-08T13:54:36+00:00] ERROR: Exception handlers
 complete
 == management: [2015-01-08T13:54:36+00:00] FATAL: Stacktrace dumped to
 /var/chef/cache/chef-stacktrace.out
 == management: [2015-01-08T13:54:36+00:00] ERROR: could not find recipe
 client for cookbook mysql
 == management: [2015-01-08T13:54:37+00:00] FATAL:
 Chef::Exceptions::ChildConvergeError: Chef run process exited
 unsuccessfully (exit code 1)
 Chef never successfully completed! Any errors should be visible in the
 output above. Please fix your recipes so that they properly complete.


 --


 Thank you,
 Regards


 *Supun Rasitha Muthutantrige*
 Software Engineer | Intern
 WSO2 Inc: http://wso2.com
 lean.enterprise.middleware
 Mobile: 0758374608



Re: Cloudstack User Interface CSS design

2014-12-21 Thread Ian Duffy
Hey Nux,

This is going from a very brief reading of the source code.

pip install flask
modify config.py as required
run python app.py
navigate to http://localhost:5000


Re: Cloudstack User Interface CSS design

2014-12-20 Thread Ian Duffy
https://github.com/apache/cloudstack/tree/master/tools/ngui

Might be of interest. Its angular and bootstrap. Wouldn't considered it
polished it also uses a proxy interface over the cloudstack api.

The guys over at sungard built there own
Cloud UI: Building a CloudStack Web Interface for…:
http://youtu.be/4hA8kGCRCOE

As did the guys over at exoscale.ch (sign up for a free account to see it)
On 20 Dec 2014 20:10, Tim Mackey tmac...@gmail.com wrote:

 Aldis,

 While I don't know if organizations are out there with replacement UIs you
 can buy, I do know that the UI is rather customizable.

 If you're just looking for some reskinning of what we have, there is the
 UI CSS:  http://www.slideshare.net/cloudstack/cloudstack-ui-customization

 If you want to see something more advanced look at what SunGuard presented
 earlier this year:
 http://events.linuxfoundation.org/sites/events/files/slides/CCNA14.pdf
 for inspiration.

 Of course, since the UI really doesn't do much more than provide an
 interface over the API, you're free to implement whatever you want and make
 appropriate API calls based on your unique needs:
 http://cloudstack.apache.org/docs/api/

 Lastly, if you're a UI developer/designer, we welcome the contributions
 from everyone, so you could always make a proposal to the development list
 for UI changes.  (
 https://cwiki.apache.org/confluence/display/CLOUDSTACK/Development+101)

 -tim

 On Sat, Dec 20, 2014 at 6:57 AM, Aldis Gerhards al...@hostnet.lv wrote:

 Hi.

 Does anyone know where is it possible to BUY/ORDER Cloudstack Web
 interface CSS which is more modern and Bootstrap 3.0 compatible.
 In my opinion default Cloudstack Web UI is old school allready and should
 be redesigned.

 Looking forward to hear from you guys :)

 Ar cieņu,

 *Aldis Gerhards*
 valdes loceklis

 GSM:(+371) 27 812 777
 Fakss:  (+371) 67 387 397
 E-pasts:  aldis.gerha...@hostnet.lv
 Web: http://www.hostnet.lv
 Twitter: http://www.twitter.com/hostnetlv





 *Hostnet Virtuālie serveri (VPS) - Izmēģini VPS par brīvu veselu nedēļu!*
 Pakalpojums tiek nodrošināts tikai ar jaudīgiem oriģināliem DELL serveriem




Re: Cloudstack User Interface CSS design

2014-12-20 Thread Ian Duffy
Hi Nux,

I don't have one to hand. Sebastien do you? or did you include any in a
blog post?

Its fairly simple to get running from what I recall.

On 21 December 2014 at 00:42, Nux! n...@li.nux.ro wrote:

 That ngui seems interesting. Anyone has a screenshot of it in action or
 something?

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro

 - Original Message -
  From: Ian Duffy i...@ianduffy.ie
  To: users@cloudstack.apache.org
  Sent: Saturday, 20 December, 2014 20:33:50
  Subject: Re: Cloudstack User Interface CSS design

  https://github.com/apache/cloudstack/tree/master/tools/ngui
 
  Might be of interest. Its angular and bootstrap. Wouldn't considered it
  polished it also uses a proxy interface over the cloudstack api.
 
  The guys over at sungard built there own
  Cloud UI: Building a CloudStack Web Interface for…:
  http://youtu.be/4hA8kGCRCOE
 
  As did the guys over at exoscale.ch (sign up for a free account to see
 it)
  On 20 Dec 2014 20:10, Tim Mackey tmac...@gmail.com wrote:
 
  Aldis,
 
  While I don't know if organizations are out there with replacement UIs
 you
  can buy, I do know that the UI is rather customizable.
 
  If you're just looking for some reskinning of what we have, there is the
  UI CSS:
 http://www.slideshare.net/cloudstack/cloudstack-ui-customization
 
  If you want to see something more advanced look at what SunGuard
 presented
  earlier this year:
  http://events.linuxfoundation.org/sites/events/files/slides/CCNA14.pdf
  for inspiration.
 
  Of course, since the UI really doesn't do much more than provide an
  interface over the API, you're free to implement whatever you want and
 make
  appropriate API calls based on your unique needs:
  http://cloudstack.apache.org/docs/api/
 
  Lastly, if you're a UI developer/designer, we welcome the contributions
  from everyone, so you could always make a proposal to the development
 list
  for UI changes.  (
  https://cwiki.apache.org/confluence/display/CLOUDSTACK/Development+101)
 
  -tim
 
  On Sat, Dec 20, 2014 at 6:57 AM, Aldis Gerhards al...@hostnet.lv
 wrote:
 
  Hi.
 
  Does anyone know where is it possible to BUY/ORDER Cloudstack Web
  interface CSS which is more modern and Bootstrap 3.0 compatible.
  In my opinion default Cloudstack Web UI is old school allready and
 should
  be redesigned.
 
  Looking forward to hear from you guys :)
 
  Ar cieņu,
 
  *Aldis Gerhards*
  valdes loceklis
 
  GSM:(+371) 27 812 777
  Fakss:  (+371) 67 387 397
  E-pasts:  aldis.gerha...@hostnet.lv
  Web: http://www.hostnet.lv
  Twitter: http://www.twitter.com/hostnetlv
 
 
 
 
 
  *Hostnet Virtuālie serveri (VPS) - Izmēģini VPS par brīvu veselu
 nedēļu!*
  Pakalpojums tiek nodrošināts tikai ar jaudīgiem oriģināliem DELL
 serveriem
 



Re: [TESTING] CloudStack 4.3.2 testing

2014-12-09 Thread Ian Duffy
Fantastic work Rohit! :)

I tested with the dev branch of devcloud4 binary installation basic [1].

Everything worked without issue, brought up a new ubuntu vm based of the
openvm.eu templates [2]. Template came up without issue, console worked,
password and hostname were successfully set.

Created SG group rules for HTTP and SSH. Both worked as expected.

[1]
https://github.com/imduffy15/devcloud4/tree/dev/binary-installation-basic
[2] http://dl.openvm.eu/cloudstack/ubuntu/vanilla/jenkins/

On 9 December 2014 at 13:47, Rohit Yadav rohit.ya...@shapeblue.com wrote:

 Hi everyone,

 In last couple of weeks 103 issues were fixed on 4.3 branch since 4.3.1
 release: https://github.com/apache/cloudstack/blob/4.3/CHANGES.md

 I want to kick start release process for 4.3.2 next week (15 Dec 2014),
 but before that let's test 4.3 branch and fix any blockers and critical
 issues. I'll meanwhile try to fix other pending issues till the end of
 this week. I've tested 4.3 branch with KVM in both basic and advance
 zones and it has worked for me so far.

 For the purpose of involving users in the testing process I've build a
 noredist rpm/deb repository using SHA 32adae4 from 4.3 branch. Please
 use the following repository for testing 4.3.2-SNAPSHOT:

 http://packages.bhaisaab.org/cloudstack/testing

 If you find any blocker or critical issues please report them on this
 thread. Thanks.

 Regards,
 Rohit Yadav
 Software Architect, ShapeBlue
 M. +91 8826230892 | rohit.ya...@shapeblue.com
 Blog: bhaisaab.org | Twitter: @_bhaisaab
 PS. If you see any footer below, I did not add it :)
 Find out more about ShapeBlue and our range of CloudStack related services

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

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



Re: 4.3.1 API issue with importing LDAP users

2014-12-06 Thread Ian Duffy
Hi.

Haven't looked at the code but it sounds like a casing issue.

AD is case aware but not case sensitive. I'm unsure of the top of my head
what POSIX LDAP is.

Probably best if we change to suit ADs case awareness. i.e. copy across as
same casing and allow login from any case variation.

Can you open a jira ticket?

Thanks,
Ian
On 6 Dec 2014 01:48, ilya musayev ilya.mailing.li...@gmail.com wrote:

 Hi Ian,

 This is probably better suited for Dev list, Ian Duffy has done alot of
 work on LDAP and CloudStack, he is cc'd to this thread. Perhaps he can shed
 some light.

 Regards
 ilya

 On 12/5/14, 4:40 PM, Ian Forde wrote:

 I’ve got a bash script performing an API call (in my case, via
 cloudmonkey) as follows:

 cloudmonkey api listLdapUsers listtype=new display=default
 filter=username,domain

 (note that we’re using Active Directory)

 There’s at least one user in AD defined with a capital letter in front.
 Example:  “Bjones rather than bjones.  Now given that we have a user in
 CS named bjones, Bjones shouldn’t show up in the output from the above
 command, but it does.

 Is this supposed to happen or is the listLdapUsers supposed to perform a
 case-insensitive match against currently-defined Cloudstack user accounts?

 Thanks,
-Ian





Re: The Simplest way to Run CloudStack on VirtualBox

2014-11-16 Thread Ian Duffy
Great! Thanks for the information Thomas, you have pretty much the same
environment as myself.

Really unsure what is causing the issue. The error suggests its looking for
a box labelled base, which is never specified in any of the vagrant files.

Can you try something for me? In whatever folder your running vagrant up
from (assuming binary-installation-advanced or binary-installation-basic)
delete the .vagrant folder and modify the VagrantFile to include:

xenserver.vm.box_url: 
https://vagrantcloud.com/duffy/boxes/xenserver/versions/4/providers/virtualbox.box

management.vm.box_url: 
https://vagrantcloud.com/chef/boxes/centos-6.5/versions/1/providers/virtualbox.box


underneath the respective type.vm.box variables.  Hopefully this will
resolve any issues its have automatically finding the boxes through
vagrant-cloud.



On 16 November 2014 07:07, Thomas Munn symgr...@gmail.com wrote:

 I did do a 'vagrant init' and didn't change anything.

 On Sun, Nov 16, 2014 at 2:04 AM, Thomas Munn symgr...@gmail.com wrote:

  I am using brew version of mac. Works fine with other vagrant boxes.
  Vagrant 1.6.5
 
  OSX Yosemite using brew (osx 10.10)
 
  Darwin lilly.munnster.com 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep
 19
  00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
 
  Virtualbox 4.3.18
 
  Ran your commands, but not sure how to vigure out omnibus/chef 
 
  On Sun, Nov 16, 2014 at 1:22 AM, Ian Duffy i...@ianduffy.ie wrote:
 
  Thomas,
 
  Can you tell me more about your environment?
 
  OS? Vagrant Version? Vagrant plugin versions (onmibus and
 chef-librarian)?
  VirtualBox version?
 
  The error suggests some issue communicating with vagrant-cloud for
  downloading the box.
 
  On 16 November 2014 06:10, Thomas Munn symgr...@gmail.com wrote:
 
   I also tried it. I cloned into git, did the
  
   bash scripts/vagrant_prep.sh vbox
  
   then I did a vagrant init
  
   and vagrant up and I get:
   vagrant up
   Bringing machine 'default' up with 'virtualbox' provider...
   == default: Box 'base' could not be found. Attempting to find and
   install...
   default: Box Provider: virtualbox
   default: Box Version: = 0
   == default: Adding box 'base' (v0) for provider: virtualbox
   default: Downloading: base
   An error occurred while downloading the remote file. The error
   message, if any, is reproduced below. Please fix this error and try
   again.
  
   Couldn't open file /Users/tjmunn/devcloud4/base
  
   This looks mondo cool if it can get working
  
  
  
   On Sun, Nov 16, 2014 at 12:05 AM, Ian Duffy i...@ianduffy.ie wrote:
  
Great to hear Imesh. If you hit any more issues just shout.
   
Thinks to keep in mind Devcloud runs VMs in PV mode. When you
  upload
   an
ISO it will be registered as hvm only. There's a HVM flag in the DB
  under
the templates table you can flick to 0 so it boots on PV.
   
Ubuntu will install no problem just make sure you do it on a service
offering that gives 256mb of ram.
   
Also keep in mind the default CloudStack service offerings are set
 to
  use
shared storage. In devcloud we only have local storage.
   
If your machine has lots of ram 16gb let me know and we can discuss
   giving
more ram to the hypervisor and system VMS to get better performance.
On 16 Nov 2014 03:17, Imesh Gunaratne im...@apache.org wrote:
   
 Hi Ian,

 Great! It worked! The vagrant binary advanced installation
 completed
 succefully and I was able to access the CloudStack client without
  any
 problem. It has also executed the deployment configuration with
  Marvin
 successfully.

 Thank you very much for your help! I'm now going to create an
 Ubuntu
 template and integrate Stratos with it.

 Many Thanks

 On Sun, Nov 16, 2014 at 8:23 AM, Imesh Gunaratne 
 im...@apache.org
wrote:

  Hi Ian,
 
  Thanks for the quick response, I just started a new installation
  with
 your
  latest changes. Will let you know the status soon. Appreciate
 it.
 
  Many Thanks
 
  On Sun, Nov 16, 2014 at 6:35 AM, Thomas Munn 
 symgr...@gmail.com
wrote:
 
  What is the URL for the new branch?
 
  Sent from my iPad
 
   On Nov 15, 2014, at 17:44, Ian Duffy i...@ianduffy.ie
 wrote:
  
   That almost looks like a vagrant-omnibus book 11.16.0 is
 a
   valid
   version.
  
   Anyways, I've changed it to use :latest.
  
   Can you do a git pull again? Should hopefully fix it.
  
   My testing just finished, It worked successfully with the
  earlier
  changes.
  
   On 15 November 2014 22:08, Imesh Gunaratne 
 im...@apache.org
wrote:
  
   Hi Ian,
  
   I got your fix and did another test, I see the below error
  with
   the
  latest
   changes:
  
   == management: Machine booted and ready!
   == management: Checking for guest

Re: The Simplest way to Run CloudStack on VirtualBox

2014-11-16 Thread Ian Duffy
Hi Imesh,

I'm going to need a lot more logs than that. You should be able to find
them in /var/log/cloudstack/management.

On 16 November 2014 18:06, Imesh Gunaratne im...@apache.org wrote:

 Thanks again Ian! Appreciate all the help and information!

 I imported Ubuntu 12.04 64bit iso into the templates and tried to spawn an
 instance out of it, here I noticed the below error:

 Unable to create a deployment for
 VM[User|VM-dd218219-06c5-4b5e-affb-ae8a6f19f19e]

 I could find the following information in the events:
 Failed to deploy Vm with Id: 20, on Host with Id: null

 On Sun, Nov 16, 2014 at 10:35 AM, Ian Duffy i...@ianduffy.ie wrote:

  Great to hear Imesh. If you hit any more issues just shout.
 
  Thinks to keep in mind Devcloud runs VMs in PV mode. When you upload
 an
  ISO it will be registered as hvm only. There's a HVM flag in the DB under
  the templates table you can flick to 0 so it boots on PV.
 
  Ubuntu will install no problem just make sure you do it on a service
  offering that gives 256mb of ram.
 
  Also keep in mind the default CloudStack service offerings are set to use
  shared storage. In devcloud we only have local storage.
 
  If your machine has lots of ram 16gb let me know and we can discuss
 giving
  more ram to the hypervisor and system VMS to get better performance.
  On 16 Nov 2014 03:17, Imesh Gunaratne im...@apache.org wrote:
 
   Hi Ian,
  
   Great! It worked! The vagrant binary advanced installation completed
   succefully and I was able to access the CloudStack client without any
   problem. It has also executed the deployment configuration with Marvin
   successfully.
  
   Thank you very much for your help! I'm now going to create an Ubuntu
   template and integrate Stratos with it.
  
   Many Thanks
  
   On Sun, Nov 16, 2014 at 8:23 AM, Imesh Gunaratne im...@apache.org
  wrote:
  
Hi Ian,
   
Thanks for the quick response, I just started a new installation with
   your
latest changes. Will let you know the status soon. Appreciate it.
   
Many Thanks
   
On Sun, Nov 16, 2014 at 6:35 AM, Thomas Munn symgr...@gmail.com
  wrote:
   
What is the URL for the new branch?
   
Sent from my iPad
   
 On Nov 15, 2014, at 17:44, Ian Duffy i...@ianduffy.ie wrote:

 That almost looks like a vagrant-omnibus book 11.16.0 is a
 valid
 version.

 Anyways, I've changed it to use :latest.

 Can you do a git pull again? Should hopefully fix it.

 My testing just finished, It worked successfully with the earlier
changes.

 On 15 November 2014 22:08, Imesh Gunaratne im...@apache.org
  wrote:

 Hi Ian,

 I got your fix and did another test, I see the below error with
 the
latest
 changes:

 == management: Machine booted and ready!
 == management: Checking for guest additions in VM...
 == management: Configuring and enabling network interfaces...
 == management: Mounting shared folders...
management: /vagrant =


   
  
 
 /Users/imesh/sandboxes/apache/cloudstack/vagrant/devcloud4/binary-installation-advanced
management: /tmp/vagrant-chef-2/chef-solo-1/cookbooks =


   
  
 
 /Users/imesh/sandboxes/apache/cloudstack/vagrant/devcloud4/common/management/cookbooks
 There are errors in the configuration of this machine. Please fix
 the following errors and try again:

 vagrant-omnibus:
 * '11.16.0' is not a valid version of Chef.

 Many Thanks

 On Sun, Nov 16, 2014 at 3:28 AM, Imesh Gunaratne 
  im...@apache.org
wrote:

 Great thanks Ian, will do a vagrant destroy, vagrant up now.

 Thanks

 On Sun, Nov 16, 2014 at 3:24 AM, Ian Duffy i...@ianduffy.ie
  wrote:

 No problem at all, I really appreciate your help on this.

 No worries, the breaks are my fault. I often forget how many
   linking
 dependencies are involved with devcloud.

 I'm after pushing a fix for the marvin issue, you can do a git
  pull
and
 try
 do a vagrant destroy vagrant up if you wish. I'm testing it at
  the
 moment
 if you prefer to wait :)

 On 15 November 2014 21:48, Imesh Gunaratne im...@apache.org
wrote:

 Hi Ian,

 No problem at all, I really appreciate your help on this.

 Asanka: I tried your instructions but the marvin deploy
 command
fails
 with
 the following:

 2014-11-15 21:43:39,438 - DEBUG - Parsing Test data successful
 2014-11-15 21:43:39,438 - DEBUG - Payload: {'account':
 'admin',
 'command':
 'listUsers', 'response': 'json'}
 2014-11-15 21:43:39,438 - DEBUG - Sending GET Cmd :
 listUsers===
 2014-11-15 21:43:39,467 - ERROR - __sendGetReqToCS : Exception
 Occurred:
 ('Connection aborted.', error(111, 'Connection refused'))

 May be the xenserver credentials provided (root/password) are
  not
 correct.

 Many

Re: The Simplest way to Run CloudStack on VirtualBox

2014-11-16 Thread Ian Duffy
Thomas,

There's different setups here:

1) Basic - You are expected to run the management server on your host
machine. Only a MySQL, NFS box is supplied along with a Hypervisor box.
2) Advanced - same as above
3) Binary-installation-basic - Full cloud within a virtual environment
4) Binary-installation-advanced - Full cloud within a virtual environment

On 16 November 2014 19:51, Thomas Munn symgr...@gmail.com wrote:

 Just figured it out. I have go to the 'advanced' directory then run vagrant
 up! Might want to include that in docs!

 On Sun, Nov 16, 2014 at 2:50 PM, Thomas Munn symgr...@gmail.com wrote:

  Can you just attach a 'proper' Vagrant file? I am a little confused what
  things are supposed to look like? Might want to include in your GIT
  repository!!!
 
  On Sun, Nov 16, 2014 at 4:37 AM, Ian Duffy i...@ianduffy.ie wrote:
 
  Great! Thanks for the information Thomas, you have pretty much the same
  environment as myself.
 
  Really unsure what is causing the issue. The error suggests its looking
  for
  a box labelled base, which is never specified in any of the vagrant
 files.
 
  Can you try something for me? In whatever folder your running vagrant up
  from (assuming binary-installation-advanced or
 binary-installation-basic)
  delete the .vagrant folder and modify the VagrantFile to include:
 
  xenserver.vm.box_url: 
 
 
 https://vagrantcloud.com/duffy/boxes/xenserver/versions/4/providers/virtualbox.box
  
  management.vm.box_url: 
 
 
 https://vagrantcloud.com/chef/boxes/centos-6.5/versions/1/providers/virtualbox.box
  
 
  underneath the respective type.vm.box variables.  Hopefully this will
  resolve any issues its have automatically finding the boxes through
  vagrant-cloud.
 
 
 
  On 16 November 2014 07:07, Thomas Munn symgr...@gmail.com wrote:
 
   I did do a 'vagrant init' and didn't change anything.
  
   On Sun, Nov 16, 2014 at 2:04 AM, Thomas Munn symgr...@gmail.com
  wrote:
  
I am using brew version of mac. Works fine with other vagrant boxes.
Vagrant 1.6.5
   
OSX Yosemite using brew (osx 10.10)
   
Darwin lilly.munnster.com 14.0.0 Darwin Kernel Version 14.0.0: Fri
  Sep
   19
00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
   
Virtualbox 4.3.18
   
Ran your commands, but not sure how to vigure out omnibus/chef 
   
On Sun, Nov 16, 2014 at 1:22 AM, Ian Duffy i...@ianduffy.ie wrote:
   
Thomas,
   
Can you tell me more about your environment?
   
OS? Vagrant Version? Vagrant plugin versions (onmibus and
   chef-librarian)?
VirtualBox version?
   
The error suggests some issue communicating with vagrant-cloud for
downloading the box.
   
On 16 November 2014 06:10, Thomas Munn symgr...@gmail.com wrote:
   
 I also tried it. I cloned into git, did the

 bash scripts/vagrant_prep.sh vbox

 then I did a vagrant init

 and vagrant up and I get:
 vagrant up
 Bringing machine 'default' up with 'virtualbox' provider...
 == default: Box 'base' could not be found. Attempting to find
 and
 install...
 default: Box Provider: virtualbox
 default: Box Version: = 0
 == default: Adding box 'base' (v0) for provider: virtualbox
 default: Downloading: base
 An error occurred while downloading the remote file. The error
 message, if any, is reproduced below. Please fix this error and
 try
 again.

 Couldn't open file /Users/tjmunn/devcloud4/base

 This looks mondo cool if it can get working



 On Sun, Nov 16, 2014 at 12:05 AM, Ian Duffy i...@ianduffy.ie
  wrote:

  Great to hear Imesh. If you hit any more issues just shout.
 
  Thinks to keep in mind Devcloud runs VMs in PV mode. When
 you
upload
 an
  ISO it will be registered as hvm only. There's a HVM flag in
 the
  DB
under
  the templates table you can flick to 0 so it boots on PV.
 
  Ubuntu will install no problem just make sure you do it on a
  service
  offering that gives 256mb of ram.
 
  Also keep in mind the default CloudStack service offerings are
  set
   to
use
  shared storage. In devcloud we only have local storage.
 
  If your machine has lots of ram 16gb let me know and we can
  discuss
 giving
  more ram to the hypervisor and system VMS to get better
  performance.
  On 16 Nov 2014 03:17, Imesh Gunaratne im...@apache.org
  wrote:
 
   Hi Ian,
  
   Great! It worked! The vagrant binary advanced installation
   completed
   succefully and I was able to access the CloudStack client
  without
any
   problem. It has also executed the deployment configuration
 with
Marvin
   successfully.
  
   Thank you very much for your help! I'm now going to create an
   Ubuntu
   template and integrate Stratos with it.
  
   Many Thanks
  
   On Sun, Nov 16, 2014 at 8:23 AM, Imesh Gunaratne 
   im

Re: The Simplest way to Run CloudStack on VirtualBox

2014-11-15 Thread Ian Duffy
Hi Imesh,

That almost looks like a possible issue with the vboxnet adapters.
Can you confirm you have 3 host only adapters assigned 192.168.22.0 -
192.168.24.0 with dhcp disabled on each?
On 15 Nov 2014 02:19, Imesh Gunaratne im...@apache.org wrote:

 Hi Ian,

 Thanks for your quick response. This is the issue I encountered when I
 executed devcloud4 (binary-installation-advanced):

 == management: [2014-11-15T02:09:23+00:00] INFO: Running queued delayed
 notifications before re-raising exception
 == management: [2014-11-15T02:09:23+00:00] ERROR: Running exception
 handlers
 == management: [2014-11-15T02:09:23+00:00] ERROR: Exception handlers
 complete
 == management: [2014-11-15T02:09:23+00:00] FATAL: Stacktrace dumped to
 /var/chef/cache/chef-stacktrace.out
 == management: [2014-11-15T02:09:23+00:00] ERROR:
 package[cloudstack-management] (cloudstack::management-server line 22) had
 an error: Timeout::Error: execution expired
 == management: [2014-11-15T02:09:23+00:00] FATAL:
 Chef::Exceptions::ChildConvergeError: Chef run process exited
 unsuccessfully (exit code 1)
 Chef never successfully completed! Any errors should be visible in the
 output above. Please fix your recipes so that they properly complete.

 My host machine runs Yosemite (OSX 10.10), Vagrant 1.6.5, VirtualBox
 4.3.16. I have also attached the chef stacktrace file with this mail.

 Really appreciate your help.

 Many Thanks

 On Fri, Nov 14, 2014 at 4:33 PM, Ian Duffy i...@ianduffy.ie wrote:

 Hi,

 I can help you get devcloud up. What issues did you have?
 On 14 Nov 2014 04:40, Imesh Gunaratne im...@apache.org wrote:

  Hi All,
 
  We recently introduced CloudStack support in Apache Stratos and trying
 to
  figureout the best way to demonstrate this.
 
  Really appreciate if you could guide us on the simplest way to install
  CloudStack on VirtualBox (may be using Vagrant)?
 
  We tried following but did not work perfectly:
  - https://github.com/bvbharatk/VagrantSimulator.git
  - https://github.com/imduffy15/devcloud4.git
 
  Thanks
 
 
 
 
  --
  Imesh Gunaratne
 
  Technical Lead, WSO2
  Committer  PMC Member, Apache Stratos
 




 --
 Imesh Gunaratne

 Technical Lead, WSO2
 Committer  PMC Member, Apache Stratos



Re: The Simplest way to Run CloudStack on VirtualBox

2014-11-15 Thread Ian Duffy
Hi Imesh,

Yes use 192.168.22.1 - 192.168.24.1. Sorry I meant to add a /24 prefix in
on my original email.

On 15 November 2014 18:16, Imesh Gunaratne im...@apache.org wrote:

 Hi Ian,

 Thanks again for the quick feedback. Yes it was my fault, I have used some
 other IPv4 addresses in hostonly vboxnet adapters. I just started another
 test with the ones you have mentioned.

 Just to clarify, the README file in the devcloud4 says to set these values
 to 192.168.22.1 - 192.168.24.1. Would there be any difference?

 Thanks

 On Sat, Nov 15, 2014 at 3:59 PM, Ian Duffy i...@ianduffy.ie wrote:

  Hi Imesh,
 
  That almost looks like a possible issue with the vboxnet adapters.
  Can you confirm you have 3 host only adapters assigned 192.168.22.0 -
  192.168.24.0 with dhcp disabled on each?
  On 15 Nov 2014 02:19, Imesh Gunaratne im...@apache.org wrote:
 
   Hi Ian,
  
   Thanks for your quick response. This is the issue I encountered when I
   executed devcloud4 (binary-installation-advanced):
  
   == management: [2014-11-15T02:09:23+00:00] INFO: Running queued
 delayed
   notifications before re-raising exception
   == management: [2014-11-15T02:09:23+00:00] ERROR: Running exception
   handlers
   == management: [2014-11-15T02:09:23+00:00] ERROR: Exception handlers
   complete
   == management: [2014-11-15T02:09:23+00:00] FATAL: Stacktrace dumped to
   /var/chef/cache/chef-stacktrace.out
   == management: [2014-11-15T02:09:23+00:00] ERROR:
   package[cloudstack-management] (cloudstack::management-server line 22)
  had
   an error: Timeout::Error: execution expired
   == management: [2014-11-15T02:09:23+00:00] FATAL:
   Chef::Exceptions::ChildConvergeError: Chef run process exited
   unsuccessfully (exit code 1)
   Chef never successfully completed! Any errors should be visible in the
   output above. Please fix your recipes so that they properly complete.
  
   My host machine runs Yosemite (OSX 10.10), Vagrant 1.6.5, VirtualBox
   4.3.16. I have also attached the chef stacktrace file with this mail.
  
   Really appreciate your help.
  
   Many Thanks
  
   On Fri, Nov 14, 2014 at 4:33 PM, Ian Duffy i...@ianduffy.ie wrote:
  
   Hi,
  
   I can help you get devcloud up. What issues did you have?
   On 14 Nov 2014 04:40, Imesh Gunaratne im...@apache.org wrote:
  
Hi All,
   
We recently introduced CloudStack support in Apache Stratos and
 trying
   to
figureout the best way to demonstrate this.
   
Really appreciate if you could guide us on the simplest way to
 install
CloudStack on VirtualBox (may be using Vagrant)?
   
We tried following but did not work perfectly:
- https://github.com/bvbharatk/VagrantSimulator.git
- https://github.com/imduffy15/devcloud4.git
   
Thanks
   
   
   
   
--
Imesh Gunaratne
   
Technical Lead, WSO2
Committer  PMC Member, Apache Stratos
   
  
  
  
  
   --
   Imesh Gunaratne
  
   Technical Lead, WSO2
   Committer  PMC Member, Apache Stratos
  
 



 --
 Imesh Gunaratne

 Technical Lead, WSO2
 Committer  PMC Member, Apache Stratos



Re: The Simplest way to Run CloudStack on VirtualBox

2014-11-15 Thread Ian Duffy
Hi Imesh,

Sorry about that. I've moved some things around recently. I will push out a
fix for that.

On 15 November 2014 21:27, Asanka sanjaya Herath angal...@gmail.com wrote:

 Hi Imesh,

 If the management server is up, I think you don't need to run 'vagrant up'
 command again. So try follow these steps.

 1. Find the Marvin-0.1.0.tar.gz from a locally build repository of
 cloudstack.
 2. Run this command. pip install Marvin-0.1.0.tar.gz
 3. Change IPs in advanced/advanced.json file according to vbox
 adapters(22-24).
 4. Run this command. python -m marvin.deployDataCenter -i
 advanced/advanced.json



 On Sun, Nov 16, 2014 at 1:06 AM, Imesh Gunaratne im...@apache.org wrote:

  Hi Ian,
 
  Great! Thanks! Your suggestion worked, the advance binary installation
 went
  much far afterwards. Now I can see the below error, seems like the marvin
  tar is not there at the below link:
 
  http://ianduffy.ie/Marvin-0.1.0.tar.gz
 
  == management: [2014-11-15T19:26:55+00:00] INFO:
  template[/etc/sysconfig/nfs] sending restart action to service[nfs]
  (delayed)
  == management: [2014-11-15T19:26:59+00:00] INFO: service[nfs] restarted
  == management: [2014-11-15T19:26:59+00:00] INFO: template[/etc/exports]
  sending run action to execute[exportfs] (delayed)
  == management: [2014-11-15T19:26:59+00:00] INFO: execute[exportfs] ran
  successfully
  == management: [2014-11-15T19:26:59+00:00] ERROR: Running exception
  handlers
  == management: [2014-11-15T19:26:59+00:00] ERROR: Exception handlers
  complete
  == management: [2014-11-15T19:26:59+00:00] FATAL: Stacktrace dumped to
  /var/chef/cache/chef-stacktrace.out
  == management: [2014-11-15T19:26:59+00:00] ERROR: bash[Install
 Cloudstack
  Marvin] (cloudstack::management-server line 67) had an error:
  Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0],
  but received '2'
  == management:  Begin output of bash
   /tmp/chef-script20141115-3008-8jnekm 
  == management: STDOUT: Downloading/unpacking
  http://ianduffy.ie/Marvin-0.1.0.tar.gz
  == management:   HTTP error 404 while getting
  http://ianduffy.ie/Marvin-0.1.0.tar.gz
  == management: Cleaning up...
 
  While seeing this error I tried to access the CloudStack console (
  http://localhost:8080/client) and it seems to be working. Do you think I
  can ignore the above error and use CloudStack or will I need to fix it
 and
  re-install?
 
  Really appreciate your help.
 
  Many Thanks
 
  On Sun, Nov 16, 2014 at 12:29 AM, Ian Duffy i...@ianduffy.ie wrote:
 
   Hi Imesh,
  
   Yes use 192.168.22.1 - 192.168.24.1. Sorry I meant to add a /24 prefix
 in
   on my original email.
  
   On 15 November 2014 18:16, Imesh Gunaratne im...@apache.org wrote:
  
Hi Ian,
   
Thanks again for the quick feedback. Yes it was my fault, I have used
   some
other IPv4 addresses in hostonly vboxnet adapters. I just started
  another
test with the ones you have mentioned.
   
Just to clarify, the README file in the devcloud4 says to set these
   values
to 192.168.22.1 - 192.168.24.1. Would there be any difference?
   
Thanks
   
On Sat, Nov 15, 2014 at 3:59 PM, Ian Duffy i...@ianduffy.ie wrote:
   
 Hi Imesh,

 That almost looks like a possible issue with the vboxnet adapters.
 Can you confirm you have 3 host only adapters assigned
 192.168.22.0 -
 192.168.24.0 with dhcp disabled on each?
 On 15 Nov 2014 02:19, Imesh Gunaratne im...@apache.org wrote:

  Hi Ian,
 
  Thanks for your quick response. This is the issue I encountered
  when
   I
  executed devcloud4 (binary-installation-advanced):
 
  == management: [2014-11-15T02:09:23+00:00] INFO: Running queued
delayed
  notifications before re-raising exception
  == management: [2014-11-15T02:09:23+00:00] ERROR: Running
  exception
  handlers
  == management: [2014-11-15T02:09:23+00:00] ERROR: Exception
  handlers
  complete
  == management: [2014-11-15T02:09:23+00:00] FATAL: Stacktrace
  dumped
   to
  /var/chef/cache/chef-stacktrace.out
  == management: [2014-11-15T02:09:23+00:00] ERROR:
  package[cloudstack-management] (cloudstack::management-server
 line
   22)
 had
  an error: Timeout::Error: execution expired
  == management: [2014-11-15T02:09:23+00:00] FATAL:
  Chef::Exceptions::ChildConvergeError: Chef run process exited
  unsuccessfully (exit code 1)
  Chef never successfully completed! Any errors should be visible
 in
   the
  output above. Please fix your recipes so that they properly
  complete.
 
  My host machine runs Yosemite (OSX 10.10), Vagrant 1.6.5,
  VirtualBox
  4.3.16. I have also attached the chef stacktrace file with this
  mail.
 
  Really appreciate your help.
 
  Many Thanks
 
  On Fri, Nov 14, 2014 at 4:33 PM, Ian Duffy i...@ianduffy.ie
  wrote:
 
  Hi,
 
  I can help you get devcloud up. What issues did you have?
  On 14

Re: The Simplest way to Run CloudStack on VirtualBox

2014-11-15 Thread Ian Duffy
 No problem at all, I really appreciate your help on this.

No worries, the breaks are my fault. I often forget how many linking
dependencies are involved with devcloud.

I'm after pushing a fix for the marvin issue, you can do a git pull and try
do a vagrant destroy vagrant up if you wish. I'm testing it at the moment
if you prefer to wait :)

On 15 November 2014 21:48, Imesh Gunaratne im...@apache.org wrote:

 Hi Ian,

 No problem at all, I really appreciate your help on this.

 Asanka: I tried your instructions but the marvin deploy command fails with
 the following:

 2014-11-15 21:43:39,438 - DEBUG - Parsing Test data successful
 2014-11-15 21:43:39,438 - DEBUG - Payload: {'account': 'admin', 'command':
 'listUsers', 'response': 'json'}
 2014-11-15 21:43:39,438 - DEBUG - Sending GET Cmd :
 listUsers===
 2014-11-15 21:43:39,467 - ERROR - __sendGetReqToCS : Exception Occurred:
 ('Connection aborted.', error(111, 'Connection refused'))

 May be the xenserver credentials provided (root/password) are not correct.

 Many Thanks

 On Sun, Nov 16, 2014 at 3:09 AM, Ian Duffy i...@ianduffy.ie wrote:

  Hi Imesh,
 
  Sorry about that. I've moved some things around recently. I will push
 out a
  fix for that.
 
  On 15 November 2014 21:27, Asanka sanjaya Herath angal...@gmail.com
  wrote:
 
   Hi Imesh,
  
   If the management server is up, I think you don't need to run 'vagrant
  up'
   command again. So try follow these steps.
  
   1. Find the Marvin-0.1.0.tar.gz from a locally build repository of
   cloudstack.
   2. Run this command. pip install Marvin-0.1.0.tar.gz
   3. Change IPs in advanced/advanced.json file according to vbox
   adapters(22-24).
   4. Run this command. python -m marvin.deployDataCenter -i
   advanced/advanced.json
  
  
  
   On Sun, Nov 16, 2014 at 1:06 AM, Imesh Gunaratne im...@apache.org
  wrote:
  
Hi Ian,
   
Great! Thanks! Your suggestion worked, the advance binary
 installation
   went
much far afterwards. Now I can see the below error, seems like the
  marvin
tar is not there at the below link:
   
http://ianduffy.ie/Marvin-0.1.0.tar.gz
   
== management: [2014-11-15T19:26:55+00:00] INFO:
template[/etc/sysconfig/nfs] sending restart action to service[nfs]
(delayed)
== management: [2014-11-15T19:26:59+00:00] INFO: service[nfs]
  restarted
== management: [2014-11-15T19:26:59+00:00] INFO:
  template[/etc/exports]
sending run action to execute[exportfs] (delayed)
== management: [2014-11-15T19:26:59+00:00] INFO: execute[exportfs]
 ran
successfully
== management: [2014-11-15T19:26:59+00:00] ERROR: Running exception
handlers
== management: [2014-11-15T19:26:59+00:00] ERROR: Exception handlers
complete
== management: [2014-11-15T19:26:59+00:00] FATAL: Stacktrace dumped
 to
/var/chef/cache/chef-stacktrace.out
== management: [2014-11-15T19:26:59+00:00] ERROR: bash[Install
   Cloudstack
Marvin] (cloudstack::management-server line 67) had an error:
Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with
  [0],
but received '2'
== management:  Begin output of bash
 /tmp/chef-script20141115-3008-8jnekm 
== management: STDOUT: Downloading/unpacking
http://ianduffy.ie/Marvin-0.1.0.tar.gz
== management:   HTTP error 404 while getting
http://ianduffy.ie/Marvin-0.1.0.tar.gz
== management: Cleaning up...
   
While seeing this error I tried to access the CloudStack console (
http://localhost:8080/client) and it seems to be working. Do you
  think I
can ignore the above error and use CloudStack or will I need to fix
 it
   and
re-install?
   
Really appreciate your help.
   
Many Thanks
   
On Sun, Nov 16, 2014 at 12:29 AM, Ian Duffy i...@ianduffy.ie wrote:
   
 Hi Imesh,

 Yes use 192.168.22.1 - 192.168.24.1. Sorry I meant to add a /24
  prefix
   in
 on my original email.

 On 15 November 2014 18:16, Imesh Gunaratne im...@apache.org
 wrote:

  Hi Ian,
 
  Thanks again for the quick feedback. Yes it was my fault, I have
  used
 some
  other IPv4 addresses in hostonly vboxnet adapters. I just started
another
  test with the ones you have mentioned.
 
  Just to clarify, the README file in the devcloud4 says to set
 these
 values
  to 192.168.22.1 - 192.168.24.1. Would there be any difference?
 
  Thanks
 
  On Sat, Nov 15, 2014 at 3:59 PM, Ian Duffy i...@ianduffy.ie
  wrote:
 
   Hi Imesh,
  
   That almost looks like a possible issue with the vboxnet
  adapters.
   Can you confirm you have 3 host only adapters assigned
   192.168.22.0 -
   192.168.24.0 with dhcp disabled on each?
   On 15 Nov 2014 02:19, Imesh Gunaratne im...@apache.org
  wrote:
  
Hi Ian,
   
Thanks for your quick response. This is the issue I
 encountered
when
 I
executed devcloud4 (binary-installation

Re: The Simplest way to Run CloudStack on VirtualBox

2014-11-15 Thread Ian Duffy
That almost looks like a vagrant-omnibus book 11.16.0 is a valid
version.

Anyways, I've changed it to use :latest.

Can you do a git pull again? Should hopefully fix it.

My testing just finished, It worked successfully with the earlier changes.

On 15 November 2014 22:08, Imesh Gunaratne im...@apache.org wrote:

 Hi Ian,

 I got your fix and did another test, I see the below error with the latest
 changes:

 == management: Machine booted and ready!
 == management: Checking for guest additions in VM...
 == management: Configuring and enabling network interfaces...
 == management: Mounting shared folders...
 management: /vagrant =

 /Users/imesh/sandboxes/apache/cloudstack/vagrant/devcloud4/binary-installation-advanced
 management: /tmp/vagrant-chef-2/chef-solo-1/cookbooks =

 /Users/imesh/sandboxes/apache/cloudstack/vagrant/devcloud4/common/management/cookbooks
 There are errors in the configuration of this machine. Please fix
 the following errors and try again:

 vagrant-omnibus:
 * '11.16.0' is not a valid version of Chef.

 Many Thanks

 On Sun, Nov 16, 2014 at 3:28 AM, Imesh Gunaratne im...@apache.org wrote:

  Great thanks Ian, will do a vagrant destroy, vagrant up now.
 
  Thanks
 
  On Sun, Nov 16, 2014 at 3:24 AM, Ian Duffy i...@ianduffy.ie wrote:
 
   No problem at all, I really appreciate your help on this.
 
  No worries, the breaks are my fault. I often forget how many linking
  dependencies are involved with devcloud.
 
  I'm after pushing a fix for the marvin issue, you can do a git pull and
  try
  do a vagrant destroy vagrant up if you wish. I'm testing it at the
 moment
  if you prefer to wait :)
 
  On 15 November 2014 21:48, Imesh Gunaratne im...@apache.org wrote:
 
   Hi Ian,
  
   No problem at all, I really appreciate your help on this.
  
   Asanka: I tried your instructions but the marvin deploy command fails
  with
   the following:
  
   2014-11-15 21:43:39,438 - DEBUG - Parsing Test data successful
   2014-11-15 21:43:39,438 - DEBUG - Payload: {'account': 'admin',
  'command':
   'listUsers', 'response': 'json'}
   2014-11-15 21:43:39,438 - DEBUG - Sending GET Cmd :
   listUsers===
   2014-11-15 21:43:39,467 - ERROR - __sendGetReqToCS : Exception
 Occurred:
   ('Connection aborted.', error(111, 'Connection refused'))
  
   May be the xenserver credentials provided (root/password) are not
  correct.
  
   Many Thanks
  
   On Sun, Nov 16, 2014 at 3:09 AM, Ian Duffy i...@ianduffy.ie wrote:
  
Hi Imesh,
   
Sorry about that. I've moved some things around recently. I will
 push
   out a
fix for that.
   
On 15 November 2014 21:27, Asanka sanjaya Herath 
 angal...@gmail.com
wrote:
   
 Hi Imesh,

 If the management server is up, I think you don't need to run
  'vagrant
up'
 command again. So try follow these steps.

 1. Find the Marvin-0.1.0.tar.gz from a locally build repository of
 cloudstack.
 2. Run this command. pip install Marvin-0.1.0.tar.gz
 3. Change IPs in advanced/advanced.json file according to vbox
 adapters(22-24).
 4. Run this command. python -m marvin.deployDataCenter -i
 advanced/advanced.json



 On Sun, Nov 16, 2014 at 1:06 AM, Imesh Gunaratne 
 im...@apache.org
wrote:

  Hi Ian,
 
  Great! Thanks! Your suggestion worked, the advance binary
   installation
 went
  much far afterwards. Now I can see the below error, seems like
 the
marvin
  tar is not there at the below link:
 
  http://ianduffy.ie/Marvin-0.1.0.tar.gz
 
  == management: [2014-11-15T19:26:55+00:00] INFO:
  template[/etc/sysconfig/nfs] sending restart action to
  service[nfs]
  (delayed)
  == management: [2014-11-15T19:26:59+00:00] INFO: service[nfs]
restarted
  == management: [2014-11-15T19:26:59+00:00] INFO:
template[/etc/exports]
  sending run action to execute[exportfs] (delayed)
  == management: [2014-11-15T19:26:59+00:00] INFO:
  execute[exportfs]
   ran
  successfully
  == management: [2014-11-15T19:26:59+00:00] ERROR: Running
  exception
  handlers
  == management: [2014-11-15T19:26:59+00:00] ERROR: Exception
  handlers
  complete
  == management: [2014-11-15T19:26:59+00:00] FATAL: Stacktrace
  dumped
   to
  /var/chef/cache/chef-stacktrace.out
  == management: [2014-11-15T19:26:59+00:00] ERROR: bash[Install
 Cloudstack
  Marvin] (cloudstack::management-server line 67) had an error:
  Mixlib::ShellOut::ShellCommandFailed: Expected process to exit
  with
[0],
  but received '2'
  == management:  Begin output of bash
   /tmp/chef-script20141115-3008-8jnekm 
  == management: STDOUT: Downloading/unpacking
  http://ianduffy.ie/Marvin-0.1.0.tar.gz
  == management:   HTTP error 404 while getting
  http://ianduffy.ie/Marvin-0.1.0.tar.gz
  == management: Cleaning up...
 
  While seeing this error I tried to access

Re: The Simplest way to Run CloudStack on VirtualBox

2014-11-15 Thread Ian Duffy
Thomas all changes were pushed into the devcloud4 master.
On 16 Nov 2014 01:06, Thomas Munn symgr...@gmail.com wrote:

 What is the URL for the new branch?

 Sent from my iPad

  On Nov 15, 2014, at 17:44, Ian Duffy i...@ianduffy.ie wrote:
 
  That almost looks like a vagrant-omnibus book 11.16.0 is a valid
  version.
 
  Anyways, I've changed it to use :latest.
 
  Can you do a git pull again? Should hopefully fix it.
 
  My testing just finished, It worked successfully with the earlier
 changes.
 
  On 15 November 2014 22:08, Imesh Gunaratne im...@apache.org wrote:
 
  Hi Ian,
 
  I got your fix and did another test, I see the below error with the
 latest
  changes:
 
  == management: Machine booted and ready!
  == management: Checking for guest additions in VM...
  == management: Configuring and enabling network interfaces...
  == management: Mounting shared folders...
 management: /vagrant =
 
 
 /Users/imesh/sandboxes/apache/cloudstack/vagrant/devcloud4/binary-installation-advanced
 management: /tmp/vagrant-chef-2/chef-solo-1/cookbooks =
 
 
 /Users/imesh/sandboxes/apache/cloudstack/vagrant/devcloud4/common/management/cookbooks
  There are errors in the configuration of this machine. Please fix
  the following errors and try again:
 
  vagrant-omnibus:
  * '11.16.0' is not a valid version of Chef.
 
  Many Thanks
 
  On Sun, Nov 16, 2014 at 3:28 AM, Imesh Gunaratne im...@apache.org
 wrote:
 
  Great thanks Ian, will do a vagrant destroy, vagrant up now.
 
  Thanks
 
  On Sun, Nov 16, 2014 at 3:24 AM, Ian Duffy i...@ianduffy.ie wrote:
 
  No problem at all, I really appreciate your help on this.
 
  No worries, the breaks are my fault. I often forget how many linking
  dependencies are involved with devcloud.
 
  I'm after pushing a fix for the marvin issue, you can do a git pull
 and
  try
  do a vagrant destroy vagrant up if you wish. I'm testing it at the
  moment
  if you prefer to wait :)
 
  On 15 November 2014 21:48, Imesh Gunaratne im...@apache.org wrote:
 
  Hi Ian,
 
  No problem at all, I really appreciate your help on this.
 
  Asanka: I tried your instructions but the marvin deploy command fails
  with
  the following:
 
  2014-11-15 21:43:39,438 - DEBUG - Parsing Test data successful
  2014-11-15 21:43:39,438 - DEBUG - Payload: {'account': 'admin',
  'command':
  'listUsers', 'response': 'json'}
  2014-11-15 21:43:39,438 - DEBUG - Sending GET Cmd :
  listUsers===
  2014-11-15 21:43:39,467 - ERROR - __sendGetReqToCS : Exception
  Occurred:
  ('Connection aborted.', error(111, 'Connection refused'))
 
  May be the xenserver credentials provided (root/password) are not
  correct.
 
  Many Thanks
 
  On Sun, Nov 16, 2014 at 3:09 AM, Ian Duffy i...@ianduffy.ie wrote:
 
  Hi Imesh,
 
  Sorry about that. I've moved some things around recently. I will
  push
  out a
  fix for that.
 
  On 15 November 2014 21:27, Asanka sanjaya Herath 
  angal...@gmail.com
  wrote:
 
  Hi Imesh,
 
  If the management server is up, I think you don't need to run
  'vagrant
  up'
  command again. So try follow these steps.
 
  1. Find the Marvin-0.1.0.tar.gz from a locally build repository of
  cloudstack.
  2. Run this command. pip install Marvin-0.1.0.tar.gz
  3. Change IPs in advanced/advanced.json file according to vbox
  adapters(22-24).
  4. Run this command. python -m marvin.deployDataCenter -i
  advanced/advanced.json
 
 
 
  On Sun, Nov 16, 2014 at 1:06 AM, Imesh Gunaratne 
  im...@apache.org
  wrote:
 
  Hi Ian,
 
  Great! Thanks! Your suggestion worked, the advance binary
  installation
  went
  much far afterwards. Now I can see the below error, seems like
  the
  marvin
  tar is not there at the below link:
 
  http://ianduffy.ie/Marvin-0.1.0.tar.gz
 
  == management: [2014-11-15T19:26:55+00:00] INFO:
  template[/etc/sysconfig/nfs] sending restart action to
  service[nfs]
  (delayed)
  == management: [2014-11-15T19:26:59+00:00] INFO: service[nfs]
  restarted
  == management: [2014-11-15T19:26:59+00:00] INFO:
  template[/etc/exports]
  sending run action to execute[exportfs] (delayed)
  == management: [2014-11-15T19:26:59+00:00] INFO:
  execute[exportfs]
  ran
  successfully
  == management: [2014-11-15T19:26:59+00:00] ERROR: Running
  exception
  handlers
  == management: [2014-11-15T19:26:59+00:00] ERROR: Exception
  handlers
  complete
  == management: [2014-11-15T19:26:59+00:00] FATAL: Stacktrace
  dumped
  to
  /var/chef/cache/chef-stacktrace.out
  == management: [2014-11-15T19:26:59+00:00] ERROR: bash[Install
  Cloudstack
  Marvin] (cloudstack::management-server line 67) had an error:
  Mixlib::ShellOut::ShellCommandFailed: Expected process to exit
  with
  [0],
  but received '2'
  == management:  Begin output of bash
  /tmp/chef-script20141115-3008-8jnekm 
  == management: STDOUT: Downloading/unpacking
  http://ianduffy.ie/Marvin-0.1.0.tar.gz
  == management:   HTTP error 404 while getting
  http://ianduffy.ie/Marvin-0.1.0.tar.gz
  == management: Cleaning up

Re: The Simplest way to Run CloudStack on VirtualBox

2014-11-15 Thread Ian Duffy
Great to hear Imesh. If you hit any more issues just shout.

Thinks to keep in mind Devcloud runs VMs in PV mode. When you upload an
ISO it will be registered as hvm only. There's a HVM flag in the DB under
the templates table you can flick to 0 so it boots on PV.

Ubuntu will install no problem just make sure you do it on a service
offering that gives 256mb of ram.

Also keep in mind the default CloudStack service offerings are set to use
shared storage. In devcloud we only have local storage.

If your machine has lots of ram 16gb let me know and we can discuss giving
more ram to the hypervisor and system VMS to get better performance.
On 16 Nov 2014 03:17, Imesh Gunaratne im...@apache.org wrote:

 Hi Ian,

 Great! It worked! The vagrant binary advanced installation completed
 succefully and I was able to access the CloudStack client without any
 problem. It has also executed the deployment configuration with Marvin
 successfully.

 Thank you very much for your help! I'm now going to create an Ubuntu
 template and integrate Stratos with it.

 Many Thanks

 On Sun, Nov 16, 2014 at 8:23 AM, Imesh Gunaratne im...@apache.org wrote:

  Hi Ian,
 
  Thanks for the quick response, I just started a new installation with
 your
  latest changes. Will let you know the status soon. Appreciate it.
 
  Many Thanks
 
  On Sun, Nov 16, 2014 at 6:35 AM, Thomas Munn symgr...@gmail.com wrote:
 
  What is the URL for the new branch?
 
  Sent from my iPad
 
   On Nov 15, 2014, at 17:44, Ian Duffy i...@ianduffy.ie wrote:
  
   That almost looks like a vagrant-omnibus book 11.16.0 is a valid
   version.
  
   Anyways, I've changed it to use :latest.
  
   Can you do a git pull again? Should hopefully fix it.
  
   My testing just finished, It worked successfully with the earlier
  changes.
  
   On 15 November 2014 22:08, Imesh Gunaratne im...@apache.org wrote:
  
   Hi Ian,
  
   I got your fix and did another test, I see the below error with the
  latest
   changes:
  
   == management: Machine booted and ready!
   == management: Checking for guest additions in VM...
   == management: Configuring and enabling network interfaces...
   == management: Mounting shared folders...
  management: /vagrant =
  
  
 
 /Users/imesh/sandboxes/apache/cloudstack/vagrant/devcloud4/binary-installation-advanced
  management: /tmp/vagrant-chef-2/chef-solo-1/cookbooks =
  
  
 
 /Users/imesh/sandboxes/apache/cloudstack/vagrant/devcloud4/common/management/cookbooks
   There are errors in the configuration of this machine. Please fix
   the following errors and try again:
  
   vagrant-omnibus:
   * '11.16.0' is not a valid version of Chef.
  
   Many Thanks
  
   On Sun, Nov 16, 2014 at 3:28 AM, Imesh Gunaratne im...@apache.org
  wrote:
  
   Great thanks Ian, will do a vagrant destroy, vagrant up now.
  
   Thanks
  
   On Sun, Nov 16, 2014 at 3:24 AM, Ian Duffy i...@ianduffy.ie wrote:
  
   No problem at all, I really appreciate your help on this.
  
   No worries, the breaks are my fault. I often forget how many
 linking
   dependencies are involved with devcloud.
  
   I'm after pushing a fix for the marvin issue, you can do a git pull
  and
   try
   do a vagrant destroy vagrant up if you wish. I'm testing it at the
   moment
   if you prefer to wait :)
  
   On 15 November 2014 21:48, Imesh Gunaratne im...@apache.org
  wrote:
  
   Hi Ian,
  
   No problem at all, I really appreciate your help on this.
  
   Asanka: I tried your instructions but the marvin deploy command
  fails
   with
   the following:
  
   2014-11-15 21:43:39,438 - DEBUG - Parsing Test data successful
   2014-11-15 21:43:39,438 - DEBUG - Payload: {'account': 'admin',
   'command':
   'listUsers', 'response': 'json'}
   2014-11-15 21:43:39,438 - DEBUG - Sending GET Cmd :
   listUsers===
   2014-11-15 21:43:39,467 - ERROR - __sendGetReqToCS : Exception
   Occurred:
   ('Connection aborted.', error(111, 'Connection refused'))
  
   May be the xenserver credentials provided (root/password) are not
   correct.
  
   Many Thanks
  
   On Sun, Nov 16, 2014 at 3:09 AM, Ian Duffy i...@ianduffy.ie
  wrote:
  
   Hi Imesh,
  
   Sorry about that. I've moved some things around recently. I will
   push
   out a
   fix for that.
  
   On 15 November 2014 21:27, Asanka sanjaya Herath 
   angal...@gmail.com
   wrote:
  
   Hi Imesh,
  
   If the management server is up, I think you don't need to run
   'vagrant
   up'
   command again. So try follow these steps.
  
   1. Find the Marvin-0.1.0.tar.gz from a locally build repository
 of
   cloudstack.
   2. Run this command. pip install Marvin-0.1.0.tar.gz
   3. Change IPs in advanced/advanced.json file according to vbox
   adapters(22-24).
   4. Run this command. python -m marvin.deployDataCenter -i
   advanced/advanced.json
  
  
  
   On Sun, Nov 16, 2014 at 1:06 AM, Imesh Gunaratne 
   im...@apache.org
   wrote:
  
   Hi Ian,
  
   Great! Thanks! Your suggestion worked, the advance binary
   installation

Re: The Simplest way to Run CloudStack on VirtualBox

2014-11-15 Thread Ian Duffy
Thomas,

Can you tell me more about your environment?

OS? Vagrant Version? Vagrant plugin versions (onmibus and chef-librarian)?
VirtualBox version?

The error suggests some issue communicating with vagrant-cloud for
downloading the box.

On 16 November 2014 06:10, Thomas Munn symgr...@gmail.com wrote:

 I also tried it. I cloned into git, did the

 bash scripts/vagrant_prep.sh vbox

 then I did a vagrant init

 and vagrant up and I get:
 vagrant up
 Bringing machine 'default' up with 'virtualbox' provider...
 == default: Box 'base' could not be found. Attempting to find and
 install...
 default: Box Provider: virtualbox
 default: Box Version: = 0
 == default: Adding box 'base' (v0) for provider: virtualbox
 default: Downloading: base
 An error occurred while downloading the remote file. The error
 message, if any, is reproduced below. Please fix this error and try
 again.

 Couldn't open file /Users/tjmunn/devcloud4/base

 This looks mondo cool if it can get working



 On Sun, Nov 16, 2014 at 12:05 AM, Ian Duffy i...@ianduffy.ie wrote:

  Great to hear Imesh. If you hit any more issues just shout.
 
  Thinks to keep in mind Devcloud runs VMs in PV mode. When you upload
 an
  ISO it will be registered as hvm only. There's a HVM flag in the DB under
  the templates table you can flick to 0 so it boots on PV.
 
  Ubuntu will install no problem just make sure you do it on a service
  offering that gives 256mb of ram.
 
  Also keep in mind the default CloudStack service offerings are set to use
  shared storage. In devcloud we only have local storage.
 
  If your machine has lots of ram 16gb let me know and we can discuss
 giving
  more ram to the hypervisor and system VMS to get better performance.
  On 16 Nov 2014 03:17, Imesh Gunaratne im...@apache.org wrote:
 
   Hi Ian,
  
   Great! It worked! The vagrant binary advanced installation completed
   succefully and I was able to access the CloudStack client without any
   problem. It has also executed the deployment configuration with Marvin
   successfully.
  
   Thank you very much for your help! I'm now going to create an Ubuntu
   template and integrate Stratos with it.
  
   Many Thanks
  
   On Sun, Nov 16, 2014 at 8:23 AM, Imesh Gunaratne im...@apache.org
  wrote:
  
Hi Ian,
   
Thanks for the quick response, I just started a new installation with
   your
latest changes. Will let you know the status soon. Appreciate it.
   
Many Thanks
   
On Sun, Nov 16, 2014 at 6:35 AM, Thomas Munn symgr...@gmail.com
  wrote:
   
What is the URL for the new branch?
   
Sent from my iPad
   
 On Nov 15, 2014, at 17:44, Ian Duffy i...@ianduffy.ie wrote:

 That almost looks like a vagrant-omnibus book 11.16.0 is a
 valid
 version.

 Anyways, I've changed it to use :latest.

 Can you do a git pull again? Should hopefully fix it.

 My testing just finished, It worked successfully with the earlier
changes.

 On 15 November 2014 22:08, Imesh Gunaratne im...@apache.org
  wrote:

 Hi Ian,

 I got your fix and did another test, I see the below error with
 the
latest
 changes:

 == management: Machine booted and ready!
 == management: Checking for guest additions in VM...
 == management: Configuring and enabling network interfaces...
 == management: Mounting shared folders...
management: /vagrant =


   
  
 
 /Users/imesh/sandboxes/apache/cloudstack/vagrant/devcloud4/binary-installation-advanced
management: /tmp/vagrant-chef-2/chef-solo-1/cookbooks =


   
  
 
 /Users/imesh/sandboxes/apache/cloudstack/vagrant/devcloud4/common/management/cookbooks
 There are errors in the configuration of this machine. Please fix
 the following errors and try again:

 vagrant-omnibus:
 * '11.16.0' is not a valid version of Chef.

 Many Thanks

 On Sun, Nov 16, 2014 at 3:28 AM, Imesh Gunaratne 
  im...@apache.org
wrote:

 Great thanks Ian, will do a vagrant destroy, vagrant up now.

 Thanks

 On Sun, Nov 16, 2014 at 3:24 AM, Ian Duffy i...@ianduffy.ie
  wrote:

 No problem at all, I really appreciate your help on this.

 No worries, the breaks are my fault. I often forget how many
   linking
 dependencies are involved with devcloud.

 I'm after pushing a fix for the marvin issue, you can do a git
  pull
and
 try
 do a vagrant destroy vagrant up if you wish. I'm testing it at
  the
 moment
 if you prefer to wait :)

 On 15 November 2014 21:48, Imesh Gunaratne im...@apache.org
wrote:

 Hi Ian,

 No problem at all, I really appreciate your help on this.

 Asanka: I tried your instructions but the marvin deploy
 command
fails
 with
 the following:

 2014-11-15 21:43:39,438 - DEBUG - Parsing Test data successful
 2014-11-15 21:43:39,438 - DEBUG

Re: The Simplest way to Run CloudStack on VirtualBox

2014-11-14 Thread Ian Duffy
Hi,

I can help you get devcloud up. What issues did you have?
On 14 Nov 2014 04:40, Imesh Gunaratne im...@apache.org wrote:

 Hi All,

 We recently introduced CloudStack support in Apache Stratos and trying to
 figureout the best way to demonstrate this.

 Really appreciate if you could guide us on the simplest way to install
 CloudStack on VirtualBox (may be using Vagrant)?

 We tried following but did not work perfectly:
 - https://github.com/bvbharatk/VagrantSimulator.git
 - https://github.com/imduffy15/devcloud4.git

 Thanks




 --
 Imesh Gunaratne

 Technical Lead, WSO2
 Committer  PMC Member, Apache Stratos



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

2014-11-05 Thread Ian Duffy
+1 (binding).

Did a few tests against exoscale.

On 5 November 2014 15:47, Rohit Yadav rohit.ya...@shapeblue.com wrote:

 +1 from my side as well

 Tested cloudmonkey for deploying ACS using KVM and shared NFS storage,
 write bash scripts etc.

  On 04-Nov-2014, at 8:16 pm, Geoff Higginbottom 
 geoff.higginbot...@shapeblue.com wrote:
 
  +1
 
  All previous issues have been fixed - Well done Rohit
 
  Tested the following using scripts:
 
  Install CloudMonkey and setup Profile
  Deploy new complete Advanced Zone
  Update Global Settings
  Create Domains and Users
  Delete default Service Offerings and Add new ones
  Deploy new Network and VMs, setup Ingress and Egress Rules
  Deploy new VPC and VMs, setup ACLs and Egress rules
 
  Regards
 
  Geoff Higginbottom
 
  D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
 
  geoff.higginbot...@shapeblue.com
 
  -Original Message-
  From: Rohit Yadav [mailto:rohit.ya...@shapeblue.com]
  Sent: 04 November 2014 13:10
  To: dev
  Cc: users@cloudstack.apache.org
  Subject: [VOTE] Release Apache CloudStack CloudMonkey 5.3.0 (round #6)
 
  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: 24faf56d5ab41cef1e9f7fc294f7cf1ab5e3a742
 
  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 EOD (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 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.
  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 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 

Re: ACS 4.4.0 - Xenserver OS Templates

2014-11-03 Thread Ian Duffy
@Andrija

Just out of interest, how are you handling the update stage?
Do you install a copy of windows server and let it update naturally from
windows update or an internal WSUS server?

Or are you using DISM and integrating them into the original WIM?

On 3 November 2014 16:42, Andrija Panic andrija.pa...@gmail.com wrote:

 @Nux

 Not sure if it is allowed - but I can provide you with Windows Server 2008
 and 2012 R2 templateas, free trial versions from Technet/MSDN, not
 registered (no serial etc), syspreped, with VirtIO drivers and Password
 reset features - updated few months ago (Windows updates)... Vanilla in
 general, except for password reset feature is working ( .msi file installed
 for password reset feature)

 Let me know if you are interested...

 On 3 November 2014 17:30, Matthew Midgett 
 clouds...@trick-solutions.com.invalid wrote:

  Well not all of us have 10Gb networking and when copying the templates
  from secondary to primary the smaller the disk the faster it get to the
  customer. Resizing the disk on my san will be a lot faster than on my nfs
  server. I'm not sure why no one is really interested in it. I mean one
  template for all HD sizes sounds great as I don't have to create and
  maintain lots of different sizes. Also I would be able to bill by
 resource
  usages on the HD's just like ram and cpu and network. My Cloudstack is
  working just fine and we are ready to deploy but creating 64 different
  images to me doesn't sound fun.
 
  Is password reset and hostname set working with these templates?
 
  -Original Message-
  From: Nux! [mailto:n...@li.nux.ro]
  Sent: Monday, November 03, 2014 10:27 AM
  To: users@cloudstack.apache.org
  Subject: Re: ACS 4.4.0 - Xenserver OS Templates
 
  Hello,
 
  Check dl.openvm.eu for templates, they're mostly 8GB in size, with the
  hope root resize will become available across all HVs; though people do
 not
  seem very interested in it.
  What work around do you mean for linux and freebsd?
 
  --
  Sent from the Delta quadrant using Borg technology!
 
  Nux!
  www.nux.ro
 
  - Original Message -
   From: Matthew Midgett clouds...@trick-solutions.com.INVALID
   To: users@cloudstack.apache.org
   Sent: Monday, 3 November, 2014 15:09:32
   Subject: ACS 4.4.0 - Xenserver OS Templates
 
   How is everyone setting up their templates for different size hard
  drives?
   Has anyone heard when root disk resize will be available for xen? It
   would be far nicer to have 5GB templates and then resize the disk when
   the customer provisions one. Is there any work around ATM for linux
   and freebsd os?
  
  
  
   Matthew Midgett
 
 


 --

 Andrija Panić
 --
   http://admintweets.com
 --



Re: Are openvm.eu Templates Safe?

2014-11-03 Thread Ian Duffy
Hi Matthew,

I can only speak for the Debian (
http://dl.openvm.eu/cloudstack/debian/vanilla/7/x86_64/ )  and Ubuntu (
http://dl.openvm.eu/cloudstack/ubuntu/vanilla/jenkins/ ) ones. (The others
are save but talk to Nux for validation).

The debian and ubuntu ones are automatically generated through a jenkins
job which executes debootstrap to populate a rootfs. The cloud-init stuff
along with init scripts for password and sshkey injection are placed onto
the box.

The build log for the current debian templates can be viewed at:

http://jenkins.cloudstack.ianduffy.ie/job/build_debian_amd64_template/31/console

The build log for the current ubuntu templates can be viewed at:

http://jenkins.cloudstack.ianduffy.ie/job/build_ubuntu_amd64_template/34/console

I guess I could work on including check sums on those so you can verify
they are what you get from openvm.eu

If you still feel unsure you can easily roll your own jenkins template
building environment.
Using chef and vagrant I have simplified this into a one command step:
vagrant up. By default vagrant provisions this within virtualbox but you
can easily use many of the vagrant provider plugins to provision to
cloudstack, azure, aws, etc.

https://github.com/imduffy15/cloudstack-templates

It will effectively give you a clone of what you see at
http://jenkins.cloudstack.ianduffy.ie along with this you can see all the
scripts at the above URL that were used to build the templates.

Hope this helps!

Ian.

On 3 November 2014 22:07, Erik Weber terbol...@gmail.com wrote:

 On Mon, Nov 3, 2014 at 10:02 PM, Matthew Midgett 
 clouds...@trick-solutions.com.invalid wrote:

  I was just pointed to these templates and was wondering if they were safe
  to
  deploy?
 
 
 

 AFAIK they are built by Ian and Lucian (Nux), so if you trust those two, it
 should be considered safe.

 If you want to be 100% sure you can always download the kickstart files and
 build them on your own.

 --
 Erik



Re: ACS 4.4.1 DEB Packages not yet available?

2014-10-30 Thread Ian Duffy
If you don't wish to wait you may use the ones generated by shapeblue.

http://shapeblue.com/packages/
http://packages.shapeblue.com/cloudstack/upstream/debian/4.4/

On 30 October 2014 10:04, Daan Hoogland daan.hoogl...@gmail.com wrote:

 I think we mist that, Stephan. Sorry about that.

 Wido, can you create them?


 thanks,

 On Thu, Oct 30, 2014 at 9:08 AM, Stephan Seitz
 s.se...@secretresearchfacility.com wrote:
  Hi!
 
  after reading the 4.4.0 - 4.4.1-thread on the list, I think I'm
  prepared for an Update.
 
  Running the management-node on Ubuntu 14.04 and following the documented
  update procedure (which leads to something easy as apt-get upgrade),
  I've noticed that there are no packages for 4.4.1 available at
  http://cloudstack.apt-get.eu/ubuntu/dists/trusty/4.4/
 
  Did I miss something? Or is it just not released yet?
 
 
  cheers,
 
  - Stephan
 
 



 --
 Daan



Re: Install

2014-10-29 Thread Ian Duffy
Hi,

What version of Cloudstack are you attempting to use?

Can you share the logs of your failed installations?

Thanks,

Ian


Re: Broken update from 4.4 to 4.4.1

2014-10-24 Thread Ian Duffy
 cloud ALL =NOPASSWD : ALL

This is dangerous advice. It grants the cloud user full sudo access without
the requirement of a password.

The following gives more limited access and should allow cloudstack to
function accordingly:

cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
/bin/umount, /usr/bin/keytool

On 24 October 2014 18:44, Andrija Panic andrija.pa...@gmail.com wrote:

 Just did quick management server ACS 4.4.1 installation on free server:
 cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
 /bin/umount, /usr/bin/keytool

 that is what it looks like in ACS 4.4.1
 clean install of ACS 4.4.1 works...

 On 24 October 2014 19:35, Andrija Panic andrija.pa...@gmail.com wrote:

  like this:
 
  Defaults:cloud !requiretty
  cloud ALL =NOPASSWD : ALL
 
  and let us know if the upgtade still fails - it does fail for me with no
  understandable error...
  thx
 
  On 24 October 2014 19:28, Matthew Midgett 
  clouds...@trick-solutions.com.invalid wrote:
 
  This is what is in my sudoers file
 
  cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
  /bin/umount
 
  Should I change it?
 
  -Original Message-
  From: Kirk Kosinski [mailto:kirkkosin...@gmail.com]
  Sent: Friday, October 24, 2014 5:23 AM
  To: users@cloudstack.apache.org
  Subject: Re: Broken update from 4.4 to 4.4.1
 
  Hi, the error below indicates a problem with the sudo config.  Make sure
  /etc/sudoers has a line like:
 
  cloud ALL =NOPASSWD : ALL
 
  Best regards,
  Kirk
 
  On 10/23/2014 01:05 PM, Matthew Midgett wrote:
   2014-10-23 15:21:52,943 INFO  [c.c.s.ConfigurationServerImpl]
   (main:null) Processing updateSSLKeyStore
   2014-10-23 15:21:52,948 INFO  [c.c.s.ConfigurationServerImpl]
   (main:null) SSL keystore located at
   /etc/cloudstack/management/cloud.keystore
   2014-10-23 15:21:52,951 DEBUG [c.c.u.s.Script] (main:null) Executing:
  sudo keytool -genkey -keystore /etc/cloudstack/management/cloud.keystore
  -storepass vmops.com -keypass vmops.com -keyalg RSA -validity 3650
  -dname cn=Cloudstack User,ou=chlt.charlottecolo.com,o=
  chlt.charlottecolo.com,c=Unknown
   2014-10-23 15:21:52,988 DEBUG [c.c.u.s.Script] (main:null) Exit value
   is 1
   2014-10-23 15:21:52,989 DEBUG [c.c.u.s.Script] (main:null) sudo: no
   tty present and no askpass program specified
   2014-10-23 15:21:52,991 WARN  [c.c.s.ConfigurationServerImpl]
  (main:null) Would use fail-safe keystore to continue.
   java.io.IOException: Fail to generate certificate!: sudo: no tty
  present and no askpass program specified
 at
 
 com.cloud.server.ConfigurationServerImpl.generateDefaultKeystore(ConfigurationServerImpl.java:595)
 at
 
 com.cloud.server.ConfigurationServerImpl.updateSSLKeystore(ConfigurationServerImpl.java:623)
 at
 
 com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:299)
 at
 
 com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImpl.java:164)
 at
 
 org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle$3.with(CloudStackExtendedLifeCycle.java:114)
 at
 
 org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.with(CloudStackExtendedLifeCycle.java:153)
 at
 
 org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.configure(CloudStackExtendedLifeCycle.java:110)
 at
 
 org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.start(CloudStackExtendedLifeCycle.java:56)
 at
 
 org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:167)
 at
 
 org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)
 at
 
 org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:339)
 at
 
 org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:143)
 at
 
 org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:108)
 at
 
 org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:945)
 at
 
 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
 at
 
 org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContext(DefaultModuleDefinitionSet.java:145)
 at
 
 org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet$2.with(DefaultModuleDefinitionSet.java:122)
 at
 
 org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:245)
 at
 
 org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:250)
 at
 
 

Re: Broken update from 4.4 to 4.4.1

2014-10-24 Thread Ian Duffy
 so I guess CS never updates it, and anyone who
installed a version with a sudo config missing keytool will probably hit
this same problem eventually

Correct. The modification of the sudoers file isn't done via the binary
package so it will not change on update.
It will only change if cloudstack-setup-management is run.

Release notes should probably be modified to include this.

On 25 October 2014 01:20, Kirk Kosinski kirkkosin...@gmail.com wrote:

 Right, it is not ideal, though it was like that for a long time (since
 at least CS 2.x).  I see that the sudo config was changed recently to be
 more locked down, but it did not include keytool due to CLOUDSTACK-1389.
  I checked a 4.3 setup which was upgraded from 4.2 and it still has the
 old unrestricted config so I guess CS never updates it, and anyone who
 installed a version with a sudo config missing keytool will probably hit
 this same problem eventually (whenever keytool is run).

 Best regards,
 Kirk


 On 10/24/2014 03:06 PM, Ian Duffy wrote:
  cloud ALL =NOPASSWD : ALL
 
  This is dangerous advice. It grants the cloud user full sudo access
 without
  the requirement of a password.
 
  The following gives more limited access and should allow cloudstack to
  function accordingly:
 
  cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
  /bin/umount, /usr/bin/keytool
 
  On 24 October 2014 18:44, Andrija Panic andrija.pa...@gmail.com wrote:
 
  Just did quick management server ACS 4.4.1 installation on free server:
  cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
  /bin/umount, /usr/bin/keytool
 
  that is what it looks like in ACS 4.4.1
  clean install of ACS 4.4.1 works...
 
  On 24 October 2014 19:35, Andrija Panic andrija.pa...@gmail.com
 wrote:
 
  like this:
 
  Defaults:cloud !requiretty
  cloud ALL =NOPASSWD : ALL
 
  and let us know if the upgtade still fails - it does fail for me with
 no
  understandable error...
  thx
 
  On 24 October 2014 19:28, Matthew Midgett 
  clouds...@trick-solutions.com.invalid wrote:
 
  This is what is in my sudoers file
 
  cloud ALL =NOPASSWD : /bin/chmod, /bin/cp, /bin/mkdir, /bin/mount,
  /bin/umount
 
  Should I change it?
 
  -Original Message-
  From: Kirk Kosinski [mailto:kirkkosin...@gmail.com]
  Sent: Friday, October 24, 2014 5:23 AM
  To: users@cloudstack.apache.org
  Subject: Re: Broken update from 4.4 to 4.4.1
 
  Hi, the error below indicates a problem with the sudo config.  Make
 sure
  /etc/sudoers has a line like:
 
  cloud ALL =NOPASSWD : ALL
 
  Best regards,
  Kirk
 
  On 10/23/2014 01:05 PM, Matthew Midgett wrote:
  2014-10-23 15:21:52,943 INFO  [c.c.s.ConfigurationServerImpl]
  (main:null) Processing updateSSLKeyStore
  2014-10-23 15:21:52,948 INFO  [c.c.s.ConfigurationServerImpl]
  (main:null) SSL keystore located at
  /etc/cloudstack/management/cloud.keystore
  2014-10-23 15:21:52,951 DEBUG [c.c.u.s.Script] (main:null) Executing:
  sudo keytool -genkey -keystore
 /etc/cloudstack/management/cloud.keystore
  -storepass vmops.com -keypass vmops.com -keyalg RSA -validity 3650
  -dname cn=Cloudstack User,ou=chlt.charlottecolo.com,o=
  chlt.charlottecolo.com,c=Unknown
  2014-10-23 15:21:52,988 DEBUG [c.c.u.s.Script] (main:null) Exit value
  is 1
  2014-10-23 15:21:52,989 DEBUG [c.c.u.s.Script] (main:null) sudo: no
  tty present and no askpass program specified
  2014-10-23 15:21:52,991 WARN  [c.c.s.ConfigurationServerImpl]
  (main:null) Would use fail-safe keystore to continue.
  java.io.IOException: Fail to generate certificate!: sudo: no tty
  present and no askpass program specified
at
 
 
 com.cloud.server.ConfigurationServerImpl.generateDefaultKeystore(ConfigurationServerImpl.java:595)
at
 
 
 com.cloud.server.ConfigurationServerImpl.updateSSLKeystore(ConfigurationServerImpl.java:623)
at
 
 
 com.cloud.server.ConfigurationServerImpl.persistDefaultValues(ConfigurationServerImpl.java:299)
at
 
 
 com.cloud.server.ConfigurationServerImpl.configure(ConfigurationServerImpl.java:164)
at
 
 
 org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle$3.with(CloudStackExtendedLifeCycle.java:114)
at
 
 
 org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.with(CloudStackExtendedLifeCycle.java:153)
at
 
 
 org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.configure(CloudStackExtendedLifeCycle.java:110)
at
 
 
 org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.start(CloudStackExtendedLifeCycle.java:56)
at
 
 
 org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:167)
at
 
 
 org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)
at
 
 
 org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:339

Re: Cloudstack 4.3.0 UI impossible login problem : browsers hang

2014-10-20 Thread Ian Duffy
Hi Jean-Francois,

What browser are you experiencing this issue with?

Can you try using firefox, it is the primary one the UI team use for
testing.

Thanks,
Ian

On 17 October 2014 08:51, Vincent Jean-François 
jean-francois.vinc...@worldline.com wrote:


 Hello,

 Configuration : Cloudstack 4.3.0. with two management servers (named 1 and
 2) behind a LVS with a configured charge of 100/1 for server1/server2
 (direct routing)

 Since two days, we have a login problem on server 1. The login pages load
 correctly. But after typing the correct password (local or LDAP one) the
 browser hangs.
 The first occurrence, two days ago. We restart the management server and
 the problem went away. Today, we cannot anymore use the server 1 and we
 have to user the server 2.
 Both servers are to our knowledge identical. And no change neither have
 been done on the infrastructure configuration.

 Is anybody here has experienced a such problem or have any clue ?

 The server ran for many weeks without any outage like this until now.

 apilog.log when we have recurring events :
 2014-10-17 09:05:44,446 INFO  [a.c.c.a.ApiServer]
 (http-6443-exec-442:ctx-8a23b456)  10.26.238.65 -- GET
 command=listCapabilitiesresponse=jsonsessionkey=null_=1413529544423 401
 unable to verify user credentials
 But we have also the same INFO message on the working server.

 Catalina.out :

 2014-10-17 09:42:22,888 DEBUG [c.c.a.ApiServlet]
 (http-6443-exec-467:ctx-86fe168f) ===START===  10.26.238.65 -- POST
 2014-10-17 09:42:22,891 DEBUG [c.c.u.AccountManagerImpl]
 (http-6443-exec-467:ctx-86fe168f) Attempting to log in user: jf in domain 1
 2014-10-17 09:42:22,892 DEBUG [c.c.s.a.SHA256SaltedUserAuthenticator]
 (http-6443-exec-467:ctx-86fe168f) Retrieving user: jf
 2014-10-17 09:42:22,900 DEBUG [c.c.u.AccountManagerImpl]
 (http-6443-exec-467:ctx-86fe168f) User: jf in domain 1 has successfully
 logged in

 But browser's stucked...


 Thank you


 Jean-Francois


 Ce message et les pièces jointes sont confidentiels et réservés à l'usage
 exclusif de ses destinataires. Il peut également être protégé par le secret
 professionnel. Si vous recevez ce message par erreur, merci d'en avertir
 immédiatement l'expéditeur et de le détruire. L'intégrité du message ne
 pouvant être assurée sur Internet, la responsabilité de Worldline ne pourra
 être recherchée quant au contenu de ce message. Bien que les meilleurs
 efforts soient faits pour maintenir cette transmission exempte de tout
 virus, l'expéditeur ne donne aucune garantie à cet égard et sa
 responsabilité ne saurait être recherchée pour tout dommage résultant d'un
 virus transmis.

 This e-mail and the documents attached are confidential and intended
 solely for the addressee; it may also be privileged. If you receive this
 e-mail in error, please notify the sender immediately and destroy it. As
 its integrity cannot be secured on the Internet, the Worldline liability
 cannot be triggered for the message content. Although the sender endeavours
 to maintain a computer virus-free network, the sender does not warrant that
 this transmission is virus-free and will not be liable for any damages
 resulting from any virus transmitted.



Re: ACS 4.2.1 - realhostip.com unable to access console Pleas click here for an importan msg

2014-10-10 Thread Ian Duffy
The realhostip service was retired.

Please see:

https://blogs.apache.org/cloudstack/entry/realhostip_service_is_being_retired

http://shapeblue.com/cloudstack/retirement-of-the-realhostip-com-service/

On 10 October 2014 23:12, motty cruz motty.c...@gmail.com wrote:

 Hello,
 I have Cloudstack 4.2.1 installed on production cluster and today when I
 tried to access console of instance I was not able to, I get the following
 Please click here for an important message

 Redirect me to The Apache Cloudstack Blog

 I change realhostip.com to *.realhostip.com but am still unable to access
 console.

 I have not done any changes to this cluster in a long time.

 any ideas?

 --
 Thanks for your support,
 Motty



Re: RHEL/Centos 7 and CS4.4.1 MS

2014-09-29 Thread Ian Duffy
Hi Adrian,

I haven't tested but I did a quick check to see if the mentioned commit has
been included within the 4.4 branch.

I can confirm it hasn't and is only present in master(4.5.0)

Hope this is of help to you,

Ian.

On 29 September 2014 16:13, Adrian Lewis adr...@alsiconsulting.co.uk
wrote:

 Hi,



 Just wondering if rather than downloading, installing and testing for
 myself, someone might happen to know whether the CS 4.4.1(RC) management
 server will work happily on Centos 7 yet? I understand that a patch has
 been made for 4.5/master (
 https://issues.apache.org/jira/browse/CLOUDSTACK-7106) but does anyone
 know
 if this has been added into 4.4.1 or whether this has been treated as a
 feature as opposed to a bug fix and hence not included in 4.4.1? The docs
 don’t mention RHEL 7 or Centos 7 but they’re not always completely up to
 date. Just to be clear, I’m not referring to using Centos 7 as a hypervisor
 with KVM, just the management server side of things.



 Thanks and sorry if I’m being lazy here.



 Adrian



Re: Some problems in the installation of cloudstack

2014-09-28 Thread Ian Duffy
Fix for devcloud4 made should be functioning again :)
On 26 Sep 2014 15:01, Ian Duffy i...@ianduffy.ie wrote:

 Devcloud4 currently broken due to the recent change up of system VM
 template names. (They were changed back so I need to revert my initial fix
 commit)

 Will fix it today.
 On 26 Sep 2014 13:25, Sebastien Goasguen run...@gmail.com wrote:

 can you try devcloud4:

 https://github.com/imduffy15/devcloud4


 On Sep 23, 2014, at 10:58 AM, sandeep khandekar 
 cloudstack.sand...@gmail.com wrote:

  I am getting the following error after following the above documentation
 
  root@cloudstack:/home/cloudstack/cloudstack# mvn -pl client
 jetty:runlog
  2014-09-23 19:20:28.637:INFO::Logging to STDERR via
  org.mortbay.log.StdErrLog
  2014-09-23 19:20:28.654:INFO::jetty-6.1.26
  2014-09-23 19:20:29.034:INFO::No Transaction manager found - if your
 webapp
  requires one, please configure one.
  2014-09-23 19:20:30.421:INFO:/client:Set web app root system property:
  'webapp.root' =
 
 [/home/cloudstack/cloudstack/client/target/cloud-client-ui-4.2.1-SNAPSHOT]
  2014-09-23 19:20:30.423:INFO:/client:Initializing log4j from
  [classpath:log4j-cloud.xml]
  2014-09-23 19:20:30.795:INFO:/client:Initializing Spring root
  WebApplicationContext
  2014-09-23 19:20:47.990:INFO::Started
 SelectChannelConnector@0.0.0.0:8080
  java.lang.ClassCastException: com.cloud.agent.api.Answer cannot be cast
 to
  com.cloud.agent.api.StopAnswer
 at
 
 com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1263)
 at
 
 com.cloud.ha.HighAvailabilityManagerImpl.scheduleRestart(HighAvailabilityManagerImpl.java:335)
 at
 
 com.cloud.vm.VirtualMachineManagerImpl.compareState(VirtualMachineManagerImpl.java:2576)
 at
 
 com.cloud.vm.VirtualMachineManagerImpl.fullSync(VirtualMachineManagerImpl.java:2253)
 at
 
 com.cloud.vm.VirtualMachineManagerImpl.processConnect(VirtualMachineManagerImpl.java:2759)
 at
 
 com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
 at
 
 com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1482)
 at
 
 com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerImpl.java:1762)
 at
 
 com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerImpl.java:1929)
 at
 
 com.cloud.agent.manager.AgentManagerImpl$SimulateStartTask.run(AgentManagerImpl.java:1130)
 at
 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745)
 
  Log file link
  http://pastebin.com/YTjsbRHP
 
  Please help me too. use the devcloud2 image which was in the doc.
 Callhost
  plugin error
 
  Thankyou
 
 
  On Tue, Sep 23, 2014 at 12:53 PM, Sebastien Goasguen run...@gmail.com
  wrote:
 
 
  On Sep 22, 2014, at 5:49 AM, Xianxia Xiao xianxiax...@ubuntukylin.com
 
  wrote:
 
 
  Hi all,   I am a beginner of  cloudstack . i try to install cloudstack
  on ubuntu,but I had some problems:
  1、Is cloudstack only can be deployed in ubutnu 12.04?Whether support
  ubuntu 14.04?
 
  it works on 14.04
 
  2、how can i configure cloudstack apt source in ubunntu
 
 
 
 http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#configure-package-repository
 
 
  3、In ubuntu,the cloudstack package is cloudstack-management, not
  cloud-client,right?
 
  the management server is cloudstack-management.
 
  4、when i start cloudstack service,the browser reports error HTTP
 Status
  500 - java.lang.NoClassDefFoundError:
  org/apache/tomcat/util/descriptor/LocalResolver.not login interface.
 
 
  did you install from source ?
 
  Check the docs at http://docs.cloudstack.apache.org
 
 
  Looking  forward any help or suggestions, thank you very much !
 
 
  Regards,
  Xian xia
 
 
 
 
 
 
 
  --
  SANDEEP KHANDEKAR
  Assistant Professor
  Department of Computer science and engineering
  Sreenidhi Institute of science and Technology
  Hyderabad




Re: Some problems in the installation of cloudstack

2014-09-26 Thread Ian Duffy
Devcloud4 currently broken due to the recent change up of system VM
template names. (They were changed back so I need to revert my initial fix
commit)

Will fix it today.
On 26 Sep 2014 13:25, Sebastien Goasguen run...@gmail.com wrote:

 can you try devcloud4:

 https://github.com/imduffy15/devcloud4


 On Sep 23, 2014, at 10:58 AM, sandeep khandekar 
 cloudstack.sand...@gmail.com wrote:

  I am getting the following error after following the above documentation
 
  root@cloudstack:/home/cloudstack/cloudstack# mvn -pl client
 jetty:runlog
  2014-09-23 19:20:28.637:INFO::Logging to STDERR via
  org.mortbay.log.StdErrLog
  2014-09-23 19:20:28.654:INFO::jetty-6.1.26
  2014-09-23 19:20:29.034:INFO::No Transaction manager found - if your
 webapp
  requires one, please configure one.
  2014-09-23 19:20:30.421:INFO:/client:Set web app root system property:
  'webapp.root' =
 
 [/home/cloudstack/cloudstack/client/target/cloud-client-ui-4.2.1-SNAPSHOT]
  2014-09-23 19:20:30.423:INFO:/client:Initializing log4j from
  [classpath:log4j-cloud.xml]
  2014-09-23 19:20:30.795:INFO:/client:Initializing Spring root
  WebApplicationContext
  2014-09-23 19:20:47.990:INFO::Started
 SelectChannelConnector@0.0.0.0:8080
  java.lang.ClassCastException: com.cloud.agent.api.Answer cannot be cast
 to
  com.cloud.agent.api.StopAnswer
 at
 
 com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1263)
 at
 
 com.cloud.ha.HighAvailabilityManagerImpl.scheduleRestart(HighAvailabilityManagerImpl.java:335)
 at
 
 com.cloud.vm.VirtualMachineManagerImpl.compareState(VirtualMachineManagerImpl.java:2576)
 at
 
 com.cloud.vm.VirtualMachineManagerImpl.fullSync(VirtualMachineManagerImpl.java:2253)
 at
 
 com.cloud.vm.VirtualMachineManagerImpl.processConnect(VirtualMachineManagerImpl.java:2759)
 at
 
 com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
 at
 
 com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1482)
 at
 
 com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerImpl.java:1762)
 at
 
 com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerImpl.java:1929)
 at
 
 com.cloud.agent.manager.AgentManagerImpl$SimulateStartTask.run(AgentManagerImpl.java:1130)
 at
 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745)
 
  Log file link
  http://pastebin.com/YTjsbRHP
 
  Please help me too. use the devcloud2 image which was in the doc.
 Callhost
  plugin error
 
  Thankyou
 
 
  On Tue, Sep 23, 2014 at 12:53 PM, Sebastien Goasguen run...@gmail.com
  wrote:
 
 
  On Sep 22, 2014, at 5:49 AM, Xianxia Xiao xianxiax...@ubuntukylin.com
  wrote:
 
 
  Hi all,   I am a beginner of  cloudstack . i try to install cloudstack
  on ubuntu,but I had some problems:
  1、Is cloudstack only can be deployed in ubutnu 12.04?Whether support
  ubuntu 14.04?
 
  it works on 14.04
 
  2、how can i configure cloudstack apt source in ubunntu
 
 
 
 http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/latest/installation.html#configure-package-repository
 
 
  3、In ubuntu,the cloudstack package is cloudstack-management, not
  cloud-client,right?
 
  the management server is cloudstack-management.
 
  4、when i start cloudstack service,the browser reports error HTTP
 Status
  500 - java.lang.NoClassDefFoundError:
  org/apache/tomcat/util/descriptor/LocalResolver.not login interface.
 
 
  did you install from source ?
 
  Check the docs at http://docs.cloudstack.apache.org
 
 
  Looking  forward any help or suggestions, thank you very much !
 
 
  Regards,
  Xian xia
 
 
 
 
 
 
 
  --
  SANDEEP KHANDEKAR
  Assistant Professor
  Department of Computer science and engineering
  Sreenidhi Institute of science and Technology
  Hyderabad




Re: Using ssh keys for authentication

2014-09-26 Thread Ian Duffy
Hi,

Please see the init scripts available over at:
https://github.com/shankerbalan/cloudstack-scripts

Alternatively, you can use cloud-init with cloudstack as a data source:
http://shankerbalan.net/blog/cloud-init-supports-cloudstack-as-data-source/

Normally one would bake these into their template.

Once you have your template created you can bring up a new instance with an
ssh key assigned and login using it:
http://shankerbalan.net/blog/ssh-keys-on-cloudstack-guest-instances-using-cloud-init/

On 26 September 2014 07:06, Asanka sanjaya Herath angal...@gmail.com
wrote:

 ​I followed this guide in order to use ssh keys for authentication in
 cloudstack.


 https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Installation_Guide/using-sshkeys.html


 According to this document we need to create an instance and download a
 script to it  (section 5.2.1) . My problem is should I create another
 template from the instance which created in section 5.2.1?​
 Because in section 5.2.3, it says us to give the template ID in order to
 create a new instance.

 --
 Thanks,
 Regards,
 ASH



Re: Cloudstack systemvmtemplate url is not working

2014-09-24 Thread Ian Duffy
The filename changed recently they now include the Jenkins build number.
On 24 Sep 2014 07:14, Asanka sanjaya Herath angal...@gmail.com wrote:

 I used this url for get cloudstack systemvmtemplate but this returns 404
 error.


 http://jenkins.buildacloud.org/job/build-systemvm-master/lastSuccessfulBuild/artifact/tools/appliance/dist/systemvmtemplate-master-xen.vhd.bz2

 Is there any alternative url which I can use for this?

 --
 Thanks,
 Regards,
 ASH



Re: cloudstack 4.4 access return 404 after cloudstack-management restart

2014-09-23 Thread Ian Duffy
How much ram do you have?
On 23 Sep 2014 19:21, Ning Wang wangning...@gmail.com wrote:

 is there someone enconter this,please help!
 Thanks!!!

 1,the browser shows:
 HTTP Status 404 -
 ___

 type Status report

 message

 description The requested resource () is not available.
 

 Apache Tomcat/6.0.24

 2,the log in /var/log/cloudstack/management/catalina.out:

 INFO: Deploying module: jaxws-1.5.6 -

 file:/usr/share/cloudstack-management/webapps7080/awsapi/WEB-INF/modules/axis2-jaxws-mar-1.5.6.mar
 Sep 23, 2014 2:03:17 PM org.apache.axis2.deployment.ModuleDeployer deploy
 INFO: Deploying module: addressing-1.5.6 -

 file:/usr/share/cloudstack-bridge/webapps/awsapi/WEB-INF/lib/axis2-1.5.6.jar
 Sep 23, 2014 2:03:19 PM org.apache.catalina.loader.WebappClassLoader
 loadClass
 INFO: Illegal access: this web application instance has been stopped
 already.  Could not load
 org.apache.cloudstack.managed.context.ManagedContextTimerTask$1.  The
 eventual following stack trace is caused by an error thrown for debugging
 purposes as well as to attempt to terminate the thread which caused the
 illegal access, and has no functional impact.
 java.lang.IllegalStateException
 at

 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1369)
 at

 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
 at

 org.apache.cloudstack.managed.context.ManagedContextTimerTask.run(ManagedContextTimerTask.java:27)
 at java.util.TimerThread.mainLoop(Timer.java:555)
 at java.util.TimerThread.run(Timer.java:505)

 Exception in thread Timer-2 java.lang.NoClassDefFoundError:
 org/apache/cloudstack/managed/context/ManagedContextTimerTask$1
 at

 org.apache.cloudstack.managed.context.ManagedContextTimerTask.run(ManagedContextTimerTask.java:27)
 at java.util.TimerThread.mainLoop(Timer.java:555)
 at java.util.TimerThread.run(Timer.java:505)
 Caused by: java.lang.ClassNotFoundException:
 org.apache.cloudstack.managed.context.ManagedContextTimerTask$1
 at

 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1483)
 at

 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
 ... 3 more
 Sep 23, 2014 2:03:22 PM org.apache.axis2.deployment.ServiceDeployer deploy
 INFO: Deploying Web service: cloud-ec2.aar -

 file:/usr/share/cloudstack-management/webapps7080/awsapi/WEB-INF/services/cloud-ec2.aar
 Sep 23, 2014 2:03:22 PM org.apache.axis2.deployment.ServiceDeployer deploy
 INFO: Deploying Web service: version-1.5.6.aar -

 file:/usr/share/cloudstack-management/webapps7080/awsapi/WEB-INF/services/version-1.5.6.aar
 Sep 23, 2014 2:03:22 PM org.apache.axis2.util.OnDemandLogger warn
 WARNING: No transportReceiver for
 org.apache.axis2.transport.http.AxisServletListener found. An instance for
 HTTP will be configured automatically. Please update your axis2.xml file!
 Sep 23, 2014 2:03:22 PM

 org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor
 init
 INFO: JSR-330 'javax.inject.Inject' annotation found and supported for
 autowiring
 Sep 23, 2014 2:03:22 PM org.apache.coyote.http11.Http11NioProtocol start
 INFO: Starting Coyote HTTP/1.1 on http-7080
 Sep 23, 2014 2:03:22 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 39687 ms



Re: Error Importing Sql Dumpfile

2014-09-17 Thread Ian Duffy
Hi Suneel,

You will need to grant your cloud user access to the databases accordingly.

e.g.

grant all privileges on cloud.* to cloud@'%'

Hope this helps,
Ian

On 16 September 2014 17:11, Venkata Suneel Babu Mallela 
sunee...@simplifydc.com wrote:

 Hi Ian Duffy,

 Thank you for your reply. I'm able to login with 'cloud' user without
 password, but with this user I'm unable to see the cloud and
 cloud_usage databases. I'm able to see these databases with root user.
 Is there anything I missed? Please suggest.

 Thank you,
 Suneel Mallela

 -Original Message-
 From: Ian Duffy [mailto:i...@ianduffy.ie]
 Sent: Tuesday, September 16, 2014 6:56 PM
 To: users@cloudstack.apache.org
 Subject: Re: Error Importing Sql Dumpfile

 Hi Suneel,

 The error suggests a cloud user doesn't exist within your mysql database.

 Please create a new user and it should solve the error.

 e.g.

 CREATE USER 'cloud'@'%' IDENTIFIED BY 'password';

 On 16 September 2014 14:20, Venkata Suneel Babu Mallela 
 sunee...@simplifydc.com wrote:

  HI All,
 
  I'm trying to configure DataBase replication for ACS 4.4.0, and
  followed the below steps.
 
 
  1.   I've exported the existing data of master  using the command
  mysqldump -u root -p --all-databases --master-data  dbdump.db.
 
  2.   When I tried to import dumpfile into the slave using the command
  mysql -u root -p  /root/dbdump.db, I'm getting the below error,
 
  [root@pocdb02 ~]# mysql -u root  dbdump.db ERROR 1449 (HY000) at line
  11293: The user specified as a definer ('cloud'@'%') does not exist
 
  Can anyone please advise how to resolve this problem?
 
  Thank you,
  Suneel Mallela
 



Re: linux password management

2014-09-17 Thread Ian Duffy
Hi Michael,

Try the scripts over at https://github.com/shankerbalan/cloudstack-scripts
I've had better experiences with them.

On 17 September 2014 21:52, Michael Phillips mphilli7...@hotmail.com
wrote:

 All,
   I have followed the directions here
 https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/Admin_Guide/add-password-management-to-templates.html
 for trying to make the password management script work on Ubuntu 14.04.1
 Any secrets to make it work correctly?



Re: Error Importing Sql Dumpfile

2014-09-16 Thread Ian Duffy
Hi Suneel,

The error suggests a cloud user doesn't exist within your mysql database.

Please create a new user and it should solve the error.

e.g.

CREATE USER 'cloud'@'%' IDENTIFIED BY 'password';

On 16 September 2014 14:20, Venkata Suneel Babu Mallela 
sunee...@simplifydc.com wrote:

 HI All,

 I'm trying to configure DataBase replication for ACS 4.4.0, and followed
 the below steps.


 1.   I've exported the existing data of master  using the command
 mysqldump -u root -p --all-databases --master-data  dbdump.db.

 2.   When I tried to import dumpfile into the slave using the command
 mysql -u root -p  /root/dbdump.db, I'm getting the below error,

 [root@pocdb02 ~]# mysql -u root  dbdump.db
 ERROR 1449 (HY000) at line 11293: The user specified as a definer 
 ('cloud'@'%')
 does not exist

 Can anyone please advise how to resolve this problem?

 Thank you,
 Suneel Mallela



Re: ldap usage with SSL oder TSL in 4.4

2014-09-12 Thread Ian Duffy
Hi Claus,

The SSL mode is switched on when you provide a trust store and trust store
password.

Both are configurable from the global settings page.

See the docs at
http://cloudstack-administration.readthedocs.org/en/latest/accounts.html

Hope this helps,
Ian
On 12 Sep 2014 16:15, Claus Kalle ka...@uni-koeln.de wrote:

 Hi,

 I was wondering how to setup ldap usage in CS4.4 when the LDAP-Server
 required usage of TSL oder SSL. Is there any doc for the 4.4 status of
 implementation? Just setting port# to 636 gives me

 2014-09-12 17:13:27,359 DEBUG [o.a.c.l.LdapContextFactory]
 (catalina-exec-20:ctx-c873fa2d ctx-1e51db03) initializing ldap with
 provider url: ldap://ldaps-rzkj-3.rrz.uni-koeln.de:636
 2014-09-12 17:13:27,364 DEBUG [o.a.c.l.LdapManagerImpl]
 (catalina-exec-20:ctx-c873fa2d ctx-1e51db03) NamingException while doing
 an LDAP bind
 javax.naming.ServiceUnavailableException:
 ldaps-rzkj-3.rrz.uni-koeln.de:636; socket closed


 Would anybody share their experience?
 --
 Freundliche Gruesse, Claus Kalle




Re: Not seeing parallel power on events in vCenter

2014-09-10 Thread Ian Duffy
Hi Kirk,

 Did you figure this out?
No, we didn't look into it much more. Its not causing issues just yet and
is just a curiosity thing.

 start VM which goes to hypervisor hosts

Not directly to the hypervisors right? They go through vCenter if I
understand correctly.

 How many VMware hosts do you have?

We have 2 ESXi hosts.

Thanks,

Ian


On 10 September 2014 11:19, Kirk Kosinski kirkkosin...@gmail.com wrote:

 Hi, Ian.  Did you figure this out?  Template deployment in VMware is
 done through the SSVM instead of hosts so the behavior may be different
 than other commands, like start VM which goes to hypervisor hosts.  How
 many VMware hosts do you have?  If you have few or just one VMware host,
 the commands are probably queuing up (check the logs for Waiting for
 Seq).

 Best regards,
 Kirk


 On 09/05/2014 03:28 AM, Ian Duffy wrote:
  Hi All,
 
  I'm using Cloudstack 4.1.1 against vCenter 5.
 
  If I create 5 instances on cloudstack. I see the 5 disks get created in
  parallel but the power up and power down events do not.
 
  Is this expected functionality? Or should power up and power down events
  occur at the same time? If so is there some configuration around this?
 
  If I go into vCenter I can manually power up and power down machines in
  parallel without issue.
 
  Thanks,
 
  Ian
 



Re: Not seeing parallel power on events in vCenter

2014-09-10 Thread Ian Duffy
Hi Kirk,

Thanks for the response.

The options you have mentioned to not exist within 4.1.1.

Looking at the code they seem to of been introduced from 4.2 onwards.

Thanks,
Ian

On 11 September 2014 01:54, Kirk Kosinski kirkkosin...@gmail.com wrote:

  start VM which goes to hypervisor hosts
 
  Not directly to the hypervisors right? They go through vCenter if I
  understand correctly.

 Right, the commands go through vCenter, similar to commands to XS hosts
 going through the pool master.  But the command sequences will be
 host-specific, which you can see in the the logs, the commands can get
 stuck waiting for previous ones sent to the same host.

 Does your 4.1 environment have the following Global Settings, and if so,
 what are the values?

 execute.in.sequence.hypervisor.commands
 execute.in.sequence.network.element.commands

 If they are set to false, try setting them to true to see if the
 behavior improves.

 Best regards,
 Kirk


 On 09/10/2014 03:27 AM, Ian Duffy wrote:
  Hi Kirk,
 
  Did you figure this out?
  No, we didn't look into it much more. Its not causing issues just yet and
  is just a curiosity thing.
 
  start VM which goes to hypervisor hosts
 
  Not directly to the hypervisors right? They go through vCenter if I
  understand correctly.
 
  How many VMware hosts do you have?
 
  We have 2 ESXi hosts.
 
  Thanks,
 
  Ian
 
 
  On 10 September 2014 11:19, Kirk Kosinski kirkkosin...@gmail.com
 wrote:
 
  Hi, Ian.  Did you figure this out?  Template deployment in VMware is
  done through the SSVM instead of hosts so the behavior may be different
  than other commands, like start VM which goes to hypervisor hosts.  How
  many VMware hosts do you have?  If you have few or just one VMware host,
  the commands are probably queuing up (check the logs for Waiting for
  Seq).
 
  Best regards,
  Kirk
 
 
  On 09/05/2014 03:28 AM, Ian Duffy wrote:
  Hi All,
 
  I'm using Cloudstack 4.1.1 against vCenter 5.
 
  If I create 5 instances on cloudstack. I see the 5 disks get created in
  parallel but the power up and power down events do not.
 
  Is this expected functionality? Or should power up and power down
 events
  occur at the same time? If so is there some configuration around this?
 
  If I go into vCenter I can manually power up and power down machines in
  parallel without issue.
 
  Thanks,
 
  Ian
 
 
 



assignVirtualMachine - Change domain (4.1.1)

2014-09-09 Thread Ian Duffy
Hi All,

I'm wanting to use assignVirtualMachine to change the domain and account a
VM belongs to within Cloudstack.

Within version 4.1.1 this is not supported:
http://cloudstack.apache.org/docs/api/apidocs-4.1/root_admin/assignVirtualMachine.html

Transferring ownership to any domain was only implemented in a later
release.

Has anybody got a database modification work around for this?

I'm looking at modifying the domain_id, domain_uuid, account_id,
account_name, account_type for both volume and instance. I haven't tested
this yet, but I would love to hear anybody elses experience.

Thanks,

Ian


Re: assignVirtualMachine - Change domain (4.1.1)

2014-09-09 Thread Ian Duffy
Great! Thank you very much, thought I'd be out on my own for this.
On 10 Sep 2014 00:03, John Kinsella j...@stratosec.co wrote:

 Yeah - that doesn’t work 100% - you’ll have to delete and re-create the fw
 rules, at least for advanced networking. Needs a tiny bit more refinement.
 :)

 On Sep 9, 2014, at 3:42 PM, Nitin Mehta nitin.me...@citrix.commailto:
 nitin.me...@citrix.com wrote:

 Though I am averse to mucking around the db I know that John Kinsella
 spoke about it recently in the Bay Area meet up.
 Please find his slides (slide # 16) @
 http://www.slideshare.net/jlkinsel/dont-break-the-glass

 Thanks,
 -Nitin

 On 09/09/14 9:03 AM, Ian Duffy i...@ianduffy.ie wrote:

 Hi All,

 I'm wanting to use assignVirtualMachine to change the domain and account a
 VM belongs to within Cloudstack.

 Within version 4.1.1 this is not supported:
 http://cloudstack.apache.org/docs/api/apidocs-4.1/root_admin/assignVirtual
 Machine.html

 Transferring ownership to any domain was only implemented in a later
 release.

 Has anybody got a database modification work around for this?

 I'm looking at modifying the domain_id, domain_uuid, account_id,
 account_name, account_type for both volume and instance. I haven't tested
 this yet, but I would love to hear anybody elses experience.

 Thanks,

 Ian


 Stratosec - Secure Finance and Heathcare Clouds
 http://stratosec.co
 o: 415.315.9385
 @johnlkinsellahttp://twitter.com/johnlkinsella




Not seeing parallel power on events in vCenter

2014-09-05 Thread Ian Duffy
Hi All,

I'm using Cloudstack 4.1.1 against vCenter 5.

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

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

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

Thanks,

Ian


Re: Management Server won't connect after cluster shutdown and restart

2014-08-31 Thread Ian Duffy
Ilya,

My case wasn't generic/a cloudstack fault in the end (manual editing of the
database had occurred putting things into an invalid state.).

The others on this thread might be able to provide you with information
about your issues. I found bumping the log level up to trace provided a
much greater insight.


On 30 August 2014 19:12, ilya musayev ilya.mailing.li...@gmail.com wrote:

 Can you tell us more please.

 In my rather large environments, I may need to do several restarts for
 cloudstack to come up properly.

 Otherwise it complains that SSVM and CPVM are not ready to launch in Zone
 X.

 Thanks
 ilya

 On 8/30/14, 5:29 AM, Ian Duffy wrote:

 Hi All,

 Thank you very much for the help.

 Ended up solving the issue. There was an invalid value in our
 configuration
 table which seemed to prevent a lot of DAOs from being autowired.




 On 29 August 2014 21:16, Paul Angus paul.an...@shapeblue.com wrote:

  Hi Ian,

 I've seen this kind of behaviour before with KVM hosts reconnecting.

 There’s a select …. WITH UPDATE; query on the op_ha_work table which
 locks
 the table, stopping other hosts updating their status. If there are a lot
 of entries in there they all lock each other out. Deleting the entries
 fixed the problem, but you have to deal with hosts and vms being up/down
 yourself.

 So check the op_ha_work table for lots of entries which can lock up the
 database. If you can check the database for the queries that it's
 handling
 - that would be best.

 Also check that the management server and MySQL DB is tuned for the load
 that being thrown at it.
 (http://support.citrix.com/article/CTX132020)
 Remember if you have other services such as Nagios or puppet/chef
 directly
 reading the DB, that adds to the number of connections into the mysql db
 -
 I have seen the management server starved of mysql connections when a lot
 of hosts are brought back online.


 Regards

 Paul Angus
 Cloud Architect
 S: +44 20 3603 0540 | M: +447711418784 | T: CloudyAngus
 paul.an...@shapeblue.com

 -Original Message-
 From: create...@gmail.com [mailto:create...@gmail.com] On Behalf Of
 Carlos Reategui
 Sent: 29 August 2014 20:55
 To: users@cloudstack.apache.org
 Subject: Re: Management Server won't connect after cluster shutdown and
 restart

 Hi Ian,

 So the root of the problem was that the machines where not started up in
 the correct order.

 My plan had been to stop all VMs from CS, then stop CS, then shutdown the
 VM hosts.  On the other end the hosts needed to be brought up first and
 once they are ok then bring up the CS machine and make sure everything
 was
 in the same state it thought things were when it was shutdown.
   Unfortunately CS came up before everything else was the way it expected
 it to be and I did not realize that at the time.

 To resolve I went back to my CS db backup from right after I shut it down
 the MS, made sure the VM hosts were all as expected and then started the
 MS.






 On Fri, Aug 29, 2014 at 8:02 AM, Ian Duffy i...@ianduffy.ie wrote:

  Hi carlos,

 Did you ever find a fix for this?

 I'm seeing a same issue on 4.1.1 with Vmware ESXi.


 On 29 October 2013 04:54, Carlos Reategui create...@gmail.com wrote:

  Update.  I cleared out the async_job table and also reset the system
 vms

 it

 thought where in starting mode from my previous attempts by setting
 them

 to

 Stopped from starting.  I also re-set the XS pool master to be the
 one XS thinks it is.

 Now when I start the CS MS here are the logs leading up to the first
 exception about the Unable to reach the pool:

 2013-10-28 21:27:11,040 DEBUG [cloud.alert.ClusterAlertAdapter]
 (Cluster-Notification-1:null) Management server node 172.30.45.2 is
 up, send alert

 2013-10-28 21:27:11,045 WARN  [cloud.cluster.ClusterManagerImpl]
 (Cluster-Notification-1:null) Notifying management server join event

 took 9

 ms

 2013-10-28 21:27:23,236 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-2:null) HostStatsCollector is running...

 2013-10-28 21:27:23,243 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-3:null) VmStatsCollector is running...

 2013-10-28 21:27:23,247 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-1:null) StorageCollector is running...

 2013-10-28 21:27:23,255 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-1:null) There is no secondary storage VM for
 secondary storage host nfs://172.30.45.2/store/secondary

 2013-10-28 21:27:23,273 DEBUG [agent.manager.ClusteredAgentAttache]
 (StatsCollector-2:null) Seq 1-201916421: Forwarding null to

 233845174730255

 2013-10-28 21:27:23,274 DEBUG [agent.manager.ClusteredAgentAttache]
 (AgentManager-Handler-9:null) Seq 1-201916421: Routing from

 233845174730253

 2013-10-28 21:27:23,275 DEBUG [agent.manager.ClusteredAgentAttache]
 (AgentManager-Handler-9:null) Seq 1-201916421: Link is closed

 2013-10-28 21:27:23,275 DEBUG
 [agent.manager.ClusteredAgentManagerImpl]
 (AgentManager-Handler-9:null) Seq 1-201916421: MgmtId 233845174730253

Re: Management Server won't connect after cluster shutdown and restart

2014-08-30 Thread Ian Duffy
Hi All,

Thank you very much for the help.

Ended up solving the issue. There was an invalid value in our configuration
table which seemed to prevent a lot of DAOs from being autowired.




On 29 August 2014 21:16, Paul Angus paul.an...@shapeblue.com wrote:

 Hi Ian,

 I've seen this kind of behaviour before with KVM hosts reconnecting.

 There’s a select …. WITH UPDATE; query on the op_ha_work table which locks
 the table, stopping other hosts updating their status. If there are a lot
 of entries in there they all lock each other out. Deleting the entries
 fixed the problem, but you have to deal with hosts and vms being up/down
 yourself.

 So check the op_ha_work table for lots of entries which can lock up the
 database. If you can check the database for the queries that it's handling
 - that would be best.

 Also check that the management server and MySQL DB is tuned for the load
 that being thrown at it.
 (http://support.citrix.com/article/CTX132020)
 Remember if you have other services such as Nagios or puppet/chef directly
 reading the DB, that adds to the number of connections into the mysql db -
 I have seen the management server starved of mysql connections when a lot
 of hosts are brought back online.


 Regards

 Paul Angus
 Cloud Architect
 S: +44 20 3603 0540 | M: +447711418784 | T: CloudyAngus
 paul.an...@shapeblue.com

 -Original Message-
 From: create...@gmail.com [mailto:create...@gmail.com] On Behalf Of
 Carlos Reategui
 Sent: 29 August 2014 20:55
 To: users@cloudstack.apache.org
 Subject: Re: Management Server won't connect after cluster shutdown and
 restart

 Hi Ian,

 So the root of the problem was that the machines where not started up in
 the correct order.

 My plan had been to stop all VMs from CS, then stop CS, then shutdown the
 VM hosts.  On the other end the hosts needed to be brought up first and
 once they are ok then bring up the CS machine and make sure everything was
 in the same state it thought things were when it was shutdown.
  Unfortunately CS came up before everything else was the way it expected
 it to be and I did not realize that at the time.

 To resolve I went back to my CS db backup from right after I shut it down
 the MS, made sure the VM hosts were all as expected and then started the MS.






 On Fri, Aug 29, 2014 at 8:02 AM, Ian Duffy i...@ianduffy.ie wrote:

  Hi carlos,
 
  Did you ever find a fix for this?
 
  I'm seeing a same issue on 4.1.1 with Vmware ESXi.
 
 
  On 29 October 2013 04:54, Carlos Reategui create...@gmail.com wrote:
 
   Update.  I cleared out the async_job table and also reset the system
   vms
  it
   thought where in starting mode from my previous attempts by setting
   them
  to
   Stopped from starting.  I also re-set the XS pool master to be the
   one XS thinks it is.
  
   Now when I start the CS MS here are the logs leading up to the first
   exception about the Unable to reach the pool:
  
   2013-10-28 21:27:11,040 DEBUG [cloud.alert.ClusterAlertAdapter]
   (Cluster-Notification-1:null) Management server node 172.30.45.2 is
   up, send alert
  
   2013-10-28 21:27:11,045 WARN  [cloud.cluster.ClusterManagerImpl]
   (Cluster-Notification-1:null) Notifying management server join event
  took 9
   ms
  
   2013-10-28 21:27:23,236 DEBUG [cloud.server.StatsCollector]
   (StatsCollector-2:null) HostStatsCollector is running...
  
   2013-10-28 21:27:23,243 DEBUG [cloud.server.StatsCollector]
   (StatsCollector-3:null) VmStatsCollector is running...
  
   2013-10-28 21:27:23,247 DEBUG [cloud.server.StatsCollector]
   (StatsCollector-1:null) StorageCollector is running...
  
   2013-10-28 21:27:23,255 DEBUG [cloud.server.StatsCollector]
   (StatsCollector-1:null) There is no secondary storage VM for
   secondary storage host nfs://172.30.45.2/store/secondary
  
   2013-10-28 21:27:23,273 DEBUG [agent.manager.ClusteredAgentAttache]
   (StatsCollector-2:null) Seq 1-201916421: Forwarding null to
  233845174730255
  
   2013-10-28 21:27:23,274 DEBUG [agent.manager.ClusteredAgentAttache]
   (AgentManager-Handler-9:null) Seq 1-201916421: Routing from
  233845174730253
  
   2013-10-28 21:27:23,275 DEBUG [agent.manager.ClusteredAgentAttache]
   (AgentManager-Handler-9:null) Seq 1-201916421: Link is closed
  
   2013-10-28 21:27:23,275 DEBUG
   [agent.manager.ClusteredAgentManagerImpl]
   (AgentManager-Handler-9:null) Seq 1-201916421: MgmtId 233845174730253:
  Req:
   Resource [Host:1] is unreachable: Host 1: Link is c
  
   losed
  
   2013-10-28 21:27:23,275 DEBUG
   [agent.manager.ClusteredAgentManagerImpl]
   (AgentManager-Handler-9:null) Seq 1--1: MgmtId 233845174730253: Req:
   Routing to peer
  
   2013-10-28 21:27:23,277 DEBUG
   [agent.manager.ClusteredAgentManagerImpl]
   (AgentManager-Handler-11:null) Seq 1--1: MgmtId 233845174730253: Req:
   Cancel request received
  
   2013-10-28 21:27:23,277 DEBUG [agent.manager.AgentAttache]
   (AgentManager-Handler-11:null) Seq 1-201916421: Cancelling.
  
   2013-10-28 21:27:23,277

Re: http://cloudstack.org/dl/cloud-set-guest-password not working

2014-08-29 Thread Ian Duffy
Hi France,

One of the shapeblue guys has them uploaded to github:
https://github.com/shankerbalan/cloudstack-scripts

Hope this helps,
ian


On 29 August 2014 10:11, France mailingli...@isg.si wrote:

 We are still at 4.1.1 CS.
 Using the documentation for 4.1.1. gives the link for password set script
 to:
 http://cloudstack.org/dl/cloud-set-guest-password

 This is no longer valid. Where could i get the password script nowdays
 from?

 Tnx.
 F.


Re: Management Server won't connect after cluster shutdown and restart

2014-08-29 Thread Ian Duffy
Hi carlos,

Did you ever find a fix for this?

I'm seeing a same issue on 4.1.1 with Vmware ESXi.


On 29 October 2013 04:54, Carlos Reategui create...@gmail.com wrote:

 Update.  I cleared out the async_job table and also reset the system vms it
 thought where in starting mode from my previous attempts by setting them to
 Stopped from starting.  I also re-set the XS pool master to be the one XS
 thinks it is.

 Now when I start the CS MS here are the logs leading up to the first
 exception about the Unable to reach the pool:

 2013-10-28 21:27:11,040 DEBUG [cloud.alert.ClusterAlertAdapter]
 (Cluster-Notification-1:null) Management server node 172.30.45.2 is up,
 send alert

 2013-10-28 21:27:11,045 WARN  [cloud.cluster.ClusterManagerImpl]
 (Cluster-Notification-1:null) Notifying management server join event took 9
 ms

 2013-10-28 21:27:23,236 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-2:null) HostStatsCollector is running...

 2013-10-28 21:27:23,243 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-3:null) VmStatsCollector is running...

 2013-10-28 21:27:23,247 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-1:null) StorageCollector is running...

 2013-10-28 21:27:23,255 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-1:null) There is no secondary storage VM for secondary
 storage host nfs://172.30.45.2/store/secondary

 2013-10-28 21:27:23,273 DEBUG [agent.manager.ClusteredAgentAttache]
 (StatsCollector-2:null) Seq 1-201916421: Forwarding null to 233845174730255

 2013-10-28 21:27:23,274 DEBUG [agent.manager.ClusteredAgentAttache]
 (AgentManager-Handler-9:null) Seq 1-201916421: Routing from 233845174730253

 2013-10-28 21:27:23,275 DEBUG [agent.manager.ClusteredAgentAttache]
 (AgentManager-Handler-9:null) Seq 1-201916421: Link is closed

 2013-10-28 21:27:23,275 DEBUG [agent.manager.ClusteredAgentManagerImpl]
 (AgentManager-Handler-9:null) Seq 1-201916421: MgmtId 233845174730253: Req:
 Resource [Host:1] is unreachable: Host 1: Link is c

 losed

 2013-10-28 21:27:23,275 DEBUG [agent.manager.ClusteredAgentManagerImpl]
 (AgentManager-Handler-9:null) Seq 1--1: MgmtId 233845174730253: Req:
 Routing to peer

 2013-10-28 21:27:23,277 DEBUG [agent.manager.ClusteredAgentManagerImpl]
 (AgentManager-Handler-11:null) Seq 1--1: MgmtId 233845174730253: Req:
 Cancel request received

 2013-10-28 21:27:23,277 DEBUG [agent.manager.AgentAttache]
 (AgentManager-Handler-11:null) Seq 1-201916421: Cancelling.

 2013-10-28 21:27:23,277 DEBUG [agent.manager.AgentAttache]
 (StatsCollector-2:null) Seq 1-201916421: Waiting some more time because
 this is the current command

 2013-10-28 21:27:23,277 DEBUG [agent.manager.AgentAttache]
 (StatsCollector-2:null) Seq 1-201916421: Waiting some more time because
 this is the current command

 2013-10-28 21:27:23,277 INFO  [utils.exception.CSExceptionErrorCode]
 (StatsCollector-2:null) Could not find exception:
 com.cloud.exception.OperationTimedoutException in error code list for
 exceptions

 2013-10-28 21:27:23,277 WARN  [agent.manager.AgentAttache]
 (StatsCollector-2:null) Seq 1-201916421: Timed out on null

 2013-10-28 21:27:23,278 DEBUG [agent.manager.AgentAttache]
 (StatsCollector-2:null) Seq 1-201916421: Cancelling.

 2013-10-28 21:27:23,278 WARN  [agent.manager.AgentManagerImpl]
 (StatsCollector-2:null) Operation timed out: Commands 201916421 to Host 1
 timed out after 3600

 2013-10-28 21:27:23,278 WARN  [cloud.resource.ResourceManagerImpl]
 (StatsCollector-2:null) Unable to obtain host 1 statistics.

 2013-10-28 21:27:23,278 WARN  [cloud.server.StatsCollector]
 (StatsCollector-2:null) Received invalid host stats for host: 1

 2013-10-28 21:27:23,281 DEBUG [agent.manager.ClusteredAgentAttache]
 (StatsCollector-1:null) Seq 1-201916422: Forwarding null to 233845174730255

 2013-10-28 21:27:23,283 DEBUG [agent.manager.ClusteredAgentAttache]
 (AgentManager-Handler-12:null) Seq 1-201916422: Routing from
 233845174730253

 2013-10-28 21:27:23,283 DEBUG [agent.manager.ClusteredAgentAttache]
 (AgentManager-Handler-12:null) Seq 1-201916422: Link is closed

 2013-10-28 21:27:23,283 DEBUG [agent.manager.ClusteredAgentManagerImpl]
 (AgentManager-Handler-12:null) Seq 1-201916422: MgmtId 233845174730253:
 Req: Resource [Host:1] is unreachable: Host 1: Link is

 closed

 2013-10-28 21:27:23,284 DEBUG [agent.manager.ClusteredAgentManagerImpl]
 (AgentManager-Handler-12:null) Seq 1--1: MgmtId 233845174730253: Req:
 Routing to peer

 2013-10-28 21:27:23,286 DEBUG [agent.manager.ClusteredAgentManagerImpl]
 (AgentManager-Handler-13:null) Seq 1--1: MgmtId 233845174730253: Req:
 Cancel request received

 2013-10-28 21:27:23,286 DEBUG [agent.manager.AgentAttache]
 (AgentManager-Handler-13:null) Seq 1-201916422: Cancelling.

 2013-10-28 21:27:23,286 DEBUG [agent.manager.AgentAttache]
 (StatsCollector-1:null) Seq 1-201916422: Waiting some more time because
 this is the current command

 2013-10-28 21:27:23,286 DEBUG [agent.manager.AgentAttache]
 (StatsCollector-1:null) Seq 

Re: http://cloudstack.org/dl/cloud-set-guest-password not working

2014-08-29 Thread Ian Duffy
Haven't used this before this might be of interest:
http://www.cloudbase.it/cloud-init-for-windows-instances/


On 29 August 2014 14:09, France mailingli...@isg.si wrote:

 Tnx what about windows password change app?

 On 29 Aug 2014, at 13:08, Ian Duffy i...@ianduffy.ie wrote:

  Hi France,
 
  One of the shapeblue guys has them uploaded to github:
  https://github.com/shankerbalan/cloudstack-scripts
 
  Hope this helps,
  ian
 
 
  On 29 August 2014 10:11, France mailingli...@isg.si wrote:
 
  We are still at 4.1.1 CS.
  Using the documentation for 4.1.1. gives the link for password set
 script
  to:
  http://cloudstack.org/dl/cloud-set-guest-password
 
  This is no longer valid. Where could i get the password script nowdays
  from?
 
  Tnx.
  F.




Re: cloudstack event to logstash

2014-08-17 Thread Ian Duffy
Hi Erik,

Not sure. I tried placing it into
/usr/share/cloudstack-management/webapps/client/WEB-INF/classes which would
be in the classpath but doesn't work.

I'd imagine there's more knowledgable folk on dev@ that would be able to
guide you.


On 17 August 2014 19:19, Erik Weber terbol...@gmail.com wrote:

 Hi Ian,

 Any idea where that context would be defined on a rpm installation?

 --
 Erik


 On Sun, Aug 17, 2014 at 1:28 AM, Ian Duffy i...@ianduffy.ie wrote:

  Hi Pierre-Luc,
 
  I decided to have a look at this evening.
 
  I was successfully able to go cloudstack - rabbitmq - logstash -
  elasticsearch.
 
  I created a new spring-context within:
 
  cloudstack/server/resources/META-INF/cloudstack/core
 
  called: spring-event-bus-context.xml
 
  contents: https://gist.github.com/imduffy15/234c6b5fdde57a8910b0
 
 
  I configured logstash to create a queue and bind it to my
 cloudstack-event
  exchange:
 
 
 
  input {
 
rabbitmq {
 
  host = localhost
 
  queue = cloudstack-queue
 
  exchange = cloudstack-events
 
  key = *.*.*.*.*
 
  exclusive = true
 
}
 
  }
 
 
  output {
 
  elasticsearch { host = localhost protocol = 'http' }
 
  }
 
 
  On 16 August 2014 18:19, Ian Duffy i...@ianduffy.ie wrote:
 
   Hi Pierre-Luc
  
   Have you seen the post by Chip? He details how to publish events to
   RabbitMQ:
  
 
 http://www.chipchilders.com/blog/2013/7/16/tapping-into-apache-cloudstack-events-via-amqp.html
  
   The logstash docs then discuss getting the data from rabbitmq:
   http://logstash.net/docs/1.3.2/inputs/rabbitmq
  
   Never tried it but looks straight forward.
  
  
   On 16 August 2014 15:36, Pierre-Luc Dion pd...@cloudops.com wrote:
  
   Hi,
  
   Does anyone tried to push CloudStack Event logs into logstash or
  graylog2
   via rabbitmq ?
   I've found nothing about this so far.
  
   Thanks
  
   *Pierre-Luc DION*
   Architecte de Solution Cloud | Cloud Solutions Architect
   t 855.652.5683
  
   *CloudOps* Votre partenaire infonuagique* | *Cloud Solutions Experts
   420 rue Guy *|* Montreal *|* Quebec *|* H3J 1S6
   w cloudops.com *|* tw @CloudOps_
  
  
  
 



Re: cloudstack event to logstash

2014-08-16 Thread Ian Duffy
Hi Pierre-Luc,

I decided to have a look at this evening.

I was successfully able to go cloudstack - rabbitmq - logstash -
elasticsearch.

I created a new spring-context within:

cloudstack/server/resources/META-INF/cloudstack/core

called: spring-event-bus-context.xml

contents: https://gist.github.com/imduffy15/234c6b5fdde57a8910b0


I configured logstash to create a queue and bind it to my cloudstack-event
exchange:



input {

  rabbitmq {

host = localhost

queue = cloudstack-queue

exchange = cloudstack-events

key = *.*.*.*.*

exclusive = true

  }

}


output {

elasticsearch { host = localhost protocol = 'http' }

}


On 16 August 2014 18:19, Ian Duffy i...@ianduffy.ie wrote:

 Hi Pierre-Luc

 Have you seen the post by Chip? He details how to publish events to
 RabbitMQ:
 http://www.chipchilders.com/blog/2013/7/16/tapping-into-apache-cloudstack-events-via-amqp.html

 The logstash docs then discuss getting the data from rabbitmq:
 http://logstash.net/docs/1.3.2/inputs/rabbitmq

 Never tried it but looks straight forward.


 On 16 August 2014 15:36, Pierre-Luc Dion pd...@cloudops.com wrote:

 Hi,

 Does anyone tried to push CloudStack Event logs into logstash or graylog2
 via rabbitmq ?
 I've found nothing about this so far.

 Thanks

 *Pierre-Luc DION*
 Architecte de Solution Cloud | Cloud Solutions Architect
 t 855.652.5683

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





Re: Default Centos Template not downloaded

2014-08-15 Thread Ian Duffy
Also see:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/SSVM,+templates,+Secondary+storage+troubleshooting


On 15 August 2014 06:43, ilya musayev ilya.mailing.li...@gmail.com wrote:

 Does your system storage vm has internet access? What error do you get?

 To download default templates, you need internet access. You can also look
 into setting up proxy (if you have internet access through proxy).

 On 8/14/14, 8:32 PM, sandeep khandekar wrote:

 Dear cloudstackers,
 After installing cloudstack, Default centos didnt got downloaded from
 internet what to do?
 Thank you





Re: Help with CloudStack using Local Storage

2014-07-10 Thread Ian Duffy

 I changed the option in global settings system.vm.use.local.storage to
 true.


Good, did you restart the management server after you did this?



 How can I define that the Secondary Storage VM and the Console Proxy use
 this service
 offering?


No need to do this. The secondary storage vm and console proxy vm will go
of the global setting option.


Re: Downloading templates from HTTPS

2014-06-29 Thread Ian Duffy
 Not aware of any, see if something comes up in global settings.

Had a look through them didn't find anything that seemed related.

 We also have a limitation - that kinda bugs me, we are forced to use
either port 80 or 443, but lots of folks run webservers on non-standard
ports..

Yes, I have ran into this many times before. 8080 is allowed too.

It would be nice to see the ports specified via a global settings variable.
I think I recall conversation about this on the list a very long time ago.


On 29 June 2014 02:52, ilya musayev ilya.mailing.li...@gmail.com wrote:

 Not aware of any, see if something comes up in global settings.

 We also have a limitation - that kinda bugs me, we are forced to use
 either port 80 or 443, but lots of folks run webservers on non-standard
 ports..



 On 6/27/14, 8:40 PM, Ian Duffy wrote:

 Hi all,

 I'm seeing the following error when trying to download a template from a
 https site: (Loading the same url in my browser doesn't throw any ssl
 issues.)

 sun.security.validator.ValidatorException: PKIX path building failed:
 sun.security.provider.certpath.SunCertPathBuilderException: unable to
 find
 valid certification path to requested target

 Other than downloading and serving the template on my own local webserver,
 are there any workarounds?

 Thanks,

 Ian





Downloading templates from HTTPS

2014-06-27 Thread Ian Duffy
Hi all,

I'm seeing the following error when trying to download a template from a
https site: (Loading the same url in my browser doesn't throw any ssl
issues.)

sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target

Other than downloading and serving the template on my own local webserver,
are there any workarounds?

Thanks,

Ian


Re: Not able to deploy Ubuntu VM on xenserver 12.04

2014-06-24 Thread Ian Duffy
Hi Tejas,

I've seent his happen before when I use the netinstall ISO.

Use the server or alternative one; they tend to have the file structure xen
(install/vmlinuz) looks for.


On 24 June 2014 13:03, Tejas Gadaria refond.g...@gmail.com wrote:

 I was trying to create Ubuntu instance from ISO on xenserver 6.2  received
 below error..

 2014-06-24 17:28:38,600 DEBUG [c.c.a.ApiServlet]
 (catalina-exec-17:ctx-736ea19c ctx-d2da377e) ===END===  192.168.160.192 --
 GET

 command=queryAsyncJobResultjobId=06293d5e-1349-453c-a1c6-45646ff093d1response=jsonsessionkey=hRCT8eVG2WFHAM6sev8pPoXvpLs%3D_=140368528
 2014-06-24 17:28:40,416 WARN  [c.c.h.x.r.CitrixResourceBase]
 (DirectAgent-236:ctx-4a340f40) Task failed! Task record:
 uuid: becfe1fc-7bc9-7162-6bfc-afd9b7a9ddd0
nameLabel: Async.VM.start_on
  nameDescription:
allowedOperations: []
currentOperations: {}
  created: Tue Jun 24 17:42:43 IST 2014
 finished: Tue Jun 24 17:28:40 IST 2014
   status: failure
   residentOn: com.xensource.xenapi.Host@3851c289
 progress: 1.0
 type: none/
   result:
errorInfo: [BOOTLOADER_FAILED,
 OpaqueRef:616ef71d-af09-2b86-3581-63c070f30519, INVALID_SOURCE
 Unable to access a required file in the specified repository:
 file:///tmp/cdrom-repo-LvMRCB/install/vmlinuz.

 ]
  otherConfig: {}
subtaskOf: com.xensource.xenapi.Task@aaf13f6f
 subtasks: []

 2014-06-24 17:28:40,499 WARN  [c.c.h.x.r.CitrixResourceBase]
 (DirectAgent-236:ctx-4a340f40) Unable to start VM(i-2-42-VM) on
 host(dc1d7e1c-b09b-45a5-a10e-5479f50aa16f) due to Task failed! Task
 record: uuid: becfe1fc-7bc9-7162-6bfc-afd9b7a9ddd0
nameLabel: Async.VM.start_on
  nameDescription:
allowedOperations: []
currentOperations: {}
  created: Tue Jun 24 17:42:43 IST 2014
 finished: Tue Jun 24 17:28:40 IST 2014
   status: failure
   residentOn: com.xensource.xenapi.Host@3851c289
 progress: 1.0
 type: none/
   result:
errorInfo: [BOOTLOADER_FAILED,
 OpaqueRef:616ef71d-af09-2b86-3581-63c070f30519, INVALID_SOURCE
 Unable to access a required file in the specified repository:
 file:///tmp/cdrom-repo-LvMRCB/install/vmlinuz.

 ]
  otherConfig: {}
subtaskOf: com.xensource.xenapi.Task@aaf13f6f
 subtasks: []

 Task failed! Task record: uuid:
 becfe1fc-7bc9-7162-6bfc-afd9b7a9ddd0
nameLabel: Async.VM.start_on
  nameDescription:
allowedOperations: []
currentOperations: {}
  created: Tue Jun 24 17:42:43 IST 2014
 finished: Tue Jun 24 17:28:40 IST 2014
   status: failure
   residentOn: com.xensource.xenapi.Host@3851c289
 progress: 1.0
 type: none/
   result:
errorInfo: [BOOTLOADER_FAILED,
 OpaqueRef:616ef71d-af09-2b86-3581-63c070f30519, INVALID_SOURCE
 Unable to access a required file in the specified repository:
 file:///tmp/cdrom-repo-LvMRCB/install/vmlinuz.

 ]
  otherConfig: {}
subtaskOf: com.xensource.xenapi.Task@aaf13f6f
 subtasks: []

 at

 com.cloud.hypervisor.xen.resource.CitrixResourceBase.checkForSuccess(CitrixResourceBase.java:3764)
 at

 com.cloud.hypervisor.xen.resource.CitrixResourceBase.startVM(CitrixResourceBase.java:3876)
 at

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

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

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

 com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
 at

 com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
 at

 org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
 at

 org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
 at

 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
 at

 org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
 at

 org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
 at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
 at java.util.concurrent.FutureTask.run(FutureTask.java:166)
 at

 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
 at

 

Debian + Cloud-Init

2014-06-23 Thread Ian Duffy
Hi All,

In the past i've used the community supplied scripts over at
https://github.com/shankerbalan/cloudstack-scripts for doing injection of
password / ssh keys.

I'm trying to move to cloud-init to handle this for me however I am having
some issues.

I modified my /etc/cloud/cloud.cfg file to use CloudStack as a datasource:

datasource_list: ['CloudStack']

datasource:

  CloudStack: {}


I also set the following:

disable_root: False

user: root

ssh_pwauth: True

ssh_deletekeys: True

ssh_genkeytypes: ['rsa', 'dsa']

ssh_svcname: ssh


On booting up the machine I see the script run successfully and pull the
metadata down from the VR. The hostname is also set and new ssh keys are
generated.

On attempting to login as root with the password provided on the Cloudstack
UI I am unsuccessful. I'm unsure why.


Anybody got an idea where I'm going wrong?


Thanks,

Ian


Re: Debian + Cloud-Init

2014-06-23 Thread Ian Duffy
Thanks Lucian!

I'm currently digging through the cloud-init documentation. I'll let you
know if I find another way.


On 23 June 2014 18:34, Nux! n...@li.nux.ro wrote:

 Yes, the Cloudstack root password feature is (to my knowledge) totally
 unsupported by cloud-init.
 So only ssh keys and user data works.
 To work around it, I usually throw the cloudstack-set-root-password script
 in /var/lib/cloud/scripts/per-boot so cloud-init will execute it every time
 the VM boots.

 HTH
 Lucian

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro


 - Original Message -
 From: Ian Duffy i...@ianduffy.ie
 To: users@cloudstack.apache.org
 Sent: Monday, 23 June, 2014 6:09:30 PM
 Subject: Debian + Cloud-Init

 Hi All,

 In the past i've used the community supplied scripts over at
 https://github.com/shankerbalan/cloudstack-scripts for doing injection of
 password / ssh keys.

 I'm trying to move to cloud-init to handle this for me however I am having
 some issues.

 I modified my /etc/cloud/cloud.cfg file to use CloudStack as a datasource:

 datasource_list: ['CloudStack']

 datasource:

   CloudStack: {}


 I also set the following:

 disable_root: False

 user: root

 ssh_pwauth: True

 ssh_deletekeys: True

 ssh_genkeytypes: ['rsa', 'dsa']

 ssh_svcname: ssh


 On booting up the machine I see the script run successfully and pull the
 metadata down from the VR. The hostname is also set and new ssh keys are
 generated.

 On attempting to login as root with the password provided on the Cloudstack
 UI I am unsuccessful. I'm unsure why.


 Anybody got an idea where I'm going wrong?


 Thanks,

 Ian



Re: Debian + Cloud-Init

2014-06-23 Thread Ian Duffy
Lucian,

You were spot on. It is not supported. I've done similar to your work
around by giving a init.d script.

I've upload a automated system using packer for generating a OVA of a
debian x64 template to github
https://github.com/imduffy15/cloudstack-templates

I included a built version of the template for xenserver to save somebody
time in the future.
https://github.com/imduffy15/cloudstack-templates/releases

If people are interested I might build this out to generate KVM, Xen,
HyperV and vSphere images and add CentOS and Ubuntu.


On 23 June 2014 18:40, Ian Duffy i...@ianduffy.ie wrote:

 Thanks Lucian!

 I'm currently digging through the cloud-init documentation. I'll let you
 know if I find another way.


 On 23 June 2014 18:34, Nux! n...@li.nux.ro wrote:

 Yes, the Cloudstack root password feature is (to my knowledge) totally
 unsupported by cloud-init.
 So only ssh keys and user data works.
 To work around it, I usually throw the cloudstack-set-root-password
 script in /var/lib/cloud/scripts/per-boot so cloud-init will execute it
 every time the VM boots.

 HTH
 Lucian

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro


 - Original Message -
 From: Ian Duffy i...@ianduffy.ie
 To: users@cloudstack.apache.org
 Sent: Monday, 23 June, 2014 6:09:30 PM
 Subject: Debian + Cloud-Init

 Hi All,

 In the past i've used the community supplied scripts over at
 https://github.com/shankerbalan/cloudstack-scripts for doing injection of
 password / ssh keys.

 I'm trying to move to cloud-init to handle this for me however I am having
 some issues.

 I modified my /etc/cloud/cloud.cfg file to use CloudStack as a datasource:

 datasource_list: ['CloudStack']

 datasource:

   CloudStack: {}


 I also set the following:

 disable_root: False

 user: root

 ssh_pwauth: True

 ssh_deletekeys: True

 ssh_genkeytypes: ['rsa', 'dsa']

 ssh_svcname: ssh


 On booting up the machine I see the script run successfully and pull the
 metadata down from the VR. The hostname is also set and new ssh keys are
 generated.

 On attempting to login as root with the password provided on the
 Cloudstack
 UI I am unsuccessful. I'm unsure why.


 Anybody got an idea where I'm going wrong?


 Thanks,

 Ian





Re: Debian + Cloud-Init

2014-06-23 Thread Ian Duffy
Hi Carlos,

I'm using 0.7.3-2 from the Debian Wheezy backports repo.

I didn't have any issues acquiring metadata as long as I used
isc-dhcp-client as the dhcp client (Had issues when using pump).

I believe even with your patch the password on the root account will not be
set.


On 23 June 2014 23:49, Carlos Reátegui create...@gmail.com wrote:

 Hi Ian,
 What version of cloud-init are you using?  The default one that comes with
 ubuntu 12.04 has a bug that causes is not to work on Cloudstack (uses
 gateway instead of dhcp server as metadata server).

 I did something similar to convert the cloud images from ubuntu into a
 XenServer image and have a patch for DataSourceCloudStack in cloud-init
 here:
 https://github.com/creategui/CloudStackImageScripts/blob/master/DataSourceCloudStack.patch

 cheers,
 -Carlos


 On Jun 23, 2014, at 1:17 PM, Ian Duffy i...@ianduffy.ie wrote:

  Lucian,
 
  You were spot on. It is not supported. I've done similar to your work
  around by giving a init.d script.
 
  I've upload a automated system using packer for generating a OVA of a
  debian x64 template to github
  https://github.com/imduffy15/cloudstack-templates
 
  I included a built version of the template for xenserver to save somebody
  time in the future.
  https://github.com/imduffy15/cloudstack-templates/releases
 
  If people are interested I might build this out to generate KVM, Xen,
  HyperV and vSphere images and add CentOS and Ubuntu.
 
 
  On 23 June 2014 18:40, Ian Duffy i...@ianduffy.ie wrote:
 
  Thanks Lucian!
 
  I'm currently digging through the cloud-init documentation. I'll let you
  know if I find another way.
 
 
  On 23 June 2014 18:34, Nux! n...@li.nux.ro wrote:
 
  Yes, the Cloudstack root password feature is (to my knowledge) totally
  unsupported by cloud-init.
  So only ssh keys and user data works.
  To work around it, I usually throw the cloudstack-set-root-password
  script in /var/lib/cloud/scripts/per-boot so cloud-init will execute it
  every time the VM boots.
 
  HTH
  Lucian
 
  --
  Sent from the Delta quadrant using Borg technology!
 
  Nux!
  www.nux.ro
 
 
  - Original Message -
  From: Ian Duffy i...@ianduffy.ie
  To: users@cloudstack.apache.org
  Sent: Monday, 23 June, 2014 6:09:30 PM
  Subject: Debian + Cloud-Init
 
  Hi All,
 
  In the past i've used the community supplied scripts over at
  https://github.com/shankerbalan/cloudstack-scripts for doing
 injection of
  password / ssh keys.
 
  I'm trying to move to cloud-init to handle this for me however I am
 having
  some issues.
 
  I modified my /etc/cloud/cloud.cfg file to use CloudStack as a
 datasource:
 
  datasource_list: ['CloudStack']
 
  datasource:
 
   CloudStack: {}
 
 
  I also set the following:
 
  disable_root: False
 
  user: root
 
  ssh_pwauth: True
 
  ssh_deletekeys: True
 
  ssh_genkeytypes: ['rsa', 'dsa']
 
  ssh_svcname: ssh
 
 
  On booting up the machine I see the script run successfully and pull
 the
  metadata down from the VR. The hostname is also set and new ssh keys
 are
  generated.
 
  On attempting to login as root with the password provided on the
  Cloudstack
  UI I am unsuccessful. I'm unsure why.
 
 
  Anybody got an idea where I'm going wrong?
 
 
  Thanks,
 
  Ian
 
 
 




Re: 4.3 Vmware Support

2014-05-11 Thread Ian Duffy
Michael,

Did you use the noredist flag when packaging up the RPMs?

cd packaging/centos63/
./package.sh -Dnoredist


On 16 April 2014 02:29, Michael Phillips mphilli7...@hotmail.com wrote:

 Did you see the steps I took when building?

  Date: Mon, 14 Apr 2014 01:15:51 -0400
  From: ilya.mailing.li...@gmail.com
  To: users@cloudstack.apache.org
  Subject: Re: 4.3 Vmware Support
 
  I have it working with vSphere 5.5, ACS 4.3.0 and CentOS 6.5.
 
  Do you mind sharing how the build was executed? How did you check lack
  of vmware support?
 
  On 4/10/14, 8:45 PM, Michael Phillips wrote:
   Here is the screen shot I was talking about
   http://imgur.com/zteayhN
  
   If you notice it says Apache Cloudstack Vmware Base and Apache
 Cloudstack Plugin - Hypervisor Vmware both are built successfully. However
 once I installed the RPM's built from this source I do not have VMware
 support.
   This is 4.3.0 running on Centos 6.5
   Surely someone out there has this working??
  
  
  
   Date: Wed, 9 Apr 2014 08:20:45 +0200
   Subject: Re: 4.3 Vmware Support
   From: terbol...@gmail.com
   To: users@cloudstack.apache.org
  
   On Wed, Apr 9, 2014 at 1:17 AM, Michael Phillips 
 mphilli7...@hotmail.comwrote:
  
 If I see the following Apache Cloudstack Plugin - Hypervisor
   VMware..Success when building, shouldn't I have vmware support
 in my
   packaged RPM's ?
  
   Check the attached screenshot...
  
  
  
   I think attachments are stripped away on the mailing list, try
 uploading it
   to imgurl or similar.
  
   --
   Erik Weber
  
 




Re: Ubuntu install on non-hvm xen install

2014-05-11 Thread Ian Duffy
Emailing back on this incase it solves the issue for anybody else.

I was using the tinyOffering service offering, this doesn't supply enough
ram for the ubuntu installation. I also needed to disable ACPI on the
installer via a boot option.


On 5 May 2014 21:22, Ian Duffy i...@ianduffy.ie wrote:

 Hi All,

 I'm trying to install ubuntu from an ISO on a Cloudstack install using a
 non-hvm xenserver installation as the hypervisor.

 I downloaded the ubuntu alternative x86 ISO. I uploaded it via the
 templates section in the UI and modified the database entry for it to
 change the HVM flag to 0.

 With this I can successfully boot the virtual machine from the CD and the
 ubuntu installer opens. However one I attempt to  execute the detect
 network or detect disk stages of the installation VNC starts to drop out
 and the log file starts fill up with:

 INFO  [c.c.c.AgentHookBase] (AgentManager-Handler-3:null)
 Re-authentication result. vm: 8, host address: , port: -1

 INFO  [c.c.c.AgentHookBase] (AgentManager-Handler-4:null)
 Re-authentication request, ask host 1 for new console info

 WARN  [c.c.h.x.r.CitrixResourceBase] (DirectAgent-251:ctx-852722b2) There
 are no Consoles available to the vm : Template that allows VM installation
 from Xen-aware Debian-based distros. To use this template from the CLI,
 install your VM using vm-install, then set other-config-install-repository
 to the path to your network repository, e.g. http://server/path


 The VM eventually powers off.

 Any idea why this happens and any idea if its possible to work around it?


 Thanks,

 Ian



Re: using cldstk-dploy with proxy

2014-05-06 Thread Ian Duffy
Sorry and NPM: http://jjasonclark.com/how-to-setup-node-behind-web-proxy


On 6 May 2014 21:12, Ian Duffy i...@ianduffy.ie wrote:

 I don't know the script in detail just briefly glanced over it.

 It looks like it should work if you

 1) Set the proxy for yum. Modify /etc/yum.conf add in
 proxy=http://whatever:port
 2) Modify /etc/bashrc and do exports for http_proxy and https_proxy
 3) Modify /etc/wgetrc and do http_proxy=http://whatever:portand use_proxy = on


 On 6 May 2014 13:45, dimas yoga pratama smid...@gmail.com wrote:

 Hi all, is it possible to use cldstk-dply
 https://github.com/thehyperadvisor/cldstk-deploy with proxy environment
 and
 a single host?
 I want to test it in my college lab.thanks





Re: using cldstk-dploy with proxy

2014-05-06 Thread Ian Duffy
I don't know the script in detail just briefly glanced over it.

It looks like it should work if you

1) Set the proxy for yum. Modify /etc/yum.conf add in
proxy=http://whatever:port
2) Modify /etc/bashrc and do exports for http_proxy and https_proxy
3) Modify /etc/wgetrc and do http_proxy=http://whatever:port and use_proxy
= on


On 6 May 2014 13:45, dimas yoga pratama smid...@gmail.com wrote:

 Hi all, is it possible to use cldstk-dply
 https://github.com/thehyperadvisor/cldstk-deploy with proxy environment
 and
 a single host?
 I want to test it in my college lab.thanks



Ubuntu install on non-hvm xen install

2014-05-05 Thread Ian Duffy
Hi All,

I'm trying to install ubuntu from an ISO on a Cloudstack install using a
non-hvm xenserver installation as the hypervisor.

I downloaded the ubuntu alternative x86 ISO. I uploaded it via the
templates section in the UI and modified the database entry for it to
change the HVM flag to 0.

With this I can successfully boot the virtual machine from the CD and the
ubuntu installer opens. However one I attempt to  execute the detect
network or detect disk stages of the installation VNC starts to drop out
and the log file starts fill up with:

INFO  [c.c.c.AgentHookBase] (AgentManager-Handler-3:null) Re-authentication
result. vm: 8, host address: , port: -1

INFO  [c.c.c.AgentHookBase] (AgentManager-Handler-4:null) Re-authentication
request, ask host 1 for new console info

WARN  [c.c.h.x.r.CitrixResourceBase] (DirectAgent-251:ctx-852722b2) There
are no Consoles available to the vm : Template that allows VM installation
from Xen-aware Debian-based distros. To use this template from the CLI,
install your VM using vm-install, then set other-config-install-repository
to the path to your network repository, e.g. http://server/path


The VM eventually powers off.

Any idea why this happens and any idea if its possible to work around it?


Thanks,

Ian


Re: AD LDAP authentication failing post CS 4.2.1 to CS 4.3 upgrade

2014-04-10 Thread Ian Duffy
Sorry about the delay on replying. My new $dayJob restricts gmail/gapps access.

I am not using LDAPS at the moment. I have tested it in 4.3 and
confirmed that it worked some time ago though..


Re: AD LDAP authentication failing post CS 4.2.1 to CS 4.3 upgrade

2014-04-10 Thread Ian Duffy
No. Email is only required for imported users as we must create a
cloudstack account for them and that requires an email address.

When you add an ldap server cloudstack attempts to bind to it to validate
your settings. If the bind fails the server will not add.
On Apr 10, 2014 7:32 AM, Antonio Packery antonio.pack...@t-systems.co.za
wrote:

 Are there mandatory attributes that need to exist for the
 ldap.bind.principal account .e.g. email addy etc?

 On 04/10/2014 08:19 AM, Ian Duffy wrote:

 Sorry about the delay on replying. My new $dayJob restricts gmail/gapps
 access.

 I am not using LDAPS at the moment. I have tested it in 4.3 and
 confirmed that it worked some time ago though..


 Disclaimer: This message and/or attachment(s) may contain privileged,
 confidential and/or personal information. If you are not the intended
 recipient you may not disclose or distribute any of the information
 contained within this message. In such case you must destroy this message
 and inform the sender of the error. T-Systems does not accept liability for
 any errors, omissions, information and viruses contained in the
 transmission of this message. Any opinions, conclusions and other
 information contained within this message not related to T-Systems'
 official business is deemed to be that of the individual only and is not
 endorsed by T-Systems.

 This message and/or attachment(s) may contain privileged or confidential
 information. If you are not the intended recipient you may not disclose or
 distribute any of the information contained within this message. In such
 case you must destroy this message and inform the sender of the error.
 T-Systems does not accept liability for any errors, omissions, information
 and viruses contained in the transmission of this message. Any opinions,
 conclusions and other information contained within this message not related
 to T-Systems' official business is deemed to be that of the individual only
 and is not endorsed by T-Systems.

 T-Systems - Business Flexibility



Re: AD LDAP authentication failing post CS 4.2.1 to CS 4.3 upgrade

2014-04-08 Thread Ian Duffy
 Can you please confirm your global ldap settings?

Screen shot of them here: http://imgur.com/adnlmSS

 Are you able to ‎import ldap users from AD?

Yes. http://imgur.com/df29OOm

On 7 April 2014 20:44, Antonio Packery antonio.pack...@t-systems.co.za wrote:
 Hi Ian,

 Can you please confirm your global ldap settings?

 Are you able to ‎import ldap users from AD?

   Original Message
 From: Ian Duffy
 Sent: Monday 7 April 2014 21:22
 To: users@cloudstack.apache.org
 Reply To: users@cloudstack.apache.org
 Subject: Re: AD LDAP authentication failing post CS 4.2.1 to CS 4.3 upgrade


 Hi All,

 Just after trying to recreate the issue, I failed to do so successfully.

 I installed 4.2, configured LDAP, verified it worked. Upgraded to 4.3,
 logged in as admin, verified the LDAP configuration was present.
 Logged out and attempted to login as an LDAP user.

 On 7 April 2014 19:17, Suresh Sadhu suresh.sa...@citrix.com wrote:
 Its seems there is a problem and values are not configured properly after 
 upgrade. Please log a defect.

 Hope you set the following attributes .

 Ldap.basedn
 Ldap.bind.password
 Ldap.username.attribute- sAMAccountName
 Ldap.user.object --user
 Ldap.search.group.principle

 All the above fields are mandatory.

 Work around I followed is : used old api to register ldap and created same 
 AD user in CS. And make sure that all global parameters set.

 http://localhost:8096/client/api?command=ldapConfigbinddn=CN%3Dtest%2CCN%3DUsers%2CDC%3Dhyd-qa%2CDC%3Dcombindpass=_hostname=ADserversearchbase=CN%3DUsers%2CDC%3Dhyd-qa%2CDC%3Dcomqueryfilter=%28%26%28mail%3D%25e%29%29port=389ssl=falseresponse=json


 Regards
 Sadhu



 -Original Message-
 From: Antonio Packery [mailto:antonio.pack...@t-systems.co.za]
 Sent: 07 April 2014 18:52
 To: users@cloudstack.apache.org
 Subject: Re: AD LDAP authentication failing post CS 4.2.1 to CS 4.3 upgrade

 Hi Sadhu,

 No changes from when i had AD authentication configured on ACS 4.2.1 where 
 all worked fine.

 Still no joy with ldap authentication on ACS 4.3.0 even with the steps 
 listed below.

 Regards
 Antonio

 On 04/07/2014 06:31 AM, Suresh Sadhu wrote:

 HI Antonio,

 Hope Registered user has list capabilities .


 I think there is an issue while importing ldap user if any user has missing 
 attributes(like mail,user name), it fail to import user successfully but if 
 we create a same AD user in cloudstack manually with different password and 
 try to login with ad user with ad password .I am able to login successfully.

 Assume  AD user: test ,password:_ Try below scenario:

 1.make sure AD  user has  list capabilities or better try with user with 
 admin privileges 2.register ldap  by providing ldap IP and port 3. provide 
 the required parameters in the global configuration 4. restart the MS 
 5.create a same AD user with different password(user 
 :test,password:password) in cs manually 6.try to login with AD user with AD 
 password(user :test,password:_)

 Hope this will help.

 Regards
 Sadhu




 -Original Message-
 From: Antonio Packery [mailto:antonio.pack...@t-systems.co.za]
 Sent: 06 April 2014 16:43
 To: users@cloudstack.apache.orgmailto:users@cloudstack.apache.org
 Subject: Re: AD LDAP authentication failing post CS 4.2.1 to CS 4.3 upgrade

 Hi Sadhu,

 Here are the ldap log entries,
 2014-04-06 12:49:26,428 INFO  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] 
 (main:null) Module Hierarchy: ldap
 2014-04-06 12:49:53,127 INFO  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] 
 (main:null) Loading module context [ldap] from URL 
 [jar:file:/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-user-authenticator-ldap-4.3.0.jar!/META-INF/cloudstack/ldap/spring-ldap-context.xmlfile:/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-user-authenticator-ldap-4.3.0.jar%21/META-INF/cloudstack/ldap/spring-ldap-context.xml]
 2014-04-06 12:49:53,127 INFO  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] 
 (main:null) Loading module context [ldap] from URL 
 [jar:file:/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-core-4.3.0.jar!/META-INF/cloudstack/api/spring-core-lifecycle-api-context-inheritable.xmlfile:/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-core-4.3.0.jar%21/META-INF/cloudstack/api/spring-core-lifecycle-api-context-inheritable.xml]
 2014-04-06 12:49:53,127 INFO  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] 
 (main:null) Loading module context [ldap] from URL 
 [jar:file:/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-core-4.3.0.jar!/META-INF/cloudstack/core/spring-core-lifecycle-core-context-inheritable.xmlfile:/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-core-4.3.0.jar%21/META-INF/cloudstack/core/spring-core-lifecycle-core-context-inheritable.xml]
 2014-04-06 12:49:53,127 INFO  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] 
 (main:null) Loading module context [ldap] from URL 
 [jar:file:/usr/share

Re: AD LDAP authentication failing post CS 4.2.1 to CS 4.3 upgrade

2014-04-07 Thread Ian Duffy
-context-inheritable.xmlfile:/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-framework-config-4.3.0.jar%21/META-INF/cloudstack/system/spring-framework-config-system-context-inheritable.xml]
 2014-04-06 12:49:53,127 INFO  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] 
 (main:null) Loading module context [ldap] from URL 
 [jar:file:/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-core-4.3.0.jar!/META-INF/cloudstack/bootstrap/spring-bootstrap-context-inheritable.xmlfile:/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-core-4.3.0.jar%21/META-INF/cloudstack/bootstrap/spring-bootstrap-context-inheritable.xml]
 2014-04-06 12:49:53,330 DEBUG [o.a.c.s.l.r.RegistryLifecycle] (main:null) 
 Registered org.apache.cloudstack.ldap.LdapAuthenticator@20090eb6
 2014-04-06 12:49:53,334 DEBUG [o.a.c.s.l.r.RegistryLifecycle] (main:null) 
 Registered org.apache.cloudstack.ldap.LdapAuthenticator@20090eb6
 2014-04-06 12:49:53,334 DEBUG [o.a.c.s.l.r.RegistryLifecycle] (main:null) 
 Registered org.apache.cloudstack.ldap.LdapManagerImpl@6852fbac
 2014-04-06 12:49:53,340 INFO  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] 
 (main:null) Loaded module context [ldap] in 214 ms
 2014-04-06 12:50:01,159 DEBUG [o.a.c.d.ApiDiscoveryServiceImpl] (main:null) 
 getting api commands of service: org.apache.cloudstack.ldap.LdapManagerImpl
 2014-04-06 12:50:01,586 INFO  [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] 
 (main:null) Starting module [ldap]

 Ldap does seem to be configured correctly but it appears a ldap lookup is not 
 initiated when trying to add a LDAP user via the CloudStack UI.

 Regards
 Antonio

 On 04/04/2014 01:12 PM, Suresh Sadhu wrote:

 Can you post the logs ,we used to log ldap transactions in management log.
 Are you hitting any nullpointer exception.


 Make sure active directory user has defined email address in AD.

 Regards
 Sadhu



 -Original Message-
 From: Ian Duffy [mailto:i...@ianduffy.ie]
 Sent: 04 April 2014 16:24
 To: 
 users@cloudstack.apache.orgmailto:users@cloudstack.apache.orgmailto:users@cloudstack.apache.org
 Cc: Rajani Karuturi
 Subject: Re: AD LDAP authentication failing post CS 4.2.1 to CS 4.3 upgrade

 CCing Rajani on this to see if she has any ideas.

 If you haven't done so already can you try remove/re-add the LDAP server via 
 the UI.

 Are there any logs in cloudstack that records the ldap activity?

 On failed adding of a LDAP server you will get a message back saying so and 
 the server will not add.

 On authentication failure of an ldap user it will appear in the cloudstack 
 logs.

 On 4 April 2014 11:47, Antonio Packery 
 antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.za
  wrote:
 Hi Ian,

 Change ldap.user.object to user but still no change.

 Busy sniffing the ldap server connection for any errors.

 Are there any logs in cloudstack that records the ldap activity?

 Regards
 Antonio

 On 04/04/2014 12:14 PM, Ian Duffy wrote:

 Interesting, they look OK.

 Can you change ldap.user.object to have the value user then restart
 the management server and check if things are back working as
 expected.

 Thanks,
 Ian


 On 4 April 2014 11:11, Antonio Packery 
 antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.za
  wrote:
 Hi Ian,

 Here they are, ldap server via port 389 is being used.

 ldap.basednThe search base defines the starting point for the search in 
 the directory tree Example: dc=cloud,dc=com.dc=dc=,dc=...
 ldap.bind.principalSpecify the distinguished name of a user with the 
 search permission on the directory
 CN=...,OU=...,DC=,DC=.,DC=.
 ldap.email.attributeSets the email attribute used within LDAPmail
 ldap.firstname.attributeSets the firstname attribute used within LDAP   
  givenname
 ldap.group.objectSets the object type of groups within LDAP
 groupOfUniqueNames
 ldap.group.user.uniquememberSets the attribute for uniquemembers within 
 a groupuniquemember
 ldap.lastname.attributeSets the lastname attribute used within LDAP
 sn
 ldap.search.group.principleSets the principle of the group that users 
 must be a member of
 ldap.truststoreEnter the path to trusted keystore
 ldap.truststore.passwordEnter the password for trusted keystore
 ldap.user.object = inetOrgPerson
 ldap.username.attribute = sAMAccountName

 Regards
 Antonio

 On 04/04/2014 11:47 AM, Ian Duffy wrote:

 Hi Antonio,

 Can you confirm the values for the settings in global settings
 starting with ldap.

 Since you mentioned AD I'm specifically interested in
 ldap.username.attribute and ldap.user.object

 Thanks,
 Ian

 On 4 April 2014 10:36, Antonio Packery 
 antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.zamailto:antonio.pack...@t

Re: AD LDAP authentication failing post CS 4.2.1 to CS 4.3 upgrade

2014-04-04 Thread Ian Duffy
Hi Antonio,

Can you confirm the values for the settings in global settings
starting with ldap.

Since you mentioned AD I'm specifically interested in
ldap.username.attribute and ldap.user.object

Thanks,
Ian

On 4 April 2014 10:36, Antonio Packery antonio.pack...@t-systems.co.za wrote:
 Hi,

 Since upgrading to CS 4.3 my AD LDAP authentication no longer works.  All my 
 previous do seem to have been retained but i am not able to import any LDAP 
 users.

 Are there any log/configuration files i can check for errors?

 Also, any guidance on the correct syntac, ldap attributes to be using for AD 
 would help.

 Regards
 Antonio



 Disclaimer: This message and/or attachment(s) may contain privileged, 
 confidential and/or personal information. If you are not the intended 
 recipient you may not disclose or distribute any of the information contained 
 within this message. In such case you must destroy this message and inform 
 the sender of the error. T-Systems does not accept liability for any errors, 
 omissions, information and viruses contained in the transmission of this 
 message. Any opinions, conclusions and other information contained within 
 this message not related to T-Systems' official business is deemed to be that 
 of the individual only and is not endorsed by T-Systems.

 This message and/or attachment(s) may contain privileged or confidential
 information. If you are not the intended recipient you may not disclose or
 distribute any of the information contained within this message. In such
 case you must destroy this message and inform the sender of the error.
 T-Systems does not accept liability for any errors, omissions, information
 and viruses contained in the transmission of this message. Any opinions,
 conclusions and other information contained within this message not related
 to T-Systems' official business is deemed to be that of the individual only
 and is not endorsed by T-Systems.

 T-Systems - Business Flexibility


Re: AD LDAP authentication failing post CS 4.2.1 to CS 4.3 upgrade

2014-04-04 Thread Ian Duffy
Interesting, they look OK.

Can you change ldap.user.object to have the value user then restart
the management server and check if things are back working as
expected.

Thanks,
Ian


On 4 April 2014 11:11, Antonio Packery antonio.pack...@t-systems.co.za wrote:
 Hi Ian,

 Here they are, ldap server via port 389 is being used.

 ldap.basednThe search base defines the starting point for the search in 
 the directory tree Example: dc=cloud,dc=com.dc=dc=,dc=...
 ldap.bind.principalSpecify the distinguished name of a user with the 
 search permission on the directoryCN=...,OU=...,DC=,DC=.,DC=.
 ldap.email.attributeSets the email attribute used within LDAPmail
 ldap.firstname.attributeSets the firstname attribute used within LDAP
 givenname
 ldap.group.objectSets the object type of groups within LDAP
 groupOfUniqueNames
 ldap.group.user.uniquememberSets the attribute for uniquemembers within a 
 groupuniquemember
 ldap.lastname.attributeSets the lastname attribute used within LDAPsn
 ldap.search.group.principleSets the principle of the group that users 
 must be a member of
 ldap.truststoreEnter the path to trusted keystore
 ldap.truststore.passwordEnter the password for trusted keystore
 ldap.user.object = inetOrgPerson
 ldap.username.attribute = sAMAccountName

 Regards
 Antonio

 On 04/04/2014 11:47 AM, Ian Duffy wrote:

 Hi Antonio,

 Can you confirm the values for the settings in global settings
 starting with ldap.

 Since you mentioned AD I'm specifically interested in
 ldap.username.attribute and ldap.user.object

 Thanks,
 Ian

 On 4 April 2014 10:36, Antonio Packery 
 antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.za 
 wrote:
 Hi,

 Since upgrading to CS 4.3 my AD LDAP authentication no longer works.  All my 
 previous do seem to have been retained but i am not able to import any LDAP 
 users.

 Are there any log/configuration files i can check for errors?

 Also, any guidance on the correct syntac, ldap attributes to be using for AD 
 would help.

 Regards
 Antonio



 Disclaimer: This message and/or attachment(s) may contain privileged, 
 confidential and/or personal information. If you are not the intended 
 recipient you may not disclose or distribute any of the information 
 contained within this message. In such case you must destroy this message 
 and inform the sender of the error. T-Systems does not accept liability for 
 any errors, omissions, information and viruses contained in the transmission 
 of this message. Any opinions, conclusions and other information contained 
 within this message not related to T-Systems' official business is deemed to 
 be that of the individual only and is not endorsed by T-Systems.

 This message and/or attachment(s) may contain privileged or confidential
 information. If you are not the intended recipient you may not disclose or
 distribute any of the information contained within this message. In such
 case you must destroy this message and inform the sender of the error.
 T-Systems does not accept liability for any errors, omissions, information
 and viruses contained in the transmission of this message. Any opinions,
 conclusions and other information contained within this message not related
 to T-Systems' official business is deemed to be that of the individual only
 and is not endorsed by T-Systems.

 T-Systems - Business Flexibility


 Disclaimer: This message and/or attachment(s) may contain privileged, 
 confidential and/or personal information. If you are not the intended 
 recipient you may not disclose or distribute any of the information contained 
 within this message. In such case you must destroy this message and inform 
 the sender of the error. T-Systems does not accept liability for any errors, 
 omissions, information and viruses contained in the transmission of this 
 message. Any opinions, conclusions and other information contained within 
 this message not related to T-Systems' official business is deemed to be that 
 of the individual only and is not endorsed by T-Systems.

 This message and/or attachment(s) may contain privileged or confidential
 information. If you are not the intended recipient you may not disclose or
 distribute any of the information contained within this message. In such
 case you must destroy this message and inform the sender of the error.
 T-Systems does not accept liability for any errors, omissions, information
 and viruses contained in the transmission of this message. Any opinions,
 conclusions and other information contained within this message not related
 to T-Systems' official business is deemed to be that of the individual only
 and is not endorsed by T-Systems.

 T-Systems - Business Flexibility


Re: AD LDAP authentication failing post CS 4.2.1 to CS 4.3 upgrade

2014-04-04 Thread Ian Duffy
CCing Rajani on this to see if she has any ideas.

If you haven't done so already can you try remove/re-add the LDAP
server via the UI.

 Are there any logs in cloudstack that records the ldap activity?

On failed adding of a LDAP server you will get a message back saying
so and the server will not add.

On authentication failure of an ldap user it will appear in the cloudstack logs.

On 4 April 2014 11:47, Antonio Packery antonio.pack...@t-systems.co.za wrote:
 Hi Ian,

 Change ldap.user.object to user but still no change.

 Busy sniffing the ldap server connection for any errors.

 Are there any logs in cloudstack that records the ldap activity?

 Regards
 Antonio

 On 04/04/2014 12:14 PM, Ian Duffy wrote:

 Interesting, they look OK.

 Can you change ldap.user.object to have the value user then restart
 the management server and check if things are back working as
 expected.

 Thanks,
 Ian


 On 4 April 2014 11:11, Antonio Packery 
 antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.za 
 wrote:
 Hi Ian,

 Here they are, ldap server via port 389 is being used.

 ldap.basednThe search base defines the starting point for the search in 
 the directory tree Example: dc=cloud,dc=com.dc=dc=,dc=...
 ldap.bind.principalSpecify the distinguished name of a user with the 
 search permission on the directoryCN=...,OU=...,DC=,DC=.,DC=.
 ldap.email.attributeSets the email attribute used within LDAPmail
 ldap.firstname.attributeSets the firstname attribute used within LDAP
 givenname
 ldap.group.objectSets the object type of groups within LDAP
 groupOfUniqueNames
 ldap.group.user.uniquememberSets the attribute for uniquemembers within 
 a groupuniquemember
 ldap.lastname.attributeSets the lastname attribute used within LDAPsn
 ldap.search.group.principleSets the principle of the group that users 
 must be a member of
 ldap.truststoreEnter the path to trusted keystore
 ldap.truststore.passwordEnter the password for trusted keystore
 ldap.user.object = inetOrgPerson
 ldap.username.attribute = sAMAccountName

 Regards
 Antonio

 On 04/04/2014 11:47 AM, Ian Duffy wrote:

 Hi Antonio,

 Can you confirm the values for the settings in global settings
 starting with ldap.

 Since you mentioned AD I'm specifically interested in
 ldap.username.attribute and ldap.user.object

 Thanks,
 Ian

 On 4 April 2014 10:36, Antonio Packery 
 antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.za
  wrote:
 Hi,

 Since upgrading to CS 4.3 my AD LDAP authentication no longer works.  All 
 my previous do seem to have been retained but i am not able to import any 
 LDAP users.

 Are there any log/configuration files i can check for errors?

 Also, any guidance on the correct syntac, ldap attributes to be using for 
 AD would help.

 Regards
 Antonio



 Disclaimer: This message and/or attachment(s) may contain privileged, 
 confidential and/or personal information. If you are not the intended 
 recipient you may not disclose or distribute any of the information 
 contained within this message. In such case you must destroy this message 
 and inform the sender of the error. T-Systems does not accept liability for 
 any errors, omissions, information and viruses contained in the 
 transmission of this message. Any opinions, conclusions and other 
 information contained within this message not related to T-Systems' 
 official business is deemed to be that of the individual only and is not 
 endorsed by T-Systems.

 This message and/or attachment(s) may contain privileged or confidential
 information. If you are not the intended recipient you may not disclose or
 distribute any of the information contained within this message. In such
 case you must destroy this message and inform the sender of the error.
 T-Systems does not accept liability for any errors, omissions, information
 and viruses contained in the transmission of this message. Any opinions,
 conclusions and other information contained within this message not related
 to T-Systems' official business is deemed to be that of the individual only
 and is not endorsed by T-Systems.

 T-Systems - Business Flexibility


 Disclaimer: This message and/or attachment(s) may contain privileged, 
 confidential and/or personal information. If you are not the intended 
 recipient you may not disclose or distribute any of the information 
 contained within this message. In such case you must destroy this message 
 and inform the sender of the error. T-Systems does not accept liability for 
 any errors, omissions, information and viruses contained in the transmission 
 of this message. Any opinions, conclusions and other information contained 
 within this message not related to T-Systems' official business is deemed to 
 be that of the individual only and is not endorsed by T-Systems.

 This message and/or attachment(s) may contain privileged

Re: AD LDAP authentication failing post CS 4.2.1 to CS 4.3 upgrade

2014-04-04 Thread Ian Duffy
Just to confirm, is both authentication and import not working or just import?

If just import does the assigned bind user have the correct rights to
query the specified dc?

On 4 April 2014 12:04, Antonio Packery antonio.pack...@t-systems.co.za wrote:
 I have removed and re-added the ldap server previously.

 I can see the log entries for the tasks you mentioned below in the 
 catalina.out log but nothing when trying to import a new ldap user.

 Busy doing default ldapsearch tests against the AD ldap to confirm this works.

 On 04/04/2014 12:53 PM, Ian Duffy wrote:

 CCing Rajani on this to see if she has any ideas.

 If you haven't done so already can you try remove/re-add the LDAP
 server via the UI.

 Are there any logs in cloudstack that records the ldap activity?

 On failed adding of a LDAP server you will get a message back saying
 so and the server will not add.

 On authentication failure of an ldap user it will appear in the cloudstack 
 logs.

 On 4 April 2014 11:47, Antonio Packery 
 antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.za 
 wrote:
 Hi Ian,

 Change ldap.user.object to user but still no change.

 Busy sniffing the ldap server connection for any errors.

 Are there any logs in cloudstack that records the ldap activity?

 Regards
 Antonio

 On 04/04/2014 12:14 PM, Ian Duffy wrote:

 Interesting, they look OK.

 Can you change ldap.user.object to have the value user then restart
 the management server and check if things are back working as
 expected.

 Thanks,
 Ian


 On 4 April 2014 11:11, Antonio Packery 
 antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.za
  wrote:
 Hi Ian,

 Here they are, ldap server via port 389 is being used.

 ldap.basednThe search base defines the starting point for the search in 
 the directory tree Example: dc=cloud,dc=com.dc=dc=,dc=...
 ldap.bind.principalSpecify the distinguished name of a user with the 
 search permission on the directory
 CN=...,OU=...,DC=,DC=.,DC=.
 ldap.email.attributeSets the email attribute used within LDAPmail
 ldap.firstname.attributeSets the firstname attribute used within LDAP   
  givenname
 ldap.group.objectSets the object type of groups within LDAP
 groupOfUniqueNames
 ldap.group.user.uniquememberSets the attribute for uniquemembers within 
 a groupuniquemember
 ldap.lastname.attributeSets the lastname attribute used within LDAP
 sn
 ldap.search.group.principleSets the principle of the group that users 
 must be a member of
 ldap.truststoreEnter the path to trusted keystore
 ldap.truststore.passwordEnter the password for trusted keystore
 ldap.user.object = inetOrgPerson
 ldap.username.attribute = sAMAccountName

 Regards
 Antonio

 On 04/04/2014 11:47 AM, Ian Duffy wrote:

 Hi Antonio,

 Can you confirm the values for the settings in global settings
 starting with ldap.

 Since you mentioned AD I'm specifically interested in
 ldap.username.attribute and ldap.user.object

 Thanks,
 Ian

 On 4 April 2014 10:36, Antonio Packery 
 antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.za
  wrote:
 Hi,

 Since upgrading to CS 4.3 my AD LDAP authentication no longer works.  All 
 my previous do seem to have been retained but i am not able to import any 
 LDAP users.

 Are there any log/configuration files i can check for errors?

 Also, any guidance on the correct syntac, ldap attributes to be using for 
 AD would help.

 Regards
 Antonio



 Disclaimer: This message and/or attachment(s) may contain privileged, 
 confidential and/or personal information. If you are not the intended 
 recipient you may not disclose or distribute any of the information 
 contained within this message. In such case you must destroy this message 
 and inform the sender of the error. T-Systems does not accept liability 
 for any errors, omissions, information and viruses contained in the 
 transmission of this message. Any opinions, conclusions and other 
 information contained within this message not related to T-Systems' 
 official business is deemed to be that of the individual only and is not 
 endorsed by T-Systems.

 This message and/or attachment(s) may contain privileged or confidential
 information. If you are not the intended recipient you may not disclose or
 distribute any of the information contained within this message. In such
 case you must destroy this message and inform the sender of the error.
 T-Systems does not accept liability for any errors, omissions, information
 and viruses contained in the transmission of this message. Any opinions,
 conclusions and other information contained within this message not related
 to T-Systems' official business is deemed to be that of the individual only
 and is not endorsed by T-Systems.

 T-Systems - Business Flexibility


 Disclaimer

Re: AD LDAP authentication failing post CS 4.2.1 to CS 4.3 upgrade

2014-04-04 Thread Ian Duffy
Hi Antonio,

Can you review your ldap.bind.principle value, judging from your logs
its just OMCORE. This should be in the form
cn=username,dc=za,dc=omlac,dc=net or whatever the exact path to your
bind user is.

On 4 April 2014 12:41, Antonio Packery antonio.pack...@t-systems.co.za wrote:
 No nullpointer exceptions that i can see.

 management-server.log extract with all lines containing the word ldap
 attached.

 On 04/04/2014 01:12 PM, Suresh Sadhu wrote:

 Can you post the logs ,we used to log ldap transactions in management log.
 Are you hitting any nullpointer exception.


 Make sure active directory user has defined email address in AD.

 Regards
 Sadhu



 -Original Message-
 From: Ian Duffy [mailto:i...@ianduffy.ie]
 Sent: 04 April 2014 16:24
 To: users@cloudstack.apache.org
 Cc: Rajani Karuturi
 Subject: Re: AD LDAP authentication failing post CS 4.2.1 to CS 4.3 upgrade

 CCing Rajani on this to see if she has any ideas.

 If you haven't done so already can you try remove/re-add the LDAP server via
 the UI.

 Are there any logs in cloudstack that records the ldap activity?

 On failed adding of a LDAP server you will get a message back saying so and
 the server will not add.

 On authentication failure of an ldap user it will appear in the cloudstack
 logs.

 On 4 April 2014 11:47, Antonio Packery antonio.pack...@t-systems.co.za
 wrote:
 Hi Ian,

 Change ldap.user.object to user but still no change.

 Busy sniffing the ldap server connection for any errors.

 Are there any logs in cloudstack that records the ldap activity?

 Regards
 Antonio

 On 04/04/2014 12:14 PM, Ian Duffy wrote:

 Interesting, they look OK.

 Can you change ldap.user.object to have the value user then restart
 the management server and check if things are back working as
 expected.

 Thanks,
 Ian


 On 4 April 2014 11:11, Antonio Packery
 antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.za
 wrote:
 Hi Ian,

 Here they are, ldap server via port 389 is being used.

 ldap.basednThe search base defines the starting point for the search
 in the directory tree Example: dc=cloud,dc=com.dc=dc=,dc=...
 ldap.bind.principalSpecify the distinguished name of a user with the
 search permission on the directory
 CN=...,OU=...,DC=,DC=.,DC=.
 ldap.email.attributeSets the email attribute used within LDAPmail
 ldap.firstname.attributeSets the firstname attribute used within LDAP
 givenname
 ldap.group.objectSets the object type of groups within LDAP
 groupOfUniqueNames
 ldap.group.user.uniquememberSets the attribute for uniquemembers
 within a groupuniquemember
 ldap.lastname.attributeSets the lastname attribute used within LDAP
 sn
 ldap.search.group.principleSets the principle of the group that users
 must be a member of
 ldap.truststoreEnter the path to trusted keystore
 ldap.truststore.passwordEnter the password for trusted keystore
 ldap.user.object = inetOrgPerson
 ldap.username.attribute = sAMAccountName

 Regards
 Antonio

 On 04/04/2014 11:47 AM, Ian Duffy wrote:

 Hi Antonio,

 Can you confirm the values for the settings in global settings
 starting with ldap.

 Since you mentioned AD I'm specifically interested in
 ldap.username.attribute and ldap.user.object

 Thanks,
 Ian

 On 4 April 2014 10:36, Antonio Packery
 antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.zamailto:antonio.pack...@t-systems.co.za
 wrote:
 Hi,

 Since upgrading to CS 4.3 my AD LDAP authentication no longer works.
 All my previous do seem to have been retained but i am not able to import
 any LDAP users.

 Are there any log/configuration files i can check for errors?

 Also, any guidance on the correct syntac, ldap attributes to be using
 for AD would help.

 Regards
 Antonio



 Disclaimer: This message and/or attachment(s) may contain privileged,
 confidential and/or personal information. If you are not the intended
 recipient you may not disclose or distribute any of the information
 contained within this message. In such case you must destroy this message
 and inform the sender of the error. T-Systems does not accept liability for
 any errors, omissions, information and viruses contained in the 
 transmission
 of this message. Any opinions, conclusions and other information contained
 within this message not related to T-Systems' official business is deemed 
 to
 be that of the individual only and is not endorsed by T-Systems.

 This message and/or attachment(s) may contain privileged or
 confidential information. If you are not the intended recipient you
 may not disclose or distribute any of the information contained
 within this message. In such case you must destroy this message and
 inform the sender of the error.
 T-Systems does not accept liability for any errors, omissions,
 information and viruses contained in the transmission of this
 message. Any opinions, conclusions and other information contained
 within this message

Re: about api

2014-03-26 Thread Ian Duffy
Hi Raja,

This is how I have done it:
https://github.com/imduffy15/ec2stack/blob/master/ec2stack/providers/cloudstack/requester.py

See the _generate_signature method.

CloudMonkey does something like this too
https://github.com/bhaisaab/cloudmonkey/blob/master/cloudmonkey/requester.py

Check out this screencast too: https://www.youtube.com/watch?v=ZPfm2EksIbc#t=776

On 26 March 2014 12:14, raja sekhar rajsekhar@gmail.com wrote:
 can any one tell me about  How to sign an API call with Python and please
 refer any link or material regarding this.


 regards,
 rajasekhar


Re: CloudStack Authentication

2014-02-20 Thread Ian Duffy
Hi Maria,

All the user authenticators broken up into plugins.

Best way to learn about them is to read some of the code:
https://github.com/apache/cloudstack/tree/master/plugins/user-authenticators

With Cloudstack it will attempt to use each authenticator on login. If one
fails it will try another, if they all fail the login fails. If one
succeeds the user is granted access.

Hope this helps, the developer list might be able to assist more.
d...@cloudstack.apache.org


On 19 February 2014 11:48, María Noelia Gil Valverde
marianoelia@um.eswrote:

 Hello! I am a student and I'm doing work about authentication CloudStack.
 Does anyone could provide me a document or image that explains the
 authentication model, or a reference that I can use as an introduction?

 Thank you.


Re: LDAP Authentication with CloudStack 4.2

2014-02-18 Thread Ian Duffy
Hi Brent,

Just to confirm, are you going against a windows activedirectory or
something more along the lines of openldap? Have you adjusted the
queryfilter accordingly?

Never found the UI great for doing this, so will explain the process with
cloudmonkey.

ldap config hostname=dc.domain.tld searchbase=CN=Users,DC=domain,DC=tld
queryfilter=(sAMAccountName=%u)
binddn=CN=Administrator,CN=Users,DC=domain,DC=tld bindpass=password
port=389

You should get a response back of your settings to confirm they've been set
successfully.

After this it is just a case of creating a new Cloudstack User with a
matching username. It should automatically look them up on login and
authenticate with their LDAP password.




On 18 February 2014 21:55, Brent Clark bcl...@tendrilinc.com wrote:

 Hi folks,

 I am trying to use LDAP Authentication with CloudStack 4.2.1 and the
 documents are a bit confusing.

 I am able to enter LDAP settings in the WebGUI successfully. I'm stuck at
 how to authenticate a user now.

 From what I have read, there is some talk that I need to create a regular
 cloudstack user and it will auto-magically auth to LDAP. I have tried this
 and doesn't seem to work as I can only login with the password set when the
 user is created in the cloudstack webgui.

 Any help is appreciated.
 Thanks!
 --
 Brent S. Clark
 NOC Engineer

 2580 55th St.  |  Boulder, Colorado 80301
 www.tendrilinc.com  |  blog http://www.tendrilinc.com/news-room/blog/
 http://www.tendrilinc.com/


 This email and any files transmitted with it are confidential and intended
 solely for the use of the individual or entity to whom they are addressed.
 If you have received this email in error please notify the sender.
 Please note that any views or opinions presented in this email are solely
 those of the author and do not necessarily represent those of the company.
 Finally, the recipient should check this email and any attachments for the
 presence of viruses.
 The company accepts no liability for any damage caused by any virus
 transmitted by this email.



Re: ACS 4.2 shibboleth

2013-10-21 Thread Ian Duffy
Hi,

As far as I'm aware there is no shibboleth authentication.

However, you can hook directly up to LDAP.


On 21 October 2013 18:27, Erdősi Péter f...@niif.hu wrote:

 Dear,

 Does anyone know about working shibboleth authentication in ACS (4.2)?

 Thanks,
  Peter




Re: Cloudstack 4.1.1 + XCP 1.6 fresh install

2013-09-18 Thread Ian Duffy
Did you copy over vhd-util to the correct folder and chmod +x it?
On 18 Sep 2013 15:13, Vadim Kimlaychuk vadim.kimlayc...@elion.ee wrote:

 Hello all,

 Trying to install subj. several times I have decided to ask
 your help. May be someone already faced the same problem? I did the
 configuration according to “Installation guide” and always end up with the
 same problem: on system VM creation I got repeated errors like this:

 2013-09-18 16:49:21,605 DEBUG [cloud.storage.StorageManagerImpl]
 (consoleproxy-1:null) Creating volume: Vol[2|vm=2|ROOT]
 2013-09-18 16:49:21,605 DEBUG [cloud.storage.StorageManagerImpl]
 (consoleproxy-1:null) Trying to create in Pool[200|NetworkFilesystem]
 2013-09-18 16:49:23,381 WARN  [xen.resource.CitrixResourceBase]
 (DirectAgent-4:null) kill_copy_process failed
 2013-09-18 16:49:23,381 WARN  [xen.resource.CitrixResourceBase]
 (DirectAgent-4:null) can not create vdi in sr
 c6e55039-1fb0-5e5d-37d5-118a9ac3abb6
 2013-09-18 16:49:23,382 WARN  [xen.resource.CitrixResourceBase]
 (DirectAgent-4:null) Catch Exception
 com.cloud.utils.exception.CloudRuntimeException on
 host:e6a339ee-521c-4c67-ac55-cbd256607150 for template: nfs://
 192.168.107.142/export/secondary/template/tmpl/1/1/ due to
 com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
 c6e55039-1fb0-5e5d-37d5-118a9ac3abb6
 com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
 c6e55039-1fb0-5e5d-37d5-118a9ac3abb6
 at
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.copy_vhd_from_secondarystorage(CitrixResourceBase.java:2707)
 at
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:2729)
 at
 com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:501)
 at
 com.cloud.hypervisor.xen.resource.XcpServerResource.executeRequest(XcpServerResource.java:51)
 at
 com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
 at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at
 java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
 at java.util.concurrent.FutureTask.run(FutureTask.java:166)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:679)
 2013-09-18 16:49:23,384 DEBUG [agent.manager.DirectAgentAttache]
 (DirectAgent-4:null) Seq 1-1333067786: Response Received:
 2013-09-18 16:49:23,385 DEBUG [agent.transport.Request]
 (DirectAgent-4:null) Seq 1-1333067786: Processing:  { Ans: , MgmtId:
 8796752993784, via: 1, Ver: v1, Flags: 110,
 [{storage.PrimaryStorageDownloadAnswer:{templateSize:0,result:false,details:Catch
 Exception com.cloud.utils.exception.CloudRuntimeException on
 host:e6a339ee-521c-4c67-ac55-cbd256607150 for template: nfs://
 192.168.107.142/export/secondary/template/tmpl/1/1/ due to
 com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
 c6e55039-1fb0-5e5d-37d5-118a9ac3abb6,wait:0}}] }
 2013-09-18 16:49:23,385 DEBUG [agent.transport.Request]
 (secstorage-1:null) Seq 1-1333067786: Received:  { Ans: , MgmtId:
 8796752993784, via: 1, Ver: v1, Flags: 110, { PrimaryStorageDownloadAnswer
 } }
 2013-09-18 16:49:23,385 DEBUG [agent.manager.AgentManagerImpl]
 (secstorage-1:null) Details from executing class
 com.cloud.agent.api.storage.PrimaryStorageDownloadCommand: Catch Exception
 com.cloud.utils.exception.CloudRuntimeException on
 host:e6a339ee-521c-4c67-ac55-cbd256607150 for template: nfs://
 192.168.107.142/export/secondary/template/tmpl/1/1/ due to
 com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
 c6e55039-1fb0-5e5d-37d5-118a9ac3abb6
 2013-09-18 16:49:23,386 DEBUG [cloud.template.TemplateManagerImpl]
 (secstorage-1:null) Template 1 download to pool 200 failed due to Catch
 Exception com.cloud.utils.exception.CloudRuntimeException on
 host:e6a339ee-521c-4c67-ac55-cbd256607150 for template: nfs://
 192.168.107.142/export/secondary/template/tmpl/1/1/ due to
 com.cloud.utils.exception.CloudRuntimeException: can not create vdi in sr
 c6e55039-1fb0-5e5d-37d5-118a9ac3abb6
 2013-09-18 16:49:23,386 DEBUG [cloud.template.TemplateManagerImpl]
 (secstorage-1:null) Downloading 1 via 1
 2013-09-18 16:49:23,394 DEBUG [agent.manager.AgentAttache]
 (DirectAgent-4:null) Seq 1-1333067786: No more commands found
 2013-09-18 16:49:23,411 DEBUG [agent.transport.Request]
 (secstorage-1:null) Seq 1-1333067787: Sending  { Cmd , MgmtId:
 8796752993784, via: 1, Ver: v1, Flags: 

Re: How to reset admin password of CloudStack WebUI?

2013-09-17 Thread Ian Duffy
 I hope this does not mean that user passwords are stored in plain text in the 
 database table.

They are not. The authenticators support:
   - PlainText
   - SHA1
   - MD5
   - LDAP

I believe SHA1 is the default, but from my experience once one match
of any of the authenticators are found it will cause a successful
login.

More information on resetting the password can be found at:
http://support.citrix.com/article/CTX133469

On 17 September 2013 19:49, Demetrius Tsitrelis
demetrius.tsitre...@citrix.com wrote:
 I hope this does not mean that user passwords are stored in plain text in the 
 database table.

 -Original Message-
 From: Ian Duffy [mailto:i...@ianduffy.ie]
 Sent: Saturday, September 14, 2013 6:02 AM
 To: users@cloudstack.apache.org
 Subject: Re: How to reset admin password of CloudStack WebUI?

 Hi Diggy,

 The passwords are stored in the user_view table. With the way the 
 authentication works we can just insert a plain text password for the reset 
 and then change it via the user panel once logged in.

 Find your user:
 select username, password from user_view;

 Set a password of password for that user:
 update user_view set password = 'password' where username='admin';

 Login to Cloudstack with admin/password navigate over to accounts, admin, 
 view users, admin, change password.


 On 14 September 2013 04:15, Diggy Shuvy digg...@gmail.com wrote:

 Hello All,

 I got problem on login page of CS 4.1.1 web management.
 How to reset admin password of CloudStack 4.1.1 web management?

 Thank a lot.
 Diggy



Re: How to reset admin password of CloudStack WebUI?

2013-09-17 Thread Ian Duffy
 Still curious as to why one can enter a plain text value for the admin 
 directly into the database.  Does CloudStack look for the password value 
 explicitly or would any value do?

It will loop threw all authenticators until a valid response is found,
personally I think this is bad. Its been discussed on the dev list a
few times.

To expand by example: (Doesn't occur necessarily in this order)
 - User inserts example123 as their password.
 - Password is SHA1ed and checked against DB - Fails
 - Password is MD5ed and checked against the DB - Fails
 - Password is used in an attempt to bind against LDAP - Fails
 - Password is sent as raw and checked against the DB - Passes
 - User logs in successfully

On 17 September 2013 21:19, Demetrius Tsitrelis
demetrius.tsitre...@citrix.com wrote:
 The Knowledge Base article on the Citrix site looks like a good reference.

 Still curious as to why one can enter a plain text value for the admin 
 directly into the database.  Does CloudStack look for the password value 
 explicitly or would any value do?

 -Original Message-
 From: Ian Duffy [mailto:i...@ianduffy.ie]
 Sent: Tuesday, September 17, 2013 12:28 PM
 To: users@cloudstack.apache.org
 Subject: Re: How to reset admin password of CloudStack WebUI?

 I hope this does not mean that user passwords are stored in plain text in 
 the database table.

 They are not. The authenticators support:
- PlainText
- SHA1
- MD5
- LDAP

 I believe SHA1 is the default, but from my experience once one match of any 
 of the authenticators are found it will cause a successful login.

 More information on resetting the password can be found at:
 http://support.citrix.com/article/CTX133469

 On 17 September 2013 19:49, Demetrius Tsitrelis 
 demetrius.tsitre...@citrix.com wrote:
 I hope this does not mean that user passwords are stored in plain text in 
 the database table.

 -Original Message-
 From: Ian Duffy [mailto:i...@ianduffy.ie]
 Sent: Saturday, September 14, 2013 6:02 AM
 To: users@cloudstack.apache.org
 Subject: Re: How to reset admin password of CloudStack WebUI?

 Hi Diggy,

 The passwords are stored in the user_view table. With the way the 
 authentication works we can just insert a plain text password for the reset 
 and then change it via the user panel once logged in.

 Find your user:
 select username, password from user_view;

 Set a password of password for that user:
 update user_view set password = 'password' where username='admin';

 Login to Cloudstack with admin/password navigate over to accounts, admin, 
 view users, admin, change password.


 On 14 September 2013 04:15, Diggy Shuvy digg...@gmail.com wrote:

 Hello All,

 I got problem on login page of CS 4.1.1 web management.
 How to reset admin password of CloudStack 4.1.1 web management?

 Thank a lot.
 Diggy



Re: How to reset admin password of CloudStack WebUI?

2013-09-14 Thread Ian Duffy
Hi Diggy,

The passwords are stored in the user_view table. With the way the
authentication works we can just insert a plain text password for the reset
and then change it via the user panel once logged in.

Find your user:
select username, password from user_view;

Set a password of password for that user:
update user_view set password = 'password' where username='admin';

Login to Cloudstack with admin/password navigate over to accounts, admin,
view users, admin, change password.


On 14 September 2013 04:15, Diggy Shuvy digg...@gmail.com wrote:

 Hello All,

 I got problem on login page of CS 4.1.1 web management.
 How to reset admin password of CloudStack 4.1.1 web management?

 Thank a lot.
 Diggy



Re: Non-oss package

2013-08-25 Thread Ian Duffy
The RHEL ones on http://cloudstack.apt-get.eu/ are non-oss.

If your on a DEB based OS your going to have to build them yourself.

Earlier discussion on the list about this:
http://markmail.org/thread/c4hrhfofrcniklta


On 25 August 2013 12:38, Daan Hoogland daan.hoogl...@gmail.com wrote:

 Alexey,

 As I understood, these are not published by Apache as they are
 non-oss. You will have to build them or get them from your platform
 distributor. see

 http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.1/html/Installation_Guide/sect-source-nonoss.html

 regards,
 Daan

 On Sun, Aug 25, 2013 at 12:34 PM, Alexey Samarin nrg3...@gmail.com
 wrote:
  Hi everyone!
 
  Does anyone know where I can find non-oss packages of CloudStack?
 
  Thanks!



Re: How is Cloudstack work with Active Directory

2013-08-25 Thread Ian Duffy
Try sAMAccountName=%u


On 26 August 2013 03:15, 不坏阿峰 onlydeb...@gmail.com wrote:

 in AD 2008, do not have uid, so i user disPlayname=%u,%u is the
 cloudstack username.

 i also follow this ,install cloudmoney and ldapconfig it.

 http://kirkjantzer.blogspot.com/2013/03/ldap-authentication-in-cloudstack-v401.html

   ldap config hostname=192.168.123.61 searchbase=ou=member,DC=lab,DC=com
 queryfilter=(diaplayname=%u) binddn=CN=dota,ou=member,DC=lab,DC=com
 bindpass=123@lab port=389
 ldapconfig:
 binddn = CN=dota,ou=member,DC=lab,DC=com
 hostname = 192.168.123.61
 port = false
 queryfilter = (diaplayname=%u)
 searchbase = ou=member,DC=lab,DC=com

  Dn: CN=dota,OU=member,DC=lab,DC=com
 0 objectClass:
 0 cn:
 0 distinguishedName:
 0 instanceType:
 0 whenCreated:
 0 whenChanged:
 0 displayName:
 0 uSNCreated:
 0 uSNChanged:
 0 name:
 0 objectGUID:
 0 userAccountControl:
 0 badPwdCount:
 0 codePage:
 0 countryCode:
 0 badPasswordTime:
 0 lastLogoff:
 0 lastLogon:
 0 pwdLastSet:
 0 primaryGroupID:
 0 objectSid:
 0 accountExpires:
 0 logonCount:
 0 sAMAccountName:
 0 sAMAccountType:
 0 userPrincipalName:
 0 objectCategory:
 0 dSCorePropagationData:
 0 lastLogonTimestamp:

 2013/8/25 Kirk Jantzer kirk.jant...@gmail.com:
  It appears your queryfilter may be incorrect - You are trying to match
 the
  %u in CloudStack to 'disPlayname' in AD? Verify that whatever you put
 into
  the username field in CS matches whatever is in the 'disPlayname' field
 in
  AD (this can be found by opening AD Users and Computers, selecting the
 menu
  option to show advanced properties, then looking at the user, then
 clicking
  the 'attributes' tab.
 
 
  Regards,
 
  Kirk Jantzer
  http://about.met/kirkjantzer
 
 
  On Sat, Aug 24, 2013 at 12:48 PM, 不坏阿峰 onlydeb...@gmail.com wrote:
 
  Cloudstack4.1.1
  (1). i create same user: dota on Active Directory and CS
  (2). i have test ldap query by binddn cn=dota,ou=member,dc=lab,dc=com,
  it is ok,so active directory ldap is ready.
  (3). have two user under  ou=member, dc=lab,dc=com: dota , csuser01
  (4). enable integration.api.port =8096, and restart CS-mangement
 
  Q1:  from the CS log, ldap server configed, but IE response  false,
  what is correct information?
 
  Q2: how many user should be created on both Active Directory and CS ?
  or only one for ldap config,   active directory create other user just
  for CS use
 
  Q3: what will change in UI when ldap config success? can see  users
  imported from Active Directory ? can use csuser01 to login CS ?(i try
  log in  but failure)
 
 
 
 
 http://192.168.230.2:8096/client/api?command=ldapConfighostname=192.168.123.61searchbase=OU%3Dmember%2CDC%3Dlab%2CDC%3Dcomqueryfilter=%28%26%28disPlayname%3D%25u%29%29binddn=CN%3Ddota%2COU%3Dmember%2CDC%3Dlab%2CDC%3Dcombindpass=123@labport=389response=json
 
  ### Got  this response:#
  { ldapconfigresponse :  { ldapconfig :
 
 
 {hostname:192.168.123.61,port:false,searchbase:OU=member,DC=lab,DC=com,queryfilter:((disPlayname=%u)),binddn:CN=dota,OU=member,DC=lab,DC=com}
  }  }
 
  ###  CS log  #
  2013-08-24 21:10:44,453 DEBUG
  [cloud.configuration.ConfigurationManagerImpl] (ApiServer-4:null) The
  ldap server is configured: 192.168.123.61
 
   other thing i checked ##
  (1) in CS4.1.1 ,sharedFunctions.js  , var md5HashedLogin = fals
  (2) when create dota in CS, Network Domain i put lab.com, username i
  put dota
 



Re: ldap query filter

2013-08-20 Thread Ian Duffy

 ROOT/user1 is able to authenticate as ROOT/MYDOMAIN/user1 using ldap
 password.


Interesting never thought of that possibility. This is partially due to the
nature of how Cloudstack's authentication engine works.

So what happens is when you attempt to login your username/password is
passed down through different authentication systems so...
Attempt auth against DB using SHA1 pass
Attempt auth against DB using MD5 pass

Attempt auth using LDAP

For the LDAP stage only the username/password is given. The Username is
looked up in LDAP and a principle. Using this principle and the supplied
password a bind is made. Should be bind be successful the user is
authenticated.

As far as I'm aware there is no work around for this without modifying
source. My general rule of thumb for it would be to not mix authentication,
either go all internal CS users or all LDAP based users.


On 20 August 2013 17:21, Valery Ciareszka valery.teres...@gmail.com wrote:

 Hi all,

 From CS 4.1 docs:

 The CloudStack query filter wildcards are:
 Query Filter Wildcard  Description
 %u  User name
 %e  Email address
 %n  First and last name

 However, I faced a situation when we have two different domains with
 identical users.
 Let's consider ROOT/user1 has corresponding entry at ldap and
 ROOT/MYDOMAIN/user1 does not.
 ROOT/user1 is able to authenticate as ROOT/MYDOMAIN/user1 using ldap
 password.

 My question is: is there query filter wildcard to match domain name ?

 env used: CS 4.1.0
 --
 Regards,
 Valery

 http://protocol.by/slayer



Re: ldap query filter

2013-08-20 Thread Ian Duffy
From what I recall of code that I browsed through the network domain
field is not read during the LDAP authentication phase.


On 20 August 2013 20:27, Kirk Jantzer kirk.jant...@gmail.com wrote:

 To add, if root/user1 and root/mydomain/user1 have the network domain
 credentials set, they should look in ldap, right??


 Regards,

 Kirk Jantzer
 http://about.met/kirkjantzer


 On Tue, Aug 20, 2013 at 3:21 PM, Ian Duffy i...@ianduffy.ie wrote:

  
   ROOT/user1 is able to authenticate as ROOT/MYDOMAIN/user1 using ldap
   password.
 
 
  Interesting never thought of that possibility. This is partially due to
 the
  nature of how Cloudstack's authentication engine works.
 
  So what happens is when you attempt to login your username/password is
  passed down through different authentication systems so...
  Attempt auth against DB using SHA1 pass
  Attempt auth against DB using MD5 pass
  
  Attempt auth using LDAP
 
  For the LDAP stage only the username/password is given. The Username is
  looked up in LDAP and a principle. Using this principle and the supplied
  password a bind is made. Should be bind be successful the user is
  authenticated.
 
  As far as I'm aware there is no work around for this without modifying
  source. My general rule of thumb for it would be to not mix
 authentication,
  either go all internal CS users or all LDAP based users.
 
 
  On 20 August 2013 17:21, Valery Ciareszka valery.teres...@gmail.com
  wrote:
 
   Hi all,
  
   From CS 4.1 docs:
  
   The CloudStack query filter wildcards are:
   Query Filter Wildcard  Description
   %u  User name
   %e  Email address
   %n  First and last name
  
   However, I faced a situation when we have two different domains with
   identical users.
   Let's consider ROOT/user1 has corresponding entry at ldap and
   ROOT/MYDOMAIN/user1 does not.
   ROOT/user1 is able to authenticate as ROOT/MYDOMAIN/user1 using ldap
   password.
  
   My question is: is there query filter wildcard to match domain name ?
  
   env used: CS 4.1.0
   --
   Regards,
   Valery
  
   http://protocol.by/slayer
  
 



Re: Guest VM password reset - Complexity

2013-08-06 Thread Ian Duffy
Hi Gaspare,

As far as I'm aware there is no way to do this without modifying the source.

The generation of password resets are handled by this piece of code:
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blob;f=utils/src/com/cloud/utils/PasswordGenerator.java;h=022afd0d8bda7eaba84a8b67c595e676158837d4;hb=HEAD

It is hard coded to generate passwords of length 6.

Hope this helps,
Ian

On 6 August 2013 11:29, Gaspare A Silvestri g.silves...@netsons.com wrote:
 Hello everybody,

 is therea way to improve the password complexity when generating a password
 using the reset guest password script?

 Thanks in advance,

 Gaspare



Re: Third-party Cloudstack Support

2013-07-31 Thread Ian Duffy
Hi Chris,

http://www.shapeblue.com/ supply consultancy for the product.

I have heard great things about their training sessions.

On 31 July 2013 21:48, Bryan Whitehead dri...@megahappy.net wrote:
 If you are really looking to just buy a solution all packaged up then
 I'd take a look at what Citrix has:

 http://www.citrix.com/products/cloudplatform/overview.html and
 https://www.citrix.com/buy/citrix-cloud-advisors.html

 -Bryan

 On Wed, Jul 31, 2013 at 1:33 PM, Chris Buono cbu...@paragusit.com wrote:
 My company is considering Cloudstack for cloud management. One of the 
 considerations is whether or not we can find a company we can reach out to 
 for technical support. We need 24/7 support, SLA, and are willing to pay for 
 such service. Would some point me in the direction of such a company(ies)?

 Thanks!



Re: Password Management for Templates

2013-07-18 Thread Ian Duffy
Hi Indra,

Came across that issue myself the other day.

I just grabbed the scripts from this github repo:
https://github.com/shankerbalan/cloudstack-scripts

They worked for me.

On 18 July 2013 16:24, Indra Pramana in...@sg.or.id wrote:

 Dear all,

 I am following the instruction on below guide on how to add password
 management to our template:


 http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html/Admin_Guide/add-password-management-to-templates.html

 I tried to download the cloud-set-guest-password for Linux:

 http://cloudstack.org/dl/cloud-set-guest-password

 But it seems that the location might have been changed? Can anyone advise
 the correct URL for the script?

 Looking forward to your reply, thank you.

 Cheers.



Manager on FreeBSD

2013-07-17 Thread Ian Duffy
Hi Guys,

Just a purely out of interest post here.

Has anybody tried running Cloudstack on FreeBSD in a production environment?

If so did you encounter any issues?

Thanks,
Ian


Re: Manager on FreeBSD

2013-07-17 Thread Ian Duffy
 You mean as a guest?

No just for running the manager. I'd imagine there is no issues since
its java based but said I'd send a mail to get the community
experience if any.

On 17 July 2013 18:51, Dean Kamali dean.kam...@gmail.com wrote:
 You mean as a guest? if so, I have tried it on KVM and it works well.




 On Wed, Jul 17, 2013 at 1:50 PM, Ian Duffy i...@ianduffy.ie wrote:

 Hi Guys,

 Just a purely out of interest post here.

 Has anybody tried running Cloudstack on FreeBSD in a production
 environment?

 If so did you encounter any issues?

 Thanks,
 Ian



Re: Windows Server 2008 Template

2013-07-15 Thread Ian Duffy
Hi Guys,

Thanks for the replies.

It seems Kirk(Jantzer) was correct. For whatever reason when I put the
xen tools into the template it got a link-local address. When I placed
them to install with the sysprep answer file it worked as expected.

Thanks!
Ian

On 15 July 2013 01:45, Kirk Jantzer kirk.jant...@gmail.com wrote:
 Ian - As the other Kirk said (I don't get to say that often :-P), if it's
 getting that kind of IP, it could mean the NIC drivers aren't getting
 installed correctly. I've found Windows works better in CS when you run
 post scripts that are kicked off via a sysprep answer file, rather than
 just wrapping things up in an image.


 On Sun, Jul 14, 2013 at 6:58 PM, Kirk Kosinski kirkkosin...@gmail.comwrote:

 Hi, Ian. Is it getting an 169.254.x.x IP?  If so, it means it cannot get
 an IP via DHCP.  In this case, try setting the IP manually to the IP it
 should have, then try to diagnose network connectivity (ping virtual
 router, ping other VMs, etc.).

 Best regards,
 Kirk

 On 07/14/2013 03:39 PM, Ian Duffy wrote:
  Hi,
 
  I'm using Cloudstack 4.1 and Xenserver 6.0.2.
 
  I Installed windows server 2008 R2 with xenserver tools and cloud.com
  VM instance tools.
  syspreped it with Enter System out of box experience + Generalize.
  Shutdown the machine and created a template.
 
  I created an instance using the template and the instance came up but:
  1) It had a different IP address to the one given in Cloudstack
  2) No gateway was set
 
  Any idea why this is happening and how to fix it?
 
  Thanks,
 
  Ian
 




 --
 Regards,

 Kirk Jantzer
 c: (678) 561-5475
 http://about.met/kirkjantzer


Re: openldap and cloudstack

2013-07-12 Thread Ian Duffy
Hi Dean,

As Sadhu mentioned OpenLDAP is supported within the current
implementation within Cloudstack 4.0 =

Configuration of cloudstack:
http://imduffy15.blogspot.ie/2013/06/configuring-cloudstack-to-authenticate.html
(My own post)

Installation of OpenLDAP:
http://imduffy15.blogspot.ie/2013/06/setting-up-openldap-server.html

Official docs:
https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/Admin_Guide/LDAPserver-for-user-authentication.html

Other blogs:
http://sysadminnotebook.blogspot.co.uk/2012/03/cloudstack-ldap.html
(Contains a user import script)
http://kirkjantzer.blogspot.co.uk/2013/03/ldap-authentication-in-cloudstack-v401.html

If you need any help getting it up just shout. I'm currently working
on improving it, hopefully these changes will be seen in Cloudstack
4.3

Thanks!
Ian

On 12 July 2013 04:49, Suresh Sadhu suresh.sa...@citrix.com wrote:
 HI Dean,
 Yes you can use it,It will also work with openldap.

 Regards
 sadhu

 -Original Message-
 From: Nguyen Anh Tu [mailto:ng.t...@gmail.com]
 Sent: 12 July 2013 09:03
 To: Ian Duffy; d...@cloudstack.apache.org
 Subject: Fwd: openldap and cloudstack

 Hi Dean,

 In GSOC period, Ian is working on integrating LDAP to CS. I forward your mail 
 to him

 -- Forwarded message --
 From: Dean Kamali dean.kam...@gmail.com
 Date: 2013/7/12
 Subject: openldap and cloudstack
 To: users@cloudstack.apache.org


 Hello everyone

 Just wondering if I could use openldap for authentication with CS? docs says 
 it works with apacheDS but no where it says openldap.

 Dose anyone know if it is possible? openldap is more popular and I'm more 
 familiar with it.

 Thank you



 --

 N.g.U.y.e.N.A.n.H.t.U


Re: Advanced Physical Networking query

2013-07-06 Thread Ian Duffy
Thanks for the replies guys.

@Abhi - Cool, its non-gsoc related so don't want to spend too much
time at it. Just felt I should learn more about Cloudstack within my
spare time(weekends) outside of its code base and user authentication
methods. Think I nearly have it working the way I want, there's the
odd terms that confuse me a little so I might take you up on your IM
offer.

On 7 July 2013 02:55, Abhinandan Prateek cloudst...@aprateek.com wrote:
 Hi Ian,
   If you still have further questions you can catch us on IM tomorrow.

 -abhi

 On 06/07/13 9:00 PM, Jayapal Reddy Uradi jayapalreddy.ur...@citrix.com
 wrote:

Hi,

Create advanced isolated network.
In advanced isolated network VMs gets internal ip address from the
virtual router DHCP ip address. On network you can acquire public ip
address which get configured on the VR.
To the reach VMs from the public side you can configure the either port
forwarding or static nat rules along with firewall rules on the public ip
address.

Please refer the following
http://blogs.clogeny.com/citrixs-cloudstack-3-0-advanced-zone-setup/

Thanks,
Jayapal

On 06-Jul-2013, at 7:51 AM, Abhinandan Prateek cloudst...@aprateek.com
wrote:

 Hi Ian,

  You are looking for a basic zone.

 Probably go thru the admin guide here

http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.0-incubatin
g/
 html-single/Admin_Guide/#basic-zone-configuration

 -abhi


 On 06/07/13 6:56 AM, Ian Duffy i...@ianduffy.ie wrote:

 Hi Ilya/List

 I was reading the post over at

https://cwiki.apache.org/CLOUDSTACK/cloudstack-advanced-network-tutorial
-s
 tep-by-step.html
 and was wondering If I could get some information from you(or anybody
 else who can contribute).

 I want a setup where by instances are brought up with a Public IP and
 an Internal IP for communication with other instances both got from
 DHCP running on a physical gateway.

 In terms of networking with xen(preferably) or vcenter what networking
 is required?

 I'm assuming I'll need the following:

 Management Network
 Cloudstack Manager
 Hypervisor
 Storage

 Guest Network (Instance gets some private IP supplied by DHCP on
 physical gateway)
 Hypervisor

 Public Network (Instance gets some public IP supplied by DHCP on
 physical gateway)
 Hypervisor

 Is it just a matter of
 1) Creating a network offering as described here:

http://blog.remibergsma.com/2012/03/10/howto-create-a-network-in-cloudst
ac
 k-without-a-virtual-router/
 2) Creating a public and guest network within the zone
 3) Creating matching labels for the public and guest networks in xen
 pointing to the uuid of the network cards

 I think what is tripping me up the most is the IP address space
 required for a pod. I understand a pod contains hosts and primary
 storage so am I correct in thinking that my pod address space in the
 above outlined configuration would just be some addresses within the
 address space given to management network?

 Thanks,
 Ian







  1   2   >