Re: Disabling a storage pool

2021-06-29 Thread Andrija Panic
You confused me David - that API seems new in 4.15 and is related to the
SECONDARY storage, not primary storage - but is great to learn new stuff
every day!

cheers,

On Tue, 29 Jun 2021 at 18:22, David Jumani 
wrote:

> You set it as readonly via the updateImageStore API
> 
> From: Rakesh Venkatesh 
> Sent: Tuesday, June 29, 2021 7:14 PM
> To: users ; dev 
> Subject: Disabling a storage pool
>
> Hello folks
>
> Is there a way to disable a particular storage pool so that it won't be
> used for further volume allocation? I don't want to enable the maintenance
> mode as that will turn off the VM's whose volumes running on that pool. I
> don't want to use a global setting also since this will come into effect
> after the threshold value is reached.
>
> In some cases even if the pool is just 10% allocated, I still want to
> disable it so that the current volumes will keep existing on the same pool
> and at the same time further deployment of volumes on this pool is
> disabled.
>
> I looked at the storge tags options but that involves adding tags to
> service offerings and I dont want to mess up with that tags. Should we add
> a new api to enable this feature? or any other better suggestion?
>
> --
> Thanks and regards
> Rakesh
>
>
>
>

-- 

Andrija Panić


Re: Disabling a storage pool

2021-06-29 Thread David Jumani
You set it as readonly via the updateImageStore API

From: Rakesh Venkatesh 
Sent: Tuesday, June 29, 2021 7:14 PM
To: users ; dev 
Subject: Disabling a storage pool

Hello folks

Is there a way to disable a particular storage pool so that it won't be
used for further volume allocation? I don't want to enable the maintenance
mode as that will turn off the VM's whose volumes running on that pool. I
don't want to use a global setting also since this will come into effect
after the threshold value is reached.

In some cases even if the pool is just 10% allocated, I still want to
disable it so that the current volumes will keep existing on the same pool
and at the same time further deployment of volumes on this pool is disabled.

I looked at the storge tags options but that involves adding tags to
service offerings and I dont want to mess up with that tags. Should we add
a new api to enable this feature? or any other better suggestion?

--
Thanks and regards
Rakesh

 



Re: Disabling a storage pool

2021-06-29 Thread Rakesh Venkatesh
i was able to hack the db to make it work with storage and service offering
tags but thats not useful all the time in production

On Tue, Jun 29, 2021 at 5:23 PM Andrija Panic 
wrote:

> (you can also hack the DB... just saying...)
>
> On Tue, 29 Jun 2021 at 17:20, Rakesh Venkatesh 
> wrote:
>
> > Thanks all for the response. I was on 4.14 and didnt see this. will check
> > it in 4.16
> >
> > On Tue, Jun 29, 2021 at 5:12 PM Wei ZHOU  wrote:
> >
> > > yes.
> > >
> > > There is an icon on the UI which does exactly the same.
> > >
> > > -Wei
> > >
> > > On Tue, 29 Jun 2021 at 16:16, Wido den Hollander 
> wrote:
> > >
> > > >
> > > >
> > > > Op 29-06-2021 om 15:44 schreef Rakesh Venkatesh:
> > > > > Hello folks
> > > > >
> > > > > Is there a way to disable a particular storage pool so that it
> won't
> > be
> > > > > used for further volume allocation? I don't want to enable the
> > > > maintenance
> > > > > mode as that will turn off the VM's whose volumes running on that
> > > pool. I
> > > > > don't want to use a global setting also since this will come into
> > > effect
> > > > > after the threshold value is reached.
> > > > >
> > > > > In some cases even if the pool is just 10% allocated, I still want
> to
> > > > > disable it so that the current volumes will keep existing on the
> same
> > > > pool
> > > > > and at the same time further deployment of volumes on this pool is
> > > > disabled.
> > > > >
> > > > > I looked at the storge tags options but that involves adding tags
> to
> > > > > service offerings and I dont want to mess up with that tags. Should
> > we
> > > > add
> > > > > a new api to enable this feature? or any other better suggestion?
> > > > >
> > > >
> > > > See:
> > > >
> > >
> >
> https://cloudstack.apache.org/api/apidocs-4.15/apis/updateStoragePool.html
> > > >
> > > > The 'enabled' flag does exactly what you want:
> > > >
> > > > 'false to disable the pool for allocation of new volumes, true to
> > enable
> > > > it back.'
> > > >
> > > > Wido
> > > >
> > > >
> > >
> >
> >
> > --
> > Thanks and regards
> > Rakesh venkatesh
> >
>
>
> --
>
> Andrija Panić
>


-- 
Thanks and regards
Rakesh venkatesh


Re: Disabling a storage pool

2021-06-29 Thread Andrija Panic
(you can also hack the DB... just saying...)

On Tue, 29 Jun 2021 at 17:20, Rakesh Venkatesh 
wrote:

> Thanks all for the response. I was on 4.14 and didnt see this. will check
> it in 4.16
>
> On Tue, Jun 29, 2021 at 5:12 PM Wei ZHOU  wrote:
>
> > yes.
> >
> > There is an icon on the UI which does exactly the same.
> >
> > -Wei
> >
> > On Tue, 29 Jun 2021 at 16:16, Wido den Hollander  wrote:
> >
> > >
> > >
> > > Op 29-06-2021 om 15:44 schreef Rakesh Venkatesh:
> > > > Hello folks
> > > >
> > > > Is there a way to disable a particular storage pool so that it won't
> be
> > > > used for further volume allocation? I don't want to enable the
> > > maintenance
> > > > mode as that will turn off the VM's whose volumes running on that
> > pool. I
> > > > don't want to use a global setting also since this will come into
> > effect
> > > > after the threshold value is reached.
> > > >
> > > > In some cases even if the pool is just 10% allocated, I still want to
> > > > disable it so that the current volumes will keep existing on the same
> > > pool
> > > > and at the same time further deployment of volumes on this pool is
> > > disabled.
> > > >
> > > > I looked at the storge tags options but that involves adding tags to
> > > > service offerings and I dont want to mess up with that tags. Should
> we
> > > add
> > > > a new api to enable this feature? or any other better suggestion?
> > > >
> > >
> > > See:
> > >
> >
> https://cloudstack.apache.org/api/apidocs-4.15/apis/updateStoragePool.html
> > >
> > > The 'enabled' flag does exactly what you want:
> > >
> > > 'false to disable the pool for allocation of new volumes, true to
> enable
> > > it back.'
> > >
> > > Wido
> > >
> > >
> >
>
>
> --
> Thanks and regards
> Rakesh venkatesh
>


-- 

Andrija Panić


Re: Disabling a storage pool

2021-06-29 Thread Rakesh Venkatesh
Thanks all for the response. I was on 4.14 and didnt see this. will check
it in 4.16

On Tue, Jun 29, 2021 at 5:12 PM Wei ZHOU  wrote:

> yes.
>
> There is an icon on the UI which does exactly the same.
>
> -Wei
>
> On Tue, 29 Jun 2021 at 16:16, Wido den Hollander  wrote:
>
> >
> >
> > Op 29-06-2021 om 15:44 schreef Rakesh Venkatesh:
> > > Hello folks
> > >
> > > Is there a way to disable a particular storage pool so that it won't be
> > > used for further volume allocation? I don't want to enable the
> > maintenance
> > > mode as that will turn off the VM's whose volumes running on that
> pool. I
> > > don't want to use a global setting also since this will come into
> effect
> > > after the threshold value is reached.
> > >
> > > In some cases even if the pool is just 10% allocated, I still want to
> > > disable it so that the current volumes will keep existing on the same
> > pool
> > > and at the same time further deployment of volumes on this pool is
> > disabled.
> > >
> > > I looked at the storge tags options but that involves adding tags to
> > > service offerings and I dont want to mess up with that tags. Should we
> > add
> > > a new api to enable this feature? or any other better suggestion?
> > >
> >
> > See:
> >
> https://cloudstack.apache.org/api/apidocs-4.15/apis/updateStoragePool.html
> >
> > The 'enabled' flag does exactly what you want:
> >
> > 'false to disable the pool for allocation of new volumes, true to enable
> > it back.'
> >
> > Wido
> >
> >
>


-- 
Thanks and regards
Rakesh venkatesh


Re: Disabling a storage pool

2021-06-29 Thread Wei ZHOU
yes.

There is an icon on the UI which does exactly the same.

-Wei

On Tue, 29 Jun 2021 at 16:16, Wido den Hollander  wrote:

>
>
> Op 29-06-2021 om 15:44 schreef Rakesh Venkatesh:
> > Hello folks
> >
> > Is there a way to disable a particular storage pool so that it won't be
> > used for further volume allocation? I don't want to enable the
> maintenance
> > mode as that will turn off the VM's whose volumes running on that pool. I
> > don't want to use a global setting also since this will come into effect
> > after the threshold value is reached.
> >
> > In some cases even if the pool is just 10% allocated, I still want to
> > disable it so that the current volumes will keep existing on the same
> pool
> > and at the same time further deployment of volumes on this pool is
> disabled.
> >
> > I looked at the storge tags options but that involves adding tags to
> > service offerings and I dont want to mess up with that tags. Should we
> add
> > a new api to enable this feature? or any other better suggestion?
> >
>
> See:
> https://cloudstack.apache.org/api/apidocs-4.15/apis/updateStoragePool.html
>
> The 'enabled' flag does exactly what you want:
>
> 'false to disable the pool for allocation of new volumes, true to enable
> it back.'
>
> Wido
>
>


Re: Disabling a storage pool

2021-06-29 Thread Wido den Hollander




Op 29-06-2021 om 15:44 schreef Rakesh Venkatesh:

Hello folks

Is there a way to disable a particular storage pool so that it won't be
used for further volume allocation? I don't want to enable the maintenance
mode as that will turn off the VM's whose volumes running on that pool. I
don't want to use a global setting also since this will come into effect
after the threshold value is reached.

In some cases even if the pool is just 10% allocated, I still want to
disable it so that the current volumes will keep existing on the same pool
and at the same time further deployment of volumes on this pool is disabled.

I looked at the storge tags options but that involves adding tags to
service offerings and I dont want to mess up with that tags. Should we add
a new api to enable this feature? or any other better suggestion?



See: 
https://cloudstack.apache.org/api/apidocs-4.15/apis/updateStoragePool.html


The 'enabled' flag does exactly what you want:

'false to disable the pool for allocation of new volumes, true to enable 
it back.'


Wido



Disabling a storage pool

2021-06-29 Thread Rakesh Venkatesh
Hello folks

Is there a way to disable a particular storage pool so that it won't be
used for further volume allocation? I don't want to enable the maintenance
mode as that will turn off the VM's whose volumes running on that pool. I
don't want to use a global setting also since this will come into effect
after the threshold value is reached.

In some cases even if the pool is just 10% allocated, I still want to
disable it so that the current volumes will keep existing on the same pool
and at the same time further deployment of volumes on this pool is disabled.

I looked at the storge tags options but that involves adding tags to
service offerings and I dont want to mess up with that tags. Should we add
a new api to enable this feature? or any other better suggestion?

-- 
Thanks and regards
Rakesh