]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonCap: allow 'osd destroy-new' with bootstrap-osd caps
authorSage Weil <sage@redhat.com>
Tue, 5 Jun 2018 22:30:39 +0000 (17:30 -0500)
committerSage Weil <sage@redhat.com>
Tue, 5 Jun 2018 22:35:05 +0000 (17:35 -0500)
This let's ceph-volume use the new command.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonCap.cc

index d5f18419a3c3733da5a250f65fcee9291ea35f25..bd813cfd61f0044dda2bd6fd7e39bc4cfedc11cc 100644 (file)
@@ -217,6 +217,7 @@ void MonCapGrant::expand_profile_mon(const EntityName& name) const
     profile_grants.push_back(MonCapGrant("osd", MON_CAP_R));  // read osdmap
     profile_grants.push_back(MonCapGrant("mon getmap"));
     profile_grants.push_back(MonCapGrant("osd new"));
+    profile_grants.push_back(MonCapGrant("osd destroy-new"));
   }
   if (profile == "bootstrap-mds") {
     profile_grants.push_back(MonCapGrant("mon", MON_CAP_R));  // read monmap