Esempio n. 1
0
import abc
import os
import six

from sysinv.common import constants
from sysinv.common import exception
from sysinv.common import utils
from sysinv.common.storage_backend_conf import StorageBackendConfig

from sysinv.openstack.common import log as logging

from sysinv.helm import common
from sysinv.helm import quoted_str

LOG = logging.getLogger('object')


@six.add_metaclass(abc.ABCMeta)
class BaseHelm(object):
    """Base class to encapsulate helm operations for chart overrides"""

    DEFAULT_REGION_NAME = 'RegionOne'
    CEPH_MON_SERVICE_PORT = 6789
    SUPPORTED_NAMESPACES = []
    SUPPORTED_APP_NAMESPACES = {}
    SYSTEM_CONTROLLER_SERVICES = [
        constants.HELM_CHART_KEYSTONE_API_PROXY,
    ]

    def __init__(self, operator):
Esempio n. 2
0
#
# Copyright (c) 2019 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#

from sysinv.common import constants
from sysinv.common import exception
from sysinv.openstack.common import log as logging

from sysinv.helm import base
from sysinv.helm import common

LOG = logging.getLogger(__name__)


class CephPoolsAuditHelm(base.BaseHelm):
    """Class to encapsulate helm operations for the ceph-pools-audit chart"""

    CHART = common.HELM_CHART_CEPH_POOLS_AUDIT
    SUPPORTED_NAMESPACES = base.BaseHelm.SUPPORTED_NAMESPACES + \
        [common.HELM_NS_STORAGE_PROVISIONER]
    SUPPORTED_APP_NAMESPACES = {
        constants.HELM_APP_PLATFORM:
        base.BaseHelm.SUPPORTED_NAMESPACES +
        [common.HELM_NS_STORAGE_PROVISIONER],
    }

    SERVICE_NAME = 'ceph-pools'

    def execute_manifest_updates(self, operator):
Esempio n. 3
0
import re
import wsme
import netaddr
import tsconfig.tsconfig as tsc

from oslo_config import cfg
from sysinv.common import constants
from sysinv.common import exception
from sysinv.common import health
from sysinv.helm import common as helm_common
from sysinv.openstack.common.gettextutils import _
from sysinv.openstack.common import log

from fm_api import constants as fm_constants

LOG = log.getLogger(__name__)

CONF = cfg.CONF

LOG = log.getLogger(__name__)

JSONPATCH_EXCEPTIONS = (jsonpatch.JsonPatchException,
                        jsonpatch.JsonPointerException,
                        KeyError)


def ip_version_to_string(ip_version):
    return str(constants.IP_FAMILIES[ip_version])


def validate_limit(limit):