aa851db31f
1, add storage backend rook ceph for container-based ceph cluster 2, create puppet rook.py 3, update sysinv-agent audit function rook ceph provision disk with bluestore, which create a vg and lv update sysinv-agent audition function, so after rook-ceph applied add rook-ceph created vg named ceph-xxxxx to sysinv-db 4, update lvm filter for rook-ceph provisioned osd Story: 2005527 Task: 39452 Depends-On: https://review.opendev.org/#/c/713084/ Depends-On: https://review.opendev.org/c/starlingx/rook-ceph/+/716792 Change-Id: If8c1204dd3c7cc25487b2f645ace9aa680d32d59 Signed-off-by: Martin, Chen <haochuan.z.chen@intel.com>
25 lines
668 B
Python
25 lines
668 B
Python
#
|
|
# Copyright (c) 2020 Intel Corporation, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
from sysinv.db import api as db_api
|
|
from sysinv.objects import base
|
|
from sysinv.objects import storage_backend
|
|
|
|
|
|
class StorageCephRook(storage_backend.StorageBackend):
|
|
|
|
dbapi = db_api.get_instance()
|
|
|
|
fields = dict({}, **storage_backend.StorageBackend.fields)
|
|
|
|
@base.remotable_classmethod
|
|
def get_by_uuid(cls, context, uuid):
|
|
return cls.dbapi.storage_ceph_rook_get(uuid)
|
|
|
|
def save_changes(self, context, updates):
|
|
self.dbapi.storage_ceph_rook_update(self.uuid, # pylint: disable=no-member
|
|
updates)
|