Bug 1751698 - blivet.errors.DeviceFormatError: device is active
Summary: blivet.errors.DeviceFormatError: device is active
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 33
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vladimír Slávik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b075b746156b1919b1151938ac7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-12 12:15 UTC by Luke Hutchison
Modified: 2021-04-15 11:24 UTC (History)
9 users (show)

Fixed In Version: anaconda-33.25.3-1
Clone Of:
Environment:
Last Closed: 2021-04-15 11:24:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (921.73 KB, text/plain)
2019-09-12 12:15 UTC, Luke Hutchison
no flags Details
File: anaconda.log (105.51 KB, text/plain)
2019-09-12 12:15 UTC, Luke Hutchison
no flags Details
File: dbus.log (2.80 KB, text/plain)
2019-09-12 12:15 UTC, Luke Hutchison
no flags Details
File: environ (699 bytes, text/plain)
2019-09-12 12:15 UTC, Luke Hutchison
no flags Details
File: journalctl (369.47 KB, text/plain)
2019-09-12 12:15 UTC, Luke Hutchison
no flags Details
File: lsblk_output (2.56 KB, text/plain)
2019-09-12 12:15 UTC, Luke Hutchison
no flags Details
File: nmcli_dev_list (1.61 KB, text/plain)
2019-09-12 12:15 UTC, Luke Hutchison
no flags Details
File: os_info (683 bytes, text/plain)
2019-09-12 12:15 UTC, Luke Hutchison
no flags Details
File: program.log (80.10 KB, text/plain)
2019-09-12 12:15 UTC, Luke Hutchison
no flags Details
File: storage.log (287.47 KB, text/plain)
2019-09-12 12:15 UTC, Luke Hutchison
no flags Details

Description Luke Hutchison 2019-09-12 12:15:39 UTC
Description of problem:
I got this error while attempting to partition my drive while installing F30, using a manual partitioning.

Version-Release number of selected component:
anaconda-core-30.25.6-2.fc30.x86_64

The following was filed automatically by anaconda:
anaconda 30.25.6 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.7/site-packages/blivet/formats/__init__.py", line 561, in _pre_destroy
    raise DeviceFormatError("device is active")
  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/formats/__init__.py", line 551, in destroy
    self._pre_destroy(**kwargs)
  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/deviceaction.py", line 726, in execute
    self.format.destroy()
  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/actionlist.py", line 327, in process
    action.execute(callbacks)
  File "/usr/lib/python3.7/site-packages/blivet/actionlist.py", line 48, in wrapped_func
    return func(obj, *args, **kwargs)
  File "/usr/lib/python3.7/site-packages/blivet/blivet.py", line 106, in do_it
    self.devicetree.actions.process(callbacks=callbacks, devices=self.devices)
  File "/usr/lib/python3.7/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib64/python3.7/site-packages/pyanaconda/storage/installation.py", line 51, in turn_on_filesystems
    storage.do_it(callbacks)
  File "/usr/lib64/python3.7/site-packages/pyanaconda/installation_tasks.py", line 438, in run_task
    self._task(*self._task_args, **self._task_kwargs)
  File "/usr/lib64/python3.7/site-packages/pyanaconda/installation_tasks.py", line 472, in start
    self.run_task()
  File "/usr/lib64/python3.7/site-packages/pyanaconda/installation_tasks.py", line 304, in start
    item.start()
  File "/usr/lib64/python3.7/site-packages/pyanaconda/installation_tasks.py", line 304, in start
    item.start()
  File "/usr/lib64/python3.7/site-packages/pyanaconda/installation.py", line 398, in doInstall
    installation_queue.start()
  File "/usr/lib64/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.7/site-packages/pyanaconda/threading.py", line 280, in run
    threading.Thread.run(self)
blivet.errors.DeviceFormatError: device is active

Additional info:
addons:         com_redhat_kdump
blivet-gui-utils.log: 
cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --method=livecd:/dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz root=live:CDLABEL=Fedora-Xfce-Live-30-1-2 rd.live.image quiet
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         5.0.9-301.fc30.x86_64
other involved packages: python3-libs-3.7.3-1.fc30.x86_64, python3-blivet-3.1.3-3.fc30.noarch
product:        Fedora
release:        Fedora release 30 (Thirty)
type:           anaconda
version:        30

Comment 1 Luke Hutchison 2019-09-12 12:15:41 UTC
Created attachment 1614490 [details]
File: anaconda-tb

Comment 2 Luke Hutchison 2019-09-12 12:15:42 UTC
Created attachment 1614491 [details]
File: anaconda.log

Comment 3 Luke Hutchison 2019-09-12 12:15:43 UTC
Created attachment 1614492 [details]
File: dbus.log

Comment 4 Luke Hutchison 2019-09-12 12:15:44 UTC
Created attachment 1614493 [details]
File: environ

Comment 5 Luke Hutchison 2019-09-12 12:15:45 UTC
Created attachment 1614494 [details]
File: journalctl

Comment 6 Luke Hutchison 2019-09-12 12:15:46 UTC
Created attachment 1614495 [details]
File: lsblk_output

Comment 7 Luke Hutchison 2019-09-12 12:15:47 UTC
Created attachment 1614496 [details]
File: nmcli_dev_list

Comment 8 Luke Hutchison 2019-09-12 12:15:48 UTC
Created attachment 1614497 [details]
File: os_info

Comment 9 Luke Hutchison 2019-09-12 12:15:49 UTC
Created attachment 1614498 [details]
File: program.log

Comment 10 Luke Hutchison 2019-09-12 12:15:50 UTC
Created attachment 1614499 [details]
File: storage.log

Comment 11 Luke Hutchison 2019-09-12 12:52:28 UTC
I think the issue was that I had manually mounted one of the partitions to check it before trying to repartition with Anaconda. Anaconda should detect this, rather than bombing.

Comment 12 John Snow 2019-09-12 17:24:06 UTC
Similar problem has been detected:

1. Installed using anaconda defaults, deleting a prior installation fully and using automatic disk partitioning
2. Realized this meant using a separate /home and /, which is not suitable for my needs at present.
3. Let anaconda finish.
4. Start anaconda AGAIN from the live OS and attempt a custom formatting job this time, deleting all partitions from the custom dialog GUI, having it re-add the defaults, deleting /home, and making sure root / was set to the remaining space
5. Begin Install.

Don't know if it can be reproduced yet, but I'll lose the report if I try, so stay tuned...

addons:         com_redhat_kdump
blivet-gui-utils.log: 
cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --method=livecd:/dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz root=live:CDLABEL=Fedora-WS-Live-30-1-2 rd.live.image rd.live.check quiet
hashmarkername: anaconda
kernel:         5.0.9-301.fc30.x86_64
other involved packages: python3-libs-3.7.3-1.fc30.x86_64, python3-blivet-3.1.3-3.fc30.noarch
package:        anaconda-core-30.25.6-2.fc30.x86_64
product:        Fedora
reason:         blivet.errors.DeviceFormatError: device is active
release:        Fedora release 30 (Thirty)
version:        30

Comment 13 Ben Cotton 2020-04-30 21:08:41 UTC
This message is a reminder that Fedora 30 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 30 on 2020-05-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '30'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 30 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 14 Ben Cotton 2020-05-26 17:04:44 UTC
Fedora 30 changed to end-of-life (EOL) status on 2020-05-26. Fedora 30 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 15 Vladimír Slávik 2020-09-14 09:21:15 UTC
PR with fix merged for f33: https://github.com/rhinstaller/anaconda/pull/2839


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