RE: Dev Environment

2020-10-02 Thread Klahre, Dirk
Hi Gregor,

thanks for your answer.
You're right, solved my problem too. :)

Thanks for your help
Regards
Dirk


Dirk Klahre
Cloud Stack Developer - Cloud Management Platform
GMS Cloud Infrastructure Services



We Transform. Trust into Value

itelligence Global Managed Services GmbH ▪ Breitscheidstrasse 48 ▪ 01237 Dresden
phone: +49 3591 5253-1562 ▪
e-mail: dirk.kla...@itelligence.de

www.itelligencegroup.com



Wir halten Sie immer auf dem Laufenden!
Folgen Sie uns auf unseren Social Media Kanälen:
Xing LinkedIn Facebook Twitter

Profitieren Sie vom Know-how unserer Experten – mit dem itelligence 
Infoservice! Jetzt kostenlos registrieren!



itelligence Global Managed Services GmbH ▪ Sitz: Bautzen ▪ Handelsregister: 
Amtsgericht Dresden, HRB 21356
Geschäftsführer: Mirko Kruse ▪ André Walter
-Original Message-
From: Riepl, Gregor (SWISS TXT) 
Sent: Donnerstag, 1. Oktober 2020 14:16
To: dev@cloudstack.apache.org
Subject: Re: Dev Environment

EXTERNAL MAIL:


Hi Dirk,


My second problem is with git branches. My problem here is that I wanted to use 
the cloudstack version 4.13.1 as base, for this reason I checkout the 4.13.1 
branch, but the build process goes wrong with a couple of errors, after this I 
checkout the master and revert it to the commit 
b2ffa3e<https://github.com/apache/cloudstack/commit/b2ffa3efa58a1569dbaa8a34f723756926e22820>.

But the build process still didn’t work. Then I thought  that I have  problems 
with my dev environment and test the build process with the official release, 
but this works fine. So now I’m a little bit confused. What should I do, when I 
want to use a specific code base version?


I had similar problems when I tried to build tags, but I can't quite remember 
how I solved them.
Note that there is no 4.13.1 branch, only 4.13. There is a tag for 4.13.1.0 
though. Perhaps you should try again with the HEAD of 4.13?

Your best option will probably be to clean out any build leftovers and maybe 
even your Maven cache, then try again. There may also be subtle differences in 
building with IntelliJ and from the command line.

Regards,
Gregor




Re: Dev Environment

2020-10-01 Thread Riepl, Gregor (SWISS TXT)

Hi Dirk,


My second problem is with git branches. My problem here is that I wanted to use 
the cloudstack version 4.13.1 as base, for this reason I checkout the 4.13.1 
branch, but the build process goes wrong with a couple of errors, after this I 
checkout the master and revert it to the commit 
b2ffa3e<https://github.com/apache/cloudstack/commit/b2ffa3efa58a1569dbaa8a34f723756926e22820>.

But the build process still didn’t work. Then I thought  that I have  problems 
with my dev environment and test the build process with the official release, 
but this works fine. So now I’m a little bit confused. What should I do, when I 
want to use a specific code base version?


I had similar problems when I tried to build tags, but I can't quite remember 
how I solved them.
Note that there is no 4.13.1 branch, only 4.13. There is a tag for 4.13.1.0 
though. Perhaps you should try again with the HEAD of 4.13?

Your best option will probably be to clean out any build leftovers and maybe 
even your Maven cache, then try again. There may also be subtle differences in 
building with IntelliJ and from the command line.

Regards,
Gregor


Fwd: Dev Environment

2020-09-03 Thread Andrija Panic
FWD to dev, as it ended up in my spam for some reason...

-- Forwarded message -
From: Klahre, Dirk 
Date: Tue, 18 Aug 2020 at 18:48
Subject: Dev Environment
To: dev@cloudstack.apache.org 


Hi guys,



My Dev Environment looks good now and I could collect some experience with
cloudstack. Currently I’m checkout the vmware module for cloudstack and
have an own dev environment for that, but now I have some trouble with that.



My first Problem is, every time when I rebuild and start cloudstack, then
cloudstack creates a new primary storage.

So far, I haven't been able to figure out how to tell cloudstack to use the
old primary storage.



My second problem is with git branches. My problem here is that I wanted to
use the cloudstack version 4.13.1 as base, for this reason I checkout the
4.13.1 branch, but the build process goes wrong with a couple of errors,
after this I checkout the master and revert it to the commit b2ffa3e
<https://github.com/apache/cloudstack/commit/b2ffa3efa58a1569dbaa8a34f723756926e22820>
.

But the build process still didn’t work. Then I thought  that I have
 problems with my dev environment and test the build process with the
official release, but this works fine. So now I’m a little bit confused.
What should I do, when I want to use a specific code base version?



My third problem is with volume creation in vmware context. Here I want to
manipulating the volume specification before it sended to the VCenter.

Currently I don’t find the class/method that’s responsible for volume
creation in Cloudstack.





I hope somebody could help me J





Best regards

Dirk





*Dirk Klahre*
Cloud Stack Developer - Cloud Management Platform
GMS Cloud Infrastructure Services

<http://itelligencegroup.com/de/?utm_source=email_medium=emailfooter_campaign=signature>

We Transform. Trust into Value

itelligence Global Managed Services GmbH ▪ Breitscheidstrasse 48 ▪ 01237
Dresden
phone: +49 3591 5253-1562 ▪
e-mail: dirk.kla...@itelligence.de

www.itelligencegroup.com







*Wir halten Sie immer auf dem Laufenden! Folgen Sie uns auf unseren Social
Media Kanälen: Xing
<https://www.xing.com/companies/itelligenceag/updates> LinkedIn
<http://www.linkedin.com/company/itelligence-dach> Facebook
<https://www.facebook.com/itelligencedeutschland/> Twitter
<https://twitter.com/itelligence_de> Profitieren Sie vom Know-how unserer
Experten – mit dem itelligence Infoservice! Jetzt kostenlos registrieren!
<https://itelligencegroup.com/de/news-and-insights/itelligence-infoservice/?utm_source=outlook_medium=email_campaign=brand-infoservice>
*

itelligence Global Managed Services GmbH ▪ Sitz: Bautzen ▪ Handelsregister:
Amtsgericht Dresden, HRB 21356
Geschäftsführer: Mirko Kruse ▪ André Walter


-- 

Andrija Panić


Dev Environment

2020-08-18 Thread Klahre, Dirk
Hi guys,

My Dev Environment looks good now and I could collect some experience with 
cloudstack. Currently I'm checkout the vmware module for cloudstack and have an 
own dev environment for that, but now I have some trouble with that.

My first Problem is, every time when I rebuild and start cloudstack, then 
cloudstack creates a new primary storage.
So far, I haven't been able to figure out how to tell cloudstack to use the old 
primary storage.

My second problem is with git branches. My problem here is that I wanted to use 
the cloudstack version 4.13.1 as base, for this reason I checkout the 4.13.1 
branch, but the build process goes wrong with a couple of errors, after this I 
checkout the master and revert it to the commit 
b2ffa3e<https://github.com/apache/cloudstack/commit/b2ffa3efa58a1569dbaa8a34f723756926e22820>.
But the build process still didn't work. Then I thought  that I have  problems 
with my dev environment and test the build process with the official release, 
but this works fine. So now I'm a little bit confused. What should I do, when I 
want to use a specific code base version?

My third problem is with volume creation in vmware context. Here I want to 
manipulating the volume specification before it sended to the VCenter.
Currently I don't find the class/method that's responsible for volume creation 
in Cloudstack.


I hope somebody could help me :)


Best regards
Dirk



Dirk Klahre
Cloud Stack Developer - Cloud Management Platform
GMS Cloud Infrastructure Services

[cid:itelligence_ntt_ddd17a2c-b83a-434e-af62-f51bab775945.png]<http://itelligencegroup.com/de/?utm_source=email_medium=emailfooter_campaign=signature>

We Transform. Trust into Value

itelligence Global Managed Services GmbH ? Breitscheidstrasse 48 ? 01237 Dresden
phone: +49 3591 5253-1562 ?
e-mail: dirk.kla...@itelligence.de<mailto:dirk.kla...@itelligence.de>

www.itelligencegroup.com<http://www.itelligencegroup.com>


Wir halten Sie immer auf dem Laufenden!
Folgen Sie uns auf unseren Social Media Kan?len:
Xing<https://www.xing.com/companies/itelligenceag/updates> 
LinkedIn<http://www.linkedin.com/company/itelligence-dach> 
Facebook<https://www.facebook.com/itelligencedeutschland/> 
Twitter<https://twitter.com/itelligence_de>

Profitieren Sie vom Know-how unserer Experten - mit dem itelligence 
Infoservice! Jetzt kostenlos 
registrieren!<https://itelligencegroup.com/de/news-and-insights/itelligence-infoservice/?utm_source=outlook_medium=email_campaign=brand-infoservice>


itelligence Global Managed Services GmbH ? Sitz: Bautzen ? Handelsregister: 
Amtsgericht Dresden, HRB 21356
Gesch?ftsf?hrer: Mirko Kruse ? Andr? Walter


Re: Fwd: [GSOC] Setting up multiple devcloud host in cloudstack dev environment

2015-03-24 Thread Pierre-Luc Dion
Tilak,
when you run the following command:  python -m marvin.deployDataCenter -i
/path/to/GSoC-2014/repo/advanced/advanced.json
you replace /path/to/GSoC-2014/repo by a valid one right?



On Tue, Mar 24, 2015 at 3:27 AM, Tilak Raj Singh tila...@gmail.com wrote:

 I couldnt deploy the zone pod cluster successfully hence there were no
 hosts and I couldnt launch a VM. Later what I did was manually create zone
 pod cluster and added the host and storage through the UI and it was
 successfull. The system vms came up nicely. But it gave me connection timed
 out when I tried to view the console of the CPVM or SSVM.

 On Tue, Mar 24, 2015 at 7:45 AM, Will Stevens williamstev...@gmail.com
 wrote:

  Can you launch a VM through the CS ui?
  On Mar 23, 2015 9:14 PM, Tilak Raj Singh tila...@gmail.com wrote:
 
   Hi Will,
  
   yeah cloudstack management is running fine...I can open
   127.0.0.1:8080/client on my browser...And there are two vms
   running..xenserver : I can ssh into it on port  and management : i
  can
   ssh into it on port 2200. I configured the networking in virtual box
  under
   preferences/network/vboxnet0 192.168.56.1 and dhcp disabled...but there
  is
   nothing under preferences/network/NAT in the virtualbox...do I have to
   configure something there??
  
   On Tue, Mar 24, 2015 at 6:32 AM, Will Stevens 
 williamstev...@gmail.com
   wrote:
  
Is the cloudstack up and working?  Did you check in virtual box if
 the
box(s?) are up?  If so can you check the logs?
   
It seems like you are not getting your networking configured because
  the
   VM
seems to come up but there is no connection. Is the network reported
correct?  Nat and host only is right?  I think that is what I read.
   
Ws
On Mar 23, 2015 8:54 PM, Tilak Raj Singh tila...@gmail.com
 wrote:
   
 -- Forwarded message --
 From: Tilak Raj Singh tila...@gmail.com
 Date: Tue, Mar 24, 2015 at 6:12 AM
 Subject: Re: [GSOC] Setting up multiple devcloud host in cloudstack
  dev
 environment
 To: Pierre-Luc Dion pd...@cloudops.com


 I just tried deploying on 4.3 branch using binary directory on 4.3
   branch
 https://github.com/imduffy15/devcloud4/tree/master/basic and
  followed
the
 instructions given here
 https://github.com/imduffy15/devcloud4/blob/master/basic/README.md

 still I am getting the same error... :/

 Traceback (most recent call last):
   File /usr/lib/python2.7/runpy.py, line 162, in
  _run_module_as_main
 __main__, fname, loader, pkg_name)
   File /usr/lib/python2.7/runpy.py, line 72, in _run_code
 exec code in run_globals
   File
/usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
 line 572, in module
 deploy.deploy()
   File
/usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
 line 554, in deploy
 self.loadCfg()
   File
/usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
 line 516, in loadCfg
 mgtDetails.apiKey, mgtDetails.securityKey =
 self.registerApiKey()
   File
/usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
 line 485, in registerApiKey
 listuserRes =
 self.testClient.getApiClient().listUsers(listuser)
   File


   
  
 
 /usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py,
 line 527, in listUsers
 response = self.connection.marvinRequest(command,
 response_type=response, method=method)
   File

  
 /usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
 line 272, in marvinRequest
 response = jsonHelper.getResultObj(response.json(),
  response_type)
   File /usr/local/lib/python2.7/dist-packages/requests/models.py,
   line
 802, in json
 return json.loads(self.text, **kwargs)
   File /usr/lib/python2.7/dist-packages/simplejson/__init__.py,
  line
413,
 in loads
 return _default_decoder.decode(s)
   File /usr/lib/python2.7/dist-packages/simplejson/decoder.py,
 line
402,
 in decode
 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
   File /usr/lib/python2.7/dist-packages/simplejson/decoder.py,
 line
420,
 in raw_decode
 raise JSONDecodeError(No JSON object could be decoded, s,
 idx)
 simplejson.decoder.JSONDecodeError: No JSON object could be
 decoded:
line 1
 column 0 (char 0)


 I cant figure out if the issue is in python or simplejson so I
reinstalled
 both but I am still stuck at the same stage

 On Tue, Mar 24, 2015 at 4:53 AM, Tilak Raj Singh 
 tila...@gmail.com
 wrote:

  Yeah I tried the binary-installation-basic one but ended up
 getting
   the
  errors I posted above. I followed up trying the not binary
 advanced
   as
 you
  are provisioning. Doing vagrant up setup xenserver and management

Re: Fwd: [GSOC] Setting up multiple devcloud host in cloudstack dev environment

2015-03-24 Thread Tilak Raj Singh
yeah ... I replace it with the repo directory
/root/gsoc/devcloud/advanced/advanced.json ... devcloud is the cloned git
repository from github. There seems to be a issue with marvin I guess...
because configuring the deployement manually from the CS UI as listed in
advanced.json works..

On Tue, Mar 24, 2015 at 5:53 PM, Pierre-Luc Dion pd...@cloudops.com wrote:

 Tilak,
 when you run the following command:  python -m marvin.deployDataCenter -i
 /path/to/GSoC-2014/repo/advanced/advanced.json
 you replace /path/to/GSoC-2014/repo by a valid one right?



 On Tue, Mar 24, 2015 at 3:27 AM, Tilak Raj Singh tila...@gmail.com
 wrote:

  I couldnt deploy the zone pod cluster successfully hence there were no
  hosts and I couldnt launch a VM. Later what I did was manually create
 zone
  pod cluster and added the host and storage through the UI and it was
  successfull. The system vms came up nicely. But it gave me connection
 timed
  out when I tried to view the console of the CPVM or SSVM.
 
  On Tue, Mar 24, 2015 at 7:45 AM, Will Stevens williamstev...@gmail.com
  wrote:
 
   Can you launch a VM through the CS ui?
   On Mar 23, 2015 9:14 PM, Tilak Raj Singh tila...@gmail.com wrote:
  
Hi Will,
   
yeah cloudstack management is running fine...I can open
127.0.0.1:8080/client on my browser...And there are two vms
running..xenserver : I can ssh into it on port  and management :
 i
   can
ssh into it on port 2200. I configured the networking in virtual box
   under
preferences/network/vboxnet0 192.168.56.1 and dhcp disabled...but
 there
   is
nothing under preferences/network/NAT in the virtualbox...do I have
 to
configure something there??
   
On Tue, Mar 24, 2015 at 6:32 AM, Will Stevens 
  williamstev...@gmail.com
wrote:
   
 Is the cloudstack up and working?  Did you check in virtual box if
  the
 box(s?) are up?  If so can you check the logs?

 It seems like you are not getting your networking configured
 because
   the
VM
 seems to come up but there is no connection. Is the network
 reported
 correct?  Nat and host only is right?  I think that is what I read.

 Ws
 On Mar 23, 2015 8:54 PM, Tilak Raj Singh tila...@gmail.com
  wrote:

  -- Forwarded message --
  From: Tilak Raj Singh tila...@gmail.com
  Date: Tue, Mar 24, 2015 at 6:12 AM
  Subject: Re: [GSOC] Setting up multiple devcloud host in
 cloudstack
   dev
  environment
  To: Pierre-Luc Dion pd...@cloudops.com
 
 
  I just tried deploying on 4.3 branch using binary directory on
 4.3
branch
  https://github.com/imduffy15/devcloud4/tree/master/basic and
   followed
 the
  instructions given here
 
 https://github.com/imduffy15/devcloud4/blob/master/basic/README.md
 
  still I am getting the same error... :/
 
  Traceback (most recent call last):
File /usr/lib/python2.7/runpy.py, line 162, in
   _run_module_as_main
  __main__, fname, loader, pkg_name)
File /usr/lib/python2.7/runpy.py, line 72, in _run_code
  exec code in run_globals
File

 /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
  line 572, in module
  deploy.deploy()
File

 /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
  line 554, in deploy
  self.loadCfg()
File

 /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
  line 516, in loadCfg
  mgtDetails.apiKey, mgtDetails.securityKey =
  self.registerApiKey()
File

 /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
  line 485, in registerApiKey
  listuserRes =
  self.testClient.getApiClient().listUsers(listuser)
File
 
 

   
  
 
 /usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py,
  line 527, in listUsers
  response = self.connection.marvinRequest(command,
  response_type=response, method=method)
File
 
   
  /usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
  line 272, in marvinRequest
  response = jsonHelper.getResultObj(response.json(),
   response_type)
File
 /usr/local/lib/python2.7/dist-packages/requests/models.py,
line
  802, in json
  return json.loads(self.text, **kwargs)
File /usr/lib/python2.7/dist-packages/simplejson/__init__.py,
   line
 413,
  in loads
  return _default_decoder.decode(s)
File /usr/lib/python2.7/dist-packages/simplejson/decoder.py,
  line
 402,
  in decode
  obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File /usr/lib/python2.7/dist-packages/simplejson/decoder.py,
  line
 420,
  in raw_decode
  raise JSONDecodeError(No JSON object could be decoded, s,
  idx)
  simplejson.decoder.JSONDecodeError: No JSON object could be
  decoded:
 line

Re: Fwd: [GSOC] Setting up multiple devcloud host in cloudstack dev environment

2015-03-24 Thread Tilak Raj Singh
I couldnt deploy the zone pod cluster successfully hence there were no
hosts and I couldnt launch a VM. Later what I did was manually create zone
pod cluster and added the host and storage through the UI and it was
successfull. The system vms came up nicely. But it gave me connection timed
out when I tried to view the console of the CPVM or SSVM.

On Tue, Mar 24, 2015 at 7:45 AM, Will Stevens williamstev...@gmail.com
wrote:

 Can you launch a VM through the CS ui?
 On Mar 23, 2015 9:14 PM, Tilak Raj Singh tila...@gmail.com wrote:

  Hi Will,
 
  yeah cloudstack management is running fine...I can open
  127.0.0.1:8080/client on my browser...And there are two vms
  running..xenserver : I can ssh into it on port  and management : i
 can
  ssh into it on port 2200. I configured the networking in virtual box
 under
  preferences/network/vboxnet0 192.168.56.1 and dhcp disabled...but there
 is
  nothing under preferences/network/NAT in the virtualbox...do I have to
  configure something there??
 
  On Tue, Mar 24, 2015 at 6:32 AM, Will Stevens williamstev...@gmail.com
  wrote:
 
   Is the cloudstack up and working?  Did you check in virtual box if the
   box(s?) are up?  If so can you check the logs?
  
   It seems like you are not getting your networking configured because
 the
  VM
   seems to come up but there is no connection. Is the network reported
   correct?  Nat and host only is right?  I think that is what I read.
  
   Ws
   On Mar 23, 2015 8:54 PM, Tilak Raj Singh tila...@gmail.com wrote:
  
-- Forwarded message --
From: Tilak Raj Singh tila...@gmail.com
Date: Tue, Mar 24, 2015 at 6:12 AM
Subject: Re: [GSOC] Setting up multiple devcloud host in cloudstack
 dev
environment
To: Pierre-Luc Dion pd...@cloudops.com
   
   
I just tried deploying on 4.3 branch using binary directory on 4.3
  branch
https://github.com/imduffy15/devcloud4/tree/master/basic and
 followed
   the
instructions given here
https://github.com/imduffy15/devcloud4/blob/master/basic/README.md
   
still I am getting the same error... :/
   
Traceback (most recent call last):
  File /usr/lib/python2.7/runpy.py, line 162, in
 _run_module_as_main
__main__, fname, loader, pkg_name)
  File /usr/lib/python2.7/runpy.py, line 72, in _run_code
exec code in run_globals
  File
   /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
line 572, in module
deploy.deploy()
  File
   /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
line 554, in deploy
self.loadCfg()
  File
   /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
line 516, in loadCfg
mgtDetails.apiKey, mgtDetails.securityKey = self.registerApiKey()
  File
   /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
line 485, in registerApiKey
listuserRes = self.testClient.getApiClient().listUsers(listuser)
  File
   
   
  
 
 /usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py,
line 527, in listUsers
response = self.connection.marvinRequest(command,
response_type=response, method=method)
  File
   
  /usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
line 272, in marvinRequest
response = jsonHelper.getResultObj(response.json(),
 response_type)
  File /usr/local/lib/python2.7/dist-packages/requests/models.py,
  line
802, in json
return json.loads(self.text, **kwargs)
  File /usr/lib/python2.7/dist-packages/simplejson/__init__.py,
 line
   413,
in loads
return _default_decoder.decode(s)
  File /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line
   402,
in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line
   420,
in raw_decode
raise JSONDecodeError(No JSON object could be decoded, s, idx)
simplejson.decoder.JSONDecodeError: No JSON object could be decoded:
   line 1
column 0 (char 0)
   
   
I cant figure out if the issue is in python or simplejson so I
   reinstalled
both but I am still stuck at the same stage
   
On Tue, Mar 24, 2015 at 4:53 AM, Tilak Raj Singh tila...@gmail.com
wrote:
   
 Yeah I tried the binary-installation-basic one but ended up getting
  the
 errors I posted above. I followed up trying the not binary advanced
  as
you
 are provisioning. Doing vagrant up setup xenserver and management
   server
 successfully.

 I installed Marvin successfully doing 2015-03-24 04:41:49,970 -
  DEBUG -
 Parsing Test data successfully using pip install
 tools/marvin/dist/Marvin-0.1.0.tar.gz. But when I try to deploy the
 configuration using python -m marvin.deployDataCenter -i
 /path/to/GSoC-2014/repo/advanced/advanced.json I get the following
   error
in
 the log files

Fwd: [GSOC] Setting up multiple devcloud host in cloudstack dev environment

2015-03-23 Thread Tilak Raj Singh
-- Forwarded message --
From: Tilak Raj Singh tila...@gmail.com
Date: Mon, Mar 23, 2015 at 2:02 PM
Subject: Re: [GSOC] Setting up multiple devcloud host in cloudstack dev
environment
To: Pierre-Luc Dion pd...@cloudops.com


Thanks Dion for your insights. I tried the new git repository you told
about. I am still struggling to get the environment setup. I installed
virtualbox, chef and vagrant and cloned the repository. configured three
host only networks with dhcp disabled
vboxnet1 192.168.22.1
vboxnet2 192.168.23.1
vboxnet3 192.168.24.1

ran vagrant_prep.sh successfully.

Now when I cd into binary_installation_binary directory and do vagrant up
I get the following error

== xenserver: Clearing any previously set network interfaces...
== xenserver: Preparing network interfaces based on configuration...
xenserver: Adapter 1: nat
xenserver: Adapter 2: hostonly
== xenserver: Forwarding ports...
xenserver: 22 =  (adapter 1)
== xenserver: Running 'pre-boot' VM customizations...
== xenserver: Booting VM...
== xenserver: Waiting for machine to boot. This may take a few minutes...
xenserver: SSH address: 127.0.0.1:
xenserver: SSH username: vagrant
xenserver: SSH auth method: private key
xenserver: Warning: Connection timeout. Retrying...
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured (config.vm.boot_timeout value) time period.

If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.

If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.

If the box appears to be booting properly, you may want to increase
the timeout (config.vm.boot_timeout) value.

The system is not able to ssh into the vm created. Can you help me figure
this issue out

Regards


On Sun, Mar 22, 2015 at 7:07 PM, Pierre-Luc Dion pd...@cloudops.com wrote:

 Tilak,

 Take a look at devcloud4 from Ian Duffy[1], it use vagrant + virtualbox to
 setup a nice test env locally. You might be able to run multiple instance
 of the cloudstack management-server into VMs. devcloud4 does not use the
 simulator as managed hypervisor, it deploy a XenServer VM, so it might help
 validating few tests where your 2 management-servers will interact to same
 hosts.


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

 Good luck,


 On Sun, Mar 22, 2015 at 7:18 AM, Daan Hoogland daan.hoogl...@gmail.com
 wrote:

 Tilak,

 I am cross posting your question as it is more on topic in the dev
 list. Rohit's age is a good starting point. it is my experience that
 every body will encounter their own problems in setting up a good
 environment and needs further support. In your case the dual host
 environment is a bit of a challange, though it has been set up by
 several people. It could be convenient to set it up as remote hosts
 instead of a devcloud vm. It should work though.

 Good travels and don't hasitate to ask for support,

 On Fri, Mar 20, 2015 at 9:15 PM, Tilak Raj Singh tila...@gmail.com
 wrote:
  Hi can anyone please help me here??
 
  On Fri, Mar 20, 2015 at 4:18 AM, Tilak Raj Singh tila...@gmail.com
 wrote:
 
  Hello All,
 
  I am trying to setup the cloudstack developement environment on my
 ubuntu
  12.04 64bit machine. I have successfully setup the management server
  locally on my machine using the docs [1]. As I am going to start work
 on
  the issue CLOUDSTACK-8266
  https://issues.apache.org/jira/browse/CLOUDSTACK-8266 [2] I need to
  setup atleast two host on my management server. I am trying to setup
 two
  devcloud hosts for the same. Can anybody guide me how to add them.
 Should I
  follow this guide [3] to setup first devcloud resources to my
 management
  server and then manually add the other devcloud host ip into the hosts
  section of cloudstack or should I edit devcloud.cfg file to add an
 entry
  for the ip, username and password for the second devcloud host and it
 would
  work?
 
  If I am wrong can please somebody help me figure out the correct
 method to
  do the same.
 
  Regards
 
  [1]
 
 https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+CloudStack+Development+Environment+on+Linux
 
  [2] https://issues.apache.org/jira/browse/CLOUDSTACK-8266
 
  [3] http://bhaisaab.org/logs/devcloud/
 



 --
 Daan





Re: Fwd: [GSOC] Setting up multiple devcloud host in cloudstack dev environment

2015-03-23 Thread Tilak Raj Singh
Hi Will,

yeah cloudstack management is running fine...I can open
127.0.0.1:8080/client on my browser...And there are two vms
running..xenserver : I can ssh into it on port  and management : i can
ssh into it on port 2200. I configured the networking in virtual box under
preferences/network/vboxnet0 192.168.56.1 and dhcp disabled...but there is
nothing under preferences/network/NAT in the virtualbox...do I have to
configure something there??

On Tue, Mar 24, 2015 at 6:32 AM, Will Stevens williamstev...@gmail.com
wrote:

 Is the cloudstack up and working?  Did you check in virtual box if the
 box(s?) are up?  If so can you check the logs?

 It seems like you are not getting your networking configured because the VM
 seems to come up but there is no connection. Is the network reported
 correct?  Nat and host only is right?  I think that is what I read.

 Ws
 On Mar 23, 2015 8:54 PM, Tilak Raj Singh tila...@gmail.com wrote:

  -- Forwarded message --
  From: Tilak Raj Singh tila...@gmail.com
  Date: Tue, Mar 24, 2015 at 6:12 AM
  Subject: Re: [GSOC] Setting up multiple devcloud host in cloudstack dev
  environment
  To: Pierre-Luc Dion pd...@cloudops.com
 
 
  I just tried deploying on 4.3 branch using binary directory on 4.3 branch
  https://github.com/imduffy15/devcloud4/tree/master/basic and followed
 the
  instructions given here
  https://github.com/imduffy15/devcloud4/blob/master/basic/README.md
 
  still I am getting the same error... :/
 
  Traceback (most recent call last):
File /usr/lib/python2.7/runpy.py, line 162, in _run_module_as_main
  __main__, fname, loader, pkg_name)
File /usr/lib/python2.7/runpy.py, line 72, in _run_code
  exec code in run_globals
File
 /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
  line 572, in module
  deploy.deploy()
File
 /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
  line 554, in deploy
  self.loadCfg()
File
 /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
  line 516, in loadCfg
  mgtDetails.apiKey, mgtDetails.securityKey = self.registerApiKey()
File
 /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
  line 485, in registerApiKey
  listuserRes = self.testClient.getApiClient().listUsers(listuser)
File
 
 
 /usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py,
  line 527, in listUsers
  response = self.connection.marvinRequest(command,
  response_type=response, method=method)
File
  /usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
  line 272, in marvinRequest
  response = jsonHelper.getResultObj(response.json(), response_type)
File /usr/local/lib/python2.7/dist-packages/requests/models.py, line
  802, in json
  return json.loads(self.text, **kwargs)
File /usr/lib/python2.7/dist-packages/simplejson/__init__.py, line
 413,
  in loads
  return _default_decoder.decode(s)
File /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line
 402,
  in decode
  obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line
 420,
  in raw_decode
  raise JSONDecodeError(No JSON object could be decoded, s, idx)
  simplejson.decoder.JSONDecodeError: No JSON object could be decoded:
 line 1
  column 0 (char 0)
 
 
  I cant figure out if the issue is in python or simplejson so I
 reinstalled
  both but I am still stuck at the same stage
 
  On Tue, Mar 24, 2015 at 4:53 AM, Tilak Raj Singh tila...@gmail.com
  wrote:
 
   Yeah I tried the binary-installation-basic one but ended up getting the
   errors I posted above. I followed up trying the not binary advanced as
  you
   are provisioning. Doing vagrant up setup xenserver and management
 server
   successfully.
  
   I installed Marvin successfully doing 2015-03-24 04:41:49,970 - DEBUG -
   Parsing Test data successfully using pip install
   tools/marvin/dist/Marvin-0.1.0.tar.gz. But when I try to deploy the
   configuration using python -m marvin.deployDataCenter -i
   /path/to/GSoC-2014/repo/advanced/advanced.json I get the following
 error
  in
   the log files
  
   2015-03-24 04:41:49,970 - DEBUG - Payload: {'account': 'admin',
  'command':
   'listUsers', 'response': 'json'}
   2015-03-24 04:41:49,970 - DEBUG - Sending GET Cmd :
   listUsers===
   2015-03-24 04:42:53,086 - ERROR - Exception:['Traceback (most recent
 call
   last):\n', '  File
  
 /usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
   line 307, in __parseAndGetResponse\ncmd_response.json(),\n', '
 File
   /usr/local/lib/python2.7/dist-packages/requests/models.py, line 802,
 in
   json\nreturn json.loads(self.text, **kwargs)\n', '  File
   /usr/lib/python2.7/dist-packages/simplejson/__init__.py, line 413, in
   loads\nreturn _default_decoder.decode(s)\n', '  File
   /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line

Fwd: [GSOC] Setting up multiple devcloud host in cloudstack dev environment

2015-03-23 Thread Tilak Raj Singh
-- Forwarded message --
From: Tilak Raj Singh tila...@gmail.com
Date: Tue, Mar 24, 2015 at 6:12 AM
Subject: Re: [GSOC] Setting up multiple devcloud host in cloudstack dev
environment
To: Pierre-Luc Dion pd...@cloudops.com


I just tried deploying on 4.3 branch using binary directory on 4.3 branch
https://github.com/imduffy15/devcloud4/tree/master/basic and followed the
instructions given here
https://github.com/imduffy15/devcloud4/blob/master/basic/README.md

still I am getting the same error... :/

Traceback (most recent call last):
  File /usr/lib/python2.7/runpy.py, line 162, in _run_module_as_main
__main__, fname, loader, pkg_name)
  File /usr/lib/python2.7/runpy.py, line 72, in _run_code
exec code in run_globals
  File /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
line 572, in module
deploy.deploy()
  File /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
line 554, in deploy
self.loadCfg()
  File /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
line 516, in loadCfg
mgtDetails.apiKey, mgtDetails.securityKey = self.registerApiKey()
  File /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
line 485, in registerApiKey
listuserRes = self.testClient.getApiClient().listUsers(listuser)
  File
/usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py,
line 527, in listUsers
response = self.connection.marvinRequest(command,
response_type=response, method=method)
  File
/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
line 272, in marvinRequest
response = jsonHelper.getResultObj(response.json(), response_type)
  File /usr/local/lib/python2.7/dist-packages/requests/models.py, line
802, in json
return json.loads(self.text, **kwargs)
  File /usr/lib/python2.7/dist-packages/simplejson/__init__.py, line 413,
in loads
return _default_decoder.decode(s)
  File /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line 402,
in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line 420,
in raw_decode
raise JSONDecodeError(No JSON object could be decoded, s, idx)
simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1
column 0 (char 0)


I cant figure out if the issue is in python or simplejson so I reinstalled
both but I am still stuck at the same stage

On Tue, Mar 24, 2015 at 4:53 AM, Tilak Raj Singh tila...@gmail.com wrote:

 Yeah I tried the binary-installation-basic one but ended up getting the
 errors I posted above. I followed up trying the not binary advanced as you
 are provisioning. Doing vagrant up setup xenserver and management server
 successfully.

 I installed Marvin successfully doing 2015-03-24 04:41:49,970 - DEBUG -
 Parsing Test data successfully using pip install
 tools/marvin/dist/Marvin-0.1.0.tar.gz. But when I try to deploy the
 configuration using python -m marvin.deployDataCenter -i
 /path/to/GSoC-2014/repo/advanced/advanced.json I get the following error in
 the log files

 2015-03-24 04:41:49,970 - DEBUG - Payload: {'account': 'admin', 'command':
 'listUsers', 'response': 'json'}
 2015-03-24 04:41:49,970 - DEBUG - Sending GET Cmd :
 listUsers===
 2015-03-24 04:42:53,086 - ERROR - Exception:['Traceback (most recent call
 last):\n', '  File
 /usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
 line 307, in __parseAndGetResponse\ncmd_response.json(),\n', '  File
 /usr/local/lib/python2.7/dist-packages/requests/models.py, line 802, in
 json\nreturn json.loads(self.text, **kwargs)\n', '  File
 /usr/lib/python2.7/dist-packages/simplejson/__init__.py, line 413, in
 loads\nreturn _default_decoder.decode(s)\n', '  File
 /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line 402, in
 decode\nobj, end = self.raw_decode(s, idx=_w(s, 0).end())\n', '  File
 /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line 420, in
 raw_decode\nraise JSONDecodeError(No JSON object could be decoded, s,
 idx)\n', 'JSONDecodeError: No JSON object could be decoded: line 1 column 0
 (char 0)\n']
 Traceback (most recent call last):
   File
 /usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
 line 307, in __parseAndGetResponse
 cmd_response.json(),
   File /usr/local/lib/python2.7/dist-packages/requests/models.py, line
 802, in json
 return json.loads(self.text, **kwargs)
   File /usr/lib/python2.7/dist-packages/simplejson/__init__.py, line
 413, in loads
 return _default_decoder.decode(s)
   File /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line 402,
 in decode
 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
   File /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line 420,
 in raw_decode
 raise JSONDecodeError(No JSON object could be decoded, s, idx)
 JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
 2015-03

Re: Fwd: [GSOC] Setting up multiple devcloud host in cloudstack dev environment

2015-03-23 Thread Will Stevens
Is the cloudstack up and working?  Did you check in virtual box if the
box(s?) are up?  If so can you check the logs?

It seems like you are not getting your networking configured because the VM
seems to come up but there is no connection. Is the network reported
correct?  Nat and host only is right?  I think that is what I read.

Ws
On Mar 23, 2015 8:54 PM, Tilak Raj Singh tila...@gmail.com wrote:

 -- Forwarded message --
 From: Tilak Raj Singh tila...@gmail.com
 Date: Tue, Mar 24, 2015 at 6:12 AM
 Subject: Re: [GSOC] Setting up multiple devcloud host in cloudstack dev
 environment
 To: Pierre-Luc Dion pd...@cloudops.com


 I just tried deploying on 4.3 branch using binary directory on 4.3 branch
 https://github.com/imduffy15/devcloud4/tree/master/basic and followed the
 instructions given here
 https://github.com/imduffy15/devcloud4/blob/master/basic/README.md

 still I am getting the same error... :/

 Traceback (most recent call last):
   File /usr/lib/python2.7/runpy.py, line 162, in _run_module_as_main
 __main__, fname, loader, pkg_name)
   File /usr/lib/python2.7/runpy.py, line 72, in _run_code
 exec code in run_globals
   File /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
 line 572, in module
 deploy.deploy()
   File /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
 line 554, in deploy
 self.loadCfg()
   File /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
 line 516, in loadCfg
 mgtDetails.apiKey, mgtDetails.securityKey = self.registerApiKey()
   File /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
 line 485, in registerApiKey
 listuserRes = self.testClient.getApiClient().listUsers(listuser)
   File

 /usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py,
 line 527, in listUsers
 response = self.connection.marvinRequest(command,
 response_type=response, method=method)
   File
 /usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
 line 272, in marvinRequest
 response = jsonHelper.getResultObj(response.json(), response_type)
   File /usr/local/lib/python2.7/dist-packages/requests/models.py, line
 802, in json
 return json.loads(self.text, **kwargs)
   File /usr/lib/python2.7/dist-packages/simplejson/__init__.py, line 413,
 in loads
 return _default_decoder.decode(s)
   File /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line 402,
 in decode
 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
   File /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line 420,
 in raw_decode
 raise JSONDecodeError(No JSON object could be decoded, s, idx)
 simplejson.decoder.JSONDecodeError: No JSON object could be decoded: line 1
 column 0 (char 0)


 I cant figure out if the issue is in python or simplejson so I reinstalled
 both but I am still stuck at the same stage

 On Tue, Mar 24, 2015 at 4:53 AM, Tilak Raj Singh tila...@gmail.com
 wrote:

  Yeah I tried the binary-installation-basic one but ended up getting the
  errors I posted above. I followed up trying the not binary advanced as
 you
  are provisioning. Doing vagrant up setup xenserver and management server
  successfully.
 
  I installed Marvin successfully doing 2015-03-24 04:41:49,970 - DEBUG -
  Parsing Test data successfully using pip install
  tools/marvin/dist/Marvin-0.1.0.tar.gz. But when I try to deploy the
  configuration using python -m marvin.deployDataCenter -i
  /path/to/GSoC-2014/repo/advanced/advanced.json I get the following error
 in
  the log files
 
  2015-03-24 04:41:49,970 - DEBUG - Payload: {'account': 'admin',
 'command':
  'listUsers', 'response': 'json'}
  2015-03-24 04:41:49,970 - DEBUG - Sending GET Cmd :
  listUsers===
  2015-03-24 04:42:53,086 - ERROR - Exception:['Traceback (most recent call
  last):\n', '  File
  /usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
  line 307, in __parseAndGetResponse\ncmd_response.json(),\n', '  File
  /usr/local/lib/python2.7/dist-packages/requests/models.py, line 802, in
  json\nreturn json.loads(self.text, **kwargs)\n', '  File
  /usr/lib/python2.7/dist-packages/simplejson/__init__.py, line 413, in
  loads\nreturn _default_decoder.decode(s)\n', '  File
  /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line 402, in
  decode\nobj, end = self.raw_decode(s, idx=_w(s, 0).end())\n', '  File
  /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line 420, in
  raw_decode\nraise JSONDecodeError(No JSON object could be decoded,
 s,
  idx)\n', 'JSONDecodeError: No JSON object could be decoded: line 1
 column 0
  (char 0)\n']
  Traceback (most recent call last):
File
  /usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
  line 307, in __parseAndGetResponse
  cmd_response.json(),
File /usr/local/lib/python2.7/dist-packages/requests/models.py, line
  802, in json
  return json.loads(self.text, **kwargs

Fwd: [GSOC] Setting up multiple devcloud host in cloudstack dev environment

2015-03-23 Thread Tilak Raj Singh
-- Forwarded message --
From: Tilak Raj Singh tila...@gmail.com
Date: Tue, Mar 24, 2015 at 4:53 AM
Subject: Re: [GSOC] Setting up multiple devcloud host in cloudstack dev
environment
To: Pierre-Luc Dion pd...@cloudops.com


Yeah I tried the binary-installation-basic one but ended up getting the
errors I posted above. I followed up trying the not binary advanced as you
are provisioning. Doing vagrant up setup xenserver and management server
successfully.

I installed Marvin successfully doing 2015-03-24 04:41:49,970 - DEBUG -
Parsing Test data successfully using pip install
tools/marvin/dist/Marvin-0.1.0.tar.gz. But when I try to deploy the
configuration using python -m marvin.deployDataCenter -i
/path/to/GSoC-2014/repo/advanced/advanced.json I get the following error in
the log files

2015-03-24 04:41:49,970 - DEBUG - Payload: {'account': 'admin', 'command':
'listUsers', 'response': 'json'}
2015-03-24 04:41:49,970 - DEBUG - Sending GET Cmd : listUsers===
2015-03-24 04:42:53,086 - ERROR - Exception:['Traceback (most recent call
last):\n', '  File
/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
line 307, in __parseAndGetResponse\ncmd_response.json(),\n', '  File
/usr/local/lib/python2.7/dist-packages/requests/models.py, line 802, in
json\nreturn json.loads(self.text, **kwargs)\n', '  File
/usr/lib/python2.7/dist-packages/simplejson/__init__.py, line 413, in
loads\nreturn _default_decoder.decode(s)\n', '  File
/usr/lib/python2.7/dist-packages/simplejson/decoder.py, line 402, in
decode\nobj, end = self.raw_decode(s, idx=_w(s, 0).end())\n', '  File
/usr/lib/python2.7/dist-packages/simplejson/decoder.py, line 420, in
raw_decode\nraise JSONDecodeError(No JSON object could be decoded, s,
idx)\n', 'JSONDecodeError: No JSON object could be decoded: line 1 column 0
(char 0)\n']
Traceback (most recent call last):
  File
/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
line 307, in __parseAndGetResponse
cmd_response.json(),
  File /usr/local/lib/python2.7/dist-packages/requests/models.py, line
802, in json
return json.loads(self.text, **kwargs)
  File /usr/lib/python2.7/dist-packages/simplejson/__init__.py, line 413,
in loads
return _default_decoder.decode(s)
  File /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line 402,
in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line 420,
in raw_decode
raise JSONDecodeError(No JSON object could be decoded, s, idx)
JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
2015-03-24 04:42:53,086 - ERROR - marvinRequest : CmdName:
marvin.cloudstackAPI.listUsers.listUsersCmd object at 0x2050650
Exception: ['Traceback (most recent call last):\n', '  File
/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
line 374, in marvinRequest\nraise self.__lastError\n',
'JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char
0)\n']
Traceback (most recent call last):
  File
/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
line 374, in marvinRequest
raise self.__lastError
JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
2015-03-24 04:42:53,088 - ERROR -  Exception Occurred Under
__createApiClient: ['Traceback (most recent call last):\n', '  File
/usr/local/lib/python2.7/dist-packages/marvin/cloudstackTestClient.py,
line 144, in __createApiClient\nlist_user_res =
self.__apiClient.listUsers(list_user)\n', '  File
/usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py,
line 595, in listUsers\nresponse =
self.connection.marvinRequest(command, response_type=response,
method=method)\n', '  File
/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
line 379, in marvinRequest\nraise e\n', 'JSONDecodeError: No JSON
object could be decoded: line 1 column 0 (char 0)\n']
Traceback (most recent call last):
  File
/usr/local/lib/python2.7/dist-packages/marvin/cloudstackTestClient.py,
line 144, in __createApiClient
list_user_res = self.__apiClient.listUsers(list_user)
  File
/usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py,
line 595, in listUsers
response = self.connection.marvinRequest(command,
response_type=response, method=method)
  File
/usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
line 379, in marvinRequest
raise e
JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char 0)
2015-03-24 04:42:53,088 - ERROR -  Test Client Creation Failed 

Can you help me with this?

On Mon, Mar 23, 2015 at 6:05 PM, Pierre-Luc Dion pd...@cloudops.com wrote:

 Hi Tilak,

 This project is back from GSOC 2014, I'm not sure if Ian did maintain it
 recently so it might need some updates.  Anyhow, I'm using the not binary
 version (this section:
 https://github.com/imduffy15

Re: Fwd: [GSOC] Setting up multiple devcloud host in cloudstack dev environment

2015-03-23 Thread Will Stevens
Can you launch a VM through the CS ui?
On Mar 23, 2015 9:14 PM, Tilak Raj Singh tila...@gmail.com wrote:

 Hi Will,

 yeah cloudstack management is running fine...I can open
 127.0.0.1:8080/client on my browser...And there are two vms
 running..xenserver : I can ssh into it on port  and management : i can
 ssh into it on port 2200. I configured the networking in virtual box under
 preferences/network/vboxnet0 192.168.56.1 and dhcp disabled...but there is
 nothing under preferences/network/NAT in the virtualbox...do I have to
 configure something there??

 On Tue, Mar 24, 2015 at 6:32 AM, Will Stevens williamstev...@gmail.com
 wrote:

  Is the cloudstack up and working?  Did you check in virtual box if the
  box(s?) are up?  If so can you check the logs?
 
  It seems like you are not getting your networking configured because the
 VM
  seems to come up but there is no connection. Is the network reported
  correct?  Nat and host only is right?  I think that is what I read.
 
  Ws
  On Mar 23, 2015 8:54 PM, Tilak Raj Singh tila...@gmail.com wrote:
 
   -- Forwarded message --
   From: Tilak Raj Singh tila...@gmail.com
   Date: Tue, Mar 24, 2015 at 6:12 AM
   Subject: Re: [GSOC] Setting up multiple devcloud host in cloudstack dev
   environment
   To: Pierre-Luc Dion pd...@cloudops.com
  
  
   I just tried deploying on 4.3 branch using binary directory on 4.3
 branch
   https://github.com/imduffy15/devcloud4/tree/master/basic and followed
  the
   instructions given here
   https://github.com/imduffy15/devcloud4/blob/master/basic/README.md
  
   still I am getting the same error... :/
  
   Traceback (most recent call last):
 File /usr/lib/python2.7/runpy.py, line 162, in _run_module_as_main
   __main__, fname, loader, pkg_name)
 File /usr/lib/python2.7/runpy.py, line 72, in _run_code
   exec code in run_globals
 File
  /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
   line 572, in module
   deploy.deploy()
 File
  /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
   line 554, in deploy
   self.loadCfg()
 File
  /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
   line 516, in loadCfg
   mgtDetails.apiKey, mgtDetails.securityKey = self.registerApiKey()
 File
  /usr/local/lib/python2.7/dist-packages/marvin/deployDataCenter.py,
   line 485, in registerApiKey
   listuserRes = self.testClient.getApiClient().listUsers(listuser)
 File
  
  
 
 /usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py,
   line 527, in listUsers
   response = self.connection.marvinRequest(command,
   response_type=response, method=method)
 File
  
 /usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
   line 272, in marvinRequest
   response = jsonHelper.getResultObj(response.json(), response_type)
 File /usr/local/lib/python2.7/dist-packages/requests/models.py,
 line
   802, in json
   return json.loads(self.text, **kwargs)
 File /usr/lib/python2.7/dist-packages/simplejson/__init__.py, line
  413,
   in loads
   return _default_decoder.decode(s)
 File /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line
  402,
   in decode
   obj, end = self.raw_decode(s, idx=_w(s, 0).end())
 File /usr/lib/python2.7/dist-packages/simplejson/decoder.py, line
  420,
   in raw_decode
   raise JSONDecodeError(No JSON object could be decoded, s, idx)
   simplejson.decoder.JSONDecodeError: No JSON object could be decoded:
  line 1
   column 0 (char 0)
  
  
   I cant figure out if the issue is in python or simplejson so I
  reinstalled
   both but I am still stuck at the same stage
  
   On Tue, Mar 24, 2015 at 4:53 AM, Tilak Raj Singh tila...@gmail.com
   wrote:
  
Yeah I tried the binary-installation-basic one but ended up getting
 the
errors I posted above. I followed up trying the not binary advanced
 as
   you
are provisioning. Doing vagrant up setup xenserver and management
  server
successfully.
   
I installed Marvin successfully doing 2015-03-24 04:41:49,970 -
 DEBUG -
Parsing Test data successfully using pip install
tools/marvin/dist/Marvin-0.1.0.tar.gz. But when I try to deploy the
configuration using python -m marvin.deployDataCenter -i
/path/to/GSoC-2014/repo/advanced/advanced.json I get the following
  error
   in
the log files
   
2015-03-24 04:41:49,970 - DEBUG - Payload: {'account': 'admin',
   'command':
'listUsers', 'response': 'json'}
2015-03-24 04:41:49,970 - DEBUG - Sending GET Cmd :
listUsers===
2015-03-24 04:42:53,086 - ERROR - Exception:['Traceback (most recent
  call
last):\n', '  File
   
  /usr/local/lib/python2.7/dist-packages/marvin/cloudstackConnection.py,
line 307, in __parseAndGetResponse\ncmd_response.json(),\n', '
  File
/usr/local/lib/python2.7/dist-packages/requests/models.py, line
 802,
  in
json\nreturn

Re: [GSOC] Setting up multiple devcloud host in cloudstack dev environment

2015-03-22 Thread Daan Hoogland
Tilak,

I am cross posting your question as it is more on topic in the dev
list. Rohit's age is a good starting point. it is my experience that
every body will encounter their own problems in setting up a good
environment and needs further support. In your case the dual host
environment is a bit of a challange, though it has been set up by
several people. It could be convenient to set it up as remote hosts
instead of a devcloud vm. It should work though.

Good travels and don't hasitate to ask for support,

On Fri, Mar 20, 2015 at 9:15 PM, Tilak Raj Singh tila...@gmail.com wrote:
 Hi can anyone please help me here??

 On Fri, Mar 20, 2015 at 4:18 AM, Tilak Raj Singh tila...@gmail.com wrote:

 Hello All,

 I am trying to setup the cloudstack developement environment on my ubuntu
 12.04 64bit machine. I have successfully setup the management server
 locally on my machine using the docs [1]. As I am going to start work on
 the issue CLOUDSTACK-8266
 https://issues.apache.org/jira/browse/CLOUDSTACK-8266 [2] I need to
 setup atleast two host on my management server. I am trying to setup two
 devcloud hosts for the same. Can anybody guide me how to add them. Should I
 follow this guide [3] to setup first devcloud resources to my management
 server and then manually add the other devcloud host ip into the hosts
 section of cloudstack or should I edit devcloud.cfg file to add an entry
 for the ip, username and password for the second devcloud host and it would
 work?

 If I am wrong can please somebody help me figure out the correct method to
 do the same.

 Regards

 [1]
 https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+CloudStack+Development+Environment+on+Linux

 [2] https://issues.apache.org/jira/browse/CLOUDSTACK-8266

 [3] http://bhaisaab.org/logs/devcloud/




-- 
Daan


Re: [GSOC] Setting up multiple devcloud host in cloudstack dev environment

2015-03-22 Thread Pierre-Luc Dion
Tilak,

Take a look at devcloud4 from Ian Duffy[1], it use vagrant + virtualbox to
setup a nice test env locally. You might be able to run multiple instance
of the cloudstack management-server into VMs. devcloud4 does not use the
simulator as managed hypervisor, it deploy a XenServer VM, so it might help
validating few tests where your 2 management-servers will interact to same
hosts.


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

Good luck,


On Sun, Mar 22, 2015 at 7:18 AM, Daan Hoogland daan.hoogl...@gmail.com
wrote:

 Tilak,

 I am cross posting your question as it is more on topic in the dev
 list. Rohit's age is a good starting point. it is my experience that
 every body will encounter their own problems in setting up a good
 environment and needs further support. In your case the dual host
 environment is a bit of a challange, though it has been set up by
 several people. It could be convenient to set it up as remote hosts
 instead of a devcloud vm. It should work though.

 Good travels and don't hasitate to ask for support,

 On Fri, Mar 20, 2015 at 9:15 PM, Tilak Raj Singh tila...@gmail.com
 wrote:
  Hi can anyone please help me here??
 
  On Fri, Mar 20, 2015 at 4:18 AM, Tilak Raj Singh tila...@gmail.com
 wrote:
 
  Hello All,
 
  I am trying to setup the cloudstack developement environment on my
 ubuntu
  12.04 64bit machine. I have successfully setup the management server
  locally on my machine using the docs [1]. As I am going to start work on
  the issue CLOUDSTACK-8266
  https://issues.apache.org/jira/browse/CLOUDSTACK-8266 [2] I need to
  setup atleast two host on my management server. I am trying to setup two
  devcloud hosts for the same. Can anybody guide me how to add them.
 Should I
  follow this guide [3] to setup first devcloud resources to my management
  server and then manually add the other devcloud host ip into the hosts
  section of cloudstack or should I edit devcloud.cfg file to add an entry
  for the ip, username and password for the second devcloud host and it
 would
  work?
 
  If I am wrong can please somebody help me figure out the correct method
 to
  do the same.
 
  Regards
 
  [1]
 
 https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+CloudStack+Development+Environment+on+Linux
 
  [2] https://issues.apache.org/jira/browse/CLOUDSTACK-8266
 
  [3] http://bhaisaab.org/logs/devcloud/
 



 --
 Daan



Re: Setting up a CloudStack dev environment on windows

2014-10-13 Thread Daan Hoogland
Xu,

your second question I understand, please refrase the first because I
cannot make anything of it.
The page to folow is
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+a+CloudStack+dev+environment+on+Windows
if you find errors in there please correct us.

as for the second question; the command should be slightly different, mvn
-pl :cloud-client-ui jetty:run, a space moved.
not -pl: cloud-client-ui but -pl :cloud-client-ui
That is probably a typo or cp artifact.
The file that is missing should be in the same location as your
db.properties file.


On Fri, Oct 10, 2014 at 10:51 AM, 徐书敏 m15366190...@163.com wrote:

 Hi

  I am new to ACS development and intend on using Cygwin as myself

 contained dev+test environment. I have do something according to the docs
 where in the website/wiki

 and have browsed the ACS website/wiki and not found answers to the
 following questions and hope you can help:
 the cloudstack version is 4.4.0 when I run the “mvn install -P
 developer,systemvm ” in Cygwin,it happened some test questions.

 In the plugins/network-elements/nicira-nvp,the function
 testFindSecurityProfileByUuid of the class NiciraNvpApiTest.excpte
getMethod.setQueryString([name=uuid, value=, name=fields,
 value=*]

  But was getMethod.setQueryString( [name=fields,
 value=*, name=uuid, value=] );
   I have found some question that was the same to the first
 question.
 Com.cloud.utils.rest.RESTServiceConnectorTest catch the
 RESTServiceConnector throwsException error: Failed to create object
 connector.setAdminCredentials(admin, adminpass);here admin
 and passwd was whose;
 2.when run the command mvn -pl: cloud-client-ui jetty:run
 the cloud.keystore is cannot found









-- 
Daan


Setting up a CloudStack dev environment on windows

2014-10-10 Thread 徐书敏
Hi

 I am new to ACS development and intend on using Cygwin as myself

contained dev+test environment. I have do something according to the docs where 
in the website/wiki

and have browsed the ACS website/wiki and not found answers to the following 
questions and hope you can help:
the cloudstack version is 4.4.0 when I run the “mvn install -P 
developer,systemvm ” in Cygwin,it happened some test questions.

In the plugins/network-elements/nicira-nvp,the function 
testFindSecurityProfileByUuid of the class NiciraNvpApiTest.excpte  
   getMethod.setQueryString([name=uuid, value=, name=fields, value=*]

 But was getMethod.setQueryString( [name=fields, value=*, 
name=uuid, value=] );
  I have found some question that was the same to the first 
question.
Com.cloud.utils.rest.RESTServiceConnectorTest catch the 
RESTServiceConnector throwsException error: Failed to create object 
connector.setAdminCredentials(admin, adminpass);here admin and 
passwd was whose;
2.when run the command mvn -pl: cloud-client-ui jetty:run
the cloud.keystore is cannot found








Setting up a CloudStack dev environment on Windows7

2014-07-22 Thread Priyanka Deepala
Hii,
I installed cygwin from http://cygwin.mirrors.hoobly.com.. I'm following
the cheatsheat for setting up the environment. Can anyone please help me
what is meant by

   - mklink mkisofs.exe genisoimage.exe
   - mklink python.exe python2.7.exe


RE: Setting up a CloudStack dev environment on Windows7

2014-07-22 Thread Donal Lafferty
Those links allow one .exe to be substituted for another.  

For instance, mkisofs.exe is not really available on windows; however, 
genisoimage.exe offers the same functionality and takes the command line 
parameters.  Using mklink mkisofs.exe genisoimage.exe, you create a file system 
entry for mkisofs.exe that points to the same file as genisoimage.exe

DL


 -Original Message-
 From: Priyanka Deepala [mailto:priyanka.deepal...@gmail.com]
 Sent: 22 July 2014 13:11
 To: dev@cloudstack.apache.org
 Subject: Setting up a CloudStack dev environment on Windows7
 
 Hii,
 I installed cygwin from http://cygwin.mirrors.hoobly.com.. I'm following the
 cheatsheat for setting up the environment. Can anyone please help me what
 is meant by
 
- mklink mkisofs.exe genisoimage.exe
- mklink python.exe python2.7.exe


Re: Setting up a CloudStack dev environment on Windows7

2014-07-22 Thread Priyanka Deepala
Tanq


On Tue, Jul 22, 2014 at 6:04 PM, Rajani Karuturi rajani.karut...@citrix.com
 wrote:

 http://technet.microsoft.com/en-us/library/cc753194.aspx

 ~Rajani



 On 22-Jul-2014, at 5:41 pm, Priyanka Deepala priyanka.deepal...@gmail.com
 mailto:priyanka.deepal...@gmail.com wrote:

 Hii,
 I installed cygwin from http://cygwin.mirrors.hoobly.com.. I'm following
 the cheatsheat for setting up the environment. Can anyone please help me
 what is meant by

   - mklink mkisofs.exe genisoimage.exe
   - mklink python.exe python2.7.exe




RE: Setting up a CloudStack dev environment on Windows7

2014-07-22 Thread Alex Hitchins
Hey,

I tried to set up a dev environment on Windows. My advice to you is don't. Get 
an Ubuntu VM or go Mac based.

I know it's possible and good to at least establish that it does work on all 
platforms, however if you are doing dev work, it's just painful. Well, it was 
for me.

If you do get it working then I would love you to write up/document (or even 
better - script up) your work.

Cheers,

Alex


Alex Hitchins | 07788 423 969 | 01892 523 587

-Original Message-
From: Priyanka Deepala [mailto:priyanka.deepal...@gmail.com] 
Sent: 22 July 2014 14:12
To: dev@cloudstack.apache.org
Subject: Re: Setting up a CloudStack dev environment on Windows7

Tanq


On Tue, Jul 22, 2014 at 6:04 PM, Rajani Karuturi rajani.karut...@citrix.com
 wrote:

 http://technet.microsoft.com/en-us/library/cc753194.aspx

 ~Rajani



 On 22-Jul-2014, at 5:41 pm, Priyanka Deepala 
 priyanka.deepal...@gmail.com mailto:priyanka.deepal...@gmail.com wrote:

 Hii,
 I installed cygwin from http://cygwin.mirrors.hoobly.com.. I'm 
 following the cheatsheat for setting up the environment. Can anyone 
 please help me what is meant by

   - mklink mkisofs.exe genisoimage.exe
   - mklink python.exe python2.7.exe