Commits
Author | Commit | Message | Commit date | Issues | |
---|---|---|---|---|---|
Kir Kolyshkin | f6c00a76874 | Released vzctl-3.0.30.1 CHANGES (since 3.0.30) Regressions: * Fix CT start on older kernels (#2135) THANKS OpenVZ project would like to thank the following people who contributed patches and/or provided bugreports for this vzctl release (in no particular order): * Atro Tossavainen Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 6545f7a30b9 | cap.c: if capset fails, retry with old defaultApparently RHEL5 kernel doesn't like CAP_SETPCAP being set. It was added to default set in commit 4721d0e68e and released in vzctl-3.0.30, which doesn't work with RHEL5 kernel (CT is not started). The solution is to silently retry without this capability, assuming the problem is the old kernel. While at it * remove SETFCAP (added by commit f319aef1d) from the "old" set * untangle the brackets... | |||
Kir Kolyshkin | 436a00342e7 | Released vzctl-3.0.30CHANGES (since vzctl 3.0.29.3) New features * vzctl create: add ability to auto-download template cache * vzctl set: introduce --ram and --swap options * vzcfgvalidate: add support for VSwap configs (#1969) Fixes * vzctl umount: try to umount all submounts first, do not use detached umount * vzcfgvalidate: fix exit code in case validation failed (should be 2) * vzctl set --userpasswd: fix cha... | |||
Kir Kolyshkin | 27dd44f2406 | man/vzlist.8: fixed typoSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 3293a28e8ca | vzlist: error message fixes1. Print errors to stderr 2. Print normal messages (such as usage) to stdout 2. If we can't open a file, print why Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 353a3feaa7e | vzlist: add CPUS field (-o cpus)http://bugzilla.openvz.org/2059 Reported-by: Todd Mueller <toddmueller@gmail.com> Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 7f26cbb2052 | vzlist: refactor get_ve_cpustat()Simplify and streamline Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | a8dbb829e53 | Rework CT umount* Try to umount all submounts * Do not use detached umount Should fix some cases with bind mounts, possibly some vzquota off failures. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 4582d0de6b4 | vzlist: use a macro to save a few lines... and decrease the possibility of a typo. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | fb39549e51d | vzcfgvalidate: add -v yes|no optionThis is to override automatic detection of vswap config when doing validation. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 66c1ee0cae1 | vzcfgvalidate: fix exit code in case validation failedvzcfgvalidate(8) manual page says exit code of 2 is expected in case configuration is invalid. Commit 95b0f03 accidentally broke that functionality, but even before it the exit code in this case was 1 not 2. Fix the behavior to comply with the man page. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 306616edf57 | vzcfgvalidate: refactor usage()Should have no visible effect. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 103382b8015 | vzcfgvalidate: add support for vswap configsFor 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> | |||
Kir Kolyshkin | 1d415102428 | vzctl set --save: enhance the "config saved" message- change the text to be more clear - omit CT id - add config file name Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | e216550780e | vzctl set: tailor "no save" warning to running/stopped statesBefore this patch, the warning printed in case no --save flag is supplied to vzctl set command looked like this: WARNING: Settings were not saved and will be reset to original values at the next start (use --save flag) Obviously, the 'and will be reset to original values at the next start' part only makes sense if the container is running. So make this part conditional. While at it, rephrase... | |||
Kir Kolyshkin | bfabefde4c3 | vzctl start: in VSwap mode, set unset UBC params to unlimitedContrary to what kernel guys said, in-kernel defaults are not sane and we should not rely on those. Just set the unset UBC parameters to unlimited. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 71c770a7250 | src/lib/script.c: eliminate a warningThis one: warning: ignoring return value of 'write', declared with attribute warn_unused_result Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 92ff3cb6f22 | vzctl set: fix bogus error from parse_vswap()Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 0535fe1eb35 | vzctl set: introduce --ram and --swapThese 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> | |||
Kir Kolyshkin | 8c8d5cc7838 | src/lib/config.c: eliminate unneeded var in parse_ub()We do not use conf anywhere, so let's skip the assignment. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 6bf41f30e40 | man/vzctl.8: format devnodes example using .EX/.EESigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 21141d9b566 | man/vzctl.8: better info wrt VSwapThe meaning of --physpages, --swappages and --meminfo parameters are different for VSwap-enabled and old kernels. Clearly describe it. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 15a8fb347ab | etc/conf/*vswap*: simplifyWe can only leave PHYSPAGES and SWAPPAGES, and throw away others. Note that they can still be set, but it's not obligatory anymore. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 3994803662b | vzctl: in VSwap mode, make most of UBC params optionalIn vswap mode (if physpages.limit is not unlimited) we only require physpages and swappages, others are now really optional and can be left unset. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 0975dacf6a2 | vzsplit: remove hacks for KMEMSIZE, DCACHESIZE, LOCKEDPAGESSince kernel 042stab042 there is no longer need to tweak kmemsize, dcachesize and lockedpages anymore. For more details, check http://blog.openvz.org/39644.html Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 6f062af41cd | src/lib/cpt.c: fix log level of an error message"Container is not running" is an error message and should be handled with severity of -1 not 0. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | f757f96e352 | src/lib/ub.c: fix loglevel for non-error messageA message "UB limits set succesfully" is not an error and should be handled with priority of 0 not -1. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 36426637789 | dists/scripts/set_userpass.sh: fix changing pass on a stopped CT for new distrosvzctl fails to change password in stopped container with opensuse-12.1: Container is mounted Changing password for test111. Can't open /dev/urandom for reading: No such file or directory Cannot create salt: No such file or directorychpasswd: errors occurred, 1 passwords not updated Container is unmounted This happens due to devtmpfs on /dev feature used by suse-12.1 templates, so we create /d... | |||
Kir Kolyshkin | 93d7f8c5d8b | scripts/vps-download: add config fileSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 2a138d5008b | scripts/vps-download: gpg checking, template updating added(1) Add automatic GPG signature checking, enabled by default. (2) Add ability to download a newer template, enabled by default. (3) Add --no-gpg-check and --no-update to disable (1) and (2) (4) Add usage() and --usage o show some help. (5) Add --config to show current configuration (including hints on how to modify it using parameters in vz.conf) (6) Add sanity check for gpg binary and... | |||
Kir Kolyshkin | af3626a47c6 | scripts/vps-download: a fix for dashCommit 0756f94515f4739e42a13eaaab5fb78f7aa4d0e3 added trap around wget. It looks like dash do not understand SIGXXX names, only XXX. Fix it. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 3a59fb95b61 | scripts/vps-download: add GPG key checkingSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 3337bbafeb0 | scripts/vps-download: make it possible to set variables in vz.confNow one can change, say, TMPL_REPO_PREFIX from the built-in default, by setting a new value (say your closest or local mirror) in vz.conf. Commit ad5d1acd602b90ad73cecb99bbfc9ca54b3b86b8 was stupid, because with it you had to set both TMPL_REPO_PREFIX and TEMPLATE_REPOS. Now you can only set TMPL_REPO_PREFIX. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 0756f94515f | scripts/vps-download: remove partially downloaded fileIn case a user interrupts wget process, remove the file Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 91571907b00 | scripts/vps-download: error message goes to stderrIn the meantime, fix double space after the comma. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | e5706df864e | scripts/vps-download: fix double error messageThe script prints two error messages: Failed to download <...>/template/precreated/centos-6-x86.tar.gz! Template centos-6-x86 not found! Fix it by adding exit statement Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 1e8acdbf800 | scripts/vps-download: be less verboseSome output from wget is more than enough already Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | ad5d1acd602 | script/vps-download: source configs laterThis way we can set our own template paths in vz.conf Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 0a927653430 | scripts/vps-download: add check for wgetSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 46f0d7b50a1 | fs_create(): get rid of tar_nm parameterAdd 'cache/' suffix right here. This fixes wrong name passed to vps-download script. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 73ad8f7b45e | vzctl create: add ability to auto-download template cacheSigned-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 4721d0e68e1 | Add SETPCAP and AUDIT_WRITE capabilities to default setThis is an on-going effort to make Fedora 15/16 systemd work inside an OpenVZ container. SETPCAP: Some services can't be started, because systemd can't set securebits flags. [ 3637.944447] <29>systemd[1]: systemd-logger.service: main process exited, code=exited, status=218 Starting with kernel 2.6.26, and with a kernel in which file capabilities are enabled, Linux implements a set of per-thr... | |||
Kir Kolyshkin | f537353380b | etc/dists/scripts/postcreate.sh: set proper file caps for Fedora >= 15New Fedora distros, starting from Fedora 15, are trying to get rid of SUID bit for binaries, using file-based capabilities instead. While this is all great and welcomed, the problem is neigher tar nor cpio are able to carry these caps around, so if we tar/untar the binary all the attributes are lost. Yes that includes tar and cpio from Fedora 15, too. Possible solution is to use modified tar b... | |||
Kir Kolyshkin | df3162ac104 | man/vzmigrate.8: remove # from CTIDThis notation (CT #NNN) was never used elsewhere. Well, the actual reason is that # have a special meaning if it's the first character on the line, and this is exactly what happened, see http://wiki.openvz.org/w/index.php?title=Man/vzmigrate.8&oldid=10671#EXAMPLES This is just the easiest way to fix it. Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | f0d50feef95 | vzctl set --ipadd: fix default IPv6 route for DebianI do not understand how it worked at all before this patch. http://bugzilla.openvz.org/2023 Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Dmitry Kopytov | 1862b1d607a | etc/init.d/vz-redhat: fix IPTABLES_MODULESThe description of variables in vz.conf says: * IPTABLES - IPv4 iptables kernel modules to be enabled in CTs by default. * IPTABLES_MODULES - IPv4 iptables kernel modules to be loaded by init.d/vz script. But I found init.d/vz script loads modules enumerated in IPTABLES variable instead of IPTABLES_MODULES. Here is a patch. [kir@openvz.org: this is a bug in commit d284c8a79] http://bugzill... | |||
Kir Kolyshkin | 3cac03eb2f3 | Fix stdin/stdout after vzctl entervzctl enter sets O_NONBLOCK for stdin and stdout and forgets to restore original flags. This leads to following: HW# vzctl enter 104 --exec exit; read a entered into Container 104 CT104# exit logout exited from Container 104 bash: read: read error: 0: Resource temporarily unavailable Fix this by saving and then restoring stdin/stdout fd flags. http://bugzilla.openvz.org/1956 http://bug... | |||
Kir Kolyshkin | a7f905b8aae | vzctl set --ipadd: if no netmask is specified, set it to /32Before introducing netmasks support, vzctl always set netmask for IPv4 address to /32. Now it become configurable, but default was somehow set to /24. Fix it. http://bugzilla.openvz.org/2017 Reported-by: William Taylor <williamt@sonic.net> Signed-off-by: Kir Kolyshkin <kir@openvz.org> | |||
Kir Kolyshkin | 58c06592ef5 | vzctl enter/exec: log these actionsAs per bug #1266, some people need to log vzctl enter and exec actions. Let's do that with log_level=1, so unless LOG_LEVEL is not set to 1 or greater, these will not be logged. With LOG_LEVEL=1, the following will appear in vzctl.log: 2011-09-26T22:38:02+0400 vzctl : CT 102 : Executing command: ps ax 2011-09-26T22:38:07+0400 vzctl : CT 102 : Entering CT http://bugzilla.openvz.org/1266 Sign... | |||
Kir Kolyshkin | 51086560f75 | vzctl set --hostname: fix adding netmask to /etc/hostsAfter introducing netmask support, we forgot to strip off the netmask from a few places. This is another one of such places. I sincerely hope it's the last one. http://bugzilla.openvz.org/2014 Reported-by: William Taylor <williamt@sonic.net> Signed-off-by: Kir Kolyshkin <kir@openvz.org> |