storaged-project / blivet-gui

GUI tool for storage configuration using blivet library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'NoneType' object has no attribute 'getPartitionByPath'

llebout opened this issue · comments

I am forwarding a redhat bug here because it's been stale for a while and wondering if anyone checks the bugtracker for blivet-gui at all.

https://bugzilla.redhat.com/show_bug.cgi?id=1727180

Traceback:

  File "/usr/lib/python3.7/site-packages/blivetgui/communication/server.py", line 262, in _blivet_utils_init
    self.blivet_utils = BlivetUtils(*args)
  File "/usr/lib/python3.7/site-packages/blivetgui/blivet_utils.py", line 196, in __init__
    self.blivet_reset()
  File "/usr/lib/python3.7/site-packages/blivetgui/blivet_utils.py", line 1365, in blivet_reset
    self.storage.reset()
  File "/usr/lib/python3.7/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/blivet/blivet.py", line 132, in reset
    self.devicetree.populate(cleanup_only=cleanup_only)
  File "/usr/lib/python3.7/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/blivet/populator/populator.py", line 414, in populate
    self._populate()
  File "/usr/lib/python3.7/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/blivet/populator/populator.py", line 462, in _populate
    self.handle_device(dev)
  File "/usr/lib/python3.7/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/blivet/populator/populator.py", line 265, in handle_device
    device = helper_class(self, info).run()
  File "/usr/lib/python3.7/site-packages/blivet/populator/helpers/luks.py", line 46, in run
    parents = self._devicetree._add_slave_devices(self.data)
  File "/usr/lib/python3.7/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/blivet/populator/populator.py", line 124, in _add_slave_devices
    self.handle_device(slave_info)
  File "/usr/lib/python3.7/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/blivet/populator/populator.py", line 265, in handle_device
    device = helper_class(self, info).run()
  File "/usr/lib/python3.7/site-packages/blivet/populator/helpers/partition.py", line 100, in run
    exists=True, parents=[disk])
  File "/usr/lib/python3.7/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/blivet/devices/partition.py", line 185, in __init__
    self._parted_partition = self.disk.format.parted_disk.getPartitionByPath(self.path)
AttributeError: 'NoneType' object has no attribute 'getPartitionByPath'
------------------------------
  File "/usr/bin/blivet-gui", line 115, in <module>
    main()
  File "/usr/bin/blivet-gui", line 109, in main
    BlivetGUI(client)
  File "/usr/lib/python3.7/site-packages/blivetgui/blivetgui.py", line 105, in __init__
    self.blivet_init()
  File "/usr/lib/python3.7/site-packages/blivetgui/blivetgui.py", line 742, in blivet_init
    self._reraise_exception(ret.exception, ret.traceback)
  File "/usr/lib/python3.7/site-packages/blivetgui/blivetgui.py", line 232, in _reraise_exception
    raise type(exception)(str(exception) + "\n" + traceback)

Sorry, I'm trying to do the bug triage regularly, but I'm currently having a lot of other higher priority work, so it sometimes takes a long time. I've answered in the bugzilla, the bug is actually not in blivet-gui, but in blivet (and possibly in udev), I'll need some more logs for debugging this. I'm closing this issue, we'll continue the discussion on bugzilla. Sorry for delays.

@vojtechtrefny It's OK, take your time, I'm glad you are creating and maintaining this software in the first place.