Bug 1451612 - lvmdbusd mangles the --config option if passed by the user code
Summary: lvmdbusd mangles the --config option if passed by the user code
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: LVM and device-mapper
Classification: Community
Component: lvm2
Version: 2.02.171
Hardware: x86_64
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Tony Asleson
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard: abrt_hash:6d71c86e7cc2f3c9ac38b65cc46...
: 1449860 (view as bug list)
Depends On:
Blocks: AlphaBlocker, F27AlphaBlocker
TreeView+ depends on / blocked
 
Reported: 2017-05-17 07:25 UTC by Vratislav Podzimek
Modified: 2017-07-19 05:17 UTC (History)
15 users (show)

Fixed In Version: lvm2-2.02.172-1.fc27
Clone Of:
Environment:
Last Closed: 2017-07-19 05:17:30 UTC
Embargoed:
rule-engine: lvm-technical-solution?
rule-engine: lvm-test-coverage?


Attachments (Terms of Use)
File: anaconda-tb (193.90 KB, text/plain)
2017-05-17 07:25 UTC, Vratislav Podzimek
no flags Details
File: environ (529 bytes, text/plain)
2017-05-17 07:25 UTC, Vratislav Podzimek
no flags Details
File: lsblk_output (3.24 KB, text/plain)
2017-05-17 07:25 UTC, Vratislav Podzimek
no flags Details
File: nmcli_dev_list (1.60 KB, text/plain)
2017-05-17 07:25 UTC, Vratislav Podzimek
no flags Details
File: os_info (451 bytes, text/plain)
2017-05-17 07:25 UTC, Vratislav Podzimek
no flags Details

Description Vratislav Podzimek 2017-05-17 07:25:42 UTC
Description of problem:
Just a reinstallation of an existing system using LVM

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

The following was filed automatically by anaconda:
anaconda 27.8-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python3.6/site-packages/gi/overrides/BlockDev.py", line 762, in wrapped
    raise transform[1](msg)
  File "/usr/lib/python3.6/site-packages/blivet/devices/lvm.py", line 925, in _teardown
    blockdev.lvm.lvdeactivate(self.vg.name, self._name)
  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 45, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/blivet/devices/storage.py", line 422, in teardown
    self._teardown(recursive=recursive)
  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 45, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/blivet/devices/lvm.py", line 1940, in teardown
    return DMDevice.teardown(self, recursive)
  File "/usr/lib/python3.6/site-packages/blivet/devices/lvm.py", line 1839, in decorated
    return meth(self, *args, **kwargs)  # pylint: disable=not-callable
  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 45, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/blivet/devices/storage.py", line 474, in _pre_destroy
    self.teardown()
  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 45, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/blivet/devices/lvm.py", line 940, in _pre_destroy
    StorageDevice._pre_destroy(self)
  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 45, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/blivet/devices/storage.py", line 483, in destroy
    self._pre_destroy()
  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 45, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/blivet/devices/lvm.py", line 1944, in destroy
    return DMDevice.destroy(self)
  File "/usr/lib/python3.6/site-packages/blivet/devices/lvm.py", line 1839, in decorated
    return meth(self, *args, **kwargs)  # pylint: disable=not-callable
  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 45, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/blivet/deviceaction.py", line 374, in execute
    self.device.destroy()
  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 45, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/blivet/actionlist.py", line 325, in process
    action.execute(callbacks)
  File "/usr/lib/python3.6/site-packages/blivet/actionlist.py", line 48, in wrapped_func
    return func(obj, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/blivet/blivet.py", line 163, in do_it
    self.devicetree.actions.process(callbacks=callbacks, devices=self.devices)
  File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 45, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/blivet/osinstall.py", line 1112, in turn_on_filesystems
    storage.do_it(callbacks)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/install_tasks.py", line 437, in run_task
    self._task(*self._task_args, **self._task_kwargs)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/install_tasks.py", line 471, in start
    self.run_task()
  File "/usr/lib64/python3.6/site-packages/pyanaconda/install_tasks.py", line 303, in start
    item.start()
  File "/usr/lib64/python3.6/site-packages/pyanaconda/install_tasks.py", line 303, in start
    item.start()
  File "/usr/lib64/python3.6/site-packages/pyanaconda/install.py", line 356, in doInstall
    installation_queue.start()
  File "/usr/lib64/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/threads.py", line 251, in run
    threading.Thread.run(self, *args, **kwargs)
gi.overrides.BlockDev.LVMError: Failed to call the 'Deactivate' method on the '/com/redhat/lvmdbus1/Lv/0' object: GDBus.Error:org.freedesktop.DBus.Python.dbus.exceptions.DBusException: ('com.redhat.lvmdbus1.Lv', "Exit code 3, stderr = lvchange: unrecognized option '--configglobal/notify_dbus=0'\n  Error during parsing of command line.\n")

Additional info:
addons:         com_redhat_docker, com_redhat_kdump
cmdline:        /usr/libexec/system-python  /sbin/anaconda
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.12.0-0.rc0.git9.1.fc27.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        rawhide

Comment 1 Vratislav Podzimek 2017-05-17 07:25:51 UTC
Created attachment 1279544 [details]
File: anaconda-tb

Comment 2 Vratislav Podzimek 2017-05-17 07:25:52 UTC
Created attachment 1279545 [details]
File: environ

Comment 3 Vratislav Podzimek 2017-05-17 07:25:54 UTC
Created attachment 1279546 [details]
File: lsblk_output

Comment 4 Vratislav Podzimek 2017-05-17 07:25:56 UTC
Created attachment 1279547 [details]
File: nmcli_dev_list

Comment 5 Vratislav Podzimek 2017-05-17 07:25:57 UTC
Created attachment 1279548 [details]
File: os_info

Comment 6 Vratislav Podzimek 2017-05-17 07:30:49 UTC
This blocks all reinstallations of machines with existing LVM setup.

Comment 7 Marian Csontos 2017-05-17 13:41:40 UTC
This should fix it:

https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=16c6d9f11ab581a79fb57fd36142af1dc57a3c61

Will build a rawhide package when reviewed/confirmed.

Comment 8 Marian Csontos 2017-05-17 13:43:08 UTC
Tony, do you have any comments on the fix?

Comment 9 Marian Csontos 2017-05-17 14:17:16 UTC
With the above patch installer proceeds fine. I am making a build.

Comment 10 Tony Asleson 2017-05-17 17:05:17 UTC
(In reply to Marian Csontos from comment #8)
> Tony, do you have any comments on the fix?

Looks good, thanks!

Comment 11 Marian Csontos 2017-05-18 04:56:05 UTC
Waiting for lvm2-2.02.171-2.fc27 to appear in compose...

koji build: https://koji.fedoraproject.org/koji/buildinfo?buildID=894361

Comment 12 Marian Csontos 2017-05-22 09:45:19 UTC
*** Bug 1449860 has been marked as a duplicate of this bug. ***


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