Bug 1254135 - UnboundLocalError: local variable 'removed' referenced before assignment
Summary: UnboundLocalError: local variable 'removed' referenced before assignment
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Brian Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1b25e460dd463b8a24208881eab...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-17 09:08 UTC by Jiri Konecny
Modified: 2015-11-11 01:08 UTC (History)
7 users (show)

Fixed In Version: python-blivet-1.13-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-11 01:08:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (635.25 KB, text/plain)
2015-08-17 09:09 UTC, Jiri Konecny
no flags Details
File: anaconda.log (50.53 KB, text/plain)
2015-08-17 09:09 UTC, Jiri Konecny
no flags Details
File: dnf.log (6.60 KB, text/plain)
2015-08-17 09:09 UTC, Jiri Konecny
no flags Details
File: environ (494 bytes, text/plain)
2015-08-17 09:09 UTC, Jiri Konecny
no flags Details
File: lsblk_output (1.78 KB, text/plain)
2015-08-17 09:09 UTC, Jiri Konecny
no flags Details
File: nmcli_dev_list (1.52 KB, text/plain)
2015-08-17 09:09 UTC, Jiri Konecny
no flags Details
File: os_info (451 bytes, text/plain)
2015-08-17 09:09 UTC, Jiri Konecny
no flags Details
File: storage.log (233.20 KB, text/plain)
2015-08-17 09:09 UTC, Jiri Konecny
no flags Details
File: syslog (65.84 KB, text/plain)
2015-08-17 09:09 UTC, Jiri Konecny
no flags Details
File: ifcfg.log (2.05 KB, text/plain)
2015-08-17 09:09 UTC, Jiri Konecny
no flags Details
File: packaging.log (2.72 KB, text/plain)
2015-08-17 09:09 UTC, Jiri Konecny
no flags Details
File: program.log (52.04 KB, application/octet-stream)
2015-08-17 09:09 UTC, Jiri Konecny
no flags Details

Description Jiri Konecny 2015-08-17 09:08:57 UTC
Description of problem:
I had complete manual partitioning like this (everything else was default settings for Server netinst):

/ - 4,5 GiB
/boot - 512 MiB
swap - 512 MiB

this settings was set and used without a problem. Then I got to the spoke again and changed space for '/' to 4,55 GiB I clicked on Done without 'Update Settings' button and got this crash.

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

The following was filed automatically by anaconda:
anaconda 23.19-1 exception report
Traceback (most recent call first):
  File "/tmp/updates/blivet/blivet.py", line 1716, in copy
    for mnt in removed:
  File "/tmp/updates/blivet/devicefactory.py", line 876, in _save_devicetree
    _blivet_copy = self.storage.copy()
  File "/tmp/updates/blivet/devicefactory.py", line 815, in configure
    self._save_devicetree()
  File "/tmp/updates/blivet/blivet.py", line 1678, in factoryDevice
    factory.configure()
  File "/tmp/updates/pyanaconda/ui/gui/spokes/custom.py", line 630, in _replace_device
    new_device = self._storage_playground.factoryDevice(dev_type, size, **kwargs)
  File "/tmp/updates/pyanaconda/ui/gui/spokes/custom.py", line 711, in _try_replace_device
    self._replace_device(selector=selector, **new_device_info)
  File "/tmp/updates/pyanaconda/ui/gui/spokes/custom.py", line 1179, in _save_right_side
    new_device_info, old_device_info)
  File "/tmp/updates/pyanaconda/ui/gui/spokes/custom.py", line 1631, in on_back_clicked
    self._save_right_side(self._current_selector)
UnboundLocalError: local variable 'removed' referenced before assignment

Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   initrd=/test/jk/rawhide/initrd.img inst.repo=ftp://cobra02/rawhide/x86_64/os nokill resolution=1024x768 updates=http://cobra02/ks/jk/master_updates.img BOOT_IMAGE=/test/jk/rawhide/vmlinuz 
dnf.rpm.log:    Aug 17 10:39:14 INFO --- logging initialized ---
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.2.0-0.rc6.git1.1.fc24.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        Rawhide

Comment 1 Jiri Konecny 2015-08-17 09:09:03 UTC
Created attachment 1063727 [details]
File: anaconda-tb

Comment 2 Jiri Konecny 2015-08-17 09:09:05 UTC
Created attachment 1063728 [details]
File: anaconda.log

Comment 3 Jiri Konecny 2015-08-17 09:09:06 UTC
Created attachment 1063729 [details]
File: dnf.log

Comment 4 Jiri Konecny 2015-08-17 09:09:08 UTC
Created attachment 1063730 [details]
File: environ

Comment 5 Jiri Konecny 2015-08-17 09:09:09 UTC
Created attachment 1063731 [details]
File: lsblk_output

Comment 6 Jiri Konecny 2015-08-17 09:09:10 UTC
Created attachment 1063732 [details]
File: nmcli_dev_list

Comment 7 Jiri Konecny 2015-08-17 09:09:12 UTC
Created attachment 1063733 [details]
File: os_info

Comment 8 Jiri Konecny 2015-08-17 09:09:14 UTC
Created attachment 1063734 [details]
File: storage.log

Comment 9 Jiri Konecny 2015-08-17 09:09:17 UTC
Created attachment 1063735 [details]
File: syslog

Comment 10 Jiri Konecny 2015-08-17 09:09:18 UTC
Created attachment 1063736 [details]
File: ifcfg.log

Comment 11 Jiri Konecny 2015-08-17 09:09:19 UTC
Created attachment 1063737 [details]
File: packaging.log

Comment 12 Jiri Konecny 2015-08-17 09:09:21 UTC
Created attachment 1063738 [details]
File: program.log

Comment 13 Brian Lane 2015-08-17 19:00:23 UTC
Proposed patch - https://github.com/rhinstaller/blivet/pull/205


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