Bug 958897 - TypeError: __init__() got an unexpected keyword argument 'container_raid_level'
Summary: TypeError: __init__() got an unexpected keyword argument 'container_raid_level'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Lehman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6cca79298a9b749b8eca94636cb...
: 958956 958960 958999 959038 959441 959537 (view as bug list)
Depends On:
Blocks: F19Beta, F19BetaBlocker
TreeView+ depends on / blocked
 
Reported: 2013-05-02 15:43 UTC by Reartes Guillermo
Modified: 2014-09-13 18:59 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-13 17:16:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda.log (33.66 KB, text/plain)
2013-05-02 15:43 UTC, Reartes Guillermo
no flags Details
File: backtrace (840 bytes, text/plain)
2013-05-02 15:43 UTC, Reartes Guillermo
no flags Details
File: environ (779 bytes, text/plain)
2013-05-02 15:43 UTC, Reartes Guillermo
no flags Details
File: ifcfg.log (567 bytes, text/plain)
2013-05-02 15:43 UTC, Reartes Guillermo
no flags Details
File: lsblk_output (2.24 KB, text/plain)
2013-05-02 15:43 UTC, Reartes Guillermo
no flags Details
File: nmcli_dev_list (3.31 KB, text/plain)
2013-05-02 15:43 UTC, Reartes Guillermo
no flags Details
File: packaging.log (741.61 KB, text/plain)
2013-05-02 15:43 UTC, Reartes Guillermo
no flags Details
File: program.log (34.72 KB, text/plain)
2013-05-02 15:43 UTC, Reartes Guillermo
no flags Details
File: storage.log (177.86 KB, text/plain)
2013-05-02 15:43 UTC, Reartes Guillermo
no flags Details
File: syslog (78.22 KB, text/plain)
2013-05-02 15:43 UTC, Reartes Guillermo
no flags Details
File: anaconda-tb (1.18 MB, text/plain)
2013-05-02 15:44 UTC, Reartes Guillermo
no flags Details
screenshot of what triggered the crash (78.00 KB, image/png)
2013-05-02 15:45 UTC, Reartes Guillermo
no flags Details
anaconda-tb-kApnwr with updates-958897-2.img (2.35 MB, text/plain)
2013-05-03 20:41 UTC, Chris Murphy
no flags Details

Description Reartes Guillermo 2013-05-02 15:43:08 UTC
Description of problem:
selected custom partitioning, deleted previous fedora
added 512mb /boot (standard partititon)
added swap (all) (lvm)
reduced swap to 768mb but anaconda crashed
The following was filed automatically by anaconda:
anaconda 19.23-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.7/site-packages/blivet/devicefactory.py", line 97, in get_device_factory
    return factory_class(blivet, size, disks, **kwargs)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 1875, in factoryDevice
    **kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 957, in _replace_device
    new_device = self.__storage.factoryDevice(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 1237, in _save_right_side
    selector=selector)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2624, in on_apply_clicked
    self._save_right_side(self._current_selector)
TypeError: __init__() got an unexpected keyword argument 'container_raid_level'

Version-Release number of selected component:
anaconda-19.23-1

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2019-Beta-TC2\x20x86_64 quiet BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.0-0.rc8.git0.2.fc19.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        19-Beta-TC2

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2624, in on_apply_clicked
    self._save_right_side(self._current_selector)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 1237, in _save_right_side
    selector=selector)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 957, in _replace_device
    new_device = self.__storage.factoryDevice(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 1875, in factoryDevice
    **kwargs)
  File "/usr/lib/python2.7/site-packages/blivet/devicefactory.py", line 97, in get_device_factory
    return factory_class(blivet, size, disks, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'container_raid_level'

Comment 1 Reartes Guillermo 2013-05-02 15:43:11 UTC
Created attachment 742772 [details]
File: anaconda.log

Comment 2 Reartes Guillermo 2013-05-02 15:43:14 UTC
Created attachment 742773 [details]
File: backtrace

Comment 3 Reartes Guillermo 2013-05-02 15:43:17 UTC
Created attachment 742774 [details]
File: environ

Comment 4 Reartes Guillermo 2013-05-02 15:43:20 UTC
Created attachment 742775 [details]
File: ifcfg.log

Comment 5 Reartes Guillermo 2013-05-02 15:43:22 UTC
Created attachment 742776 [details]
File: lsblk_output

Comment 6 Reartes Guillermo 2013-05-02 15:43:24 UTC
Created attachment 742777 [details]
File: nmcli_dev_list

Comment 7 Reartes Guillermo 2013-05-02 15:43:34 UTC
Created attachment 742778 [details]
File: packaging.log

Comment 8 Reartes Guillermo 2013-05-02 15:43:42 UTC
Created attachment 742779 [details]
File: program.log

Comment 9 Reartes Guillermo 2013-05-02 15:43:46 UTC
Created attachment 742780 [details]
File: storage.log

Comment 10 Reartes Guillermo 2013-05-02 15:43:49 UTC
Created attachment 742781 [details]
File: syslog

Comment 11 Reartes Guillermo 2013-05-02 15:44:05 UTC
Created attachment 742782 [details]
File: anaconda-tb

Comment 12 Reartes Guillermo 2013-05-02 15:45:22 UTC
Created attachment 742783 [details]
screenshot of what triggered the crash

after doing this, anaconda crashes some seconds later.

Comment 13 Chris Lumens 2013-05-02 19:12:41 UTC
*** Bug 958956 has been marked as a duplicate of this bug. ***

Comment 14 Chris Murphy 2013-05-02 19:24:08 UTC
Description of problem:
start with 80GB virtual disk
1. Installation options, partition scheme BTRFS.
2. Manual partitioning, click + to add a partition.
3. Enter / and 82gb in the dialog, click OK.
Crash.

Version-Release number of selected component:
anaconda-19.23-1.fc19.x86_64

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-osimg-min --lang en_US.UTF-8
cmdline_file:   initrd=initrd0.img root=live:CDLABEL=Fedora-Live-Desktop-x86_64-19-Be rootfstype=auto ro rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0  BOOT_IMAGE=vmlinuz0 
core_backtrace: 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.0-0.rc8.git0.2.fc19.x86_64
other involved packages: python-blivet-0.11-1.fc19.noarch
packaging.log:  
product:        Fedora
release:        Fedora release 19 (Schrödinger’s Cat)
type:           anaconda
ureports_counter: 1
version:        19

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 1907, in on_add_clicked
    self._do_refresh(mountpointToShow=mountpoint)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 894, in _do_refresh
    self.on_page_clicked(firstPage, mountpointToShow=mountpointToShow)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2308, in on_page_clicked
    self._save_current_selector()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2231, in _save_current_selector
    self._save_right_side(self._current_selector)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 1237, in _save_right_side
    selector=selector)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 957, in _replace_device
    new_device = self.__storage.factoryDevice(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 1875, in factoryDevice
    **kwargs)
  File "/usr/lib/python2.7/site-packages/blivet/devicefactory.py", line 97, in get_device_factory
    return factory_class(blivet, size, disks, **kwargs)
  File "/usr/lib/python2.7/site-packages/blivet/devicefactory.py", line 1175, in __init__
    super(BTRFSFactory, self).__init__(storage, size, disks, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'container_raid_level'

Comment 15 Chris Lumens 2013-05-02 19:29:40 UTC
*** Bug 958960 has been marked as a duplicate of this bug. ***

Comment 16 Clyde E. Kunkel 2013-05-02 21:03:38 UTC
Description of problem:
In partitioner deleted premade btrfrs partition, recreated it, added a label, clicked Update Settings and screen froze, then after awhile this error.

Version-Release number of selected component:
anaconda-19.23-1

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:UUID=afbcf488-11c6-4c3c-8c51-f8ef83d1920a selinux=0 BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.9.0-0.rc8.git0.2.fc19.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        19-Beta-TC2

Truncated backtrace:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2624, in on_apply_clicked
    self._save_right_side(self._current_selector)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 1237, in _save_right_side
    selector=selector)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 957, in _replace_device
    new_device = self.__storage.factoryDevice(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 1875, in factoryDevice
    **kwargs)
  File "/usr/lib/python2.7/site-packages/blivet/devicefactory.py", line 97, in get_device_factory
    return factory_class(blivet, size, disks, **kwargs)
  File "/usr/lib/python2.7/site-packages/blivet/devicefactory.py", line 1175, in __init__
    super(BTRFSFactory, self).__init__(storage, size, disks, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'container_raid_level'

Comment 17 Adam Williamson 2013-05-03 01:10:44 UTC
At least some of the bug descriptions sound severe enough to infringe our Beta custom part criteria:

https://fedoraproject.org/wiki/Fedora_19_Beta_Release_Criteria#Custom_partitioning

"When using the custom partitioning flow, the installer must be able to:

    Correctly interpret, and modify as described below, any disk with a valid ms-dos or gpt disk label and partition table containing ext4 partitions, LVM and/or btrfs volumes, and/or software RAID arrays at RAID levels 0, 1 and 5 containing ext4 partitions
    Create mount points backed by ext4 partitions, LVM volumes or btrfs volumes, or software RAID arrays at RAID levels 0, 1 and 5 containing ext4 partitions
    Remove a planned storage volume from the planned layout
    Assign sizes to newly-created storage volumes and containers
    Encrypt newly-created storage volumes
    Remove existing storage volumes
    Assign mount points to existing storage volumes
    Reject or disallow invalid disk and volume configurations without crashing."

So proposing as a Beta blocker.

Comment 18 Chris Lumens 2013-05-03 12:32:33 UTC
*** Bug 959038 has been marked as a duplicate of this bug. ***

Comment 19 Chris Lumens 2013-05-03 12:32:36 UTC
*** Bug 958999 has been marked as a duplicate of this bug. ***

Comment 20 David Lehman 2013-05-03 13:07:37 UTC
This is fixed by the set of patches I have currently under review.

Comment 21 Chris Lumens 2013-05-03 13:48:36 UTC
*** Bug 959441 has been marked as a duplicate of this bug. ***

Comment 22 Chris Lumens 2013-05-03 18:05:58 UTC
*** Bug 959537 has been marked as a duplicate of this bug. ***

Comment 23 Clyde E. Kunkel 2013-05-03 18:16:09 UTC
Would an updates.img be appropriate?

TIA

Comment 24 Adam Williamson 2013-05-03 18:20:29 UTC
well, I think they're reviewing the patches atm, so I don't want to get in the way of that. we should be able to roll a new anaconda and TC3 pretty quickly after they land.

Comment 25 Adam Williamson 2013-05-03 18:40:05 UTC
https://www.happyassassin.net/extras/updates-958897.img includes dlehman's changes (and various others too). Let us know if it fixes the bug. Thanks! We should get a new anaconda build this afternoon.

Comment 26 Chris Murphy 2013-05-03 18:55:46 UTC
(In reply to comment #25)
> https://www.happyassassin.net/extras/updates-958897.img

This plus updating to python-meh-0.24 to fix the libreport failure, I end up with a crash on launch of anaconda, hitting bug 959552.

Comment 27 Adam Williamson 2013-05-03 19:16:04 UTC
Try this instead:

https://www.happyassassin.net/extras/updates-958897-2.img

it includes blivet changes as well, should work better. If I did it right.

Comment 28 Chris Murphy 2013-05-03 19:26:38 UTC
(In reply to comment #27)
> Try this instead:
> https://www.happyassassin.net/extras/updates-958897-2.img

I still get a crash that sends me to (this) bug 958897, however my path to trigger this bug is totally different than this bug's description. The way I'm triggering it is bug 958956.

Comment 29 Chris Murphy 2013-05-03 19:32:46 UTC
(In reply to comment #28)
Nevermind, appears to be user error typing in the updates= line.

Comment 30 Reartes Guillermo 2013-05-03 19:50:06 UTC
I also cannot run the updates image, most likely i am making a typo somewhere but i can't find it.

Comment 31 Chris Murphy 2013-05-03 19:54:57 UTC
Nope it's still crashing on me, just not as often, and it comes back to this bug.

Comment 32 David Lehman 2013-05-03 20:03:40 UTC
Can you attach the /tmp/anaconda-tb-* file from your traceback?

Comment 33 Adam Williamson 2013-05-03 20:27:14 UTC
Can you also double-check that /tmp/updates exists, is populated, and contains a 'blivet' folder? I can definitely reproduce this without the updates.img , but not with it so far.

Comment 34 Chris Murphy 2013-05-03 20:41:12 UTC
Created attachment 743373 [details]
anaconda-tb-kApnwr with updates-958897-2.img

Confirm updates folder contains blivet folder. Under the updates folder is a 354469 byte updates.img file. The first crash I got with the update occurred quickly, this one took maybe 5-6 minutes of clicking around. The main thing that sees to trigger it, some of the time, is with multiple devices selected, creating a root that's bigger than any one device, and trying to make it LVM - this causes the whole mountpoint to vanish and maybe a minute later if I don't do anything else I get a crash.

Comment 35 Adam Williamson 2013-05-03 21:16:49 UTC
cmurf: that's pretty clearly not the same traceback as this one (so if libreport really considers it a dupe of this one, that seems like a bug). dlehman says if you can file a new report, that'd be best. thanks!

Comment 36 Fedora Update System 2013-05-03 23:04:03 UTC
anaconda-19.24-1.fc19, python-blivet-0.12-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/python-blivet-0.12-1.fc19,anaconda-19.24-1.fc19

Comment 37 Clyde E. Kunkel 2013-05-04 00:17:40 UTC
after changing https to http, I got the updates image to load and had a successful install.

Cool banners at the bottom while installing packages.

Comment 38 Adam Williamson 2013-05-04 00:34:53 UTC
Huh. I think my SSL certs are in order. I wonder if it's a problem pulling update images via https from *my* server, or pulling them via https from *any* server...

Comment 39 Clyde E. Kunkel 2013-05-04 02:26:16 UTC
(In reply to comment #38)
> Huh. I think my SSL certs are in order. I wonder if it's a problem pulling
> update images via https from *my* server, or pulling them via https from
> *any* server...

With https I would either get a hang with no further msgs or get a msg that file was found, then it would either just hang after the statistics headers or I would get a msg: 0curl: (77)Problem with the SSL CA cert (path? access rights?).  This latter msg caused me to use http.

Comment 40 Fedora Update System 2013-05-04 18:50:03 UTC
Package anaconda-19.24-1.fc19, python-blivet-0.12-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-19.24-1.fc19 python-blivet-0.12-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-7403/python-blivet-0.12-1.fc19,anaconda-19.24-1.fc19
then log in and leave karma (feedback).

Comment 41 Adam Williamson 2013-05-06 17:08:42 UTC
Discussed at 2013-05-06 blocker review meeting: http://meetbot.fedoraproject.org/fedora-blocker-review/2013-05-06/f19beta-blocker-review-3.2013-05-06-16.02.log.txt . Accepted as a blocker per criteria cited in comment #17. Seems pretty clear that this is fixed in TC3, so setting VERIFIED.

Comment 42 Dan Mashal 2013-05-08 06:28:37 UTC
Seems fixed. Will wait for TC4 to call it so.

Comment 43 Adam Williamson 2013-05-13 17:16:06 UTC
19.25 went stable, let's close this.


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