cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wei ZHOU <ustcweiz...@gmail.com>
Subject Re: List disk offerings cmd
Date Thu, 15 Oct 2015 15:49:25 GMT
Patrick,

My mistake. There is not a way to enable/disable a service/disk offering
(yes for network offerings). It might be useful for some users.
You can create a ticket on JIRA.

-Wei

2015-10-15 15:40 GMT+02:00 Patrick Dube <patrickdube91@gmail.com>:

> Thanks Wei. But is there actually a way to disable/enable disk offerings?
> There seems to be nothing via the API.
>
> If there isn't, I will create an issue and work on it.
>
> Cheers,
>
> Patrick
>
> On Thu, Oct 15, 2015 at 2:40 AM Wei ZHOU <ustcweizhou@gmail.com> wrote:
>
> > Hi Patrick,
> >
> > If you remove/expunge a resource (instance,volume,offering, tempalte,
> etc),
> > it means the resource will not be used any more.
> > Hence, cloudstack will not list this kind of resources in the API
> response.
> >
> > If you want to disable offering temporarily, you can disable/enable it.
> If
> > the offerings is removed by mistake, you need to modify the database
> > manually: Update disk_offering set removed=NULL where id=XXX
> > for vms, you can destroy/recover them.
> >
> > -Wei
> >
> > 2015-10-14 23:05 GMT+02:00 Patrick Dube <patrickdube91@gmail.com>:
> >
> > > Thanks ilya. Yeah, I can still see them in the db, but I was wondering
> if
> > > they weren't exposed for a specific reason. I think it would be useful
> to
> > > either be able to see deleted disk/service offerings or to be able to
> > > disable them, like with network offerings, and filter them that way.
> > > Opinions?
> > >
> > > Cheers,
> > >
> > > Patrick
> > >
> > >
> > > On Wed, Oct 14, 2015 at 4:50 PM ilya <ilya.mailing.lists@gmail.com>
> > wrote:
> > >
> > > > Patrick
> > > >
> > > > As you may know, nothing is deleted in cloudstack db (for the most
> > > > part), hence records are still accessible via direct db query.
> > > >
> > > > I'm not aware of any API call that would show Deleted disk offerings,
> > > > though, but should not be too hard to implement..
> > > >
> > > > Regards
> > > > ilya
> > > >
> > > > On 10/14/15 10:41 AM, Patrick Dube wrote:
> > > > > Is there any way to list all disk offerings (via the API), even
> those
> > > > that
> > > > > were deleted?
> > > > > If not, is there any particular reason why?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Patrick
> > > > >
> > > >
> > >
> >
>

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