oslo_messaging.rpc.dispatcher UnicodeDecodeError: 'ascii' codec can't decode byte 0xf3 in position 8: ordinal not in range(128) When trying to attach cinder volume to instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Undecided
|
Unassigned |
Bug Description
Appeared suddenly in Openstack version Mitaka, when trying to attach volume to instance or launch instance with root fs based on cinder volume:
Steps to reproduce
=
Not defined
Expected result
=
Shoult be properly logged error from cinder/
logs
=
Here is stacktrace:
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.646 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.650 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.650 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
2019-04-05 09:32:45.651 5723 ERROR oslo_messaging.
And the key of the problem is here:
When openstack get info for tgt targets it recieves broken output of command tgt-admin --show
In my case there is two lines with strange symbols, examples (highlited with a lot of !):
Target 60: iqn.2010-
System information:
Driver: iscsi
State: ready
I_T nexus information:
I_T nexus: 3096
P/<F3> LUN information: !!!!!!!
LUN: 0
Type: controller
SCSI ID: IET 003c0000
SCSI SN: beaf600
Size: 0 MB, Block size: 1
Online: Yes
Prevent removal: No
SWP: No
Backing store type: null
Backing store path: None
Backing store flags:
LUN: 1
Type: disk
SCSI ID: IET 003c0001
SCSI SN: beaf601
Size: 214748 MB, Block size: 512
Online: Yes
Prevent removal: No
SWP: No
Backing store type: rdwr
Backing store path: /dev/cinder-
Backing store flags:
Account information:
ACL information:
ALL
The second one:
Target 80: iqn.2010-
System information:
Driver: iscsi
State: ready
I_T nexus information:
I_T nexus: 3095
<E0><8E>"^A LUN information: (!!!!!!
LUN: 0
Type: controller
SCSI ID: IET 00500000
SCSI SN: beaf800
Size: 0 MB, Block size: 1
Online: Yes
Prevent removal: No
SWP: No
Backing store type: null
Backing store path: None
Backing store flags:
LUN: 1
Type: disk
All other volumes are fine.
Can't get any idea how it could happen and if this needs some workarounds.