[blivet][rhel7-branch] let lvmetad auto-activate lvs (#1261621)
by David Lehman
This is a cherry-pick of rhinstaller/blivet/pull/226 to rhel7-branch.
I think these patches will also fix 1254573 FWIW.
David Lehman (2):
Add a function to tell us if the lvmetad socket exists.
Wait for auto-activation of LVs when lvmetad is running.
blivet/devicelibs/lvm.py | 7 +++++++
blivet/devices/lvm.py | 33 +++++++++++++++++++++++++++++++++
2 files changed, 40 insertions(+)
--
2.4.3
8 years, 8 months
Updated: [rhinstaller/blivet/pulls/226 master] lvactivate when lvmetad is active
by dashea
When lvmetad is running and the last PV in a VG is activated, an asynchronous system unit (`lvm2-pvscan@...service`) is scheduled to update LVM's view of things and to auto-activate the LVs. During the interim between that unit being scheduled and run, LVM behaves as if the PV were still inactive. So, when we're deactivating/activating the PVs we should wait for auto-activation instead of plowing ahead and trying to activate the LVs ourselves. This has caused several bugs in which we activate an MD PV, then try to activate an LV, and get an error from LVM saying the VG doesn't exist.
--
To view this pull request on github, visit https://github.com/rhinstaller/blivet/pull/226
8 years, 8 months
[initial-setup][master/f23-branch][PATCH] Cleanup BuildRequires
by Martin Kolman
Remove BuildRequires that are currently not needed by Initial Setup.
There is really no reason to depend on Anaconda during build
and it can break possible nightly builds.
And don't require python-nose until we actually have a test suite.
Signed-off-by: Martin Kolman <mkolman(a)redhat.com>
---
initial-setup.spec | 3 ---
setup.py | 2 --
2 files changed, 5 deletions(-)
diff --git a/initial-setup.spec b/initial-setup.spec
index ef74c55..8bd38ed 100644
--- a/initial-setup.spec
+++ b/initial-setup.spec
@@ -20,11 +20,8 @@ Group: System Environment/Base
BuildRequires: gettext
BuildRequires: python3-devel
BuildRequires: python3-setuptools
-BuildRequires: python3-nose
BuildRequires: systemd-units
-BuildRequires: gtk3-devel
BuildRequires: glade-devel
-BuildRequires: anaconda >= %{anacondaver}
BuildRequires: intltool
Requires: python3
diff --git a/setup.py b/setup.py
index 9f676ad..ace6aea 100644
--- a/setup.py
+++ b/setup.py
@@ -54,8 +54,6 @@ setup(
},
scripts = ["initial-setup", "firstboot-windowmanager"],
data_files = data_files,
- setup_requires= ['nose>=1.0'],
- test_suite = "initial_setup",
long_description=read('README.rst'),
classifiers=[
"Development Status :: 3 - Alpha",
--
2.4.3
8 years, 8 months