setup-storage 1.6: return of the dreaded 'Cannot satisfy pre-depends'?
Thomas Neumann
blacky+fai at fluffbunny.de
Thu Aug 21 13:13:24 CEST 2014
Hello
setup-storage 1.5: LVM delete+create works
setup-storage 1.6: LVM delete+create broken
Can someone confirm this regression? I am pretty sure I haven't done some stupid mistake
(like using the wrong libraries) but an independent confirmation would be nice.
how to reproduce:
== preparation on fai-server ==
(clone repo & modify setup-storage to use the repo's libraries)
mkdir /srv/fai/config/tools
git clone https://github.com/faiproject/fai.git /srv/fai/config/tools/fai
cp -a /srv/fai/config/tools/fai/bin/setup-storage /srv/fai/config/tools/setup-storage_git
sed -i 's#/usr/share/fai/setup-storage/#/var/lib/fai/config/tools/fai/lib/setup-storage#' /srv/fai/config/tools/setup-storage_git
(create a sample disk config)
vi /srv/fai/config/disk_config/lvm_test
--------------- 8< --------------------------
disk_config sda
primary - 4GiB - -
disk_config lvm
vg my_vg sda1
my_vg-root - 1024 - -
--------------- 8< --------------------------
== perform test on fai-client ==
/var/lib/fai/config/tools/setup-storage_git -X -f /var/lib/fai/config/disk_config/lvm_test
/var/lib/fai/config/tools/setup-storage_git -X -f /var/lib/fai/config/disk_config/lvm_test
setup-storage -X -f /var/lib/fai/config/disk_config/lvm_test
The first cmd should execute fine
The second cmd should fail with "Cannot satisfy pre-depends"
The third cmd should execute fine (if it's setup-storage 1.5)
---------------------------------------------
Starting setup-storage 1.6
Using config file: /var/lib/fai/config/disk_config/lvm_test
W: mdadm: using ARRAYs defined in existing mdadm.conf.
Finding all volume groups
Finding volume group "my_vg"
Finding all volume groups
Finding volume group "my_vg"
Finding all volume groups
Finding volume group "my_vg"
Finding all volume groups
Finding volume group "my_vg"
Cannot satisfy pre-depends for vgremove my_vg: vgchange_a_n_VG_my_vg,lv_rm_my_vg/root -- system left untouched.
---------------------------------------------
bye
thomas
More information about the linux-fai-devel
mailing list