Bug 1321085

Summary: gi.overrides.BlockDev.LVMError: Failed to call the 'PvScan' method on the '/com/redhat/lvmdbus1/Manager' object: GDBus.Error:org.freedesktop.DBus.Python.dbus.exceptions.DBusException: ('com.redhat.lvmdbus1.Manager', 'Device path (/dev/mapper/luks-d8e8d...
Product: [Fedora] Fedora Reporter: David Shea <dshea>
Component: lvm2Assignee: Tony Asleson <tasleson>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: agk, anaconda-maint-list, awilliam, bmarzins, bmr, dwysocha, g.kaviyarasu, heinzm, jonathan, lvm-team, msnitzer, prajnoha, prockai, robatino, vanmeeuwen+fedora, zkabelac
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:b8e11dfd3df0ee61c9fd1312c91eeb4d3266401365ef7e1094dec9fbe7965fd1;
Fixed In Version: lvm2-2.02.148-1.fc25 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-29 09:42:17 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:
Bug Depends On:    
Bug Blocks: 1277287    
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: dnf.log
none
File: environ
none
File: lsblk_output
none
File: lvm.log
none
File: nmcli_dev_list
none
File: os_info
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: packaging.log
none
File: program.log none

Description David Shea 2016-03-24 15:55:20 UTC
Description of problem:
Used autopart + encrypted VG in anaconda

Version-Release number of selected component:
anaconda-25.2-1

The following was filed automatically by anaconda:
anaconda 25.2-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python3.5/site-packages/gi/overrides/BlockDev.py", line 416, in wrapped
    raise transform[1](msg)
  File "/usr/lib/python3.5/site-packages/blivet/formats/lvmpv.py", line 121, in _create
    blockdev.lvm.pvscan(self.device)
  File "/usr/lib/python3.5/site-packages/blivet/formats/__init__.py", line 388, in create
    self._create(**kwargs)
  File "/usr/lib/python3.5/site-packages/blivet/deviceaction.py", line 590, in execute
    options=self.device.formatArgs)
  File "/usr/lib/python3.5/site-packages/blivet/actionlist.py", line 280, in process
    action.execute(callbacks)
  File "/usr/lib/python3.5/site-packages/blivet/devicetree.py", line 381, in processActions
    callbacks=callbacks)
  File "/usr/lib/python3.5/site-packages/blivet/blivet.py", line 164, in doIt
    self.devicetree.processActions(callbacks=callbacks)
  File "/usr/lib/python3.5/site-packages/blivet/osinstall.py", line 1096, in turnOnFilesystems
    storage.doIt(callbacks)
  File "/tmp/updates/pyanaconda/install.py", line 201, in doInstall
    turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall, callbacks=callbacks_reg)
  File "/usr/lib64/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/tmp/updates/pyanaconda/threads.py", line 253, in run
    threading.Thread.run(self, *args, **kwargs)
gi.overrides.BlockDev.LVMError: Failed to call the 'PvScan' method on the '/com/redhat/lvmdbus1/Manager' object: GDBus.Error:org.freedesktop.DBus.Python.dbus.exceptions.DBusException: ('com.redhat.lvmdbus1.Manager', 'Device path (/dev/mapper/luks-d8e8d055-9f45-4d2d-af66-a984993cfcfd) has invalid characters, allowable (abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789#+.:=@_\\/%)')

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-25-x86_64 quiet updates=http://192.168.100.1/~dshea/updates.img
dnf.rpm.log:    Mar 24 15:47:48 INFO --- logging initialized ---
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.6.0-0.rc0.git1.1.fc25.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        rawhide

Comment 1 David Shea 2016-03-24 15:55:29 UTC
Created attachment 1140030 [details]
File: anaconda-tb

Comment 2 David Shea 2016-03-24 15:55:31 UTC
Created attachment 1140031 [details]
File: anaconda.log

Comment 3 David Shea 2016-03-24 15:55:32 UTC
Created attachment 1140032 [details]
File: dnf.log

Comment 4 David Shea 2016-03-24 15:55:33 UTC
Created attachment 1140033 [details]
File: environ

Comment 5 David Shea 2016-03-24 15:55:35 UTC
Created attachment 1140034 [details]
File: lsblk_output

Comment 6 David Shea 2016-03-24 15:55:38 UTC
Created attachment 1140035 [details]
File: lvm.log

Comment 7 David Shea 2016-03-24 15:55:39 UTC
Created attachment 1140036 [details]
File: nmcli_dev_list

Comment 8 David Shea 2016-03-24 15:55:40 UTC
Created attachment 1140037 [details]
File: os_info

Comment 9 David Shea 2016-03-24 15:55:43 UTC
Created attachment 1140038 [details]
File: storage.log

Comment 10 David Shea 2016-03-24 15:55:46 UTC
Created attachment 1140039 [details]
File: syslog

Comment 11 David Shea 2016-03-24 15:55:47 UTC
Created attachment 1140040 [details]
File: ifcfg.log

Comment 12 David Shea 2016-03-24 15:55:48 UTC
Created attachment 1140041 [details]
File: packaging.log

Comment 13 David Shea 2016-03-24 15:55:50 UTC
Created attachment 1140042 [details]
File: program.log

Comment 14 David Shea 2016-03-24 15:57:11 UTC
Shouldn't hyphen be in that list of allowable characters?

Comment 15 Tony Asleson 2016-03-24 17:02:06 UTC
(In reply to David Shea from comment #14)
> Shouldn't hyphen be in that list of allowable characters?

Yep, I'll let lvm team define what the allowable set is and update dbus service.

Comment 16 Tony Asleson 2016-03-24 17:03:21 UTC
(In reply to Tony Asleson from comment #15)
> (In reply to David Shea from comment #14)
> > Shouldn't hyphen be in that list of allowable characters?
> 
> Yep, I'll let lvm team define what the allowable set is and update dbus
> service.

Clarification, I'll update the code once I get the allowable character set.

Comment 17 Tony Asleson 2016-03-24 17:32:03 UTC
Allowable characters for name & path according to udev:

0-9,  A-Z,  a-z,  #+-.:=@_, /

Added missing '-'

Change committed upstream:
https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=d243db5466591412a3c99bb5be84e338da9ba4c9

Comment 18 Mike McCune 2016-03-28 23:38:32 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 19 David Shea 2016-03-29 19:46:40 UTC
*** Bug 1322099 has been marked as a duplicate of this bug. ***