]> git.proxmox.com Git - pve-common.git/log
pve-common.git
10 years agouse full name for PVE::ProcFSTools::write_proc_entry()
Dietmar Maurer [Wed, 26 Feb 2014 06:57:48 +0000 (07:57 +0100)]
use full name for PVE::ProcFSTools::write_proc_entry()

10 years agobump version to 3.0-14
Dietmar Maurer [Wed, 26 Feb 2014 06:51:36 +0000 (07:51 +0100)]
bump version to 3.0-14

10 years agocorrectly copy bridge config
Dietmar Maurer [Wed, 26 Feb 2014 06:47:10 +0000 (07:47 +0100)]
correctly copy bridge config

Simply use IO::File to write /proc/xyz files instead of running
external program using system("echo ...") (which fails when running
in perl taint mode).

10 years agobump version to 3.0-13
Dietmar Maurer [Wed, 22 Jan 2014 06:37:33 +0000 (07:37 +0100)]
bump version to 3.0-13

10 years agoimprove random MAC address generation
Dietmar Maurer [Wed, 22 Jan 2014 06:34:33 +0000 (07:34 +0100)]
improve random MAC address generation

10 years agoextrac ovs_option tag= into ovs_tag property
Dietmar Maurer [Mon, 30 Dec 2013 09:43:54 +0000 (10:43 +0100)]
extrac ovs_option tag= into ovs_tag property

To make the API simpler.

10 years agosupport bond_xmit_hash_policy
Dietmar Maurer [Mon, 30 Dec 2013 07:20:52 +0000 (08:20 +0100)]
support bond_xmit_hash_policy

10 years agoimprove ovs lacp bond mode impelmentation
Dietmar Maurer [Mon, 30 Dec 2013 06:35:27 +0000 (07:35 +0100)]
improve ovs lacp bond mode impelmentation

10 years agobump version to 3.0-12
Dietmar Maurer [Fri, 27 Dec 2013 08:40:03 +0000 (09:40 +0100)]
bump version to 3.0-12

10 years agoadd support for openvswitch network configuration
Dietmar Maurer [Fri, 27 Dec 2013 08:38:36 +0000 (09:38 +0100)]
add support for openvswitch network configuration

10 years agobump version to 3.0-11
Dietmar Maurer [Sat, 21 Dec 2013 08:03:25 +0000 (09:03 +0100)]
bump version to 3.0-11

10 years agoregister CIDR format
Dietmar Maurer [Sat, 21 Dec 2013 08:01:14 +0000 (09:01 +0100)]
register CIDR format

10 years agocleanup coding style
Dietmar Maurer [Sat, 21 Dec 2013 06:00:30 +0000 (07:00 +0100)]
cleanup coding style

10 years agoadd openvswitch support to tap_plug / tap_unplug
Alexandre Derumier [Wed, 18 Dec 2013 14:13:11 +0000 (15:13 +0100)]
add openvswitch support to tap_plug / tap_unplug

Note: I force removal of openvswitch tap configuration at begin of tap_plug,
because openvswitch don't auto-delete tap config on tap interface deletion.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
10 years agoregister standard options for SPICE
Dietmar Maurer [Tue, 10 Dec 2013 08:57:15 +0000 (09:57 +0100)]
register standard options for SPICE

10 years agobump version to 3.0-10
Dietmar Maurer [Mon, 9 Dec 2013 12:18:40 +0000 (13:18 +0100)]
bump version to 3.0-10

new helper next_spice_port()

10 years agoavoid unnecessarry delay by using usleep
Dietmar Maurer [Mon, 9 Dec 2013 12:15:07 +0000 (13:15 +0100)]
avoid unnecessarry delay by using usleep

10 years agofix upid parser for long uptimes
Dietmar Maurer [Fri, 8 Nov 2013 07:13:49 +0000 (08:13 +0100)]
fix upid parser for long uptimes

10 years agobump version to 3.0-9
Dietmar Maurer [Wed, 30 Oct 2013 11:47:04 +0000 (12:47 +0100)]
bump version to 3.0-9

10 years agoexport regular expressions for IPv4 and IPv6 addresses
Dietmar Maurer [Wed, 30 Oct 2013 11:38:30 +0000 (12:38 +0100)]
export regular expressions for IPv4 and IPv6 addresses

The regular expression in Regexp::IPv6 is very difficult to read, so
we simply define our own here.

10 years agobump version to 3.0-8
Dietmar Maurer [Wed, 23 Oct 2013 04:57:21 +0000 (06:57 +0200)]
bump version to 3.0-8

10 years agodo not use 'intl' variant for en an gb keyboard layouts
Dietmar Maurer [Wed, 23 Oct 2013 04:54:35 +0000 (06:54 +0200)]
do not use 'intl' variant for en an gb keyboard layouts

Most users are confused and prefer standard keymap without dead keys.

10 years agobump version to 3.0-7
Dietmar Maurer [Tue, 1 Oct 2013 11:20:34 +0000 (13:20 +0200)]
bump version to 3.0-7

10 years agouse warnings everywhere.
Dietmar Maurer [Tue, 1 Oct 2013 11:19:38 +0000 (13:19 +0200)]
use warnings everywhere.

10 years agoadd reference to git version
Dietmar Maurer [Mon, 2 Sep 2013 08:45:02 +0000 (10:45 +0200)]
add reference to git version

10 years agoauth.conf: fix file permissions
Dietmar Maurer [Mon, 5 Aug 2013 06:06:33 +0000 (08:06 +0200)]
auth.conf: fix file permissions

10 years agobump version to 3.0-6
Dietmar Maurer [Mon, 5 Aug 2013 05:57:27 +0000 (07:57 +0200)]
bump version to 3.0-6

10 years agoavoid warning if file does not exist
Dietmar Maurer [Thu, 25 Jul 2013 08:18:27 +0000 (10:18 +0200)]
avoid warning if file does not exist

10 years agoadd parser for "/etc/apt/auth.conf"
Dietmar Maurer [Thu, 25 Jul 2013 07:58:14 +0000 (09:58 +0200)]
add parser for "/etc/apt/auth.conf"

bump version to 3.0-5

10 years agobump version to 3.0-4
Dietmar Maurer [Mon, 13 May 2013 05:23:54 +0000 (07:23 +0200)]
bump version to 3.0-4

10 years agofix bug #381: use persistent reservation file for ports
Dietmar Maurer [Mon, 13 May 2013 05:21:56 +0000 (07:21 +0200)]
fix bug #381: use persistent reservation file for ports

10 years agofix date in copyright message
Dietmar Maurer [Wed, 8 May 2013 08:55:23 +0000 (10:55 +0200)]
fix date in copyright message

10 years agobump version to 3.0-2
Dietmar Maurer [Mon, 6 May 2013 09:49:29 +0000 (11:49 +0200)]
bump version to 3.0-2

Note: The previous commit log was wrong - there is no 3.0-5 version

10 years agoimplement shared file locks
Dietmar Maurer [Thu, 25 Apr 2013 09:35:35 +0000 (11:35 +0200)]
implement shared file locks

bump version to 3.0-5

11 years agofix path for brctl to /sbin/brctl
Dietmar Maurer [Fri, 15 Mar 2013 09:34:51 +0000 (10:34 +0100)]
fix path for brctl to /sbin/brctl

11 years agoupid_read_status: scan 4096 bytes to extract status
Dietmar Maurer [Fri, 15 Mar 2013 09:18:54 +0000 (10:18 +0100)]
upid_read_status: scan 4096 bytes to extract status

Else we get 'unexpected status' if error message is longer than
1024 bytes (which happens quite often).

11 years agoupdate README for wheezy
Dietmar Maurer [Fri, 15 Mar 2013 09:18:21 +0000 (10:18 +0100)]
update README for wheezy

11 years agocopy_bridge : copy multicast_snooping && multicast_querier
Alexandre Derumier [Thu, 14 Mar 2013 12:29:15 +0000 (13:29 +0100)]
copy_bridge : copy multicast_snooping && multicast_querier

If we create new vlan bridge, we want to copy multicast options if user have tunned them

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agofix return !$rate
Alexandre Derumier [Tue, 5 Mar 2013 13:46:47 +0000 (14:46 +0100)]
fix return !$rate

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agonetwork : add tap_unplug
Alexandre Derumier [Tue, 5 Mar 2013 09:23:47 +0000 (10:23 +0100)]
network : add tap_unplug

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agonetwork : add tap_plug
Alexandre Derumier [Tue, 5 Mar 2013 09:23:46 +0000 (10:23 +0100)]
network : add tap_plug

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agonetwork: add tap_create
Alexandre Derumier [Tue, 5 Mar 2013 09:23:45 +0000 (10:23 +0100)]
network: add tap_create

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agosetup_tc_rate_limit : delete class and filter before update
Alexandre Derumier [Tue, 5 Mar 2013 09:23:44 +0000 (10:23 +0100)]
setup_tc_rate_limit : delete class and filter before update

also return after remove if rate is not defined

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agosetup_tc_rate_limit : fix typo ingres -> ingress
Alexandre Derumier [Tue, 5 Mar 2013 09:23:43 +0000 (10:23 +0100)]
setup_tc_rate_limit : fix typo ingres -> ingress

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agoNetwork : add tap_rate_limit
Alexandre Derumier [Tue, 5 Mar 2013 09:23:42 +0000 (10:23 +0100)]
Network : add tap_rate_limit

Moved from pve-bridge

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
11 years agostart 3.0 development
Dietmar Maurer [Tue, 5 Mar 2013 10:47:06 +0000 (11:47 +0100)]
start 3.0 development

bump version to 3.0-1

11 years agobump version to 1.0-48
Dietmar Maurer [Mon, 25 Feb 2013 05:21:26 +0000 (06:21 +0100)]
bump version to 1.0-48

11 years agoModified IPv4 validation function, included Net::IP
Damien PIQUET [Sat, 23 Feb 2013 11:21:09 +0000 (12:21 +0100)]
Modified IPv4 validation function, included Net::IP

Signed-off-by: Damien PIQUET <piqudam@gmail.com>
11 years agofix bug #335: correctly verify ipv4 network masks
Dietmar Maurer [Fri, 22 Feb 2013 08:14:10 +0000 (09:14 +0100)]
fix bug #335: correctly verify ipv4 network masks

11 years agoadd parser for /etc/iscsi/initiatorname.iscsi
Dietmar Maurer [Wed, 13 Feb 2013 11:49:59 +0000 (12:49 +0100)]
add parser for /etc/iscsi/initiatorname.iscsi

11 years agobump version to 1.0-46
Dietmar Maurer [Wed, 13 Feb 2013 09:57:52 +0000 (10:57 +0100)]
bump version to 1.0-46

11 years agoRevert "pve-common: PVE/Network: rework of activate_bridge_vlan"
Dietmar Maurer [Wed, 13 Feb 2013 09:53:49 +0000 (10:53 +0100)]
Revert "pve-common: PVE/Network: rework of activate_bridge_vlan"

This reverts commit fa49ab1a0875a89230378c99b4b6f9ccfa0edb6b.

This still cause problems with bonding device. Nobody really knows
whats wrong. Also, this is not fully compatible with existing setups.

11 years agorevert tc rate filter changes
Dietmar Maurer [Fri, 1 Feb 2013 09:13:11 +0000 (10:13 +0100)]
revert tc rate filter changes

11 years agoquery KSM page sharing
Dietmar Maurer [Fri, 1 Feb 2013 08:05:18 +0000 (09:05 +0100)]
query KSM page sharing

bump version to 1.0-45

11 years agobmump version to 1.0-44
Dietmar Maurer [Mon, 28 Jan 2013 10:57:48 +0000 (11:57 +0100)]
bmump version to 1.0-44

11 years agopve-common: PVE/Network: rework of activate_bridge_vlan
Stefan Priebe [Fri, 25 Jan 2013 21:16:14 +0000 (22:16 +0100)]
pve-common: PVE/Network: rework of activate_bridge_vlan

- use ip command instead of old vconfig
- activate gvrp by default (it doesn't harm if the switch does not support it or it is disabled)
- use bridge instead of raw ethernet device as vlan bridge

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
11 years agofix syntax error
Dietmar Maurer [Mon, 28 Jan 2013 10:23:39 +0000 (11:23 +0100)]
fix syntax error

11 years agotc: use rate filter with mtu 64k
Dietmar Maurer [Mon, 28 Jan 2013 06:00:04 +0000 (07:00 +0100)]
tc: use rate filter with mtu 64k

also see: http://www.redhat.com/archives/libvir-list/2012-June/msg01306.html

11 years agocorrectly count sockets
Dietmar Maurer [Mon, 31 Dec 2012 07:23:05 +0000 (08:23 +0100)]
correctly count sockets

Physical IDs may not start at 0.

bump version to 1.0-41

11 years agoimplement afterfork callback
Dietmar Maurer [Mon, 10 Dec 2012 11:50:38 +0000 (12:50 +0100)]
implement afterfork callback

11 years agobump version to 1.0-39
Dietmar Maurer [Wed, 31 Oct 2012 12:55:26 +0000 (13:55 +0100)]
bump version to 1.0-39

11 years agoPVE/AbstractMigrate: remove hardcoded blowfish cipher
Stefan Priebe [Wed, 31 Oct 2012 11:16:57 +0000 (12:16 +0100)]
PVE/AbstractMigrate: remove hardcoded blowfish cipher

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
11 years agofix bug #273: retry flock if it fails with EINTR
Dietmar Maurer [Wed, 31 Oct 2012 07:22:40 +0000 (08:22 +0100)]
fix bug #273: retry flock if it fails with EINTR

11 years agofix bug #264: use option pipefail for shell commands
Dietmar Maurer [Mon, 29 Oct 2012 08:45:50 +0000 (09:45 +0100)]
fix bug #264: use option pipefail for shell commands

Normal unix shell pipe return the exits status of the last command.
If pipefail is enabled, the pipeline's return status is the value of
the last  (rightmost)  command to  exit  with a non-zero status, or zero
if all commands exit successfully.

11 years agonew helper wait_for_vnc_port()
Dietmar Maurer [Wed, 24 Oct 2012 06:21:29 +0000 (08:21 +0200)]
new helper wait_for_vnc_port()

11 years agofix bug in read_memory_usage
Dietmar Maurer [Mon, 15 Oct 2012 04:33:43 +0000 (06:33 +0200)]
fix bug in read_memory_usage

11 years agofile_read_firstline: avoid warning with empty files
Dietmar Maurer [Tue, 2 Oct 2012 06:05:33 +0000 (08:05 +0200)]
file_read_firstline: avoid warning with empty files

11 years agofix run_command: restore umask correctly
Dietmar Maurer [Wed, 26 Sep 2012 11:18:19 +0000 (13:18 +0200)]
fix run_command: restore umask correctly

11 years agofix typo in error message
Dietmar Maurer [Tue, 25 Sep 2012 04:08:19 +0000 (06:08 +0200)]
fix typo in error message

11 years agominor fix: remove debug output
Dietmar Maurer [Tue, 11 Sep 2012 07:22:47 +0000 (09:22 +0200)]
minor fix: remove debug output

11 years agofix regex for network devices
Dietmar Maurer [Thu, 2 Aug 2012 05:28:38 +0000 (07:28 +0200)]
fix regex for network devices

11 years agouse rsync flags AX (preserve ACLs and xattr)
Dietmar Maurer [Thu, 14 Jun 2012 07:08:48 +0000 (09:08 +0200)]
use rsync flags AX (preserve ACLs and xattr)

11 years agoincrease RELEASE to 2.1
Dietmar Maurer [Tue, 22 May 2012 05:18:42 +0000 (07:18 +0200)]
increase RELEASE to 2.1

11 years agoadded SectionConfig.pm, base class for Storage and Auth plugins.
Dietmar Maurer [Wed, 16 May 2012 05:19:54 +0000 (07:19 +0200)]
added SectionConfig.pm, base class for Storage and Auth plugins.

12 years agouse DNS compatible regex in upid parser
Dietmar Maurer [Fri, 20 Apr 2012 06:33:21 +0000 (08:33 +0200)]
use DNS compatible regex in upid parser

12 years agoadd Turkish keyboard mappings
Dietmar Maurer [Wed, 11 Apr 2012 06:35:47 +0000 (08:35 +0200)]
add Turkish keyboard mappings

12 years agofix bug #135: use DNS compatible naming for 'pve-node'
Dietmar Maurer [Mon, 2 Apr 2012 12:12:44 +0000 (14:12 +0200)]
fix bug #135: use DNS compatible naming for 'pve-node'

12 years agofix bug #135: allow single letter 'dns-name', allow to start name with numbers
Dietmar Maurer [Mon, 2 Apr 2012 10:08:02 +0000 (12:08 +0200)]
fix bug #135: allow single letter 'dns-name', allow to start name with numbers

12 years agonew function to setup tc rate limits.
Dietmar Maurer [Wed, 28 Mar 2012 08:33:07 +0000 (10:33 +0200)]
new function to setup tc rate limits.

12 years agoadd vlan setup code to PVE::Network
Dietmar Maurer [Wed, 28 Mar 2012 08:24:28 +0000 (10:24 +0200)]
add vlan setup code to PVE::Network

12 years agoremove exec permissions
Dietmar Maurer [Wed, 28 Mar 2012 08:21:25 +0000 (10:21 +0200)]
remove exec permissions

12 years agomoved dir_glob_regex() and dir_glob_foreach() from PVE::Storage
Dietmar Maurer [Wed, 28 Mar 2012 05:58:05 +0000 (07:58 +0200)]
moved dir_glob_regex() and dir_glob_foreach() from PVE::Storage

12 years agoreturn number of sockets in read_cpuinfo
Dietmar Maurer [Mon, 26 Mar 2012 05:54:29 +0000 (07:54 +0200)]
return number of sockets in read_cpuinfo

12 years agouse Digest::SHA instead of Digest::SHA1
Dietmar Maurer [Tue, 20 Mar 2012 10:21:38 +0000 (11:21 +0100)]
use Digest::SHA instead of Digest::SHA1

12 years agofix bug #116, #103: try to keep ordering in /etc/network/interfaces
Dietmar Maurer [Mon, 19 Mar 2012 12:30:40 +0000 (13:30 +0100)]
fix bug #116, #103: try to keep ordering in /etc/network/interfaces

12 years agoremove 'name' to the list of utf8 encoded parameters.
Dietmar Maurer [Tue, 13 Mar 2012 05:56:31 +0000 (06:56 +0100)]
remove 'name' to the list of utf8 encoded parameters.

Revert previous change. Add dns-name format instead.

12 years agoadd 'name' to the list of utf8 encoded parameters
Dietmar Maurer [Mon, 12 Mar 2012 11:31:59 +0000 (12:31 +0100)]
add 'name' to the list of utf8 encoded parameters

12 years agotry to keep ordering in /etc/network/interfaces
Dietmar Maurer [Fri, 2 Mar 2012 11:49:01 +0000 (12:49 +0100)]
try to keep ordering in /etc/network/interfaces

12 years agocleanup error message from usermod command
Dietmar Maurer [Thu, 1 Mar 2012 11:36:56 +0000 (12:36 +0100)]
cleanup error message from usermod command

12 years agotry to keep comments in /etc/network/interfaces
Dietmar Maurer [Thu, 1 Mar 2012 08:52:12 +0000 (09:52 +0100)]
try to keep comments in /etc/network/interfaces

12 years ago add Swedish keymap
Dietmar Maurer [Mon, 27 Feb 2012 08:47:07 +0000 (09:47 +0100)]
 add Swedish keymap

12 years agoincrease version to 1.0-14 for RC1
Dietmar Maurer [Thu, 16 Feb 2012 14:12:38 +0000 (15:12 +0100)]
increase version to 1.0-14 for RC1

12 years agomoved format definition from pve-storage
Dietmar Maurer [Thu, 26 Jan 2012 10:54:42 +0000 (11:54 +0100)]
moved format definition from pve-storage

12 years agoallow to pass undefined value to template_replace
Dietmar Maurer [Thu, 26 Jan 2012 05:56:56 +0000 (06:56 +0100)]
allow to pass undefined value to template_replace

12 years agofix usage string
Dietmar Maurer [Tue, 24 Jan 2012 05:49:29 +0000 (06:49 +0100)]
fix usage string

12 years agosupport check and description property for permission
Dietmar Maurer [Mon, 23 Jan 2012 10:25:38 +0000 (11:25 +0100)]
support check and description property for permission

And revove old path/priv properties.

12 years agonew helper raise_perm_exc
Dietmar Maurer [Fri, 20 Jan 2012 06:05:16 +0000 (07:05 +0100)]
new helper raise_perm_exc

12 years agonew helper decode_utf8_parameters()
Dietmar Maurer [Thu, 19 Jan 2012 13:01:02 +0000 (14:01 +0100)]
new helper decode_utf8_parameters()

Both CGI.pm and Getopt.pm does not decode utf8 strings, so we need
to do that manually.

12 years agofix bug 77: only use cmd2string when necessary
Dietmar Maurer [Mon, 9 Jan 2012 11:30:48 +0000 (12:30 +0100)]
fix bug 77: only use cmd2string when necessary

12 years agonew helper kvmkeymaplist()
Dietmar Maurer [Mon, 9 Jan 2012 10:44:52 +0000 (11:44 +0100)]
new helper kvmkeymaplist()