Browse Source

Eliminate unnecessary imported modules

In the config project,"/sysinv/sysinv/sysinv/sysinv/db/" 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: Ibe1f96154d6575d701067e43665b336f3bf5bfec
Partial-Bug: #1844095
Signed-off-by: Hang Li <lihang0166@fiberhome.com>
tags/v3.0.0.rc0
Hang Li 5 months ago
parent
commit
b2198ead71
17 changed files with 0 additions and 58 deletions
  1. +0
    -3
      sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/037_multi_storage_backend.py
  2. +0
    -3
      sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/039_rpm_to_idisk.py
  3. +0
    -4
      sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/044_istorconfig_restructure.py
  4. +0
    -4
      sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/045_action_state.py
  5. +0
    -4
      sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/051_https_security.py
  6. +0
    -4
      sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/055_partition_device_node.py
  7. +0
    -3
      sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/057_update_region_config_flag.py
  8. +0
    -4
      sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/060_storage_external.py
  9. +0
    -3
      sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/063_address_pool.py
  10. +0
    -2
      sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/064_certificate.py
  11. +0
    -4
      sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/065_storage_tiers.py
  12. +0
    -4
      sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/071_storage_ceph_external.py
  13. +0
    -4
      sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/073_kube_application.py
  14. +0
    -2
      sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/076_host_label.py
  15. +0
    -2
      sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/078_interface_class.py
  16. +0
    -4
      sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/081_helm_overrides.py
  17. +0
    -4
      sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/089_host_fs.py

+ 0
- 3
sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/037_multi_storage_backend.py View File

@@ -8,9 +8,6 @@
from sqlalchemy import Column, MetaData, Table
from sqlalchemy import String
from sqlalchemy import Integer
from sysinv.openstack.common import log

LOG = log.getLogger(__name__)


def upgrade(migrate_engine):

+ 0
- 3
sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/039_rpm_to_idisk.py View File

@@ -7,15 +7,12 @@

from sqlalchemy import Column, MetaData, String, Table

from sysinv.openstack.common import log
from sysinv.common import constants


ENGINE = 'InnoDB'
CHARSET = 'utf8'

LOG = log.getLogger(__name__)


def _populate_rpm_type(idisk_table):


+ 0
- 4
sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/044_istorconfig_restructure.py View File

@@ -11,13 +11,9 @@ from datetime import datetime
from sqlalchemy import Integer, DateTime, Boolean, String
from sqlalchemy import Column, MetaData, Table, ForeignKey, select

from sysinv.openstack.common import log

ENGINE = 'InnoDB'
CHARSET = 'utf8'

LOG = log.getLogger(__name__)


def upgrade(migrate_engine):
"""This database upgrade replaces the i_istorconfig table with five

+ 0
- 4
sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/045_action_state.py View File

@@ -10,13 +10,9 @@ from sqlalchemy import MetaData
from sqlalchemy import String
from sqlalchemy import Table

from sysinv.openstack.common import log

ENGINE = 'InnoDB'
CHARSET = 'utf8'

LOG = log.getLogger(__name__)


def upgrade(migrate_engine):
"""This database upgrade updates the i_host table with the

+ 0
- 4
sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/051_https_security.py View File

@@ -8,15 +8,11 @@
from sqlalchemy import MetaData
from sqlalchemy import Table

from sysinv.openstack.common import log

import json

ENGINE = 'InnoDB'
CHARSET = 'utf8'

LOG = log.getLogger(__name__)


def upgrade(migrate_engine):
meta = MetaData()

+ 0
- 4
sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/055_partition_device_node.py View File

@@ -9,13 +9,9 @@ from sqlalchemy import String
from sqlalchemy import Column, MetaData, Table
from migrate.changeset import UniqueConstraint

from sysinv.openstack.common import log

ENGINE = 'InnoDB'
CHARSET = 'utf8'

LOG = log.getLogger(__name__)


def upgrade(migrate_engine):


+ 0
- 3
sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/057_update_region_config_flag.py View File

@@ -6,15 +6,12 @@
#

from sqlalchemy import MetaData, Table
from sysinv.openstack.common import log

import json

ENGINE = 'InnoDB'
CHARSET = 'utf8'

LOG = log.getLogger(__name__)


def upgrade(migrate_engine):
meta = MetaData()

+ 0
- 4
sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/060_storage_external.py View File

@@ -8,13 +8,9 @@
from sqlalchemy import Integer, DateTime
from sqlalchemy import Column, MetaData, Table, ForeignKey

from sysinv.openstack.common import log

ENGINE = 'InnoDB'
CHARSET = 'utf8'

LOG = log.getLogger(__name__)


def upgrade(migrate_engine):
"""

+ 0
- 3
sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/063_address_pool.py View File

@@ -9,12 +9,9 @@ from sqlalchemy import Column, MetaData, Table
from sqlalchemy import Integer
from sysinv.common import constants
from sysinv.common import utils as cutils
from sysinv.openstack.common import log
from sysinv.api.controllers.v1 import address_pool
from tsconfig.tsconfig import system_mode

LOG = log.getLogger(__name__)


def _populate_address_fields(address_pool_table, addresses_table, networks_table):
prefix_to_field_name = {

+ 0
- 2
sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/064_certificate.py View File

@@ -7,11 +7,9 @@

from sqlalchemy import Column, MetaData, Table
from sqlalchemy import DateTime, Integer, String, Text
from sysinv.openstack.common import log

ENGINE = 'InnoDB'
CHARSET = 'utf8'
LOG = log.getLogger(__name__)


def upgrade(migrate_engine):

+ 0
- 4
sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/065_storage_tiers.py View File

@@ -8,13 +8,9 @@
from sqlalchemy import Integer, DateTime, String, Text
from sqlalchemy import Column, MetaData, Table, ForeignKey

from sysinv.openstack.common import log

ENGINE = 'InnoDB'
CHARSET = 'utf8'

LOG = log.getLogger(__name__)


def upgrade(migrate_engine):
"""

+ 0
- 4
sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/071_storage_ceph_external.py View File

@@ -8,13 +8,9 @@
from sqlalchemy import Integer, DateTime, String
from sqlalchemy import Column, MetaData, Table, ForeignKey

from sysinv.openstack.common import log

ENGINE = 'InnoDB'
CHARSET = 'utf8'

LOG = log.getLogger(__name__)


def upgrade(migrate_engine):
"""

+ 0
- 4
sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/073_kube_application.py View File

@@ -8,13 +8,9 @@
from sqlalchemy import DateTime, String, Integer, Boolean
from sqlalchemy import Column, MetaData, Table

from sysinv.openstack.common import log

ENGINE = 'InnoDB'
CHARSET = 'utf8'

LOG = log.getLogger(__name__)


def upgrade(migrate_engine):
"""

+ 0
- 2
sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/076_host_label.py View File

@@ -8,11 +8,9 @@
from sqlalchemy import Column, MetaData, Table
from sqlalchemy import DateTime, Integer, String
from sqlalchemy import ForeignKey, UniqueConstraint
from sysinv.openstack.common import log

ENGINE = 'InnoDB'
CHARSET = 'utf8'
LOG = log.getLogger(__name__)


def upgrade(migrate_engine):

+ 0
- 2
sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/078_interface_class.py View File

@@ -9,11 +9,9 @@

from sqlalchemy import Column, MetaData, Table
from sqlalchemy import String
from sysinv.openstack.common import log

ENGINE = 'InnoDB'
CHARSET = 'utf8'
LOG = log.getLogger(__name__)


def upgrade(migrate_engine):

+ 0
- 4
sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/081_helm_overrides.py View File

@@ -8,13 +8,9 @@
from sqlalchemy import DateTime, String, Text, Integer
from sqlalchemy import Column, MetaData, Table, UniqueConstraint, ForeignKey

from sysinv.openstack.common import log

ENGINE = 'InnoDB'
CHARSET = 'utf8'

LOG = log.getLogger(__name__)


def upgrade(migrate_engine):
"""

+ 0
- 4
sysinv/sysinv/sysinv/sysinv/db/sqlalchemy/migrate_repo/versions/089_host_fs.py View File

@@ -8,13 +8,9 @@
from sqlalchemy import DateTime, String, Integer
from sqlalchemy import Column, MetaData, Table, ForeignKey

from sysinv.openstack.common import log

ENGINE = 'InnoDB'
CHARSET = 'utf8'

LOG = log.getLogger(__name__)


def upgrade(migrate_engine):
"""

Loading…
Cancel
Save