All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Rbd: add listwatchers command
@ 2015-01-21 14:32 Li Wang
  2015-01-21 16:58 ` Sage Weil
  0 siblings, 1 reply; 3+ messages in thread
From: Li Wang @ 2015-01-21 14:32 UTC (permalink / raw)
  To: Sage Weil, Josh Durgin; +Cc: ceph-devel, Yunchuan Wen, Li Wang

Currently, RBD does not provide an easy way to 
consult who opened a specied image, this complicates
the cloud maintenance, sometimes the administrator 
found that a RBD image could not be deleted with 
an error 'image has watchers', but no further 
information available. The RADOS has a command to 
show the watchers of an object, but the commands 
at RADOS level are not supposed to be exposed to a 
cloud administrator, and it is not clear for a 
non-expert administrator to how to associate an 
opened RBD with a corresponding watched object. 
This motivates us to add an RBD command to list the 
information of the clients who opened a RBD image to 
facilitate the cloud maintenance.

The patches are at:
https://github.com/ceph/ceph/pull/3435

Yunchuan Wen (3):
  rbd: add listwatchers command to list the watchers of an image
  test: add rbd listwatchers to src/test/cli/rbd/help.t
  man: add rbd listwatchers to doc/man/8/rbd.rst

 doc/man/8/rbd.rst       |  3 +++
 src/rbd.cc              | 63 +++++++++++++++++++++++++++++++++++++++++++++++--
 src/test/cli/rbd/help.t |  1 +
 3 files changed, 65 insertions(+), 2 deletions(-)

-- 
1.9.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Rbd: add listwatchers command
  2015-01-21 14:32 [PATCH] Rbd: add listwatchers command Li Wang
@ 2015-01-21 16:58 ` Sage Weil
  2015-01-22  4:55   ` Li Wang
  0 siblings, 1 reply; 3+ messages in thread
From: Sage Weil @ 2015-01-21 16:58 UTC (permalink / raw)
  To: Li Wang; +Cc: Josh Durgin, ceph-devel, Yunchuan Wen

On Wed, 21 Jan 2015, Li Wang wrote:
> Currently, RBD does not provide an easy way to 
> consult who opened a specied image, this complicates
> the cloud maintenance, sometimes the administrator 
> found that a RBD image could not be deleted with 
> an error 'image has watchers', but no further 
> information available. The RADOS has a command to 
> show the watchers of an object, but the commands 
> at RADOS level are not supposed to be exposed to a 
> cloud administrator, and it is not clear for a 
> non-expert administrator to how to associate an 
> opened RBD with a corresponding watched object. 
> This motivates us to add an RBD command to list the 
> information of the clients who opened a RBD image to 
> facilitate the cloud maintenance.

Perhaps this should just be rolled into the existing 'rbd info' command.  
More people will see it and there's no additional cost over what info is 
already doing...

sage





> 
> The patches are at:
> https://github.com/ceph/ceph/pull/3435
> 
> Yunchuan Wen (3):
>   rbd: add listwatchers command to list the watchers of an image
>   test: add rbd listwatchers to src/test/cli/rbd/help.t
>   man: add rbd listwatchers to doc/man/8/rbd.rst
> 
>  doc/man/8/rbd.rst       |  3 +++
>  src/rbd.cc              | 63 +++++++++++++++++++++++++++++++++++++++++++++++--
>  src/test/cli/rbd/help.t |  1 +
>  3 files changed, 65 insertions(+), 2 deletions(-)
> 
> -- 
> 1.9.1
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Rbd: add listwatchers command
  2015-01-21 16:58 ` Sage Weil
@ 2015-01-22  4:55   ` Li Wang
  0 siblings, 0 replies; 3+ messages in thread
From: Li Wang @ 2015-01-22  4:55 UTC (permalink / raw)
  To: Sage Weil; +Cc: Josh Durgin, ceph-devel, Yunchuan Wen

My thoughts, 'rbd info' is intended to describe
the STATIC, intrinsic properties of an image, while
the watchers information are dynamic, something like
'rbd showmapped', what is your opinion?

Cheers,
Li Wang

On 2015/1/22 9:35, Sage Weil wrote:
> On Wed, 21 Jan 2015, Li Wang wrote:
>> Currently, RBD does not provide an easy way to
>> consult who opened a specied image, this complicates
>> the cloud maintenance, sometimes the administrator
>> found that a RBD image could not be deleted with
>> an error 'image has watchers', but no further
>> information available. The RADOS has a command to
>> show the watchers of an object, but the commands
>> at RADOS level are not supposed to be exposed to a
>> cloud administrator, and it is not clear for a
>> non-expert administrator to how to associate an
>> opened RBD with a corresponding watched object.
>> This motivates us to add an RBD command to list the
>> information of the clients who opened a RBD image to
>> facilitate the cloud maintenance.
>
> Perhaps this should just be rolled into the existing 'rbd info' command.
> More people will see it and there's no additional cost over what info is
> already doing...
>
> sage
>
>
>
>
>
>>
>> The patches are at:
>> https://github.com/ceph/ceph/pull/3435
>>
>> Yunchuan Wen (3):
>>    rbd: add listwatchers command to list the watchers of an image
>>    test: add rbd listwatchers to src/test/cli/rbd/help.t
>>    man: add rbd listwatchers to doc/man/8/rbd.rst
>>
>>   doc/man/8/rbd.rst       |  3 +++
>>   src/rbd.cc              | 63 +++++++++++++++++++++++++++++++++++++++++++++++--
>>   src/test/cli/rbd/help.t |  1 +
>>   3 files changed, 65 insertions(+), 2 deletions(-)
>>
>> --
>> 1.9.1
>>
>>
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-22  5:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-21 14:32 [PATCH] Rbd: add listwatchers command Li Wang
2015-01-21 16:58 ` Sage Weil
2015-01-22  4:55   ` Li Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.