Eliminate unnecessary imported modules

In the config project,"/sysinv/sysinv/sysinv/sysinv/helm/" directory
has many files imported into the "log" but not used.
At the same time,I built a system of simplex with the latest ISO
of the community. When the system was built,the code was changed.
The system worked well and the other functional modules were not
affected.So I agree we should delete them.

Change-Id: I7816e54e5a70fe2b2d2b65e7d3a6479378c224d1
Partial-Bug: #1844095
Signed-off-by: Hang Li <lihang0166@fiberhome.com>
This commit is contained in:
Hang Li 2019-09-23 11:27:05 +08:00
parent 6f04c28cd4
commit 67c819eb62
31 changed files with 0 additions and 93 deletions

View File

@ -5,12 +5,9 @@
# #
from sysinv.common import exception from sysinv.common import exception
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import openstack from sysinv.helm import openstack
LOG = logging.getLogger(__name__)
class AodhHelm(openstack.OpenstackBaseHelm): class AodhHelm(openstack.OpenstackBaseHelm):
"""Class to encapsulate helm operations for the aodh chart""" """Class to encapsulate helm operations for the aodh chart"""

View File

@ -7,12 +7,9 @@
from sysinv.common import constants from sysinv.common import constants
from sysinv.common import exception from sysinv.common import exception
from sysinv.common import utils from sysinv.common import utils
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import openstack from sysinv.helm import openstack
LOG = logging.getLogger(__name__)
class CeilometerHelm(openstack.OpenstackBaseHelm): class CeilometerHelm(openstack.OpenstackBaseHelm):
"""Class to encapsulate helm operations for the ceilometer chart""" """Class to encapsulate helm operations for the ceilometer chart"""

View File

@ -6,13 +6,10 @@
from sysinv.common import constants from sysinv.common import constants
from sysinv.common import exception from sysinv.common import exception
from sysinv.openstack.common import log as logging
from sysinv.helm import base from sysinv.helm import base
from sysinv.helm import common from sysinv.helm import common
LOG = logging.getLogger(__name__)
class CephPoolsAuditHelm(base.BaseHelm): class CephPoolsAuditHelm(base.BaseHelm):
"""Class to encapsulate helm operations for the ceph-pools-audit chart""" """Class to encapsulate helm operations for the ceph-pools-audit chart"""

View File

@ -8,12 +8,9 @@ from sysinv.common import constants
from sysinv.common import exception from sysinv.common import exception
from sysinv.common.storage_backend_conf import StorageBackendConfig 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 common
from sysinv.helm import openstack from sysinv.helm import openstack
LOG = logging.getLogger(__name__)
class CinderHelm(openstack.OpenstackBaseHelm): class CinderHelm(openstack.OpenstackBaseHelm):
"""Class to encapsulate helm operations for the cinder chart""" """Class to encapsulate helm operations for the cinder chart"""

View File

@ -4,14 +4,11 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
from oslo_log import log as logging
from sysinv.common import exception from sysinv.common import exception
from sysinv.common import utils from sysinv.common import utils
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import elastic from sysinv.helm import elastic
LOG = logging.getLogger(__name__)
class ElasticsearchHelm(elastic.ElasticBaseHelm): class ElasticsearchHelm(elastic.ElasticBaseHelm):
"""Class to encapsulate helm operations for elasticsearch""" """Class to encapsulate helm operations for elasticsearch"""

View File

@ -4,13 +4,10 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
from oslo_log import log as logging
from sysinv.common import exception from sysinv.common import exception
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import elastic from sysinv.helm import elastic
LOG = logging.getLogger(__name__)
class FilebeatHelm(elastic.ElasticBaseHelm): class FilebeatHelm(elastic.ElasticBaseHelm):
"""Class to encapsulate helm operations for filebeat""" """Class to encapsulate helm operations for filebeat"""

View File

@ -7,12 +7,9 @@
from sysinv.common import constants from sysinv.common import constants
from sysinv.common import exception from sysinv.common import exception
from sysinv.common import utils from sysinv.common import utils
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import base from sysinv.helm import base
LOG = logging.getLogger(__name__)
class GarbdHelm(base.BaseHelm): class GarbdHelm(base.BaseHelm):
"""Class to encapsulate helm operations for the galera arbitrator chart""" """Class to encapsulate helm operations for the galera arbitrator chart"""

View File

@ -8,12 +8,9 @@ from sysinv.common import constants
from sysinv.common import exception from sysinv.common import exception
from sysinv.common.storage_backend_conf import StorageBackendConfig 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 common
from sysinv.helm import openstack from sysinv.helm import openstack
LOG = logging.getLogger(__name__)
# Info used in the Glance Helm chart. # Info used in the Glance Helm chart.
RBD_STORE_USER = 'images' RBD_STORE_USER = 'images'

View File

@ -5,12 +5,9 @@
# #
from sysinv.common import exception from sysinv.common import exception
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import openstack from sysinv.helm import openstack
LOG = logging.getLogger(__name__)
class GnocchiHelm(openstack.OpenstackBaseHelm): class GnocchiHelm(openstack.OpenstackBaseHelm):
"""Class to encapsulate helm operations for the gnocchi chart""" """Class to encapsulate helm operations for the gnocchi chart"""

View File

@ -5,12 +5,9 @@
# #
from sysinv.common import exception from sysinv.common import exception
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import openstack from sysinv.helm import openstack
LOG = logging.getLogger(__name__)
class HeatHelm(openstack.OpenstackBaseHelm): class HeatHelm(openstack.OpenstackBaseHelm):
"""Class to encapsulate helm operations for the heat chart""" """Class to encapsulate helm operations for the heat chart"""

View File

@ -5,12 +5,9 @@
# #
from sysinv.common import exception from sysinv.common import exception
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import base from sysinv.helm import base
LOG = logging.getLogger(__name__)
class HelmToolkitHelm(base.BaseHelm): class HelmToolkitHelm(base.BaseHelm):
"""Class to encapsulate helm operations for the helm toolkit""" """Class to encapsulate helm operations for the helm toolkit"""

View File

@ -6,12 +6,9 @@
from sysinv.common import constants from sysinv.common import constants
from sysinv.common import exception from sysinv.common import exception
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import openstack from sysinv.helm import openstack
LOG = logging.getLogger(__name__)
class HorizonHelm(openstack.OpenstackBaseHelm): class HorizonHelm(openstack.OpenstackBaseHelm):
"""Class to encapsulate helm operations for the horizon chart""" """Class to encapsulate helm operations for the horizon chart"""

View File

@ -6,12 +6,9 @@
from sysinv.common import constants from sysinv.common import constants
from sysinv.common import exception from sysinv.common import exception
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import base from sysinv.helm import base
LOG = logging.getLogger(__name__)
class IngressHelm(base.BaseHelm): class IngressHelm(base.BaseHelm):
"""Class to encapsulate helm operations for the ingress chart""" """Class to encapsulate helm operations for the ingress chart"""

View File

@ -9,12 +9,9 @@ import os
from sysinv.common import constants from sysinv.common import constants
from sysinv.common import exception from sysinv.common import exception
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import openstack from sysinv.helm import openstack
LOG = logging.getLogger(__name__)
OPENSTACK_PASSWORD_RULES_FILE = '/etc/keystone/password-rules.conf' OPENSTACK_PASSWORD_RULES_FILE = '/etc/keystone/password-rules.conf'

View File

@ -6,12 +6,9 @@
from sysinv.common import constants from sysinv.common import constants
from sysinv.common import exception from sysinv.common import exception
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import openstack from sysinv.helm import openstack
LOG = logging.getLogger(__name__)
class KeystoneApiProxyHelm(openstack.OpenstackBaseHelm): class KeystoneApiProxyHelm(openstack.OpenstackBaseHelm):
"""Class to encapsulate helm operations for the keystone api proxy chart""" """Class to encapsulate helm operations for the keystone api proxy chart"""

View File

@ -4,13 +4,10 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
from oslo_log import log as logging
from sysinv.common import exception from sysinv.common import exception
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import elastic from sysinv.helm import elastic
LOG = logging.getLogger(__name__)
class KibanaHelm(elastic.ElasticBaseHelm): class KibanaHelm(elastic.ElasticBaseHelm):
"""Class to encapsulate helm operations for kibana""" """Class to encapsulate helm operations for kibana"""

View File

@ -4,13 +4,10 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
from oslo_log import log as logging
from sysinv.common import exception from sysinv.common import exception
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import elastic from sysinv.helm import elastic
LOG = logging.getLogger(__name__)
class KubeStateMetricsHelm(elastic.ElasticBaseHelm): class KubeStateMetricsHelm(elastic.ElasticBaseHelm):
"""Class to encapsulate helm operations for kube-state-metrics""" """Class to encapsulate helm operations for kube-state-metrics"""

View File

@ -5,12 +5,9 @@
# #
from sysinv.common import exception from sysinv.common import exception
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import openstack from sysinv.helm import openstack
LOG = logging.getLogger(__name__)
class LibvirtHelm(openstack.OpenstackBaseHelm): class LibvirtHelm(openstack.OpenstackBaseHelm):
"""Class to encapsulate helm operations for the libvirt chart""" """Class to encapsulate helm operations for the libvirt chart"""

View File

@ -10,9 +10,6 @@
""" System inventory Armada manifest operator.""" """ System inventory Armada manifest operator."""
from sysinv.helm import manifest_base as base from sysinv.helm import manifest_base as base
from sysinv.openstack.common import log as logging
LOG = logging.getLogger(__name__)
class GenericArmadaManifestOperator(base.ArmadaManifestOperator): class GenericArmadaManifestOperator(base.ArmadaManifestOperator):

View File

@ -13,9 +13,6 @@ from sysinv.common import constants
from sysinv.helm import manifest_base as base from sysinv.helm import manifest_base as base
from sysinv.helm.ceph_pools_audit import CephPoolsAuditHelm from sysinv.helm.ceph_pools_audit import CephPoolsAuditHelm
from sysinv.helm.rbd_provisioner import RbdProvisionerHelm from sysinv.helm.rbd_provisioner import RbdProvisionerHelm
from sysinv.openstack.common import log as logging
LOG = logging.getLogger(__name__)
class PlatformArmadaManifestOperator(base.ArmadaManifestOperator): class PlatformArmadaManifestOperator(base.ArmadaManifestOperator):

View File

@ -5,12 +5,9 @@
# #
from sysinv.common import exception from sysinv.common import exception
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import openstack from sysinv.helm import openstack
LOG = logging.getLogger(__name__)
class MariadbHelm(openstack.OpenstackBaseHelm): class MariadbHelm(openstack.OpenstackBaseHelm):
"""Class to encapsulate helm operations for the mariadb chart""" """Class to encapsulate helm operations for the mariadb chart"""

View File

@ -6,12 +6,9 @@
from sysinv.common import constants from sysinv.common import constants
from sysinv.common import exception from sysinv.common import exception
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import base from sysinv.helm import base
LOG = logging.getLogger(__name__)
class MemcachedHelm(base.BaseHelm): class MemcachedHelm(base.BaseHelm):
"""Class to encapsulate helm operations for the memcached chart""" """Class to encapsulate helm operations for the memcached chart"""

View File

@ -4,13 +4,10 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
from oslo_log import log as logging
from sysinv.common import exception from sysinv.common import exception
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import elastic from sysinv.helm import elastic
LOG = logging.getLogger(__name__)
class MetricbeatHelm(elastic.ElasticBaseHelm): class MetricbeatHelm(elastic.ElasticBaseHelm):
"""Class to encapsulate helm operations for metricbeat""" """Class to encapsulate helm operations for metricbeat"""

View File

@ -4,13 +4,10 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
from oslo_log import log as logging
from sysinv.common import exception from sysinv.common import exception
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import elastic from sysinv.helm import elastic
LOG = logging.getLogger(__name__)
class NginxIngressHelm(elastic.ElasticBaseHelm): class NginxIngressHelm(elastic.ElasticBaseHelm):
"""Class to encapsulate helm operations for nginx-ingress""" """Class to encapsulate helm operations for nginx-ingress"""

View File

@ -5,12 +5,9 @@
# #
from sysinv.common import exception from sysinv.common import exception
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import base from sysinv.helm import base
LOG = logging.getLogger(__name__)
class NginxPortsControlHelm(base.BaseHelm): class NginxPortsControlHelm(base.BaseHelm):
"""Class to encapsulate helm operations for nginx-ports-control chart""" """Class to encapsulate helm operations for nginx-ports-control chart"""

View File

@ -5,12 +5,9 @@
# #
from sysinv.common import exception from sysinv.common import exception
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import openstack from sysinv.helm import openstack
LOG = logging.getLogger(__name__)
class NovaApiProxyHelm(openstack.OpenstackBaseHelm): class NovaApiProxyHelm(openstack.OpenstackBaseHelm):
"""Class to encapsulate helm operations for the nova chart""" """Class to encapsulate helm operations for the nova chart"""

View File

@ -7,12 +7,9 @@
from sysinv.common import constants from sysinv.common import constants
from sysinv.common import exception from sysinv.common import exception
from sysinv.common import utils from sysinv.common import utils
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import openstack from sysinv.helm import openstack
LOG = logging.getLogger(__name__)
class OpenvswitchHelm(openstack.OpenstackBaseHelm): class OpenvswitchHelm(openstack.OpenstackBaseHelm):
"""Class to encapsulate helm operations for the openvswitch chart""" """Class to encapsulate helm operations for the openvswitch chart"""

View File

@ -5,12 +5,9 @@
# #
from sysinv.common import exception from sysinv.common import exception
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import openstack from sysinv.helm import openstack
LOG = logging.getLogger(__name__)
class PankoHelm(openstack.OpenstackBaseHelm): class PankoHelm(openstack.OpenstackBaseHelm):
"""Class to encapsulate helm operations for the panko chart""" """Class to encapsulate helm operations for the panko chart"""

View File

@ -5,12 +5,9 @@
# #
from sysinv.common import exception from sysinv.common import exception
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import openstack from sysinv.helm import openstack
LOG = logging.getLogger(__name__)
class RabbitmqHelm(openstack.OpenstackBaseHelm): class RabbitmqHelm(openstack.OpenstackBaseHelm):
"""Class to encapsulate helm operations for the rabbitmq chart""" """Class to encapsulate helm operations for the rabbitmq chart"""

View File

@ -7,13 +7,10 @@
from sysinv.common import constants from sysinv.common import constants
from sysinv.common import exception from sysinv.common import exception
from sysinv.common.storage_backend_conf import K8RbdProvisioner from sysinv.common.storage_backend_conf import K8RbdProvisioner
from sysinv.openstack.common import log as logging
from sysinv.helm import base from sysinv.helm import base
from sysinv.helm import common from sysinv.helm import common
LOG = logging.getLogger(__name__)
class RbdProvisionerHelm(base.BaseHelm): class RbdProvisionerHelm(base.BaseHelm):
"""Class to encapsulate helm operations for the rbd-provisioner chart""" """Class to encapsulate helm operations for the rbd-provisioner chart"""

View File

@ -6,12 +6,9 @@
from sysinv.common import exception from sysinv.common import exception
from sysinv.openstack.common import log as logging
from sysinv.helm import common from sysinv.helm import common
from sysinv.helm import openstack from sysinv.helm import openstack
LOG = logging.getLogger(__name__)
# These are set in hiera data and applied via puppet to the radosgw # These are set in hiera data and applied via puppet to the radosgw
RADOSGW_SERVICE_DOMAIN_NAME = 'service' RADOSGW_SERVICE_DOMAIN_NAME = 'service'