init();
return fs->start();
}).then([this] {
- return fs->mount();
+ return fs->mount(
+ ).handle_error(
+ crimson::stateful_ec::handle([] (const auto& ec) {
+ crimson::get_logger(
+ ceph_subsys_test
+ ).error(
+ "error mounting object store in {}: ({}) {}",
+ crimson::common::local_conf().get_val<std::string>("osd_data"),
+ ec.value(),
+ ec.message());
+ std::exit(EXIT_FAILURE);
+ }));
}).then([this] {
return seastar::do_for_each(
boost::counting_iterator<unsigned>(0),
init();
return fs->start();
}).then([this] {
- return fs->mount();
+ return fs->mount(
+ ).handle_error(
+ crimson::stateful_ec::handle([] (const auto& ec) {
+ crimson::get_logger(
+ ceph_subsys_test
+ ).error(
+ "error mounting object store in {}: ({}) {}",
+ crimson::common::local_conf().get_val<std::string>("osd_data"),
+ ec.value(),
+ ec.message());
+ std::exit(EXIT_FAILURE);
+ }));
}).then([this] {
return seastar::do_for_each(
boost::counting_iterator<unsigned>(0),