]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
erasure-code: unfound test needs a non empty file
authorLoic Dachary <loic-201408@dachary.org>
Thu, 2 Oct 2014 06:06:42 +0000 (08:06 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Thu, 2 Oct 2014 06:06:42 +0000 (08:06 +0200)
Other rados put will fail as follows

$ touch /tmp/bar
$ ./rados -p rbd put existing_3 /tmp/bar
$ ./rados -p rbd put existing_3 /tmp/bar
WARNING: could not create object: existing_3
error putting rbd/existing_3: (17) File exists

it should be considered a bug in the rados command line but needs to be
addressed separately.

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

Signed-off-by: Loic Dachary loic-201408@dachary.org
tasks/ec_lost_unfound.py

index 66912ca036f65e4514524b457aaba996a7db5af0..5a9678d8c275ce8f7e5e02629e581e3ea99c483b 100644 (file)
@@ -42,8 +42,8 @@ def task(ctx, config):
     manager.create_erasure_code_profile(profile_name, profile)
     pool = manager.create_pool_with_unique_name(erasure_code_profile_name=profile_name)
 
-    # something that is always there
-    dummyfile = '/etc/fstab'
+    # something that is always there, readable and never empty
+    dummyfile = '/etc/group'
 
     # kludge to make sure they get a map
     rados(ctx, mon, ['-p', pool, 'put', 'dummy', dummyfile])