Alex | dcb792f | 2021-10-04 14:24:21 -0500 | [diff] [blame^] | 1 | from cfg_checker.common import logger_cli |
| 2 | # from cfg_checker.common.exception import InvalidReturnException |
| 3 | # from cfg_checker.common.exception import ConfigException |
| 4 | # from cfg_checker.common.exception import KubeException |
| 5 | |
| 6 | from cfg_checker.nodes import KubeNodes |
| 7 | |
| 8 | |
| 9 | class CephBench(object): |
| 10 | def __info__( |
| 11 | self, |
| 12 | config |
| 13 | ): |
| 14 | self.env_config = config |
| 15 | return |
| 16 | |
| 17 | def prepare_pods(self): |
| 18 | |
| 19 | return |
| 20 | |
| 21 | def run_benchmark(self): |
| 22 | |
| 23 | return |
| 24 | |
| 25 | # Create report |
| 26 | def create_report(self): |
| 27 | |
| 28 | return |
| 29 | |
| 30 | |
| 31 | class SaltCephBench(CephBench): |
| 32 | def __init__( |
| 33 | self, |
| 34 | config |
| 35 | ): |
| 36 | logger_cli.error("ERROR: Not impelented for Sale environment!") |
| 37 | |
| 38 | # self.master = SaltNodes(config) |
| 39 | super(SaltCephBench, self).__init__( |
| 40 | config |
| 41 | ) |
| 42 | return |
| 43 | |
| 44 | |
| 45 | class KubeCephBench(CephBench): |
| 46 | def __init__(self, config): |
| 47 | self.master = KubeNodes(config) |
| 48 | super(KubeCephBench, self).__init__(config) |