Commit 664e46e8 authored by Filippos Giannakos's avatar Filippos Giannakos
Browse files

Remove automatic RADOS pool creation.

If a specified RADOS pool does not exist, do not try and create it. Throw an
exception instead.
parent 934ee3af
......@@ -54,9 +54,6 @@ class RadosBlocker(object):
rados = Rados(conffile=CEPH_CONF_FILE)
rados.connect()
if not rados.pool_exists(blockpool):
rados.create_pool(blockpool)
ioctx = rados.open_ioctx(blockpool)
hashtype = params['hashtype']
......
......@@ -53,9 +53,6 @@ class RadosMapper(object):
rados = Rados(conffile=CEPH_CONF_FILE)
rados.connect()
if not rados.pool_exists(mappool):
rados.create_pool(mappool)
ioctx = rados.open_ioctx(mappool)
self.mappool = mappool
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment