RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 852864 - [abrt] system-config-lvm-1.1.12-12.el6: ExtentBlock.py:14:__init__:AttributeError: 'NoneType' object has no attribute 'add_extent_block'
Summary: [abrt] system-config-lvm-1.1.12-12.el6: ExtentBlock.py:14:__init__:AttributeE...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: system-config-lvm
Version: 6.3
Hardware: x86_64
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Marek Grac
QA Contact: Cluster QE
URL:
Whiteboard: abrt_hash:8e701696e13bd3a0075cee31b7d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-29 19:46 UTC by Jeff Bastian
Modified: 2013-02-21 10:04 UTC (History)
7 users (show)

Fixed In Version: system-config-lvm-1.1.12-14.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 10:04:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
File: sosreport.tar.xz (1.11 MB, text/plain)
2012-08-29 19:46 UTC, Jeff Bastian
no flags Details
Proposed patch (671 bytes, patch)
2012-09-10 15:24 UTC, Marek Grac
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0385 0 normal SHIPPED_LIVE system-config-lvm bug fix update 2013-02-20 20:51:58 UTC

Description Jeff Bastian 2012-08-29 19:46:45 UTC
libreport version: 2.0.9
abrt_version:   2.0.8
cmdline:        /usr/bin/python2 /usr/share/system-config-lvm/system-config-lvm.py
executable:     /usr/share/system-config-lvm/system-config-lvm.py
kernel:         2.6.32-279.el6.x86_64
reason:         ExtentBlock.py:14:__init__:AttributeError: 'NoneType' object has no attribute 'add_extent_block'
time:           Wed 29 Aug 2012 02:17:25 PM CDT
uid:            0
username:       root

sosreport.tar.xz: Binary file, 1165620 bytes

backtrace:
:ExtentBlock.py:14:__init__:AttributeError: 'NoneType' object has no attribute 'add_extent_block'
:
:Traceback (most recent call last):
:  File "/usr/share/system-config-lvm/system-config-lvm.py", line 172, in <module>
:    runFullGUI()
:  File "/usr/share/system-config-lvm/system-config-lvm.py", line 157, in runFullGUI
:    blvm = baselvm(glade_xml, app)
:  File "/usr/share/system-config-lvm/system-config-lvm.py", line 105, in __init__
:    self.volume_tab_view = Volume_Tab_View(glade_xml, self.lvmm, self.main_win)
:  File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 133, in __init__
:    self.prepare_tree()
:  File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 214, in prepare_tree
:    self.model_factory.reload()
:  File "/usr/share/system-config-lvm/lvm_model.py", line 168, in reload
:    self.__query_LVs()
:  File "/usr/share/system-config-lvm/lvm_model.py", line 543, in __query_LVs
:    extent_block = ExtentBlock(pv, lv, ph_ext_beg, seg_size/len(devs))
:  File "/usr/share/system-config-lvm/ExtentBlock.py", line 14, in __init__
:    self.__pv.add_extent_block(self)
:AttributeError: 'NoneType' object has no attribute 'add_extent_block'
:
:Local variables in innermost frame:
:lv: <LogicalVolume.LogicalVolume instance at 0x10fb248>
:start: 0
:self: <ExtentBlock.ExtentBlock instance at 0x10fb2d8>
:pv: None
:size: 2048

comment:
:I added a second hard drive to my LVM volume group, and then I converted my 
:linear logical volumes to a RAID1 mirrored volume, and now
:system-config-lvm crashes with the traceback below.
:  pvcreate /dev/sdb1
:  vgextend vg_gecko /dev/sdb1
:  lvconvert --type raid1 -m 1 vg_gecko/gecko_root
:  lvconvert --type raid1 -m 1 vg_gecko/gecko_home
:  system-config-lvm
:
:The system is copying data right now.  I'll try again when the copy
:finishes.
:
:[root@gecko ~]# lvs -a -o name,copy_percent,devices vg_gecko
:  LV                    Copy%  Devices                                      
:  gecko_home             13.40 gecko_home_rimage_0(0),gecko_home_rimage_1(0)
:  [gecko_home_rimage_0]        /dev/sda5(0)                                 
:  [gecko_home_rimage_1]        /dev/sdb1(8194)                              
:  [gecko_home_rmeta_0]         /dev/sda5(13441)                             
:  [gecko_home_rmeta_1]         /dev/sdb1(8193)                              
:  gecko_root              0.82 gecko_root_rimage_0(0),gecko_root_rimage_1(0)
:  [gecko_root_rimage_0]        /dev/sda5(4608)                              
:  [gecko_root_rimage_1]        /dev/sdb1(1)                                 
:  [gecko_root_rmeta_0]         /dev/sda5(13440)                             
:  [gecko_root_rmeta_1]         /dev/sdb1(0)                                 
:  swap                         /dev/sda5(4096)
:  win7-vm                      /dev/sda5(12800)

Comment 1 Jeff Bastian 2012-08-29 19:46:49 UTC
Created attachment 607985 [details]
File: sosreport.tar.xz

Comment 3 Marek Grac 2012-09-06 13:02:26 UTC
@Jeff:

Is system-config-lvm working correctly after migration was completed?

Comment 4 Jeff Bastian 2012-09-06 14:52:20 UTC
No, it still fails with the same traceback.

(Sorry, I promised to update when the migration finished but I forgot!)

The migration is complete and working now:

$ sudo lvs -a -o name,copy_percent,devices
  LV                    Copy%  Devices
  gecko_home            100.00 gecko_home_rimage_0(0),gecko_home_rimage_1(0)
  [gecko_home_rimage_0]        /dev/sda5(0)
  [gecko_home_rimage_1]        /dev/sdb1(8194)
  [gecko_home_rmeta_0]         /dev/sda5(13441)
  [gecko_home_rmeta_1]         /dev/sdb1(8193)
  gecko_root            100.00 gecko_root_rimage_0(0),gecko_root_rimage_1(0)
  [gecko_root_rimage_0]        /dev/sda5(4608)
  [gecko_root_rimage_1]        /dev/sdb1(1)
  [gecko_root_rmeta_0]         /dev/sda5(13440)
  [gecko_root_rmeta_1]         /dev/sdb1(0)
  swap                         /dev/sda5(4096)
  win7-vm                      /dev/sda5(12800)

Comment 5 Marek Grac 2012-09-10 14:58:06 UTC
Reproducer:

dd if=/dev/zero of=/disk1
dd if=/dev/zero of=/disk2
dd if=/dev/zero of=/disk3
  
losetup -f /disk1
losetup -f /disk2
losetup -f /disk3
   
losetup -a (check devices)

pvcreate /dev/loop[012]
vgcreate test /dev/loop[012]  
lvcreate -n first -L 100M test

lvconvert --type raid1 -m 1 test/first

system-config-lvm

Comment 6 Marek Grac 2012-09-10 15:24:22 UTC
Created attachment 611473 [details]
Proposed patch

Proposed patch fixes problem with crashing. Please try to apply and test it too. 

You should see part of RAID1 what is not an ideal solution but adding support for RAID1 in LVM to system-config-lvm should be treat under RFE.

Comment 7 Jeff Bastian 2012-09-10 21:24:31 UTC
I confirm the patch solves the crash.

s-c-lvm shows all the pieces of the RAID1 as if they were equivalent logical volumes.  That is, instead of just gecko_home and gecko_root, I get:
  gecko_home
  gecko_home_rimage_0
  gecko_home_rimage_1
  gecko_home_rmeta_0
  gecko_home_rmeta_1
  gecko_root
  gecko_root_rimage_0
  gecko_root_rimage_1
  gecko_root_rmeta_0
  gecko_root_rmeta_1

But as you say, this problem is for an RFE.

Thank you!

Comment 16 errata-xmlrpc 2013-02-21 10:04:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0385.html


Note You need to log in before you can comment on or make changes to this bug.