]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/rbd: RBD.create() method's 'old_format' parameter now defaults to False 35183/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 11 May 2020 23:55:50 +0000 (19:55 -0400)
committerNathan Cutler <ncutler@suse.com>
Thu, 21 May 2020 17:48:59 +0000 (19:48 +0200)
commitd9754818bd3002b162319c94da62ff99549c4ee7
tree2b5b455647869c0cc4b0318aae373883bc0589da
parentda5ac139f7df8981607c8843ebc36749a70752a4
pybind/rbd: RBD.create() method's 'old_format' parameter now defaults to False

The RBD v1 format has been deprecated for numerous releases and creation of
v1 format images has been disabled since the Mimic release. This fixes
the Python API's image create() method to ensure v2 images are created by
default (and no longer throw an exception that creation of v1 images are
disabled).

Fixes: https://tracker.ceph.com/issues/45504
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 45349355f4b41c6f9de594ef34a8657230113e6b)
src/pybind/rbd/rbd.pyx
src/test/pybind/test_rbd.py