Bug 877552 - installer doesn't handle restart while someone uses /mnt/sysimage on live image
Summary: installer doesn't handle restart while someone uses /mnt/sysimage on live image
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:fb21d9f202dfc210af318a4ff20...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-16 20:57 UTC by Steve Tyler
Modified: 2012-12-18 15:33 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-12-18 15:33:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (1.12 MB, text/plain)
2012-11-16 20:57 UTC, Steve Tyler
no flags Details
File: environ (866 bytes, text/plain)
2012-11-16 20:57 UTC, Steve Tyler
no flags Details
File: type (9 bytes, text/plain)
2012-11-16 20:57 UTC, Steve Tyler
no flags Details
File: ifcfg.log (4.59 KB, text/plain)
2012-11-16 20:57 UTC, Steve Tyler
no flags Details
File: storage.log (593.35 KB, text/plain)
2012-11-16 20:57 UTC, Steve Tyler
no flags Details
File: version (2 bytes, text/plain)
2012-11-16 20:57 UTC, Steve Tyler
no flags Details
File: program.log (240.83 KB, text/plain)
2012-11-16 20:57 UTC, Steve Tyler
no flags Details
File: executable (14 bytes, text/plain)
2012-11-16 20:57 UTC, Steve Tyler
no flags Details
File: product (6 bytes, text/plain)
2012-11-16 20:57 UTC, Steve Tyler
no flags Details
File: anaconda.log (30.39 KB, text/plain)
2012-11-16 20:57 UTC, Steve Tyler
no flags Details
File: hashmarkername (8 bytes, text/plain)
2012-11-16 20:57 UTC, Steve Tyler
no flags Details
File: packaging.log (284 bytes, text/plain)
2012-11-16 20:57 UTC, Steve Tyler
no flags Details
File: cmdline_file (162 bytes, text/plain)
2012-11-16 20:57 UTC, Steve Tyler
no flags Details
File: release (33 bytes, text/plain)
2012-11-16 20:57 UTC, Steve Tyler
no flags Details
File: messages (243.70 KB, text/plain)
2012-11-16 20:57 UTC, Steve Tyler
no flags Details
File: other involved packages (32 bytes, text/plain)
2012-11-16 20:57 UTC, Steve Tyler
no flags Details

Description Steve Tyler 2012-11-16 20:57:13 UTC
Description of problem:
This seems to happen if I am chrooted to /mnt/sysimage in a terminal when I restart the installer on the Live CD.

Version-Release number of selected component:
anaconda-18.29-1.fc18.x86_64

Additional info:
libreport version: 2.0.17
cmdline:        /usr/bin/python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-osimg-min --lang en_US.UTF-8
kernel:         3.6.6-3.fc18.x86_64

description:
:The following was filed automatically by anaconda:
:anaconda 18.29 exception report
:Traceback (most recent call first):
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/devicelibs/lvm.py", line 411, in lvdeactivate
:    raise LVMError("lvdeactivate failed for %s: %s" % (lv_name, msg))
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/devices.py", line 2532, in _teardown
:    lvm.lvdeactivate(self.vg.name, self._name)
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/devices.py", line 758, in teardown
:    self._teardown(recursive=recursive)
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/__init__.py", line 3113, in findExistingInstallations
:    device.teardown()
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/__init__.py", line 452, in reset
:    self.roots = findExistingInstallations(self.devicetree)
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/__init__.py", line 139, in storageInitialize
:    storage.reset()
:  File "/usr/lib64/python2.7/threading.py", line 504, in run
:    self.__target(*self.__args, **self.__kwargs)
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 91, in run
:    threading.Thread.run(self, *args, **kwargs)
:LVMError: lvdeactivate failed for root: running lvm lvchange -a n --config  devices { filter=["r|/loop5$|","r|/loop6$|","r|/loop7$|"] }  fedora/root failed

Comment 1 Steve Tyler 2012-11-16 20:57:20 UTC
Created attachment 646607 [details]
File: anaconda-tb

Comment 2 Steve Tyler 2012-11-16 20:57:22 UTC
Created attachment 646608 [details]
File: environ

Comment 3 Steve Tyler 2012-11-16 20:57:24 UTC
Created attachment 646609 [details]
File: type

Comment 4 Steve Tyler 2012-11-16 20:57:26 UTC
Created attachment 646610 [details]
File: ifcfg.log

Comment 5 Steve Tyler 2012-11-16 20:57:29 UTC
Created attachment 646611 [details]
File: storage.log

Comment 6 Steve Tyler 2012-11-16 20:57:31 UTC
Created attachment 646612 [details]
File: version

Comment 7 Steve Tyler 2012-11-16 20:57:34 UTC
Created attachment 646613 [details]
File: program.log

Comment 8 Steve Tyler 2012-11-16 20:57:35 UTC
Created attachment 646614 [details]
File: executable

Comment 9 Steve Tyler 2012-11-16 20:57:37 UTC
Created attachment 646615 [details]
File: product

Comment 10 Steve Tyler 2012-11-16 20:57:41 UTC
Created attachment 646616 [details]
File: anaconda.log

Comment 11 Steve Tyler 2012-11-16 20:57:43 UTC
Created attachment 646617 [details]
File: hashmarkername

Comment 12 Steve Tyler 2012-11-16 20:57:45 UTC
Created attachment 646618 [details]
File: packaging.log

Comment 13 Steve Tyler 2012-11-16 20:57:47 UTC
Created attachment 646619 [details]
File: cmdline_file

Comment 14 Steve Tyler 2012-11-16 20:57:48 UTC
Created attachment 646620 [details]
File: release

Comment 15 Steve Tyler 2012-11-16 20:57:51 UTC
Created attachment 646621 [details]
File: messages

Comment 16 Steve Tyler 2012-11-16 20:57:53 UTC
Created attachment 646622 [details]
File: other involved packages

Comment 17 David Lehman 2012-11-16 21:26:07 UTC
(In reply to comment #0)
> Description of problem:
> This seems to happen if I am chrooted to /mnt/sysimage in a terminal when I
> restart the installer on the Live CD.

Yeah -- don't do that. This is something that we plan to do our best to fix when things get quiet enough to have time for it, but even then we'll probably only be able to bow out a bit more gracefully.

Comment 18 Steve Tyler 2012-11-16 21:44:24 UTC
An informative error message is already logged:

[snippet from attached anaconda-tb]
15:48:41,242 INFO program: Running... lvm lvchange -a n --config  devices { filter=["r|/loop5$|","r|/loop6$|","r|/loop7$|"] }  fedora/root
15:48:41,330 ERR program:   Logical volume fedora/root contains a filesystem in use.

And for the details ...
# lsof /dev/mapper/fedora-root

Comment 19 Chris Lumens 2012-12-18 04:29:13 UTC
This is really quite far into "just don't do that" territory, especially given the quantity of more serious bugs we have to deal with.  I'd be surprised if we ever do get around to finding time to deal with this.

Comment 20 Steve Tyler 2012-12-18 04:53:29 UTC
Maybe you are smart enough to know enough to not do that, but the point of displaying an error message in an exception handler is to inform those multitudes who are not as smart as you are just how lacking in smarts they really are ... :-)

Comment 21 Chris Lumens 2012-12-18 15:33:52 UTC
Here's a suprise, a bug gets reopened.  In order to hit this bug, you first had to chroot into /mnt/sysimage and then run the live installer?  That's a lot of manual steps, so some intelligence is assumed here.  Anyway like I said, we've got a lot more serious stuff to do now, and we're likely to always have more important stuff to do.  So I do not see us getting around to fixing this.


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