Tatyana Leontovich | a754ce5 | 2017-11-13 16:46:43 +0200 | [diff] [blame] | 1 | # Copyright 2017 Mirantis, Inc. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 | # not use this file except in compliance with the License. You may obtain |
| 5 | # a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations |
| 13 | # under the License. |
| 14 | |
| 15 | from tcp_tests.managers.execute_commands import ExecuteCommandsMixin |
| 16 | from tcp_tests import logger |
| 17 | |
| 18 | LOG = logger.logger |
| 19 | |
| 20 | |
| 21 | class CephManager(ExecuteCommandsMixin): |
| 22 | """docstring for CephManager""" |
| 23 | |
| 24 | __config = None |
| 25 | __underlay = None |
Tatyana Leontovich | a754ce5 | 2017-11-13 16:46:43 +0200 | [diff] [blame] | 26 | |
Vladimir Jigulin | ee1faa5 | 2018-06-25 13:00:51 +0400 | [diff] [blame] | 27 | def __init__(self, config, underlay, salt): |
Tatyana Leontovich | a754ce5 | 2017-11-13 16:46:43 +0200 | [diff] [blame] | 28 | self.__config = config |
| 29 | self.__underlay = underlay |
Tatyana Leontovich | a754ce5 | 2017-11-13 16:46:43 +0200 | [diff] [blame] | 30 | self._salt = salt |
| 31 | super(CephManager, self).__init__( |
| 32 | config=config, underlay=underlay) |
| 33 | |
| 34 | def install(self, commands): |
| 35 | self.execute_commands(commands, |
| 36 | label='Install Ceph') |
| 37 | self.__config.ceph.ceph_installed = True |