Skip to content
Snippets Groups Projects
  1. Feb 15, 2011
  2. Feb 09, 2011
    • Iustin Pop's avatar
      Fix html docs builds · a2d917f3
      Iustin Pop authored
      
      This fixes the doc builds broken by commit b292b986, but is only an
      ugly workaround due to our dependency chain.
      
      opcodes.py imports (both directly and indirectly) constants.py, which
      imports _autoconf.py. Hence one could say that all .py files have a
      logical dependency on _autoconf.py, since you can't "import opcodes"
      before _autoconf.py is built. So the sphinx rule should depend on
      _autoconf.py as a prerequisite.
      
      But we can't use a normal prerequisite, since that would cause the
      html docs to be rebuilt whenever _autoconf.py gets rebuilt, i.e. even
      on end-users machines after ./configure; this is bad, and it also
      breaks distcheck (as the html files are not removed in distclean,
      since we do want them distributed).
      
      So we only add an order-only prerequisite, which does the right thing
      (although our dependency chain is still ugly).
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarAdeodato Simo <dato@google.com>
      a2d917f3
  3. Feb 04, 2011
  4. Feb 03, 2011
  5. Feb 01, 2011
  6. Jan 31, 2011
  7. Jan 27, 2011
  8. Jan 26, 2011
    • Iustin Pop's avatar
      Verify disks: increase parallelism and other fixes · 397693d3
      Iustin Pop authored
      
      The recent work on multi-VG support has converted LUClusterVerifyDisks
      into doing serialised calls to each node, as each node can have
      different VGs. This is suboptimal, especially for big clusters, where
      this LU is executed by the watcher very often.
      
      This patch changes the logic based on the observation that querying a
      node for its VGs and then requesting a LV list for those VGs is
      equivalent to simply asking for all LVs, without specifying the VG
      name(s). So backend.py needs changes to accept an empty VG list, and
      the LU itself partially reverts to the previous version.
      
      Additionally, we do two other fixes to this LU:
      
      - small improvement in getting the instance list from the config
      - MapLVsByNode works for all disk types, hence no need to restrict to
        the DRBD template, especially as today we can "recreate" disks for
        plain volumes too (the warning message in gnt-cluster is updated
        too)
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      397693d3
    • Iustin Pop's avatar
      gnt-cluster verify-disks: fix VG name · fd78c5ce
      Iustin Pop authored
      
      Recent multi-VG work already exports the missing LV names as vg/lv,
      not simply lv. So the query and addition of the VG name in gnt-cluster
      verify-disks is redundant, and even wrong for non-default-VG
      instances.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      fd78c5ce
    • Iustin Pop's avatar
      Deactivate disks: allow skipping hypervisor checks · c9c41373
      Iustin Pop authored
      
      In some cases (e.g. the hypervisor not running at all), we might want
      to force disk deactivation, skipping the hypervisor checks. I believe
      this is not a good thing to do all the time, so this patch adds the
      force option to allow manual selection of this operation mode.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      c9c41373
Loading