Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 480537 Details for
Bug 678877
AttributeError: 'NoneType' object has no attribute 'addChild'
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to anaconda to attempt on-demand scanning of md containers as needed
20110223-md-fwraid-scan-order-678877.patch (text/plain), 1.75 KB, created by
David Lehman
on 2011-02-23 17:27:24 UTC
(
hide
)
Description:
patch to anaconda to attempt on-demand scanning of md containers as needed
Filename:
MIME Type:
Creator:
David Lehman
Created:
2011-02-23 17:27:24 UTC
Size:
1.75 KB
patch
obsolete
>diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py >index a57e5e1..0a13381 100644 >--- a/pyanaconda/storage/devicetree.py >+++ b/pyanaconda/storage/devicetree.py >@@ -828,7 +828,21 @@ class DeviceTree(object): > elif udev_device_get_md_container(info): > diskType = MDRaidArrayDevice > parentName = devicePathToName(udev_device_get_md_container(info)) >- kwargs["parents"] = [ self.getDeviceByName(parentName) ] >+ container = self.getDeviceByName(parentName) >+ if not container: >+ container_sysfs = "/class/block/" + parentName >+ container_info = udev_get_block_device(container_sysfs) >+ if not container_info: >+ log.error("failed to find md container %s at %s" >+ % (parentName, container_sysfs)) >+ return >+ >+ container = self.addUdevDevice(container_info) >+ if not container: >+ log.error("failed to scan md container %s" % parentName) >+ return >+ >+ kwargs["parents"] = [container] > kwargs["level"] = udev_device_get_md_level(info) > kwargs["memberDevices"] = int(udev_device_get_md_devices(info)) > kwargs["uuid"] = udev_device_get_md_uuid(info) >@@ -1683,7 +1697,7 @@ class DeviceTree(object): > except (IOError, OSError) as e: > msg = str(e) > log.error("failed to %s of %s: %s" % (op, cfg, msg)) >- elif restore: >+ elif restore and os.access(cfg, os.W_OK): > # remove the config since we created it > log.info("removing anaconda-created %s" % cfg) > try:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 678877
:
479773
|
480535
| 480537 |
481468
|
487984