Skip to content

Commit 72391b7

Browse files
committed
change some logs' level to error
1 parent fc07bf6 commit 72391b7

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

infortrend/eonstor_ds_cli/common_cli.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1883,23 +1883,23 @@ def _is_valid_for_storage_assisted_migration(self, host, volume):
18831883
vendor = host['capabilities']['location_info'].split(':')[0]
18841884
dst_system_id = host['capabilities']['location_info'].split(':')[-1]
18851885
if vendor != 'Infortrend':
1886-
LOG.warning(_LW('Vendor should be Infortrend for migration.'))
1886+
LOG.error(_LE('Vendor should be Infortrend for migration.'))
18871887
return (False, None)
18881888

18891889
# It should be the same raid for migration
18901890
src_system_id = self._get_system_id(self.ip)
18911891
if dst_system_id != src_system_id:
1892-
LOG.warning(_LW('Migration must be performed '
1892+
LOG.error(_LE('Migration must be performed '
18931893
'on the same Infortrend array.'))
18941894
return (False, None)
18951895

18961896
# We don't support volume live migration
18971897
if volume['status'] != 'available':
1898-
LOG.warning(_LW('Volume status must be available for migration.'))
1898+
LOG.error(_LE('Volume status must be available for migration.'))
18991899
return (False, None)
19001900

19011901
if 'pool_id' not in host['capabilities']:
1902-
LOG.warning(_LW('Failed to get target pool id.'))
1902+
LOG.error(_LE('Failed to get target pool id.'))
19031903
return (False, None)
19041904

19051905
dst_pool_id = host['capabilities']['pool_id']
@@ -2108,14 +2108,14 @@ def retype(self, ctxt, volume, new_type, diff, host):
21082108

21092109
if volume['host'] != host['host']:
21102110
if self._check_volume_attachment(volume):
2111-
LOG.warning(_LW(
2111+
LOG.error(_LE(
21122112
'Volume %(volume_id)s cannot be retyped '
21132113
'during attachment.'), {
21142114
'volume_id': volume['id']})
21152115
return False
21162116

21172117
if self._check_volume_has_snapshot(volume):
2118-
LOG.warning(_LW(
2118+
LOG.error(_LE(
21192119
'Volume %(volume_id)s cannot be retyped '
21202120
'because it has snapshot.'), {
21212121
'volume_id': volume['id']})
@@ -2138,7 +2138,7 @@ def retype(self, ctxt, volume, new_type, diff, host):
21382138
(diff['extra_specs']['infortrend_provisioning'][0] !=
21392139
diff['extra_specs']['infortrend_provisioning'][1])):
21402140

2141-
LOG.warning(_LW(
2141+
LOG.error(_LE(
21422142
'The provisioning: %(provisioning)s '
21432143
'is not valid.'), {
21442144
'provisioning':

0 commit comments

Comments
 (0)