Thanks all! Bug CLOUDSTACK-1973 created.
-----Original Message----- From: Nitin Mehta [mailto:nitin.me...@citrix.com] Sent: Monday, April 08, 2013 12:58 AM To: users@cloudstack.apache.org Subject: Re: Secondary Storage API Calls Yeah please use the delete host api to remove secondary storage but IIRC you would need to get rid of all templates, snapshots before removing the sec. storage. Tim - For the benefit of community would you mind opening a documentation bug for this @ JIRA ? Thanks, -Nitin On 05/04/13 1:05 AM, "David Nalley" <da...@gnsa.us> wrote: >On Thu, Apr 4, 2013 at 3:23 PM, Tim Schultheiss ><tschulthe...@dynamicquest.com> wrote: >> Hi all, >> >> >> >> I've been working on scripts to automate some processes in >>Cloudstack, to manage zones, hosts, primary storage, and secondary >>storage. I've been using the API list in the Wiki, and CloudMonkey as >>references. >> >> But I've been looking for a command to remove Secondary Storage from >>a zone, and I cannot find this anywhere. I even tried removing it >>from a test box and checking the API logs, but I can't find it. Is it >>there and I've overlooked it? >> >> >> >> Thanks, Tim. >> > >IIRC it's the deleteHost API call. >Secondary Storage is recorded as a host; here is my 'host' record from >listHosts. > > >name = nfs://10.208.38.2/home/secondary id = >be19a12d-2cf2-43b3-97fa-666656f0614a >created = 2012-10-14T20:58:05-0400 >disksizeallocated = 87636836352 >disksizetotal = 174001750016 >events = Remove; ManagementServerDown; AgentConnected; Ping; >AgentDisconnected; ShutdownRequested hypervisor = None ipaddress = nfs >islocalstorageactive = False lastpinged = 1970-01-16T01:16:55-0500 >resourcestate = Enabled state = Alert suitableformigration = False type >= SecondaryStorage version = 4.0.0.20121014100600 zoneid = >d06193b2-7980-4ad1-b5d8-7b2f2eda63c3 >zonename = SanJose > >--David