Hi together,
I have installed the rockstor onto my nvme device and rockstor logs the following line every minute when checking the disk state:
[04/Jun/2016 13:32:26] ERROR [smart_manager.data_collector:342] Failed to update disk state.. exception: object of type 'NoneType' has no len()
[04/Jun/2016 13:33:27] ERROR [storageadmin.util:46] request path: /api/disks/scan method: POST data: <QueryDict: {}>
[04/Jun/2016 13:33:27] ERROR [storageadmin.util:47] exception: object of type 'NoneType' has no len()
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py", line 40, in _handle_exception
yield
File "/opt/rockstor/src/rockstor/storageadmin/views/disk.py", line 204, in post
return self._update_disk_state()
File "/opt/rockstor/eggs/Django-1.6.11-py2.7.egg/django/db/transaction.py", line 371, in inner
return func(*args, **kwargs)
File "/opt/rockstor/src/rockstor/storageadmin/views/disk.py", line 79, in _update_disk_state
if (do.serial in serial_numbers_seen) or (len(do.serial) == 48):
TypeError: object of type 'NoneType' has no len()
[04/Jun/2016 13:33:27] DEBUG [storageadmin.util:48] Current Rockstor version: 3.8-13
[04/Jun/2016 13:33:27] ERROR [smart_manager.data_collector:342] Failed to update disk state.. exception: object of type 'NoneType' has no len()
Maybe it is logged because smartctl doesnāt support nvme device in the current CentOs version? https://www.smartmontools.org/ticket/657
Is it possible to not check the disk state until smartctl has support for nvme devices?
Iām also seeing fake serials for the nvme device, but I think it is not related to the above issue. Iāve tried to specify own udev rules, unfortunately this had no effect on rockstor side.
[root@rockstor ~]# ls -al /dev/disk/by-id/
total 0
drwxr-xr-x 2 root root 280 Jun 4 13:51 .
drwxr-xr-x 6 root root 120 Jun 4 13:51 ..
lrwxrwxrwx 1 root root 9 Jun 4 13:51 ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M3CLUK0U -> ../../sdc
lrwxrwxrwx 1 root root 9 Jun 4 13:51 ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M3VR0FVS -> ../../sdd
lrwxrwxrwx 1 root root 9 Jun 4 13:51 ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M6DT9PEV -> ../../sda
lrwxrwxrwx 1 root root 9 Jun 4 13:51 ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M7ST1PS4 -> ../../sdb
lrwxrwxrwx 1 root root 15 Jun 4 13:51 nvme-S2GLNCAH102797F -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Jun 4 13:51 nvme-S2GLNCAH102797F-disk1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Jun 4 13:51 nvme-S2GLNCAH102797F-disk2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Jun 4 13:51 nvme-S2GLNCAH102797F-disk3 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 9 Jun 4 13:51 wwn-0x50014ee261f6918a -> ../../sdb
lrwxrwxrwx 1 root root 9 Jun 4 13:51 wwn-0x50014ee261f7d976 -> ../../sdd
lrwxrwxrwx 1 root root 9 Jun 4 13:51 wwn-0x50014ee2628ab5e0 -> ../../sda
lrwxrwxrwx 1 root root 9 Jun 4 13:51 wwn-0x50014ee2b7e073dc -> ../../sdc
Thanks!
Cheers
snafu