Bug 1948092
| Summary: | dasbus.error.DBusError: 'NoneType' object has no attribute 'upper' | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Chris Murphy <bugzilla> | ||||||||||||||||||||||||
| Component: | python-blivet | Assignee: | Vojtech Trefny <vtrefny> | ||||||||||||||||||||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||||||||||||||||
| Priority: | unspecified | ||||||||||||||||||||||||||
| Version: | 34 | CC: | anaconda-maint-list, blivet-maint-list, bugzilla, dlehman, fzatlouk, japokorn, jonathan, kellin, kparal, mkolman, robatino, rvykydal, vanmeeuwen+fedora, vponcova, vtrefny, w | ||||||||||||||||||||||||
| Target Milestone: | --- | ||||||||||||||||||||||||||
| Target Release: | --- | ||||||||||||||||||||||||||
| Hardware: | x86_64 | ||||||||||||||||||||||||||
| OS: | Unspecified | ||||||||||||||||||||||||||
| Whiteboard: | abrt_hash:9d01d56085581d5f049c2c19a5eff49b5002d3d1489feddf87a75c69bfc2e685;VARIANT_ID=workstation; | ||||||||||||||||||||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||||||||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||||||||||||||
| Clone Of: | Environment: | ||||||||||||||||||||||||||
| Last Closed: | 2021-04-12 17:18:22 UTC | Type: | --- | ||||||||||||||||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||||||||||||||||
| Documentation: | --- | CRM: | |||||||||||||||||||||||||
| Verified Versions: | Category: | --- | |||||||||||||||||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||||||||||
| Embargoed: | |||||||||||||||||||||||||||
| Bug Depends On: | |||||||||||||||||||||||||||
| Bug Blocks: | 1829024 | ||||||||||||||||||||||||||
| Attachments: |
|
||||||||||||||||||||||||||
Created attachment 1770811 [details]
File: anaconda-tb
Created attachment 1770812 [details]
File: anaconda.log
Created attachment 1770813 [details]
File: dbus.log
Created attachment 1770814 [details]
File: environ
Created attachment 1770815 [details]
File: journalctl
Created attachment 1770816 [details]
File: lsblk_output
Created attachment 1770817 [details]
File: lvm.log
Created attachment 1770818 [details]
File: nmcli_dev_list
Created attachment 1770819 [details]
File: os_info
Created attachment 1770820 [details]
File: program.log
Created attachment 1770821 [details]
File: storage.log
Ahh OK the /dev/vda device is 512 bytes in the VM! I skipped the g in the actual truncate command. truncate -s 100 f34w-ext4.raw Oops. Proposed as a Blocker for 34-final by Fedora user chrismurphy using the blocker tracking app because: Beta: When using both the installer-native and the blivet-gui-based custom partitioning flow, the installer must be able to: - Reject or disallow invalid disk and volume configurations without crashing. Chris, does this also happen if you create 1M, 10M, 100M disk? Or does it happen just for extremely small (<1kB) disks? From storage.log:
INFO:blivet:DiskLabel.parted_device returning None
DEBUG:blivet:get_format('disklabel') returning DiskLabel instance with object id 151
INFO:blivet:DiskLabel.parted_device returning None
INFO:blivet:DiskLabel.parted_device returning None
WARNING:dasbus.server.handler:The call org.fedoraproject.Anaconda.Modules.Storage.DeviceTree.Viewer.GetFormatTypeData has failed with an exception:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/dasbus/server/handler.py", line 418, in _method_callback
result = self._handle_call(
File "/usr/lib/python3.9/site-packages/dasbus/server/handler.py", line 234, in _handle_call
return handler(*parameters)
File "/usr/lib64/python3.9/site-packages/pyanaconda/modules/storage/devicetree/viewer_interface.py", line 89, in GetFormatTypeData
return DeviceFormatData.to_structure(self.implementation.get_format_type_data(name))
File "/usr/lib64/python3.9/site-packages/pyanaconda/modules/storage/devicetree/viewer.py", line 183, in get_format_type_data
return self._get_format_data(fmt)
File "/usr/lib64/python3.9/site-packages/pyanaconda/modules/storage/devicetree/viewer.py", line 195, in _get_format_data
data.description = fmt.name or ""
File "/usr/lib/python3.9/site-packages/blivet/threads.py", line 53, in run_with_lock
return m(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/blivet/formats/disklabel.py", line 322, in name
return _str % {"name": _(self._name), "type": self.label_type.upper()}
AttributeError: 'NoneType' object has no attribute 'upper'
It seems to be a duplicate of the bug 1945914. Reassigning to blivet.
Chris: I wasn't able to reproduce the issue with the storage configuration you described, but I agree with Vendy, this looks like a duplicate of 1945914, can you try with the updates image from this bug? https://vtrefny.fedorapeople.org/img/rhbz1945914.img Discussed during the 2021-04-12 blocker review meeting: [1] The decision to classify this bug was postponed: "We agreed to delay this while we get more detail on exactly what the failure case is, and if it's a dupe of 1945914 (or at least fixed by the same change)." [1] https://meetbot-raw.fedoraproject.org/fedora-blocker-review/2021-04-12/f34-blocker-review.2021-04-12-16.02.log.txt I can trigger the crash (4 for 4 attempts) if the raw backing file is 512 bytes or less. And with the updates.img in c17 it does not crash. *** This bug has been marked as a duplicate of bug 1945914 *** |
Description of problem: qemu-kvm, uefi, raw backing file (truncate -s 100g file) 1. Boot Fedora-Workstation-Live-x86_64-34-20210409.n.0.iso 2. Custom partitioning, select Standard partitioning scheme 3. curiously there is an Unknown item in the list which is strange because this should be an empty volume, so I clicked on Unknown and get a crash. Version-Release number of selected component: anaconda-core-34.24.8-1.fc34.x86_64 The following was filed automatically by anaconda: anaconda 34.24.8 exception report Traceback (most recent call first): File "/usr/lib/python3.9/site-packages/dasbus/client/handler.py", line 497, in _handle_method_error raise exception from None File "/usr/lib/python3.9/site-packages/dasbus/client/handler.py", line 477, in _get_method_reply return self._handle_method_error(error) File "/usr/lib/python3.9/site-packages/dasbus/client/handler.py", line 444, in _call_method return self._get_method_reply( File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/custom_storage.py", line 696, in _setup_fstype_combo self._device_tree.GetFormatTypeData(fs_type) File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/custom_storage.py", line 813, in _populate_right_side self._setup_fstype_combo(self._request.device_type, self._request.format_type, format_types) File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/custom_storage.py", line 1422, in on_selector_clicked self._populate_right_side(self._accordion.current_selector) File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/custom_storage.py", line 1041, in _show_mountpoint self.on_selector_clicked(None, page.members[0]) File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/custom_storage.py", line 1433, in on_page_clicked self._show_mountpoint(page=page, mountpoint=mountpoint_to_show) File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/lib/accordion.py", line 99, in _on_expanded cb(child) dasbus.error.DBusError: 'NoneType' object has no attribute 'upper' Additional info: addons: com_redhat_kdump cmdline: /usr/bin/python3 /sbin/anaconda --liveinst --graphical cmdline_file: BOOT_IMAGE=/images/pxeboot/vmlinuz root=live:CDLABEL=Fedora-WS-Live-34-20210409-n-0 rd.live.image quiet dnf.librepo.log: executable: /sbin/anaconda hashmarkername: anaconda kernel: 5.11.11-300.fc34.x86_64 other involved packages: python3-dasbus-1.4-3.fc34.noarch, anaconda-gui-34.24.8-1.fc34.x86_64 product: Fedora release: Fedora release 34 (Thirty Four) release_type: pre-release type: anaconda version: 34