Bug 1827254 - Cannot toggle container encryption
Summary: Cannot toggle container encryption
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vojtech Trefny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1714110 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-23 13:36 UTC by Vendula Poncova
Modified: 2020-05-21 12:36 UTC (History)
14 users (show)

Fixed In Version: python-blivet-3.2.2-1.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-21 12:36:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
anaconda.log (22.12 KB, text/plain)
2020-04-23 13:36 UTC, Vendula Poncova
no flags Details
storage.log (250.80 KB, text/plain)
2020-04-23 13:37 UTC, Vendula Poncova
no flags Details
journalctl (905.97 KB, text/plain)
2020-04-23 13:38 UTC, Vendula Poncova
no flags Details
program.log (2.05 KB, text/plain)
2020-04-23 13:39 UTC, Vendula Poncova
no flags Details
lvm.log (173.20 KB, text/plain)
2020-04-23 13:40 UTC, Vendula Poncova
no flags Details
screenshot (70.74 KB, image/png)
2020-04-23 13:44 UTC, Vendula Poncova
no flags Details

Description Vendula Poncova 2020-04-23 13:36:05 UTC
Description of problem:

In the custom partitioning spoke in Anaconda, it is not possible to toggle the container encryption.

Version-Release number of selected component (if applicable):
anaconda 33.11-1.fc33

How reproducible:
always

Steps to Reproduce:
1. Start an interactive installation.
2. Go to the custom partitioning spoke.
3. Choose the LVM partitioning scheme 
4. Create partitions automatically.
5. Select the / mount point.
6. Click on the Modify button of the Volume Group section.
7. Select the Encrypt checkbox.
8. Click on the Save button.
9. Click on the Modify button of the Volume Group section.
10. Unselect the Encrypt checkbox.
11. Click on the Save button.

Actual results:
Device reconfiguration fails.

Expected results:
Device is reconfigured.

Comment 1 Vendula Poncova 2020-04-23 13:36:58 UTC
Created attachment 1681151 [details]
anaconda.log

Comment 2 Vendula Poncova 2020-04-23 13:37:34 UTC
Created attachment 1681152 [details]
storage.log

Comment 3 Vendula Poncova 2020-04-23 13:38:33 UTC
Created attachment 1681153 [details]
journalctl

Comment 4 Vendula Poncova 2020-04-23 13:39:07 UTC
Created attachment 1681154 [details]
program.log

Comment 5 Vendula Poncova 2020-04-23 13:40:01 UTC
Created attachment 1681155 [details]
lvm.log

Comment 6 Vendula Poncova 2020-04-23 13:43:19 UTC
From storage.log:

ERROR:blivet:failed to configure device factory: Cannot remove non-leaf device 'luks-vda2'
ERROR:anaconda.modules.storage.partitioning.interactive.change_device:Failed to change a device: Cannot remove non-leaf device 'luks-vda2'
WARNING:dasbus.server.handler:The call org.fedoraproject.Anaconda.Modules.Storage.DeviceTree.Scheduler.ChangeDevice has failed with an exception:
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/blivet/devicefactory.py", line 906, in configure
    self._configure()
  File "/usr/lib/python3.8/site-packages/blivet/devicefactory.py", line 1501, in _configure
    super(LVMFactory, self)._configure()
  File "/usr/lib/python3.8/site-packages/blivet/devicefactory.py", line 930, in _configure
    self.child_factory.configure()
  File "/usr/lib/python3.8/site-packages/blivet/devicefactory.py", line 1151, in configure
    self.storage.destroy_device(member)
  File "/usr/lib/python3.8/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/blivet/blivet.py", line 791, in destroy_device
    self.devicetree.actions.add(action)
  File "/usr/lib/python3.8/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/blivet/actionlist.py", line 73, in add
    self._add_func(action)
  File "/usr/lib/python3.8/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/blivet/devicetree.py", line 317, in _register_action
    self._remove_device(action.device)
  File "/usr/lib/python3.8/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/blivet/devicetree.py", line 212, in _remove_device
    raise ValueError("Cannot remove non-leaf device '%s'" % dev.name)
ValueError: Cannot remove non-leaf device 'luks-vda2'

It seems to be an issue in the storage configuration library. Reassigning to blivet.

Comment 7 Vendula Poncova 2020-04-23 13:44:14 UTC
Created attachment 1681157 [details]
screenshot

Comment 8 Vendula Poncova 2020-04-23 13:48:09 UTC
*** Bug 1714110 has been marked as a duplicate of this bug. ***


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