cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <ch0...@gmail.com>
Subject Re: New DevCloud Appliance
Date Fri, 30 Nov 2012 12:07:35 GMT
Have installed the missing mysql python package but there is a mysql error
now :

mvn -P developer -pl tools/devcloud -Ddeploysvr
[INFO] Scanning for projects...
[INFO]

[INFO]
------------------------------------------------------------------------
[INFO] Building Apache CloudStack Developer Tools 4.1.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-remote-resources-plugin:1.3:process (default) @
cloud-devcloud ---
[INFO]
[INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor) @
cloud-devcloud ---
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (default) @ cloud-devcloud ---
Traceback (most recent call last):
  File "../marvin/marvin/deployDataCenter.py", line 435, in <module>
    deploy.deploy()
  File "../marvin/marvin/deployDataCenter.py", line 418, in deploy
    self.loadCfg()
  File "../marvin/marvin/deployDataCenter.py", line 394, in loadCfg
    apiKey, securityKey = self.registerApiKey()
  File "../marvin/marvin/deployDataCenter.py", line 334, in registerApiKey
    listuserRes = self.testClient.getApiClient().listUsers(listuser)
  File
"/opt/cloudstack/incubator-cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
line 358, in listUsers
    response = self.connection.make_request(command, response)
  File
"/opt/cloudstack/incubator-cloudstack/tools/marvin/marvin/cloudstackConnection.py",
line 177, in make_request
    result = self.make_request_without_auth(commandName, requests)
  File
"/opt/cloudstack/incubator-cloudstack/tools/marvin/marvin/cloudstackConnection.py",
line 108, in make_request_without_auth
    self.connection = urllib2.urlopen("%s://%s:%d%s?%s"%(self.protocol,
self.mgtSvr, self.port, self.path, requestUrl))
  File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 400, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 418, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 111] Connection refused>



On Fri, Nov 30, 2012 at 11:55 AM, Sebastien Goasguen <runseb@gmail.com>wrote:

> Charles, looks to me like a missing dependency in Rohit's image, try:
>
> root@devcloud:~# easy_install mysql-connector-python
> Searching for mysql-connector-python
> Reading http://pypi.python.org/simple/mysql-connector-python/
> Reading http://dev.mysql.com/doc/connector-python/en/index.html
> Reading http://dev.mysql.com/usingmysql/python/
> Reading http://dev.mysql.com/downloads/connector/python/
> Best match: mysql-connector-python 1.0.7
> Downloading
> http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-1.0.7.zip
> Processing mysql-connector-python-1.0.7.zip
> Running mysql-connector-python-1.0.7/setup.py -q bdist_egg --dist-dir
> /tmp/easy_install-AaNj6M/mysql-connector-python-1.0.7/egg-dist-tmp-fFnbZX
> zip_safe flag not set; analyzing archive contents...
> Adding mysql-connector-python 1.0.7 to easy-install.pth file
>
> Installed
> /usr/local/lib/python2.7/dist-packages/mysql_connector_python-1.0.7-py2.7.egg
> Processing dependencies for mysql-connector-python
> Finished processing dependencies for mysql-connector-python
> root@devcloud:~# python
> Python 2.7.3rc2 (default, Apr 22 2012, 22:35:38)
> [GCC 4.6.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import mysql
> >>>
>
>
>
> On Nov 30, 2012, at 11:45 AM, Charles Moulliard <ch007m@gmail.com> wrote:
>
> > I think that there is a missing info in the blog entry (
> > http://rohityadav.in/logs/devcloud/)
> >
> > This command should be executed after compilation to deploy config in the
> > DB of the management server :
> >
> > mvn -P developer -pl tools/devcloud -Ddeploysvr
> >
> > But we get this error :
> >
> > Traceback (most recent call last):
> >  File "../marvin/marvin/deployDataCenter.py", line 21, in <module>
> >    import cloudstackTestClient
> >  File
> >
> "/opt/cloudstack/incubator-cloudstack/tools/marvin/marvin/cloudstackTestClient.py",
> > line 20, in <module>
> >    import dbConnection
> >  File
> >
> "/opt/cloudstack/incubator-cloudstack/tools/marvin/marvin/dbConnection.py",
> > line 18, in <module>
> >    import mysql
> >
> >
> >
> > On Thu, Nov 29, 2012 at 3:37 PM, Hieu Le <hieulq89@gmail.com> wrote:
> >
> >> Great news, thank you Rohit !
> >>
> >> I think you can tweak in devcloud project by adding more options in
> maven
> >> to set up advance zone instead of basic zone in devcloud VM
> (devcloud.cfg
> >> is just basic).
> >>
> >> On Thu, Nov 29, 2012 at 8:46 PM, Rohit Yadav <rohit.yadav@citrix.com>
> >> wrote:
> >>
> >>> One more thing, if you are developing inside DevCloud, you'll have to
> >> make
> >>> sure host ip is 192.168.56.10 (or if you change the ip from
> >>> /etc/network/interfaces) and make sure you've mkisofs preinstalled.
> I've
> >>> fixed this issue in the image which I'll upload later sometime, but the
> >>> change is simply to compile and install mkisofs (there was no default
> pkg
> >>> in debian).
> >>>
> >>> Regards.
> >>> ________________________________________
> >>> From: sebgoa [runseb@gmail.com]
> >>> Sent: Thursday, November 29, 2012 6:49 PM
> >>> To: cloudstack-dev@incubator.apache.org
> >>> Subject: Re: New DevCloud Appliance
> >>>
> >>> On Nov 28, 2012, at 7:49 PM, Rohit Yadav wrote:
> >>>
> >>>> Already did that, just git pull:
> >>>>
> >>>
> >>
> https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;a=commitdiff;h=af12a25a608cdef45547a4da83515f57fd6129bf
> >>>>
> >>>> Let me know if there are any other issues.
> >>>
> >>> I am using it as a host and nfs server, running the mgt server on my
> >>> laptop. Everything works fine, except that the tiny linux VM never gets
> >>> available. I tried to register it, but it never gets to the "ready"
> >> stage.
> >>>
> >>> thoughts ?
> >>>
> >>> -sebastien
> >>>
> >>>>
> >>>> Regards.
> >>>>
> >>>> On 28-Nov-2012, at 8:28 AM, Sebastien Goasguen <runseb@gmail.com>
> >> wrote:
> >>>>
> >>>>> Rohit, small tweak maybe:
> >>>>>
> >>>>> Since you set 192.168.56.10, the tools/devcloud/devcloud.cfg needs
to
> >>> be updated (was 192.168.56.2)
> >>>>>
> >>>>> -sebastien
> >>>>>
> >>>>> On Nov 28, 2012, at 3:08 AM, Rohit Yadav <rohit.yadav@citrix.com>
> >>> wrote:
> >>>>>
> >>>>>> I finally got the new DevCloud appliance working and tested
in
> >>> different appliances, thanks to Prasanna. The new appliance can be used
> >>> both as a all in a box solution like the original DevCloud or you can
> run
> >>> mgmt server and mysql on your host os and use it as a Xen server host
> and
> >>> NFS infrastructure. It's about 862MB, and the whole setup can run
> within
> >> 1G
> >>> RAM if you disable console proxy vm from global settings, also you may
> >> run
> >>> multiple DevClouds.
> >>>>>>
> >>>>>> It's available for download from:
> >>>>>> http://people.apache.org/~bhaisaab/cloudstack/devcloud
> >>>>>>
> >>>>>> More details on the blog:
> >>>>>> http://rohityadav.in/logs/devcloud/
> >>>>>>
> >>>>>> Please try the new appliance and report any issues.
> >>>>>> Also help write a page on cwiki.a.o. Thanks.
> >>>>>>
> >>>>>> Regards.
> >>>>>
> >>>>
> >>>
> >>>
> >>
> >>
> >> --
> >>
> >> ------------------------------------
> >>
> >> Le Quang Hieu
> >>
> >> Specialist – Core Cloud Computing  Dept
> >>
> >> Cloud Computing Research Center
> >>
> >> Viettel Research and Development Institute
> >>
> >> No. 380 Lac Long Quan Str, Tay Ho Dist, Hanoi, Vietnam
> >>
> >> Mobile: (84) 974616850
> >>
> >
> >
> >
> > --
> > Charles Moulliard
> > Apache Committer / Sr. Enterprise Architect (RedHat)
> > Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
>
>


-- 
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message