Bug 1649364

Summary: ValueError: is not a valid name for this device
Product: [Fedora] Fedora Reporter: Alex <fedora>
Component: blivet-guiAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: anaconda-maint-list, jonathan, kellin, mkolman, vanmeeuwen+fedora, vponcova, vtrefny, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:b0e41a0637b22cd0722b92ec2b40fb9760381db922407cada3b9b338423fcc1d;
Fixed In Version: blivet-gui-2.1.10-2.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-26 02:47:42 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-tb
none
File: anaconda.log
none
File: blivet-gui-utils.log
none
File: dbus.log
none
File: dnf.librepo.log
none
File: environ
none
File: hawkey.log
none
File: lorax-packages.log
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: packaging.log none

Description Alex 2018-11-13 13:32:59 UTC
Description of problem:
Attempting to create LVM volume in newly created volume group in blivet.

Version-Release number of selected component:
anaconda-29.24.7

The following was filed automatically by anaconda:
anaconda 29.24.7 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.7/site-packages/blivetgui/blivetgui.py", line 232, in _reraise_exception
    raise type(exception)(str(exception) + "\n" + traceback)
  File "/usr/lib/python3.7/site-packages/blivetgui/blivetgui.py", line 470, in add_device
    self._reraise_exception(result.exception, result.traceback)
ValueError:  is not a valid name for this device
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/blivetgui/blivet_utils.py", line 1169, in add_device
    actions = add_function(self, user_input)
  File "/usr/lib/python3.7/site-packages/blivetgui/blivet_utils.py", line 980, in _create_lvmvg
    pe_size=user_input.advanced["pesize"])
  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/devices/lvm.py", line 143, in __init__
    exists=exists, sysfs_path=sysfs_path)
  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/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/blivet/devices/container.py", line 66, in __init__
    super(ContainerDevice, self).__init__(*args, **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/devices/storage.py", line 142, in __init__
    raise ValueError("%s is not a valid name for this device" % name)
ValueError:  is not a valid name for this device


Additional info:
addons:         com_redhat_docker, com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-29 quiet
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.18.16-300.fc29.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        29

Potential duplicate: bug 1442020

Comment 1 Alex 2018-11-13 13:33:08 UTC
Created attachment 1505253 [details]
File: anaconda-tb

Comment 2 Alex 2018-11-13 13:33:10 UTC
Created attachment 1505254 [details]
File: anaconda.log

Comment 3 Alex 2018-11-13 13:33:11 UTC
Created attachment 1505255 [details]
File: blivet-gui-utils.log

Comment 4 Alex 2018-11-13 13:33:13 UTC
Created attachment 1505256 [details]
File: dbus.log

Comment 5 Alex 2018-11-13 13:33:15 UTC
Created attachment 1505257 [details]
File: dnf.librepo.log

Comment 6 Alex 2018-11-13 13:33:16 UTC
Created attachment 1505258 [details]
File: environ

Comment 7 Alex 2018-11-13 13:33:18 UTC
Created attachment 1505259 [details]
File: hawkey.log

Comment 8 Alex 2018-11-13 13:33:20 UTC
Created attachment 1505260 [details]
File: lorax-packages.log

Comment 9 Alex 2018-11-13 13:33:21 UTC
Created attachment 1505261 [details]
File: lsblk_output

Comment 10 Alex 2018-11-13 13:33:22 UTC
Created attachment 1505262 [details]
File: nmcli_dev_list

Comment 11 Alex 2018-11-13 13:33:24 UTC
Created attachment 1505263 [details]
File: os_info

Comment 12 Alex 2018-11-13 13:33:26 UTC
Created attachment 1505264 [details]
File: program.log

Comment 13 Alex 2018-11-13 13:33:28 UTC
Created attachment 1505265 [details]
File: storage.log

Comment 14 Alex 2018-11-13 13:33:30 UTC
Created attachment 1505266 [details]
File: syslog

Comment 15 Alex 2018-11-13 13:33:31 UTC
Created attachment 1505267 [details]
File: ifcfg.log

Comment 16 Alex 2018-11-13 13:33:33 UTC
Created attachment 1505268 [details]
File: packaging.log

Comment 17 Vojtech Trefny 2018-11-13 14:40:41 UTC
Thank you for the report. The log suggest you've tried to use "/" as name for the volume group. This is not a valid name, please use something else (only letters, numbers and these special characters: "+_.-" are allowed).

Upstream PR: https://github.com/storaged-project/blivet-gui/pull/115 (showing error dialog instead of crashing)

Comment 18 Fedora Update System 2018-12-12 13:17:53 UTC
blivet-gui-2.1.10-1.fc29 python-blivet-3.1.2-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-5827b58873

Comment 19 Fedora Update System 2018-12-13 03:36:16 UTC
blivet-gui-2.1.10-1.fc29, python-blivet-3.1.2-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-5827b58873

Comment 20 Fedora Update System 2018-12-18 02:11:59 UTC
blivet-gui-2.1.10-2.fc29, python-blivet-3.1.2-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-5827b58873

Comment 21 Fedora Update System 2018-12-26 02:47:42 UTC
blivet-gui-2.1.10-2.fc29, python-blivet-3.1.2-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.