OpenVZ-legacy
  1. OpenVZ-legacy

vzctl.ovzl

Public
AuthorCommitMessageCommit dateIssues
Kir KolyshkinKir Kolyshkin
1e93488c3a8Released vzctl-3.0.17
Alexander Y. FomichevKir KolyshkinAlexander Y. Fomichev
695ebe56ca5gentoo-add_ip.sh: fix scan for IP addresses existing in /etc/conf.d/net/etc/vz/dists/scripts/gentoo-add_ip.sh of vzctl v3.0.16 has a stupid but rather nasty bug. short description: when a function add_ip() looking for the ip(s) to be assigned to vps it use a simple grep for each of the ip(s) in conf.d/net. btw gentoo conf.d/net is some more tricky then just an ip storage, so any presence of ip in this file will breaks a logic thus an ip will not be added to conf.d...
Kir KolyshkinKir Kolyshkin
16b1fd42678arpsend: proper fix for VLAN interfacesip command lists VLAN interfaces in form of ethX.Y@ethX, but arpsend (and other utilities) expects only ethX.Y so remove the part of VLAN interface name starting from @. The previous fix (commit 4db38b551a44019a4fced9abf23bd6e1531cef60) was wrong -- we do not need to exclude VLAN interfaces, we need to process those properly. http://bugzilla.openvz.org/show_bug.cgi?id=617
Thorsten SchifferdeckerThorsten Schifferdecker
96cb4eba715init.d/vz: fix case element "update-cron"After commit 562760ae38fc88c21753613cd58b80775494555e, Add missing braceright ")"
Kir KolyshkinKir Kolyshkin
c02f5e63073INSTALL: added instructions of how to install from source
Kir KolyshkinKir Kolyshkin
4db38b551a4arpsend: exclude VLAN interfacesremove vlan interfaces like eth0.5@eth0 from the list of interfaces to use arpsend on. http://bugzilla.openvz.org/show_bug.cgi?id=617
Kir KolyshkinKir Kolyshkin
300742f4e1emake install: add a hook with a hint to run distro-specific installmake install now tells the user to run dist-specific install (like make install-redhat).
Kir KolyshkinKir Kolyshkin
e241851ec22vzlist.c: fix compiler warning and a minor errorAdded needed include to get rid of the following warning: vzlist.c: In function ‘invert_ip’: vzlist.c:1084: warning: implicit declaration of function ‘inet_ntop’ Amazingly after a fix a new warning appears: vzlist.c: In function ‘invert_ip’: vzlist.c:1085: warning: comparison between pointer and integer That reveals that the check for inet_ntop error return is wrong. Fix this as well.
Kir KolyshkinKir Kolyshkin
2e95e2856caconfigure: change default for sysconfdir to /etcOtherwise some important stuff (initscript, files for logrotate, cron, udev) will be installed to some nonsense place like /usr/local/etc/ etc.). We do not want to ask user to supply --sysconfdir=/etc on every ./configure invocation thus this (somewhat controversial) patch. If you have better idea, please tell us :)
Kir KolyshkinKir Kolyshkin
f770a046262Revert "Workaround: Export VEID from /proc/vz/veth in VZNETCFG script."This reverts commit e2db06ad9508eece3b455c0791a4753b9627adc1, since the bug is really fixed in f7b35d8f2ac9680d6da794a72e71c51496c15a2b.
Kir KolyshkinKir Kolyshkin
39d8315d2ddMMerge git://git.systs.org/vzctl
Thorsten SchifferdeckerThorsten Schifferdecker
894b7873112Convert IPv6 addresses on parse stage to short output.See http://bugzilla.openvz.org/show_bug.cgi?id=590
Thorsten SchifferdeckerThorsten Schifferdecker
7b139a9e87bAdded IPv6 support to debian dists scripts : diff-enable_ipv6_in_debian-add-ip-20070430.patch diff-enable_ipv6_in_debian-del-ip-20070430.patch
Igor SukhihIgor Sukhih
f4940179649Convert ipv6 address to short form. IPv6 with aaaa:bbbb:cccc:dddd:0:0:0:xxxx is same as aaaa:bbbb:cccc:dddd::xxxx but the ip(route) command return only the short one, so all grep check fails. Also use short form in vzlist.http://bugzilla.openvz.org/show_bug.cgi?id=590
Igor SukhihIgor Sukhih
f7b35d8f2acFixed VEID truncation passed to the vznetcfghttp://bugzilla.openvz.org/show_bug.cgi?id=610
Thorsten SchifferdeckerThorsten Schifferdecker
d85ba315d53Makefiles: add install-debian target
Thorsten SchifferdeckerThorsten Schifferdecker
cf65fd4c5f1Minor typo change of vzctl.c: Add < > to usage of vzctl set veid.
Thorsten SchifferdeckerThorsten Schifferdecker
e2db06ad950Workaround: Export VEID from /proc/vz/veth in VZNETCFG script.See http://bugzilla.openvz.org/610
Thorsten SchifferdeckerThorsten Schifferdecker
9a4b6699713On stopping OpenVZ (SUB)System these linux-kernel-modules should are removed: vzmon, vzdquota, vzdev, added to remove list in function stop()
Thorsten SchifferdeckerThorsten Schifferdecker
f38809204adModify init.d vz script to a more generic style,so redhat and debian related distribution can use it without modifications.
Thorsten SchifferdeckerKir KolyshkinThorsten Schifferdecker
4c7d5d5d7f8vzcpucheck: update headerupdate header of vzcpucheck -v old: vpsid, units to new: VEID, CPUUNITS http://bugzilla.openvz.org/show_bug.cgi?id=591
Kir KolyshkinKir Kolyshkin
540f4c7ef48etc/init.d/vz-gentoo: use long form of ip command argumentsSame as in e838774ed20cb928d1e5087c1a528896097642f1
Thorsten SchifferdeckerKir KolyshkinThorsten Schifferdecker
e838774ed20etc/init.d/vz-redhat: replace short ip cmd args with full onessome "ip"-cmd are use in full other only short form, like: ip addr list <-> ip a l Use long commands everywhere. http://bugzilla.openvz.org/593
Thorsten SchifferdeckerKir KolyshkinThorsten Schifferdecker
9f0eaa7a8a9vps-functions: cosmetic cleanups* brackets are missing after vzaddrouting4/6 function names * proper indentation in vzdelrouting() http://bugzilla.openvz.org/show_bug.cgi?id=596
Thorsten SchifferdeckerKir KolyshkinThorsten Schifferdecker
e7b8fa1050bfix bashism conditionals in vps-net_addbashism conditionals, like if [ "txt" == "txt" ]; do should be changed to : if [ "txt" = "txt" ]; do http://bugzilla.openvz.org/594
Thorsten SchifferdeckerKir KolyshkinThorsten Schifferdecker
e42fb6f29a2fix bashism in vpsnetcleanFix "for ... do" bashism in vpsnetclean. Add 'exit 0'.
Thorsten SchifferdeckerKir KolyshkinThorsten Schifferdecker
c2e68c12149Remove extra space in logging vpsnetclea/vpsreboot messages/var/log/vzctl.log : [...] <date> vzctl : VE <VEID> : VE start in progress... <date> vereboot : VE <VEID> : reboot [...] http://bugzilla.openvz.org/597
Thorsten SchifferdeckerKir KolyshkinThorsten Schifferdecker
82c03c66054[IPv6] add ip6tables kernel modules in VE0, if IPV6 is enabledIf IPV6 is set to "yes", load a minimal set of ip6tables modules on VE0, so a VE can use cmd ip6tables. http://bugzilla.openvz.org/598
Kir KolyshkinKir Kolyshkin
00a5a95c02cetc/init.d/vz-redhat: add processing of multiple cron filesIdea and the first patch from Thorsten Schifferdecker <curx@openvz.org>: > enable crontabs related to OpenVZ, like checking /proc/user_beancouters or > /proc/bc/*/ or backuping VE's. > Files /etc/vz/cron/vz* build a general vz-crontab genvz, installed to > /etc/cron.d/vz. > > i.e: checks /proc/user_beancouters with monbean.pl > > - add a crontab file to /etc/vz/cron/vzmonbean, with: > > # enabl...
Kir KolyshkinKir Kolyshkin
562760ae38fetc/init.d/vz-redhat: add update-cronOriginally from Thorsten Schifferdecker <curx@openvz.org>: > Since vz-init-script handles the cron script, it's impossilbe reload > crontabs without restart in the whole vz system, so with > /etc/init.d/vz update-cron this can be done. Patch reworked to do more general thing, i.e. either install or remove of cron entries, depending on whether openvz is running or not. Silent is_running() func...
Kir KolyshkinKir Kolyshkin
3d3f5d92189etc/init.d/vz-redhat: introduce and use print_result function
Kir KolyshkinKir Kolyshkin
47d8333b36cetc/init.d/vz-redhat: introduce and use is_running()
Kir KolyshkinKir Kolyshkin
c9efe10c365etc/init.d/vz-redhat: whitespace cleanupRemoved extra/wrong whitespace
Thorsten SchifferdeckerKir KolyshkinThorsten Schifferdecker
50ea66e963eetc/init.d/vz-redhat: remove bashisms: for (( ... )) and let var++remove bashism : "for ((i = 0; i <= 2; i++)); do" -> "for i in `seq 0 2`; do" "let var++" -> "var=$(($var+1))" [kir@openvz.org: change `seq 0 2` to just 0 1 2; seq is GNU coreutils specific]
Igor SukhihIgor Sukhih
4766d1f711aFixed 'stop VEID --fast' action.On newer kernel VEs init ignore SIGKILL, to kill init syscall reboot used.
Kir KolyshkinKir Kolyshkin
9f7d6e46dd2Remove vzsplit dependency on linux/magic.hInstead we define the magic in-place
Kir KolyshkinKir Kolyshkin
703a69cb68fconfigure: check for either ppc64 or powerpc64Christian Kaiser reports that on his PPC box build_cpu is set to 'powerpc64'. On the machine I used it was ppc64. So we should check for both. See http://forum.openvz.org/index.php?t=tree&goto=13241&#msg_13241
Kir KolyshkinKir Kolyshkin
9b490d48da3vzcfgvalidate: check/fix dcachesize before kmemsizeThe sane value of kmemsize parameter depends on dcachesize, so new value for dcachesize should be calculated before kmemsize to avoid a need to run vzcfgvalidate twice. http://bugzilla.openvz.org/518
Kir KolyshkinKir Kolyshkin
45b1ea612bavzcfgvalidate: fix error message textbarrier should be equal *to* limit
Thorsten SchifferdeckerKir KolyshkinThorsten Schifferdecker
9ac01c321f1vzctl: delete IPv6 route from host system after VE stopBefore this patch, the following problem occured: VE assigned IP(v6) fc00::1, after stopping it, the VE IP(v6) route exist fc00::1 dev venet0 metric 1024 expires 21333737sec mtu 1500 advmss 1440 hoplimit 4294967295 http://bugzilla.openvz.org/587
Vitaliy GusevIgor SukhihVitaliy Gusev
38d21f32a71vzctl: fixed IPv6 addresses down on --ipdel
Igor SukhihIgor Sukhih
bd1f472de9dvzctl: enhanced IPv6 addresses setup in VEuse ifconfig to bring up ip instead of all network restart
Andrey MirkinIgor SukhihAndrey Mirkin
946a7926bfdvzmigrate: Fixed check for CPT support on src and dst node before rsyncin case cpt modules build in.
temeKir Kolyshkinteme
679c1f60bffvzcpucheck: correct a typovzcpucheck node power has a minor inconsistency because the following line has a typo: if ($1 == "bogomips" || $1 = "BogoMIPS") { of course, it should be: if ($1 == "bogomips" || $1 == "BogoMIPS") { http://bugzilla.openvz.org/540 [kir@openvz.org: not a bug since all modern kernels print it in lowercase]
Vitaliy GusevKir KolyshkinVitaliy Gusev
e28c04c64a6vzctl: fix removing IPv6 address from a VEWithout this patch, IPv6 address is not removed from a VE: # vzctl set <VEID> --ipdel fc00::1 --save Warning: ipv6 support disabled <---* Deleting IP address(es): Saved parameters for VE <VEID> Thanks to Thorsten Schifferdecker for reporting the issue. [kir@openvz.org: changelog, porting to latest git]
Alexey DobriyanKir KolyshkinAlexey Dobriyan
38202c59ad1vzctl: don't store garbage in store_name()/PARAM_NAMEcase PARAM_NAME: branch in store_name() adds uninitialized buffer from stack to config. But it doesn't have to: conf_store_str() one line above already did everything. Closes http://bugzilla.openvz.org/show_bug.cgi?id=579 Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org> Acked-by: Kir Kolyshkin <kir@openvz.org
Kir KolyshkinKir Kolyshkin
3c4d0f1e7ffGrant device access even if device file is a symlink.Fix for the following bug: dionysos ~ # vzctl start 333 The /dev/rtc is not block or character device Invalid value for DEVNODES=rtc:r, skipped Starting VE ... dionysos ~ # ls -l /dev/rtc lrwxrwxrwx 1 root root 8 May 14 13:40 /dev/rtc -> misc/rtc dionysos ~ # ls -l /dev/misc/rtc crw-rw-r-- 1 root root 10, 135 May 14 13:40 /dev/misc/rtc http://bugzilla.openvz.org/575
Thorsten SchifferdeckerKir KolyshkinThorsten Schifferdecker
575b0d6e580correct ipadd handling in debian_ip_add.shthe debian_add-ip script execute the bash-function "setup_network", which override all network/interface settings, on adding a new ip. http://bugzilla.openvz.org/547 http://bugzilla.openvz.org/564
Thorsten SchifferdeckerKir KolyshkinThorsten Schifferdecker
37183564297init.d/vz: fix check_kernel() functionAfter commit 682aab717a7758f2e316976490cd3e8f7ec3feb2 [..] if ! [ test -d /proc/vz ]; then [...] -> bash error: [: -d: binary operator expected Can be : (prefered) if ! test -d /proc/vz ; then or: if [ ! -d /proc/vz ]; then
Thorsten SchifferdeckerKir KolyshkinThorsten Schifferdecker
af399cda837init.d/vz-redhat: fix kernel config checkOpenVZ will not start anymore, when used KERNEL is enabled with IKCONFIG and IKCONFIG_PROC (-> /proc/config.gz).