Fix no-member errors in legacy sysinv ceph code

The set_quota_gib method was removed by:

There were still calls to that non-existant method
in the code, but that code was never being invoked
so it has been removed.

This change has no runtime impact. It is removing methods
that are never invoked (and would have failed if called).

This non-existant code was detected by pylint no-member,
but that check cannot be un-suppressed until all no-member
issues are addressed.

Test Plan:
 PASS: build / install /unlock AIO-SX

Story: 2010642
Task: 47624
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I9295d87ad0bf3e8b3c0855c0ee36d046f457d22b
This commit is contained in:
Al Bailey 2023-03-12 17:04:06 +00:00
parent 98037a1992
commit 799e44ed98
2 changed files with 1 additions and 13 deletions

View File

@ -1,7 +1,7 @@
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (c) 2016-2019 Wind River Systems, Inc.
# Copyright (c) 2016-2022 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
@ -773,15 +773,6 @@ class CephOperator(object):
return False
return True
# TODO(CephPoolsDecouple): rework - determine the existing pools
def get_pools_config(self):
for pool in CEPH_POOLS:
# Here it is okay for object pool name is either
# constants.CEPH_POOL_OBJECT_GATEWAY_NAME_JEWEL or
# constants.CEPH_POOL_OBJECT_GATEWAY_NAME_HAMMER
pool['quota_gib'] = self.set_quota_gib(pool['pool_name'])
return CEPH_POOLS
# TODO(CephPoolsDecouple): remove
# This used to be a rpc call to ceph-manager, however after
# Ceph Pools Decouple task its return value is always 0.

View File

@ -12806,9 +12806,6 @@ class ConductorManager(service.PeriodicService):
}
self._config_apply_runtime_manifest(context, config_uuid, config_dict)
def get_ceph_pools_config(self, context):
return self._ceph.get_pools_config()
def get_controllerfs_lv_sizes(self, context):
system = self.dbapi.isystem_get_one()
system_dc_role = system.get('distributed_cloud_role', None)