pybind/ceph_volume_client: use cephfs mkdirs api
This _mkdir_p should never have worked as the first directory it tries
to stat/mkdir is "", the empty string. This causes an assertion in the
client. I'm not sure how this code ever functioned without causing
faults. They look like:
2021-07-01 02:15:04.449
7f7612b5ab80 3 client.178735 statx enter (relpath want 2047)
The assertion is caused by a C++ exception:
/usr/include/c++/8/string_view:172: constexpr const _CharT& std::basic_string_view<_CharT, _Traits>::operator[](std::basic_string_view<_CharT, _Traits>::size_type) const [with _CharT = char$_Traits = std::char_traits<char>; std::basic_string_view<_CharT, _Traits>::size_type = long unsigned int]: Assertion '__pos < this->_M_len' failed.
Aborted (core dumped)
Where relpath is just the path passed to Client::stat.
This commit only applies to Pacific and older because master no longer
has this library.
Fixes: https://tracker.ceph.com/issues/51492
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
0fb05aea8a6e12c37a9b54641715a9a94ae1366f)