<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-text-flowed" style="font-family: -moz-fixed;
      font-size: 12px;" lang="x-western">Tested it, can't recreate.
      <br>
      <br>
      Given config works fine on an older 1.6 build, that I still had
      lying around, and for me it works fine using the repo version, as
      well. Is it possible that your preparation step is faulty?
      <br>
      <br>
      (Sorry for the initial off-list mail, Thomas)<br>
      <br>
      On 08/21/2014 01:13 PM, Thomas Neumann wrote:
      <br>
      <blockquote type="cite" style="color: #000000;">Hello
        <br>
        <br>
        setup-storage 1.5: LVM delete+create works
        <br>
        setup-storage 1.6: LVM delete+create broken
        <br>
        <br>
        Can someone confirm this regression? I am pretty sure I haven't
        done some stupid mistake
        <br>
        (like using the wrong libraries) but an independent confirmation
        would be nice.
        <br>
        <br>
        <br>
        how to reproduce:
        <br>
        <br>
        == preparation on fai-server ==
        <br>
        <br>
        (clone repo & modify setup-storage to use the repo's
        libraries)
        <br>
          mkdir /srv/fai/config/tools
        <br>
          git clone <a class="moz-txt-link-freetext"
          href="https://github.com/faiproject/fai.git">https://github.com/faiproject/fai.git</a>
        /srv/fai/config/tools/fai
        <br>
          cp -a /srv/fai/config/tools/fai/bin/setup-storage
        /srv/fai/config/tools/setup-storage_git
        <br>
          sed -i 's#<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>usr/share/fai/setup-storage<span
            class="moz-txt-tag">/</span></i>#/var/lib/fai/config/tools/fai/lib/setup-storage#'
        /srv/fai/config/tools/setup-storage_git
        <br>
        <br>
        (create a sample disk config)
        <br>
        vi /srv/fai/config/disk_config/lvm_test
        <br>
        --------------- 8< --------------------------
        <br>
        disk_config sda
        <br>
        primary  -  4GiB  -  -
        <br>
        <br>
        disk_config lvm
        <br>
        vg my_vg sda1
        <br>
        my_vg-root  -  1024  -  -
        <br>
        --------------- 8< --------------------------
        <br>
        <br>
        <br>
        == perform test on fai-client ==
        <br>
        <br>
          /var/lib/fai/config/tools/setup-storage_git -X -f
        /var/lib/fai/config/disk_config/lvm_test
        <br>
          /var/lib/fai/config/tools/setup-storage_git -X -f
        /var/lib/fai/config/disk_config/lvm_test
        <br>
          setup-storage -X -f /var/lib/fai/config/disk_config/lvm_test
        <br>
        <br>
        The first cmd should execute fine
        <br>
        The second cmd should fail with "Cannot satisfy pre-depends"
        <br>
        The third cmd should execute fine (if it's setup-storage 1.5)
        <br>
        <br>
        ---------------------------------------------
        <br>
        Starting setup-storage 1.6
        <br>
        Using config file: /var/lib/fai/config/disk_config/lvm_test
        <br>
        W: mdadm: using ARRAYs defined in existing mdadm.conf.
        <br>
             Finding all volume groups
        <br>
             Finding volume group "my_vg"
        <br>
             Finding all volume groups
        <br>
             Finding volume group "my_vg"
        <br>
             Finding all volume groups
        <br>
             Finding volume group "my_vg"
        <br>
             Finding all volume groups
        <br>
             Finding volume group "my_vg"
        <br>
        Cannot satisfy pre-depends for vgremove my_vg:
        vgchange_a_n_VG_my_vg,lv_rm_my_vg/root -- system left untouched.
        <br>
        ---------------------------------------------
        <br>
        <br>
        bye
        <br>
        thomas
        <br>
      </blockquote>
    </div>
  </body>
</html>