All of lore.kernel.org
 help / color / mirror / Atom feed
* mon_command
@ 2014-03-20  2:40 David Zafman
  2014-03-20  7:08 ` mon_command Loic Dachary
  0 siblings, 1 reply; 2+ messages in thread
From: David Zafman @ 2014-03-20  2:40 UTC (permalink / raw)
  To: Sage Weil, Loic Dachary; +Cc: ceph-devel


My understanding is that are going to be using rados_mon_command() to create pools according to Tracker #7586: deprecate rados_pool_create.  What I found when building a test case for EC is that after using the mon_command to create the pool I need to use wait_for_latest_osdmap() in order to wait for the change to propagate.  The replicated pool test case using pool_create() doesn’t need to wait_for_latest_osdmap().

Should we be deprecating librados calls in favor of the very generic mon_command() interface?  I would suggest that we add the appropriate librados features to manipulate erasure coded pools.

David Zafman
Senior Developer
http://www.inktank.com

--
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] 2+ messages in thread

* Re: mon_command
  2014-03-20  2:40 mon_command David Zafman
@ 2014-03-20  7:08 ` Loic Dachary
  0 siblings, 0 replies; 2+ messages in thread
From: Loic Dachary @ 2014-03-20  7:08 UTC (permalink / raw)
  To: David Zafman; +Cc: ceph-devel

[-- Attachment #1: Type: text/plain, Size: 1366 bytes --]

Hi David,


On 20/03/2014 03:40, David Zafman wrote:> 
> My understanding is that are going to be using rados_mon_command() to create pools according to Tracker #7586: deprecate rados_pool_create.  What I found when building a test case for EC is that after using the mon_command to create the pool I need to use wait_for_latest_osdmap() in order to wait for the change to propagate.  The replicated pool test case using pool_create() doesn’t need to wait_for_latest_osdmap().
> 
> Should we be deprecating librados calls in favor of the very generic mon_command() interface?  

> I would suggest that we add the appropriate librados features to manipulate erasure coded pools.

What do you have in mind ? There are osd erasure-code-profile, osd crush rule create-erasure and the additional arguments to osd pool create can be used with rados_mon_command (or mon_command with the suggested implicit wait_for_latest_osdmap ). Anything else ?

https://github.com/ceph/ceph/blob/master/doc/dev/erasure-coded-pool.rst

Cheers

> 
> David Zafman
> Senior Developer
> http://www.inktank.com
> 
> --
> 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
> 

-- 
Loïc Dachary, Artisan Logiciel Libre


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

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

end of thread, other threads:[~2014-03-20  7:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-20  2:40 mon_command David Zafman
2014-03-20  7:08 ` mon_command Loic Dachary

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.