Hi Rohit,

This is my fault. I always forget to start first the servers (mvn -pl
:cloud-client-ui jetty:run) and after this command to deploy / configure
the cloud (mvn -P developer -pl tools/devcloud -Ddeploysvr). This is in
order and works fine on 192.168.56.190.
Nevertheless, I cannot upload an ISO (CentOS). If using the web interface I
try to add an ISO file, then the status of Ready is equal to "No" and I see
this message in the log :

INFO  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:)
Console proxy v-2-VM is started
INFO  [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:)
Secondary storage vm s-1-VM is started
INFO  [cloud.secstorage.PremiumSecondaryStorageManagerImpl] (secstorage-1:)
Primary secondary storage is not even started, wait until next turn
WARN  [storage.download.DownloadMonitorImpl] (4525736@qtp-28288134-4:)
There is no secondary storage VM for secondary storage host
nfs://192.168.56.10:/opt/storage/secondary

Remark : wget works fine locally so there is no internet issue this time.

Regards,

Charles


On Fri, Nov 30, 2012 at 4:01 PM, Rohit Yadav <rohit.ya...@citrix.com> wrote:

> Charles, this simply deploys a basic zone using configuration from
> tools/devcloud/devcloud.cfg
> The problem I see is that it's unable to create a connection to mgmt
> server. You can start mgmt server and manually add a basic zone.
>
> Checklist:
> - Are you running your mgmt server on host os (192.168.56.1) or on
> devcloud (192.168.56.10)
> - Where are you running your mysql server (56.1 or 56.10)
> - Where are you running these commands, on host os or on devcloud?
> - Is MySQL and mgmt server running at that time?
>
> Note: You are required to run mgmt server, this command simply calls a
> bunch of APIs to mgmt server's API server to deploy a basic zone. I've
> added a section about it on my blog.
>
> In background it call's marvin. You can try this:
> run mgmt server: mvn -pl jetty:run (make sure mgmt server is running)
> deploy datacenter/basic zone: cd tools/devcloud; python
> ../marvin/marvin/deployDataCenter.py -i devcloud.cfg (change devcloud.cfg
> as per your needs)
>
> Will update the devcloud2.ova image later today with
> mysql-connector-python, thanks for finding the issue.
>
> Regards.
>
> ________________________________________
> From: Charles Moulliard [ch0...@gmail.com]
> Sent: Friday, November 30, 2012 5:37 PM
> To: cloudstack-dev
> Subject: Re: New DevCloud Appliance
>
> 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 <run...@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 <ch0...@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 <hieul...@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.ya...@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 [run...@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 <run...@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.ya...@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
>



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

Reply via email to