Bug 1819900

Summary: AttributeError: Failed to add the device:ProxyDataContainer has no attribute encryption_type
Product: [Fedora] Fedora Reporter: Matheus Guedes <mguedes>
Component: blivet-guiAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: anaconda-maint-list, jkonecny, jonathan, kellin, mkolman, vanmeeuwen+fedora, vponcova, vtrefny, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:9ce23f1dc1bfdd5ab6fa332bb0660453ce7f1ac5cdd3b29d97fa2565b359deba;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-02 05:44:29 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:

Description Matheus Guedes 2020-04-01 20:07:30 UTC
Description of problem:
1) Create a new partition in Blivet-GUI.
2) Set "Device type" to LVM2 Volume Group
3) Toggle encryption
4) Set "Encryption Type" to LUKS2
5) Set a passphrase
6) Press "OK" to confirm.

Additional information:
Partition was resized and was named "linux". Using Fedora 32 Beta.

Version-Release number of selected component:
anaconda-32.24.2

The following was filed automatically by anaconda:
anaconda 32.24.2 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.8/site-packages/blivetgui/osinstall.py", line 230, in _reraise_exception
    raise type(exception)(message + str(exception) + "\n" + traceback)
  File "/usr/lib/python3.8/site-packages/blivetgui/blivetgui.py", line 502, in add_device
    self._reraise_exception(result.exception, result.traceback, message,
AttributeError: Failed to add the device:ProxyDataContainer has no attribute encryption_type
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/blivetgui/blivet_utils.py", line 1226, in add_device
    actions = add_function(self, user_input)
  File "/usr/lib/python3.8/site-packages/blivetgui/blivet_utils.py", line 1067, in _create_lvm
    pv_actions = self._create_lvmpv(pv_input)
  File "/usr/lib/python3.8/site-packages/blivetgui/blivet_utils.py", line 1012, in _create_lvmpv
    luks_version=user_input.encryption_type,
  File "/usr/lib/python3.8/site-packages/blivetgui/communication/proxy_utils.py", line 48, in __getattr__
    raise AttributeError("%s has no attribute %s" % ("ProxyDataContainer", name))
AttributeError: ProxyDataContainer has no attribute encryption_type


Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-32 quiet
executable:     /sbin/anaconda
hashmarkername: anaconda
hawkey.log:     INFO Apr-01 19:56:04 === Started libdnf-0.45.0 ===
kernel:         5.6.0-0.rc5.git0.2.fc32.x86_64
product:        Fedora
release:        Fedora release 32 (Thirty Two)
release_type:   pre-release
type:           anaconda
version:        32

Comment 1 Matheus Guedes 2020-04-01 20:08:33 UTC
Similar problem has been detected:

1) Create a new partition in Blivet-GUI.
2) Set "Device type" to LVM2 Volume Group
3) Toggle encryption
4) Set "Encryption Type" to LUKS2
5) Set a passphrase
6) Press "OK" to confirm.

Additional information:
Partition was resized and was named "linux". Using Fedora 32 Beta.

addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-32 quiet
hashmarkername: anaconda
hawkey.log:     INFO Apr-01 19:56:04 === Started libdnf-0.45.0 ===
kernel:         5.6.0-0.rc5.git0.2.fc32.x86_64
package:        anaconda-32.24.2
product:        Fedora
reason:         AttributeError: Failed to add the device:ProxyDataContainer has no attribute encryption_type
release:        Fedora release 32 (Thirty Two)
release_type:   pre-release
version:        32

Comment 2 Vojtech Trefny 2020-04-02 05:44:29 UTC

*** This bug has been marked as a duplicate of bug 1816098 ***