You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/12/11 16:52:00 UTC

[jira] [Commented] (CLOUDSTACK-9253) docker cloudstack simulator "ImportError: No module named marvin" when try to create a DC

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-9253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16286232#comment-16286232 ] 

ASF GitHub Bot commented on CLOUDSTACK-9253:
--------------------------------------------

rhtyd closed pull request #1432: Fix for CLOUDSTACK-9253
URL: https://github.com/apache/cloudstack/pull/1432
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile
index 9d8b2e062b6..3fe14cea891 100644
--- a/tools/docker/Dockerfile
+++ b/tools/docker/Dockerfile
@@ -20,7 +20,7 @@
 FROM ubuntu:14.04
 
 MAINTAINER "Apache CloudStack" <de...@cloudstack.apache.org>
-LABEL Vendor="Apache.org" License="ApacheV2" Version="4.6.0"
+LABEL Vendor="Apache.org" License="ApacheV2" Version="4.8.0"
 
 RUN apt-get -y update && apt-get install -y \
     genisoimage \
@@ -40,8 +40,6 @@ RUN apt-get install -qqy mysql-server && \
 
 RUN (/usr/bin/mysqld_safe &); sleep 5; mysqladmin -u root -proot password ''
 
-RUN pip install --allow-external mysql-connector-python mysql-connector-python
-
 COPY tools/docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
 COPY . ./root
 WORKDIR /root
@@ -51,9 +49,12 @@ RUN mvn -Pdeveloper -Dsimulator -DskipTests clean install
 RUN (/usr/bin/mysqld_safe &); \
     sleep 3; \
     mvn -Pdeveloper -pl developer -Ddeploydb; \
-    mvn -Pdeveloper -pl developer -Ddeploydb-simulator; \
-    MARVIN_FILE=`find tools/marvin/dist/ -name "Marvin*.tar.gz"` \
-    pip install $MARVIN_FILE
+    mvn -Pdeveloper -pl developer -Ddeploydb-simulator
+
+RUN pip install http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.0.4.zip
+RUN pip install paramiko
+RUN pip install /root/tools/marvin/dist/Marvin*.tar.gz
+   
 
 EXPOSE 8080 8096
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> docker cloudstack simulator "ImportError: No module named marvin" when try to create a DC 
> ------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-9253
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9253
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Simulator
>    Affects Versions: 4.6.0
>         Environment: docker 
>            Reporter: Florian Koch
>            Priority: Minor
>              Labels: docker
>
> after starting the cloudstack/simulator container and try to add Datacenters with the provides commands 
> {noformat}
> docker exec -ti cloudstack python \
> /root/tools/marvin/marvin/deployDataCenter.py -i /root/setup/dev/advanced.cfg
> # or 
> docker exec -ti cloudstack python \
> /root/tools/marvin/marvin/deployDataCenter.py -i /root/setup/dev/advancedsg.cfg
> # or 
> docker exec -ti cloudstack python \
> /root/tools/marvin/marvin/deployDataCenter.py -i /root/setup/dev/basic.cfg
> {noformat}
> this error occoures
> {noformat}
> > /root/tools/marvin/marvin/deployDataCenter.py -i /root/setup/dev/advancedsg.cfg
> Traceback (most recent call last):
>   File "/root/tools/marvin/marvin/deployDataCenter.py", line 28, in <module>
>     from marvin import configGenerator
> ImportError: No module named marvin
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)