Hi Ron, the API discovery service requires CloudStack 4.1 or later. cloudmonkey won't work with prev versions ie 4.0 and below. It's enabled by default in 4.1 and master/4.2. As a fail safe, all apis are precached so the cli should work. Hope this helps. Cheers. On Apr 19, 2013 12:48 AM, "Ron Young" <ron.yo...@nscee.edu> wrote:
> > Hi Everyone: > > NEWBIE alert. > > I have just started playing with the devcloud2 image and have a question > regarding cloudmonkey... > > In the getting started section of the cloudmonkey document: > > https://cwiki.apache.org/CLOUDSTACK/cloudstack-cloudmonkey-cli.html#CloudStackcloudmonkeyCLI-Configuration > > It says to enter the "sync" command to discover and sync/pull latest > apis. > > I get the following: > > root@ron3:~# cloudmonkey > Welcome! Using `set` configure the necessary settings: > apikey asyncblock cache_file color history_file host log_file > paramcompletion path port prompt protocol secretkey tabularize timeout > Config file: /root/.cloudmonkey/config > After setting up, run the `sync` command to sync apis > > ☁ Apache CloudStack 🐵 cloudmonkey 4.1.0-snapshot3. Type help or ? to list > commands. > > > set host 192.168.56.10 > > set port 8080 > > set apikey <<<<REMOVED>>>> > > set secretkey <<<<REMOVED>>>> > > sync > <urlopen error [Errno 111] Connection refused> > Failed to sync apis, please check your config? > Note: `sync` requires api discovery service enabled on the CloudStack > management server > > > > > Question: how do I enable the discovery service? > > Using Devcloud2 environment > Management server is ubuntu 12.04 > > Trying additional commands inside of cloudmonkey all return the > same error "urlopen error [Errno 111] Connection refused". > > thanks in advance > > -ron > > > =============================================================================== > Ron Young, Research Support Analyst > National Supercomputing Center for Energy and the Environment > 4505 Maryland Parkway, Box 454028, Las Vegas, NV 89154-4028 > v (702) 895-4017 / f (702) 895-4156 / email: ron.yo...@nscee.edu >