[ https://issues.apache.org/jira/browse/CLOUDSTACK-2211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13644267#comment-13644267 ]
Dharmesh Kakadia commented on CLOUDSTACK-2211: ---------------------------------------------- A little progress in the issue. I was behind the proxy and python was not able to bypass the local address. It would be good if we can have proxy support in CLI and marvin. After unsetting proxy, I am able to add zones, pod and cluster. But while adding hosts I get following error: INFO [cloud.resource.ResourceManagerImpl] (1793095672@qtp-165312501-9:) Trying to add a new host at http://192.168.56.10 in data center 1 WARN [cloud.resource.ResourceManagerImpl] (1793095672@qtp-165312501-9:) Unable to find the server resources at http://192.168.56.10 INFO [utils.exception.CSExceptionErrorCode] (1793095672@qtp-165312501-9:) Could not find exception: com.cloud.exception.DiscoveryException in error code list for exceptions WARN [admin.host.AddHostCmd] (1793095672@qtp-165312501-9:) Exception: com.cloud.exception.DiscoveryException: Unable to add the host at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:894) at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:639) at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143) at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155) at com.cloud.api.ApiServer.queueCommand(ApiServer.java:512) at com.cloud.api.ApiServer.handleRequest(ApiServer.java:362) at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304) at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) INFO [cloud.api.ApiServer] (1793095672@qtp-165312501-9:) Unable to add the host The host I am trying to add is Devcloud VM. Host and Management server are able to ping each other. xapi is listening on host (192.168.56.10) and xe vm-list shows the control domain in running state. > Error in deploysvr (No JSON object could be decoded) > ---------------------------------------------------- > > Key: CLOUDSTACK-2211 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2211 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Install and Setup > Environment: Mac OS X and Ubuntu 12.04, Python 2.7 > Reporter: Dharmesh Kakadia > Labels: devcloud > > I am setting up dev environment following : > https://cwiki.apache.org/confluence/display/CLOUDSTACK/DevCloud > but while running > mvn -P developer -pl tools/devcloud -Ddeploysvr > seeing this error > Traceback (most recent call last): > File "../marvin/marvin/deployDataCenter.py", line 469, in <module> > deploy.deploy() > File "../marvin/marvin/deployDataCenter.py", line 452, in deploy > self.loadCfg() > File "../marvin/marvin/deployDataCenter.py", line 409, in loadCfg > apiKey, securityKey = self.registerApiKey() > File "../marvin/marvin/deployDataCenter.py", line 349, in registerApiKey > listuserRes = self.testClient.getApiClient().listUsers(listuser) > File > "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py", > line 436, in listUsers > response = self.connection.marvin_request(command, > response_type=response, method=method) > File > "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackConnection.py", > line 208, in marvin_request > response = jsonHelper.getResultObj(response.json(), response_type) > File "/Library/Python/2.7/site-packages/requests/models.py", line 638, in > json > return json.loads(self.text or self.content, **kwargs) > File > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", > line 326, in loads > return _default_decoder.decode(s) > File > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", > line 360, in decode > obj, end = self.raw_decode(s, idx=_w(s, 0).end()) > File > "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", > line 378, in raw_decode > raise ValueError("No JSON object could be decoded") > ValueError: No JSON object could be decoded > I am using devcloud.cfg from the repo without any change. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira