From: Alexandru Antone Date: Wed, 20 Nov 2019 16:08:18 +0000 (+0200) Subject: storageinventory: Refactor ceph key generation X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=5c3f9f389f46f719579ac4cd4065490b1723ebff;hp=5c3f9f389f46f719579ac4cd4065490b1723ebff;p=ta%2Fcm-plugins.git storageinventory: Refactor ceph key generation ceph-ansible 3.1 (and newer) refactored the handling of ceph keys by leveraging the new ceph-key ansible module, which escapes our current '$(ceph-authtool ...)' string, ending up as a literal string instead of evaluating the command and catching its output. To support the new ceph-ansible 3.1, we refactor the ceph key generation in storageinventory.py by explicitly running ceph-authtool with subprocess.check_output and passing it down via a variable. This change is backwards compatible with the current ceph-ansible 3.0. Signed-off-by: Alexandru Antone Signed-off-by: Alexandru Avadanii Change-Id: I1f0d73399429ef40f414efeb6931db111eba0faf ---