Bug 907467

Summary: ValueError: name already in use
Product: [Fedora] Fedora Reporter: Eric Blake <eblake>
Component: anacondaAssignee: David Lehman <dlehman>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: anaconda-maint-list, g.kaviyarasu, jonathan, sbueno, vanmeeuwen+fedora, vbenes
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:907198d38ef012bf3df3c64a7c0565f2eff22740b1b4736bcafb66ca67f46462
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-22 21:38:38 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:
Attachments:
Description Flags
File: anaconda.log
none
File: environ
none
File: ifcfg.log
none
File: packaging.log
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: anaconda-tb none

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.