Bug 907467 - ValueError: name already in use
Summary: ValueError: name already in use
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Lehman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:907198d38ef012bf3df3c64a7c0...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-04 13:45 UTC by Eric Blake
Modified: 2013-08-22 21:38 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-22 21:38:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda.log (46.17 KB, text/plain)
2013-02-04 13:45 UTC, Eric Blake
no flags Details
File: environ (770 bytes, text/plain)
2013-02-04 13:45 UTC, Eric Blake
no flags Details
File: ifcfg.log (1.43 KB, text/plain)
2013-02-04 13:45 UTC, Eric Blake
no flags Details
File: packaging.log (428.25 KB, text/plain)
2013-02-04 13:45 UTC, Eric Blake
no flags Details
File: program.log (48.17 KB, text/plain)
2013-02-04 13:45 UTC, Eric Blake
no flags Details
File: storage.log (290.39 KB, text/plain)
2013-02-04 13:45 UTC, Eric Blake
no flags Details
File: syslog (119.28 KB, text/plain)
2013-02-04 13:45 UTC, Eric Blake
no flags Details
File: anaconda-tb (1.07 MB, application/octet-stream)
2013-02-04 13:46 UTC, Eric Blake
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 998741 0 unspecified CLOSED ValueError: name already in use 2021-02-22 00:41:40 UTC

Internal Links: 998741

Description Eric Blake 2013-02-04 13:45:37 UTC
Description of problem:
Trying to create a dual-boot system using the F18 installer.  I wanted to share /home in the same LVM volume group between the two installations.  I let the installer first pick its defaults, then went in to modify things; under the entry for /home, I expanded the Customize section on the right, then changed the dropdown box from the automatic vg over to my pre-existing vg, then hit apply, and things crashed.
The following was filed automatically by anaconda:
anaconda 18.37.11 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/__init__.py", line 1121, in newLV
    raise ValueError("name already in use")
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/__init__.py", line 3339, in new_device
    return getattr(self.storage, self.new_device_attr)(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/__init__.py", line 2298, in newDevice
    **kwa)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 885, in _replace_device
    self.__storage.newDevice(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 1106, in _save_right_side
    selector=selector)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/custom.py", line 2480, in on_apply_clicked
    self._save_right_side(self._current_selector)
ValueError: name already in use

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=/syslinux/vmlinuz inst.stage2=hd:UUID=0F58-653F
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.6.10-4.fc18.x86_64
other involved packages: 
package:        anaconda-18.37.11
product:        Fedora
release:        Cannot get release name.
type:           libreport
version:        18

Comment 1 Eric Blake 2013-02-04 13:45:41 UTC
Created attachment 692722 [details]
File: anaconda.log

Comment 2 Eric Blake 2013-02-04 13:45:45 UTC
Created attachment 692723 [details]
File: environ

Comment 3 Eric Blake 2013-02-04 13:45:46 UTC
Created attachment 692724 [details]
File: ifcfg.log

Comment 4 Eric Blake 2013-02-04 13:45:49 UTC
Created attachment 692725 [details]
File: packaging.log

Comment 5 Eric Blake 2013-02-04 13:45:51 UTC
Created attachment 692726 [details]
File: program.log

Comment 6 Eric Blake 2013-02-04 13:45:54 UTC
Created attachment 692727 [details]
File: storage.log

Comment 7 Eric Blake 2013-02-04 13:45:56 UTC
Created attachment 692728 [details]
File: syslog

Comment 8 Eric Blake 2013-02-04 13:46:03 UTC
Created attachment 692729 [details]
File: anaconda-tb

Comment 9 Vladimir Benes 2013-03-20 10:39:45 UTC
I've got RHEL7 Alpha-3 installed and while I installed fedora18 trying to add it's root partition into the same VG as RHEL7 is in anaconda crashed.

1. install one system into LVM
2. install another system with shared boot partition
3. add your root partition into old LVM VG
-> CRASH


Package: anaconda-18.37.11
OS Release: Fedora release 18

Comment 10 David Lehman 2013-08-21 00:30:31 UTC
We need to add something to check, once the vg has been changed/renamed, that the current lv name ("$vgname-$lvname") is not already in use.

I did not verify that this still happens with f19 but I expect it does.

Comment 11 David Lehman 2013-08-22 21:38:38 UTC
Well, I was unable to reproduce this with F19. A StorageError was raised instead of a ValueError and the failure was handled gracefully enough to allow me to continue working.

If someone is able to make it happen with f19 please reopen with a detailed description and logs.


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