Bug 1193938

Summary: blivet-gui fails in numerous ways
Product: [Fedora] Fedora Reporter: Peter Robinson <pbrobinson>
Component: blivet-guiAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: usdanskys, vtrefny
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 0.2.2-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-26 12:59:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Robinson 2015-02-18 15:23:56 UTC
blivet-gui-0.2.0-6.fc22

I tried to use blivet-gui to resize a partition and it failed. But even to get to that point there was issues.

# blivet-gui
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/blivetgui/devicevisualization/device_canvas.py", line 386, in draw_event
    draw_loop(self, root_iter, 0, 0, self.parent, width)
  File "/usr/lib/python2.7/site-packages/blivetgui/devicevisualization/device_canvas.py", line 360, in draw_loop
    parts_left, size_left, start, depth)
  File "/usr/lib/python2.7/site-packages/blivetgui/devicevisualization/device_canvas.py", line 184, in compute_rectangles_size
    total_size = round(parent.size.convertTo(spec="MiB"))
  File "/usr/lib/python2.7/site-packages/blivet/size.py", line 304, in convertTo
    return Decimal(self) / Decimal((spec or B).factor)
AttributeError: 'str' object has no attribute 'factor'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/blivetgui/devicevisualization/device_canvas.py", line 386, in draw_event
    draw_loop(self, root_iter, 0, 0, self.parent, width)
  File "/usr/lib/python2.7/site-packages/blivetgui/devicevisualization/device_canvas.py", line 360, in draw_loop
    parts_left, size_left, start, depth)
  File "/usr/lib/python2.7/site-packages/blivetgui/devicevisualization/device_canvas.py", line 184, in compute_rectangles_size
    total_size = round(parent.size.convertTo(spec="MiB"))
  File "/usr/lib/python2.7/site-packages/blivet/size.py", line 304, in convertTo
    return Decimal(self) / Decimal((spec or B).factor)
AttributeError: 'str' object has no attribute 'factor'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/blivetgui/devicevisualization/device_canvas.py", line 386, in draw_event
    draw_loop(self, root_iter, 0, 0, self.parent, width)
  File "/usr/lib/python2.7/site-packages/blivetgui/devicevisualization/device_canvas.py", line 360, in draw_loop
    parts_left, size_left, start, depth)
  File "/usr/lib/python2.7/site-packages/blivetgui/devicevisualization/device_canvas.py", line 184, in compute_rectangles_size
    total_size = round(parent.size.convertTo(spec="MiB"))
  File "/usr/lib/python2.7/site-packages/blivet/size.py", line 304, in convertTo
    return Decimal(self) / Decimal((spec or B).factor)
AttributeError: 'str' object has no attribute 'factor'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/blivetgui/devicevisualization/device_canvas.py", line 386, in draw_event
    draw_loop(self, root_iter, 0, 0, self.parent, width)
  File "/usr/lib/python2.7/site-packages/blivetgui/devicevisualization/device_canvas.py", line 360, in draw_loop
    parts_left, size_left, start, depth)
  File "/usr/lib/python2.7/site-packages/blivetgui/devicevisualization/device_canvas.py", line 184, in compute_rectangles_size
    total_size = round(parent.size.convertTo(spec="MiB"))
  File "/usr/lib/python2.7/site-packages/blivet/size.py", line 304, in convertTo
    return Decimal(self) / Decimal((spec or B).factor)
AttributeError: 'str' object has no attribute 'factor'
/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py:567: Warning: The property GtkButton:use-stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_button(text, response)
/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py:567: Warning: The property GtkSettings:gtk-button-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.add_button(text, response)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/blivetgui/actions_toolbar.py", line 168, in on_edit_clicked
    self.list_partitions.edit_device()
  File "/usr/lib/python2.7/site-packages/blivetgui/list_partitions.py", line 760, in edit_device
    self.kickstart_mode)
  File "/usr/lib/python2.7/site-packages/blivetgui/dialogs/edit_dialog.py", line 91, in __init__
    self.size_area = self.add_size_chooser()
  File "/usr/lib/python2.7/site-packages/blivetgui/dialogs/edit_dialog.py", line 116, in add_size_chooser
    edited_device=self.edited_device)
  File "/usr/lib/python2.7/site-packages/blivetgui/dialogs/add_dialog.py", line 153, in __init__
    self.scale, self.spin_size = self.add_size_widgets()
  File "/usr/lib/python2.7/site-packages/blivetgui/dialogs/add_dialog.py", line 158, in add_size_widgets
    adjustment=Gtk.Adjustment(0, self.min_size.convertTo(unit),
  File "/usr/lib/python2.7/site-packages/blivet/size.py", line 304, in convertTo
    return Decimal(self) / Decimal((spec or B).factor)
AttributeError: 'str' object has no attribute 'factor'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/blivetgui/actions_menu.py", line 142, in on_edit_item
    self.list_partitions.edit_device()
  File "/usr/lib/python2.7/site-packages/blivetgui/list_partitions.py", line 760, in edit_device
    self.kickstart_mode)
  File "/usr/lib/python2.7/site-packages/blivetgui/dialogs/edit_dialog.py", line 91, in __init__
    self.size_area = self.add_size_chooser()
  File "/usr/lib/python2.7/site-packages/blivetgui/dialogs/edit_dialog.py", line 116, in add_size_chooser
    edited_device=self.edited_device)
  File "/usr/lib/python2.7/site-packages/blivetgui/dialogs/add_dialog.py", line 153, in __init__
    self.scale, self.spin_size = self.add_size_widgets()
  File "/usr/lib/python2.7/site-packages/blivetgui/dialogs/add_dialog.py", line 158, in add_size_widgets
    adjustment=Gtk.Adjustment(0, self.min_size.convertTo(unit),
  File "/usr/lib/python2.7/site-packages/blivet/size.py", line 304, in convertTo
    return Decimal(self) / Decimal((spec or B).factor)
AttributeError: 'str' object has no attribute 'factor'

Comment 1 Vojtech Trefny 2015-02-18 15:54:35 UTC
Thanks for the report. There is a little change in the API of python-blivet causing this problem. I'll try to release fixed version asap.

Comment 2 Peter Robinson 2015-02-18 16:29:45 UTC
Might also be useful to add an option to check the FS via the gui. First time I ran it had to check the console output to see that it has issues and wanted me to check the FS. Seems kind of funny to have to quit to do that.

It also doesn't seem to have an icon

Comment 3 Vojtech Trefny 2015-02-23 14:09:02 UTC
*** Bug 1195234 has been marked as a duplicate of this bug. ***

Comment 4 Vojtech Trefny 2015-02-24 15:58:36 UTC
Should be fixed in new version 0.2.2

Comment 5 Peter Robinson 2015-02-26 13:15:13 UTC
Please build as submit as an update for F-22

Comment 6 Vojtech Trefny 2015-02-26 13:44:11 UTC
Sorry, I forgot F-22 has been already branched. Koji build for 22 is finished too -- http://koji.fedoraproject.org/koji/buildinfo?buildID=615397

Comment 7 Peter Robinson 2015-02-26 13:54:17 UTC
(In reply to Vojtech Trefny from comment #6)
> Sorry, I forgot F-22 has been already branched. Koji build for 22 is
> finished too -- http://koji.fedoraproject.org/koji/buildinfo?buildID=615397

And bodhi is enabled for updates so you'll need to submit it as an update via bodhi too

Comment 8 Fedora Update System 2015-02-26 15:12:09 UTC
blivet-gui-0.2.2-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/blivet-gui-0.2.2-1.fc22

Comment 9 Fedora Update System 2015-02-26 15:58:53 UTC
blivet-gui-0.2.2-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/blivet-gui-0.2.2-2.fc22

Comment 10 Fedora Update System 2015-03-09 08:34:49 UTC
blivet-gui-0.2.2-2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.