Project

General

Profile

Actions

Bug #43398

open

don't assume /sys/block/<disk>/device/sas_address is present

Added by Jan Fajerski over 4 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

[2019-12-18 21:06:33,832][ceph_volume.util.system][ERROR ] Failed to read contents from: /sys/block/sdf/device/sas_address
 Traceback (most recent call last):                                         
   File "/usr/lib/python3.6/site-packages/ceph_volume/util/system.py", line 74, in get_file_contents
     contents = open_file.read().strip()                                    
 OSError: [Errno 19] No such device

Seems benign but confuses users who look at the log.

Actions #1

Updated by Jan Fajerski over 4 years ago

hmm strange. Errno 19 is ENODEV. Not sure how os.path.exists(path) comes back with true but open returns ENODEV.

Actions

Also available in: Atom PDF