---------- 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\n cmd_response.json(),\n', ' File > "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 802, in > json\n return json.loads(self.text, **kwargs)\n', ' File > "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 413, in > loads\n return _default_decoder.decode(s)\n', ' File > "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 402, in > decode\n obj, 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\n raise 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\n raise 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\n list_user_res = > self.__apiClient.listUsers(list_user)\n', ' File > "/usr/local/lib/python2.7/dist-packages/marvin/cloudstackAPI/cloudstackAPIClient.py", > line 595, in listUsers\n response = > 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\n raise 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/devcloud4/tree/master/advanced) which use >> the management vm for the mysql + nfs and run cloudstack-management locally >> using jetty. >> >> This section should still work: >> https://github.com/imduffy15/devcloud4/tree/master/binary-installation-basic >> , is it the version you tried? >> >> >> >> On Mon, Mar 23, 2015 at 4:32 AM, Tilak Raj Singh <tila...@gmail.com> >> wrote: >> >>> 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 => 2222 (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:2222 >>> 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 >>>>> >>>> >>>> >>> >> >