]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: informative message when erasure-code-profile set fails 4064/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 18 Mar 2015 10:40:36 +0000 (11:40 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 18 Mar 2015 10:53:20 +0000 (11:53 +0100)
commitb92f9cf73e144121e366dcf9735f8070aa019f04
treebe721cca1e3024bf4d4a76edd5ef002456a6e769
parentc93ab8668f349867dfd2a41c471a9c56852bd28c
mon: informative message when erasure-code-profile set fails

When erasure-code-profile set refuses to override an existing profile,
it may be non trivial to figure out why. For instance:

   ceph osd set default ruleset-failure-domain=host

fails with:

   Error EPERM: will not override erasure code profile default

although ruleset-failure-domain=host is documented to be the
default. The error message now includes the two profiles that have been
compared to not be equal so that the user can verify the difference.

   Error EPERM: will not override erasure code profile default
   because the existing profile
   {directory=.libs,k=2,m=1,plugin=jerasure,technique=reed_sol_van}
   is different from the proposed profile
   {directory=.libs,k=2,m=1,plugin=jerasure,ruleset-failure-domain=host,technique=reed_sol_van}

http://tracker.ceph.com/issues/10488 Fixes: #10488

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/mon/OSDMonitor.cc
src/test/mon/osd-erasure-code-profile.sh