1. You can run deploy data center after installation of marvin, like below. It 
"wont" run any tests, it just deploys a datacenter. 

python marvin/marvin/deployDataCenter.py  -i ../setup/dev/advanced.cfg


2. Here, it is trying to import function "GetDetailExceptionInfo" and it 
couldn't find it under import path and so is complaining. If you follow as 
mentioned, then it will work.

3. Reason for woking earlier could be because when you tried from source, you 
already would have had version of marvin installed, which has all imports and 
so it didnt complained.

4. If we see deployDataCenter.py, it has one new addition of 
GetDetailExceptionInfo, it didn't complained it though for first import i.e., 
InvalidParameterException, but complained for second, because it is newly added 
and not available in import path.
 
from marvin.cloudstackException import (
    InvalidParameterException,
    GetDetailExceptionInfo)

5.We ran today from master deploying a datacenter as mentioned and it works 
with no issues. 

Hope it is clear.

Regards,
Santhosh
________________________________________
From: Chiradeep Vittal [chiradeep.vit...@citrix.com]
Sent: Thursday, June 05, 2014 3:31 PM
To: dev@cloudstack.apache.org
Subject: Re: [marvin] deploydatacenter broken in master

Santosh, this is not an installation. I am merely running it from the source 
base. This used to work just fine (and AFAIK, the only way to use marvin to 
setup a datacenter but not run any tests).

From: Santhosh Edukulla 
<santhosh.eduku...@citrix.com<mailto:santhosh.eduku...@citrix.com>>
Reply-To: "dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>" 
<dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>>
Date: Thursday, June 5, 2014 at 2:18 AM
To: "dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>" 
<dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>>
Subject: RE: [marvin] deploydatacenter broken in master

Going by the error, it seems installation of marvin is an issue on the setup. 
Please install the marvin available in master.

For simple installation of marvin, build cloudstack first and then run "python 
setup.py install" inside tools/marvin folder.

Regards,
Santhosh
________________________________________
From: Chiradeep Vittal 
[chiradeep.vit...@citrix.com<mailto:chiradeep.vit...@citrix.com>]
Sent: Wednesday, June 04, 2014 5:44 PM
To: dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>
Subject: [marvin] deploydatacenter broken in master

Anybody have any ideas?

On 4.4
python marvin/marvin/deployDataCenter.py  -i ../setup/dev/advanced.cfg
(works OK)

On master:
python marvin/marvin/deployDataCenter.py  -i ../setup/dev/advanced.cfg
Traceback (most recent call last):
  File "marvin/marvin/deployDataCenter.py", line 28, in <module>
    from marvin.cloudstackException import (
ImportError: cannot import name GetDetailExceptionInfo

Reply via email to