mirror of
https://github.com/ceph/ceph
synced 2024-12-28 06:23:08 +00:00
Merge pull request #5113 from tchaikov/wip-11840-reject-multiple-tiering
mon: disallow adding a tier on top of another tier Reviewed-by: Greg Farnum <gfarnum@redhat.com>
This commit is contained in:
commit
725b6097d0
@ -7357,6 +7357,14 @@ bool OSDMonitor::_check_become_tier(
|
||||
return false;
|
||||
}
|
||||
|
||||
if (base_pool->is_tier()) {
|
||||
*ss << "pool '" << base_pool_name << "' is already a tier of '"
|
||||
<< osdmap.get_pool_name(base_pool->tier_of) << "', "
|
||||
<< "multiple tiers are not yet supported.";
|
||||
*err = -EINVAL;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (tier_pool->is_tier()) {
|
||||
*ss << "tier pool '" << tier_pool_name << "' is already a tier of '"
|
||||
<< osdmap.get_pool_name(tier_pool->tier_of) << "'";
|
||||
|
Loading…
Reference in New Issue
Block a user