nailgun-agent doesn't find disk if there a diretory in /dev/disk/by-id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
Medium
|
Vladimir Kozhukalov | ||
Mitaka |
Fix Released
|
Medium
|
Vladimir Kozhukalov | ||
Newton |
Fix Committed
|
Medium
|
Vladimir Kozhukalov | ||
Ocata |
Fix Committed
|
Medium
|
Vladimir Kozhukalov |
Bug Description
When there is a directory in the path /dev/disk/by-id, nailgun-agent timesout and doesn't send the correct data about the drive.
Error message
E, [2016-11-
Changed in fuel: | |
assignee: | nobody → Fuel Sustaining (fuel-sustaining-team) |
milestone: | none → 9.2 |
tags: | added: area-python |
Changed in fuel: | |
importance: | Undecided → Medium |
assignee: | Fuel Sustaining (fuel-sustaining-team) → Vladimir Kozhukalov (kozhukalov) |
status: | New → Confirmed |
tags: | added: on-verification |
http:// paste.openstack .org/show/ 589510/
patch proposal by <AlexAvadanii> from fuel irc chanel
668 668 by_name( name) dn}/**? "].select{ |f| /\/#{name} $/.match( File.readlink( f))} dn}/**? "].select{ |f| File.symlink?(f) and /\/#{name} $/.match( File.readlink( f))} "/")[2. .-1].join( "/")} by_name( name) dn}/**? "].find{ |f| /\/#{name} $/.match( File.readlink( f))} dn}/**? "].find{ |f| File.symlink?(f) and /\/#{name} $/.match( File.readlink( f))} split(" /")[2.. -1].join( "/") if basepath
669 669 def _disk_id_
670 670 dn = "/dev/disk/by-id"
671 basepath = Dir["#{
671 basepath = Dir["#{
672 672 basepath.map{|p| p.split(
673 673 end
674 674
675 675 def _disk_path_
676 676 dn = "/dev/disk/by-path"
677 basepath = Dir["#{
677 basepath = Dir["#{
678 678 basepath.
679 679 end