Signed-off-by: Sage Weil <sage@redhat.com>
# Specify a bad --type
os.mkdir(OSDDIR + "/fakeosd")
cmd = ("./ceph-objectstore-tool --data-path " + OSDDIR + "/{osd} --type foobar --op list --pgid {pg}").format(osd="fakeosd", pg=ONEPG)
- ERRORS += test_failure(cmd, "Need a valid --type e.g. filestore, memstore")
+ ERRORS += test_failure(cmd, "Unable to create store of type foobar")
# Don't specify a data-path
cmd = "./ceph-objectstore-tool --type memstore --op list --pgid {pg}".format(dir=OSDDIR, osd=ONEOSD, pg=ONEPG)
ObjectStore *fs = ObjectStore::create(g_ceph_context, type, dpath, jpath, flags);
if (fs == NULL) {
- cerr << "Need a valid --type e.g. filestore, memstore" << std::endl;
+ cerr << "Unable to create store of type " << type << std::endl;
myexit(1);
}