Bug 468850

Summary: HAL shows loop0/ram0/etc. as block devices, confusing anaconda/nautilus
Product: [Fedora] Fedora Reporter: James Laska <jlaska>
Component: halAssignee: Richard Hughes <richard>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: davidz, dcantrell, gmureddu, jake, jturner, katzj, orion, pertusus, petersen, rhughes, richard, wtogami, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: anaconda_trace_hash:71f58af15478cfe7adb0b17d42eedab6a44b56ca082a63344a1d1a3e47032341 NEEDSRETESTING
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-30 16:36:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 446449    
Attachments:
Description Flags
Attached traceback automatically from anaconda. none

Description James Laska 2008-10-28 12:12:30 UTC
This bug was filed automatically by anaconda.

Comment 1 James Laska 2008-10-28 12:12:33 UTC
Created attachment 321693 [details]
Attached traceback automatically from anaconda.

Comment 2 Orion Poplawski 2008-10-28 14:52:11 UTC
Problem seems to be too many drives in the drive list:

12:11:11 DEBUG   : self.driveList(): ['sda', 'ram0', 'ram1', 'ram2', 'ram3', 'ram4', 'ram5', 'ram6', 'ram7', 'ram8', 'ram9', 'loop0', 'loop1', 'loop2', 'loop3', 'loop4', 'loop5', 'loop6', 'loop7', 'ram10', 'ram11', 'ram12', 'ram13', 'ram14', 'ram15']

Instead of:

13:04:08 DEBUG   : self.driveList(): ['sda']

Comment 3 Warren Togami 2008-10-28 14:55:01 UTC
Anaconda from October 28th rawhide asked if I wanted to initialize ram[0-15] and loop[0-5] devices.  I clicked No to all prompts and it seems to be able to proceed.

Comment 4 Jeremy Katz 2008-10-28 15:04:41 UTC
This is because those devices have started showing up in hal where they didn't before.  It seems to me they shouldn't be showing up as disks in hal, but I guess if we have to, we can filter them out :/

Richard, David?

Comment 5 Richard Hughes 2008-10-28 16:55:56 UTC
Matthias mentioned this to me just now. I can't reproduce on a 2.6.27.4-51.fc10.i686 kernel, but I've got the lshal from him. It contains tons of stuff like this:

udi = '/org/freedesktop/Hal/devices/computer_storage_bdi_disk_6'
  block.device = '/dev/loop7'  (string)
  block.is_volume = false  (bool)
  block.major = 7  (0x7)  (int)
  block.minor = 7  (0x7)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/computer_storage_bdi_disk_6'  (string)
  info.capabilities = {'storage', 'block'} (string list)
  info.category = 'storage'  (string)
  info.parent = '/org/freedesktop/Hal/devices/computer_bdi_7_7'  (string)
  info.udi = '/org/freedesktop/Hal/devices/computer_storage_bdi_disk_6'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/devices/virtual/block/loop7'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.bus = 'bdi'  (string)
  storage.drive_type = 'disk'  (string)
  storage.hotpluggable = false  (bool)
  storage.media_check_enabled = false  (bool)
  storage.model = ''  (string)
  storage.no_partitions_hint = false  (bool)
  storage.originating_device = '/org/freedesktop/Hal/devices/computer'  (string)
  storage.partitioning_scheme = 'none'  (string)
  storage.removable = false  (bool)
  storage.removable.media_available = true  (bool)
  storage.removable.media_size = 0  (0x0)  (uint64)
  storage.requires_eject = false  (bool)
  storage.size = 0  (0x0)  (uint64)
  storage.vendor = ''  (string)

The kernel is telling us / hal is probing this, and then we get a "block" device that doesn't exist. I don't know enough about BDI to tell you what the problem is. I'll have a try.

Comment 6 Richard Hughes 2008-10-28 20:38:15 UTC
Can you try http://koji.fedoraproject.org/koji/taskinfo?taskID=909916 please.

Comment 7 Will Woods 2008-10-28 20:52:15 UTC
Er, it's tricky to inject that into an anaconda image, but as I understand the problem:

* Current Rawhide systems have HAL entries for /dev/{loop,ram}X.
  - This is true on my current Rawhide machines.
* This is confusing Anaconda into thinking they're valid storage devices.
* This HAL update is intended to fix that by not listing /dev/{loop,ram}X.

If I've understood the problem and intended solution correctly, then yes - that hal build works.

Comment 8 Jeremy Katz 2008-10-28 22:10:07 UTC
It looks like it should from a quick check of downloading and running on my system normally.  Can you request the tag for dist-f10 and then we can be certain with tomorrow's rawhide?

Comment 9 Jesse Keating 2008-10-28 22:30:25 UTC
https://fedorahosted.org/rel-eng/ticket/891  requested for tagging.

Comment 10 Jesse Keating 2008-10-28 23:06:59 UTC
It's been tagged, and will need re-testing with tomorrow's rawhide.

Comment 11 Jeremy Katz 2008-10-29 14:11:09 UTC
*** Bug 468957 has been marked as a duplicate of this bug. ***

Comment 12 Will Woods 2008-10-30 02:30:48 UTC
*** Bug 469122 has been marked as a duplicate of this bug. ***

Comment 13 Tomáš Bžatek 2008-10-30 16:17:00 UTC
*** Bug 469149 has been marked as a duplicate of this bug. ***

Comment 14 Orion Poplawski 2008-10-30 16:36:33 UTC
Works for me.