ephemeral0 of /dev/sda1 triggers 'did not find entry for sda1 in /sys/block'
Bug #1263294 reported by
Robert Collins
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Medium
|
Unassigned | ||
tripleo |
Won't Fix
|
High
|
Unassigned |
Bug Description
This is due to line 227 of ./cloudinit/
short_name = os.path.
sys_path = "/sys/block/%s" % short_name
if not os.path.
return None
The sys path for /dev/sda1 is /sys/block/
Changed in tripleo: | |
assignee: | Clint Byrum (clint-fewbar) → Michael Kerrin (michael-kerrin-w) |
status: | Triaged → In Progress |
Changed in tripleo: | |
assignee: | Michael Kerrin (michael-kerrin-w) → nobody |
To post a comment you must log in.
This can calculate the correct /sys/block path.
short_name = os.path. basename( device) -1].isdigit( ): name)): base_dev = '' -offset] .isdigit( ):
break name[:- offset+ 1], short_name)
if short_name[
for offset in range(1, len(short_
if not short_name[
sys_path = "/sys/block/%s/%s" % (short_
else:
sys_path = "/sys/block/%s" % short_name