Re: [ceph-users] Cannot delete a pool

2018-03-01 Thread Max Cuttins

 and now it worked.
 maybe a typo in my first command.

Sorry


Il 01/03/2018 17:28, David Turner ha scritto:
When dealing with the admin socket you need to be an admin.  `sudu` or 
`sudo -u ceph` ought to get you around that.


I was able to delete a pool just by using the injectargs that you 
showed above.


ceph tell mon.\* injectargs '--mon-allow-pool-delete=true'
ceph osd pool rm pool_name pool_name --yes-i-really-really-mean-it
ceph tell mon.\* injectargs '--mon-allow-pool-delete=false'

If you see the warning 'not observed, change may require restart' you 
can check to see if it took effect or not by asking the daemon what 
it's setting is `ceph daemon mon.ceph_node1 config get 
mon_allow_pool_delete`.


On Thu, Mar 1, 2018 at 10:41 AM Max Cuttins > wrote:


I get:

#ceph daemon mon.0 config set mon_allow_pool_delete true
admin_socket: exception getting command descriptions: [Errno 13]
Permission denied


Il 01/03/2018 14:00, Eugen Block ha scritto:
> It's not necessary to restart a mon if you just want to delete a
pool,
> even if the "not observed" message appears. And I would not
recommend
> to permanently enable the "easy" way of deleting a pool. If you are
> not able to delete the pool after "ceph tell mon ..." try this:
>
> ceph daemon mon. config set mon_allow_pool_delete true
>
> and then retry deleting the pool. This works for me without
restarting
> any services or changing config files.
>
> Regards
>
>
> Zitat von Ronny Aasen >:
>
>> On 01. mars 2018 13:04, Max Cuttins wrote:
>>> I was testing IO and I created a bench pool.
>>>
>>> But if I tried to delete I get:
>>>
>>>    Error EPERM: pool deletion is disabled; you must first set the
>>>    mon_allow_pool_delete config option to true before you can
destroy a
>>>    pool
>>>
>>> So I run:
>>>
>>>    ceph tell mon.\* injectargs '--mon-allow-pool-delete=true'
>>>    mon.ceph-node1: injectargs:mon_allow_pool_delete = 'true' (not
>>>    observed, change may require restart)
>>>    mon.ceph-node2: injectargs:mon_allow_pool_delete = 'true' (not
>>>    observed, change may require restart)
>>>    mon.ceph-node3: injectargs:mon_allow_pool_delete = 'true' (not
>>>    observed, change may require restart)
>>>
>>> I restarted all the nodes.
>>> But the flag has not been observed.
>>>
>>> Is this the right way to remove a pool?
>>
>> i think you need to set the option in the ceph.conf of the
monitors.
>> and then restart the mon's one by one.
>>
>> afaik that is by design.
>>

https://blog.widodh.nl/2015/04/protecting-your-ceph-pools-against-removal-or-property-changes/
>>
>>
>> kind regards
>> Ronny Aasen
>> ___
>> ceph-users mailing list
>> ceph-users@lists.ceph.com 
>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
>
>

___
ceph-users mailing list
ceph-users@lists.ceph.com 
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Cannot delete a pool

2018-03-01 Thread David Turner
When dealing with the admin socket you need to be an admin.  `sudu` or
`sudo -u ceph` ought to get you around that.

I was able to delete a pool just by using the injectargs that you showed
above.

ceph tell mon.\* injectargs '--mon-allow-pool-delete=true'
ceph osd pool rm pool_name pool_name --yes-i-really-really-mean-it
ceph tell mon.\* injectargs '--mon-allow-pool-delete=false'

If you see the warning 'not observed, change may require restart' you can
check to see if it took effect or not by asking the daemon what it's
setting is `ceph daemon mon.ceph_node1 config get mon_allow_pool_delete`.

On Thu, Mar 1, 2018 at 10:41 AM Max Cuttins  wrote:

> I get:
>
> #ceph daemon mon.0 config set mon_allow_pool_delete true
> admin_socket: exception getting command descriptions: [Errno 13]
> Permission denied
>
>
> Il 01/03/2018 14:00, Eugen Block ha scritto:
> > It's not necessary to restart a mon if you just want to delete a pool,
> > even if the "not observed" message appears. And I would not recommend
> > to permanently enable the "easy" way of deleting a pool. If you are
> > not able to delete the pool after "ceph tell mon ..." try this:
> >
> > ceph daemon mon. config set mon_allow_pool_delete true
> >
> > and then retry deleting the pool. This works for me without restarting
> > any services or changing config files.
> >
> > Regards
> >
> >
> > Zitat von Ronny Aasen :
> >
> >> On 01. mars 2018 13:04, Max Cuttins wrote:
> >>> I was testing IO and I created a bench pool.
> >>>
> >>> But if I tried to delete I get:
> >>>
> >>>Error EPERM: pool deletion is disabled; you must first set the
> >>>mon_allow_pool_delete config option to true before you can destroy a
> >>>pool
> >>>
> >>> So I run:
> >>>
> >>>ceph tell mon.\* injectargs '--mon-allow-pool-delete=true'
> >>>mon.ceph-node1: injectargs:mon_allow_pool_delete = 'true' (not
> >>>observed, change may require restart)
> >>>mon.ceph-node2: injectargs:mon_allow_pool_delete = 'true' (not
> >>>observed, change may require restart)
> >>>mon.ceph-node3: injectargs:mon_allow_pool_delete = 'true' (not
> >>>observed, change may require restart)
> >>>
> >>> I restarted all the nodes.
> >>> But the flag has not been observed.
> >>>
> >>> Is this the right way to remove a pool?
> >>
> >> i think you need to set the option in the ceph.conf of the monitors.
> >> and then restart the mon's one by one.
> >>
> >> afaik that is by design.
> >>
> https://blog.widodh.nl/2015/04/protecting-your-ceph-pools-against-removal-or-property-changes/
> >>
> >>
> >> kind regards
> >> Ronny Aasen
> >> ___
> >> ceph-users mailing list
> >> ceph-users@lists.ceph.com
> >> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> >
> >
> >
>
> ___
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Cannot delete a pool

2018-03-01 Thread Jean-Charles Lopez
Hi,

connect to the ceph-node1 machine and run : ceph daemon mon.ceph-node1 config 
set mon_allow_pool_delete true

You are just using the wrong parameter as an ID

JC

> On Mar 1, 2018, at 07:41, Max Cuttins  wrote:
> 
> I get:
> 
> #ceph daemon mon.0 config set mon_allow_pool_delete true
> admin_socket: exception getting command descriptions: [Errno 13] Permission 
> denied
> 
> 
> Il 01/03/2018 14:00, Eugen Block ha scritto:
>> It's not necessary to restart a mon if you just want to delete a pool, even 
>> if the "not observed" message appears. And I would not recommend to 
>> permanently enable the "easy" way of deleting a pool. If you are not able to 
>> delete the pool after "ceph tell mon ..." try this:
>> 
>> ceph daemon mon. config set mon_allow_pool_delete true
>> 
>> and then retry deleting the pool. This works for me without restarting any 
>> services or changing config files.
>> 
>> Regards
>> 
>> 
>> Zitat von Ronny Aasen :
>> 
>>> On 01. mars 2018 13:04, Max Cuttins wrote:
 I was testing IO and I created a bench pool.
 
 But if I tried to delete I get:
 
Error EPERM: pool deletion is disabled; you must first set the
mon_allow_pool_delete config option to true before you can destroy a
pool
 
 So I run:
 
ceph tell mon.\* injectargs '--mon-allow-pool-delete=true'
mon.ceph-node1: injectargs:mon_allow_pool_delete = 'true' (not
observed, change may require restart)
mon.ceph-node2: injectargs:mon_allow_pool_delete = 'true' (not
observed, change may require restart)
mon.ceph-node3: injectargs:mon_allow_pool_delete = 'true' (not
observed, change may require restart)
 
 I restarted all the nodes.
 But the flag has not been observed.
 
 Is this the right way to remove a pool?
>>> 
>>> i think you need to set the option in the ceph.conf of the monitors.
>>> and then restart the mon's one by one.
>>> 
>>> afaik that is by design.
>>> https://blog.widodh.nl/2015/04/protecting-your-ceph-pools-against-removal-or-property-changes/
>>>  
>>> 
>>> kind regards
>>> Ronny Aasen
>>> ___
>>> ceph-users mailing list
>>> ceph-users@lists.ceph.com
>>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>> 
>> 
>> 
> 
> ___
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Cannot delete a pool

2018-03-01 Thread Max Cuttins

I get:

#ceph daemon mon.0 config set mon_allow_pool_delete true
admin_socket: exception getting command descriptions: [Errno 13] 
Permission denied



Il 01/03/2018 14:00, Eugen Block ha scritto:
It's not necessary to restart a mon if you just want to delete a pool, 
even if the "not observed" message appears. And I would not recommend 
to permanently enable the "easy" way of deleting a pool. If you are 
not able to delete the pool after "ceph tell mon ..." try this:


ceph daemon mon. config set mon_allow_pool_delete true

and then retry deleting the pool. This works for me without restarting 
any services or changing config files.


Regards


Zitat von Ronny Aasen :


On 01. mars 2018 13:04, Max Cuttins wrote:

I was testing IO and I created a bench pool.

But if I tried to delete I get:

   Error EPERM: pool deletion is disabled; you must first set the
   mon_allow_pool_delete config option to true before you can destroy a
   pool

So I run:

   ceph tell mon.\* injectargs '--mon-allow-pool-delete=true'
   mon.ceph-node1: injectargs:mon_allow_pool_delete = 'true' (not
   observed, change may require restart)
   mon.ceph-node2: injectargs:mon_allow_pool_delete = 'true' (not
   observed, change may require restart)
   mon.ceph-node3: injectargs:mon_allow_pool_delete = 'true' (not
   observed, change may require restart)

I restarted all the nodes.
But the flag has not been observed.

Is this the right way to remove a pool?


i think you need to set the option in the ceph.conf of the monitors.
and then restart the mon's one by one.

afaik that is by design.
https://blog.widodh.nl/2015/04/protecting-your-ceph-pools-against-removal-or-property-changes/ 



kind regards
Ronny Aasen
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com






___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Cannot delete a pool

2018-03-01 Thread Eugen Block
It's not necessary to restart a mon if you just want to delete a pool,  
even if the "not observed" message appears. And I would not recommend  
to permanently enable the "easy" way of deleting a pool. If you are  
not able to delete the pool after "ceph tell mon ..." try this:


ceph daemon mon. config set mon_allow_pool_delete true

and then retry deleting the pool. This works for me without restarting  
any services or changing config files.


Regards


Zitat von Ronny Aasen :


On 01. mars 2018 13:04, Max Cuttins wrote:

I was testing IO and I created a bench pool.

But if I tried to delete I get:

   Error EPERM: pool deletion is disabled; you must first set the
   mon_allow_pool_delete config option to true before you can destroy a
   pool

So I run:

   ceph tell mon.\* injectargs '--mon-allow-pool-delete=true'
   mon.ceph-node1: injectargs:mon_allow_pool_delete = 'true' (not
   observed, change may require restart)
   mon.ceph-node2: injectargs:mon_allow_pool_delete = 'true' (not
   observed, change may require restart)
   mon.ceph-node3: injectargs:mon_allow_pool_delete = 'true' (not
   observed, change may require restart)

I restarted all the nodes.
But the flag has not been observed.

Is this the right way to remove a pool?


i think you need to set the option in the ceph.conf of the monitors.
and then restart the mon's one by one.

afaik that is by design.
https://blog.widodh.nl/2015/04/protecting-your-ceph-pools-against-removal-or-property-changes/

kind regards
Ronny Aasen
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




--
Eugen Block voice   : +49-40-559 51 75
NDE Netzdesign und -entwicklung AG  fax : +49-40-559 51 77
Postfach 61 03 15
D-22423 Hamburg e-mail  : ebl...@nde.ag

Vorsitzende des Aufsichtsrates: Angelika Mozdzen
  Sitz und Registergericht: Hamburg, HRB 90934
  Vorstand: Jens-U. Mozdzen
   USt-IdNr. DE 814 013 983

___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Cannot delete a pool

2018-03-01 Thread Ronny Aasen

On 01. mars 2018 13:04, Max Cuttins wrote:

I was testing IO and I created a bench pool.

But if I tried to delete I get:

Error EPERM: pool deletion is disabled; you must first set the
mon_allow_pool_delete config option to true before you can destroy a
pool

So I run:

ceph tell mon.\* injectargs '--mon-allow-pool-delete=true'
mon.ceph-node1: injectargs:mon_allow_pool_delete = 'true' (not
observed, change may require restart)
mon.ceph-node2: injectargs:mon_allow_pool_delete = 'true' (not
observed, change may require restart)
mon.ceph-node3: injectargs:mon_allow_pool_delete = 'true' (not
observed, change may require restart)

I restarted all the nodes.
But the flag has not been observed.

Is this the right way to remove a pool?


i think you need to set the option in the ceph.conf of the monitors.
and then restart the mon's one by one.

afaik that is by design.
https://blog.widodh.nl/2015/04/protecting-your-ceph-pools-against-removal-or-property-changes/

kind regards
Ronny Aasen
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Cannot delete a pool

2018-03-01 Thread Chengguang Xu
> 
> 在 2018年3月1日,下午8:04,Max Cuttins  写道:
> 
> I was testing IO and I created a bench pool.
> 
> But if I tried to delete I get:
> Error EPERM: pool deletion is disabled; you must first set the 
> mon_allow_pool_delete config option to true before you can destroy a pool
> 
> So I run:
> 
> ceph tell mon.\* injectargs '--mon-allow-pool-delete=true'
> mon.ceph-node1: injectargs:mon_allow_pool_delete = 'true' (not observed, 
> change may require restart)
> mon.ceph-node2: injectargs:mon_allow_pool_delete = 'true' (not observed, 
> change may require restart)
> mon.ceph-node3: injectargs:mon_allow_pool_delete = 'true' (not observed, 
> change may require restart)
> 
> I restarted all the nodes.
> But the flag has not been observed.
> 
> Is this the right way to remove a pool?


IIRC, “not observed” means the option value could not dynamically get changed 
during online. 
So you should set the option in the config file and restart monitor nodes.


Thanks,
Chengguang.

___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


[ceph-users] Cannot delete a pool

2018-03-01 Thread Max Cuttins

I was testing IO and I created a bench pool.

But if I tried to delete I get:

   Error EPERM: pool deletion is disabled; you must first set the
   mon_allow_pool_delete config option to true before you can destroy a
   pool

So I run:

   ceph tell mon.\* injectargs '--mon-allow-pool-delete=true'
   mon.ceph-node1: injectargs:mon_allow_pool_delete = 'true' (not
   observed, change may require restart)
   mon.ceph-node2: injectargs:mon_allow_pool_delete = 'true' (not
   observed, change may require restart)
   mon.ceph-node3: injectargs:mon_allow_pool_delete = 'true' (not
   observed, change may require restart)

I restarted all the nodes.
But the flag has not been observed.

Is this the right way to remove a pool?



___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com