Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jan 11, 2012
  1. @kolyshkin

    vzlist: add CPUS field (-o cpus)

    kolyshkin authored
    http://bugzilla.openvz.org/2059
    
    Reported-by: Todd Mueller <toddmueller@gmail.com>
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Dec 28, 2011
  1. @kolyshkin

    vzcfgvalidate: add support for vswap configs

    kolyshkin authored
    For vswap config, these checks are performed:
    1. only check physpages and swappages
    2. barrier should be zero for both
    3. physpages.limit should not exceed host RAM
    4. swappages.limit should not exceed host swap
    
    Everything else we just ignore.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Dec 27, 2011
  1. @kolyshkin

    vzctl set: introduce --ram and --swap

    kolyshkin authored
    These are just an easy aliases for --physpages and --swappages,
    the differences being:
    
    1. There is a single argument -- the limit (the barrier is set to 0).
    2. The argument is in bytes (with optional K/M/G/T suffix).
    
    While at it, document PHYSPAGES and SWAPPAGES in ctid.conf(5).
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Sep 20, 2011
  1. @kolyshkin

    src/lib/ub.c: introduce is_vswap_config()

    kolyshkin authored
    This function is to be used in places that need to determine if the
    container' beancounter config is vswap-enabled or a standard UBC config.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Sep 16, 2011
  1. @kolyshkin

    vzlist: show swappages

    kolyshkin authored
    vzlist was using /proc/user_beancounters interface to read BC values.
    swappages is not there, so we need to switch to new (/proc/bc/resources)
    file, with an old one as a failover.
    
    http://bugzilla.openvz.org/1984
    
    Reported-by: Slava Dubrovskiy <dubrsl@altlinux.org>
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Jul 5, 2011
  1. @kolyshkin

    vzctl set --ipadd: treat IPs with different masks as the same one

    kolyshkin authored
    Introduce merge_ip_list() which is the same as merge_str_list(),
    only using find_ip() instead of find_str() for checking IP addresses.
    Since find_ip tries not to look at netmask (commit 0f8c652), we
    will not have same IPs with different masks in the resulting list.
    
    Also, due to commit e3d0346 new values have precedence over the
    old ones, so --ipadd can be used to change the mask of the already
    existing IP. Of course this is up to etc/dists/scripts/*_ip.sh
    to process this in a correct fashion.
    
    http://bugzilla.openvz.org/1088
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
  2. @kolyshkin

    src/lib/list.c: merge_str_list() generalization

    kolyshkin authored
    Make generalized __merge_str_list() with an additional find_fn argument.
    This enables using function other than find_str() to check if the value
    is already in the list.
    
    Make merge_str_list() calling __merge_str_list with find_str as a last
    argument.
    
    Should not have any visible effect per se.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
  3. @kolyshkin

    Rework find_ip() to work with netmasks

    kolyshkin authored
    We want the same IP with different (optional) netmask to be found,
    i.e. we want to treat addresses 1.2.3.4, 1.2.3.4/16 and 1.2.3.4/32
    as the same one.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Jun 28, 2011
  1. @kolyshkin

    vzctl set --ipadd/--ipdel: add ability to specify netmasks

    kolyshkin authored
    This is a preliminary support for specifying netmasks for venet.
    It allows to specify a netmask in CIDR notation for IPv4 and IPv6
    addresses.
    
    Same IP address with a different netmask is considered to be a separate IP.
    
    This is a work in progress, the next steps are:
    * modify all etc/dists/scripts/*{add,del}_ip.sh to understand IP_ADDR
      with netmasks (quite a lot of work)
    * document it in vzctl(8) man page (easy)
    
    http://bugzilla.openvz.org/1671
    http://bugzilla.openvz.org/1088
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
  2. @kolyshkin

    src/lib/util.c: introduce/use get_addr_family()

    kolyshkin authored
    Make the code more readable in a couple of places.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Jun 24, 2011
  1. @kolyshkin

    util.c: introduce is_vswap_mode()

    kolyshkin authored
    Will be used by a few tools to run-time check for VSwap-enabled kernel
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Jun 22, 2011
  1. @kolyshkin

    src/lib/bitmap.c: mark some functions as static

    kolyshkin authored
    ...and remove their definitions from bitmap.h
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
  2. @kolyshkin

    include/validate.h: remove dead function declarations

    kolyshkin authored
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
  3. @kolyshkin

    vzsplit, vzctl set: better output of UBC parameters

    kolyshkin authored
    * src/lib/util.c: introduce ubcstr() function, which
      * doesn't output limit if it is equal to barrier
      * output unlimited as 'unlimited'
    
    * vzsplit: use ubcstr() to output config
    
    * vzctl set: use ubcstr() to save UBC parameters
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Jun 15, 2011
  1. @kolyshkin

    src/lib/util.c: remove some unused functions

    kolyshkin authored
     ...and their prototypes from include/util.h.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
  2. @kolyshkin

    src/lib/create.c, include/create.h: hide internal stuff

    kolyshkin authored
    include/create.h:
    Out of 4 functions listed, only one is used externally, other two are
    internal and yet another one (vps_destroy) is actually from destroy.c!
    Remove unneeded prototypes, move define to .c file.
    
    src/lib/create.c:
    Mark internal functions as static.
    
    src/vzctl-actions.c:
    Include destroy.h as it holds the vps_destroy() prototype.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
  3. @kolyshkin

    vps_configure(): remove op argument

    kolyshkin authored
    It is not needed and meaningless.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Jun 12, 2011
  1. @kolyshkin

    Added setver.sh, a script to set vzctl version from git

    kolyshkin authored
    This one can be used for building vzctl from GIT, with the proper
    version set in vzctl sources and spec file. This is good for:
    
    1. people building vzctl from git
    2. nightly builds (?)
    
    version.h is needed for vzctl to be rebuilt when version string
    changes.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on May 26, 2011
  1. @kolyshkin

    include/script.h: remove obsoleted function declaration

    kolyshkin authored
    Forgotten hunk to commit 5b35797.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on May 17, 2011
  1. @kolyshkin

    vzctl: do not warn about valid config parameters

    kolyshkin authored
    Previous commit e0edb7c made it possible to make vzctl whine about
    unknown parameters in configuration files. Apparently, there are quite
    a few parameters that are pretty valid but not used by vzctl.
    
    List such parameters in config[] to avoid "false positives",
    reducing the noise.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on May 15, 2011
  1. @kolyshkin

    vzctl: do not allow too high CTID

    kolyshkin authored
    Commit 8785cbd already introduced the check for too high CTID.
    Some kernels also use a few values close to INT_MAX for internal
    purposes, so such CTs can not be started.
    
    Add CTID_MAX and fix the check for CTID to use it.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Apr 27, 2011
  1. @kolyshkin

    include/vzsyscalls.h: add Tilera arch

    kolyshkin authored
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Mar 31, 2011
  1. @kolyshkin

    vzctl start: fix exit code if ioprio set failed

    kolyshkin authored
    Return code from ve_ioprio_set() is propagated all the way up to main()
    and is used as vzctl exit code:
    main()
      run_action()
        start()
          vps_start()
            vps_start_custom()
              vps_setup_res()
                ve_ioprio_set()
    
    So we ended up exiting with -1 (255) from vzctl if ioprio set failed.
    
    Fix it by introducing VZ_IO_SET. Document it in vzctl(8) man page.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Mar 17, 2011
  1. @kolyshkin

    include/vzsyscalls.h: only define __NR_ioprio_set if undef

    kolyshkin authored
    Recent distros come with includes that have __NR_ioprio_set
    already defined, so let's only define it if it is missing.
    
    Helps to avoid this warning:
    
    	warning: "__NR_ioprio_set" redefined
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Feb 14, 2011
  1. @kolyshkin

    src/lib/config.c: declare some functions as static

    kolyshkin authored
    Also, remove one unused function. It was meant to implement
    the 'vzctl unset' functionality, but we will do it in a different way.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
  2. @kolyshkin

    src/lib/veth.c: declare a few functions as static

    kolyshkin authored
    Pure cleanup, should have no visible effect.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Feb 9, 2011
  1. @kolyshkin

    util.c: introduce get_running_ve_list(), ve_in_list() functions

    kolyshkin authored
    Those are to be used to fix bug #1757.
    
    http://bugzilla.openvz.org/1757
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Dec 6, 2010
  1. @kolyshkin

    vzctl set --features bridge: enable CAP_NET_ADMIN

    kolyshkin authored
    Capability CAP_NET_ADMIN is required for VE_FEATURE_BRIDGE
    to work, so let's raise it automagically.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Nov 24, 2010
  1. @kolyshkin

    vzlist: introduce uptime

    kolyshkin authored
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Nov 23, 2010
  1. @kolyshkin

    vzlist: rename Cla to Ccpustat

    kolyshkin authored
    Should not have any visible effect.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
  2. @kolyshkin

    vzlist.h: load average should be float

    kolyshkin authored
    No need for double precision here.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
  3. @kolyshkin

    vzctl start/runscript: add ability to set per-CT osrelease

    kolyshkin authored
    Some distros (like recent Fedora versions) expect a kernel
    version to be x.y.z or newer, and won't work with older kernels.
    Our kernels are usually sufficiently patched to work with new
    userspace, but this check for kernel version requires some
    trickery.
    
    Introduce /etc/vz/osrelease.conf to have these requirements
    configurable. Use new /dev/vzctl ioctl to set per-CT osrelease
    field, based on distro name and contents of osrelease.conf
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Nov 18, 2010
  1. @kolyshkin

    quota_ctl(), vps_set_quota(): refactor/fix

    kolyshkin authored
    There is no need to do hairy trickery with return values
    in quota_ctl() -- always return the exit code of vzquota.
    
    In vps_set_quota(), when we run quota_ctl(STAT2), we need
    to find out if UGID quota is running or not. If it's not
    running vzquota returns exit code of 9, which we check for.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Sep 1, 2010
  1. @kolyshkin

    vzctl stop: try to untangle CT IP cleanup mess

    kolyshkin authored
    OK, here is a mess.
    
    First, vps_stop() calls vps_cleanup_res() which calls run_net_script()
    which calls external shell script vps_net-del to clean up CT IPs.
    One problem is vps_cleanup_res() is called with STATE_STOPPING, which
    is ignored and run_net_script() is called with STATE_RUNNING (for
    whatever reason).
    
    Second, vps_stop() calls external shell script vps-stop which is
    supposed to take IP_ADDR environment variable. The problem is IP_ADDR
    is never passed. It's not a problem really since IP addresses were
    cleaned up already, there's actually no need for vps-stop at all.
    
    This is how we try to untangle it:
    
    1. Remove vps_cleanup_res(), do call run_net_script() directly.
    2. Supply STATE_STOPPING to the vps_net-del script.
    3. In vps_net-del, remove a file with CT IPs in case CT is stopping.
    4. Remove vps_stop and call to it -- it wasn't working/needed anyway.
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Commits on Aug 31, 2010
  1. @kolyshkin

    logger: add set_log_quiet() and set_log_ctid()

    kolyshkin authored
    In principle these two can be set using init_log(), but it has too
    many arguments, so provide a separate functions (to be used by
    vzeventd).
    
    Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Something went wrong with that request. Please try again.