]>
git.proxmox.com Git - pve-common.git/log
Dietmar Maurer [Wed, 17 Dec 2014 13:49:52 +0000 (14:49 +0100)]
bump version to 3.0-21
Dietmar Maurer [Tue, 16 Dec 2014 10:10:53 +0000 (11:10 +0100)]
add abstract class to implement daemons
Dietmar Maurer [Tue, 16 Dec 2014 12:23:37 +0000 (13:23 +0100)]
cleanup error message
Dietmar Maurer [Thu, 11 Dec 2014 05:38:13 +0000 (06:38 +0100)]
set RELEASE to 3.3
Dietmar Maurer [Thu, 11 Dec 2014 05:36:36 +0000 (06:36 +0100)]
bump version to 3.0-20
Alexandre Derumier [Wed, 10 Dec 2014 17:45:48 +0000 (18:45 +0100)]
create_firewall_bridge_ovs : activate ovsint interface
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Wed, 25 Jun 2014 10:32:48 +0000 (12:32 +0200)]
avoid warning when parsing long hex values with hex()
Dietmar Maurer [Mon, 23 Jun 2014 11:53:41 +0000 (13:53 +0200)]
improve debug message
Dietmar Maurer [Wed, 28 May 2014 08:27:03 +0000 (10:27 +0200)]
add FVN digest
Userful for short strings.
Dietmar Maurer [Tue, 27 May 2014 07:43:47 +0000 (09:43 +0200)]
add additional check for duplicate method definitions
If we have a SUBCLASS, other methods are not allowed.
Dietmar Maurer [Fri, 23 May 2014 08:26:34 +0000 (10:26 +0200)]
fix typo
Dietmar Maurer [Mon, 19 May 2014 10:59:08 +0000 (12:59 +0200)]
new helper read_proc_net_route
Dietmar Maurer [Fri, 16 May 2014 09:14:47 +0000 (11:14 +0200)]
add 'noerr' parameter to parse_tap_devive_name()
And simply ignore devices with random names in cleanup_firewall_bridge().
Dietmar Maurer [Wed, 14 May 2014 05:18:17 +0000 (07:18 +0200)]
add additional comment
Alexandre Derumier [Wed, 14 May 2014 03:25:45 +0000 (05:25 +0200)]
rename link to fwln && link peer to fwpr
also plug fwpr to vmbr, and fwln to fwbr
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Dietmar Maurer [Tue, 13 May 2014 12:33:49 +0000 (14:33 +0200)]
we need to match link+ rule from iptables rules, and need to have a name different
than link(\d+)i(\d+), for distinguished bridge/ovs interface unplug
Based on patch from Alexandre, but I prefer "link${vmid}o${devid}"
Dietmar Maurer [Thu, 8 May 2014 11:07:52 +0000 (13:07 +0200)]
add firewall bridge support for openvswitch
eth0-->vmbr0--vlan--fwintXiY-->fwbr-->tapXiY (firewalled tap)
--vlan-->tapXiY (non firewall tap)
This is based on patches from Alexandre, but tries to factor out
common code into privat methods.
Dietmar Maurer [Thu, 8 May 2014 09:28:03 +0000 (11:28 +0200)]
add firewall bridge support for linux bridge
eth0----->vmbr0
eth0.94-->vmbr0v94<--tapXiY (non firewalled tap)
<--linkXiY-->linkXpY-->fwbrXiY-->tapXiY (firewalled tap)
This is based on patches from Alexandre, but tries to factor out
common code into privat methods.
Dietmar Maurer [Thu, 8 May 2014 07:09:12 +0000 (09:09 +0200)]
tap_unplug: auto-detect bridge, improve error messages
Based on patch sent by Alexandre.
Dietmar Maurer [Wed, 7 May 2014 10:27:57 +0000 (12:27 +0200)]
map_path_to_methods: add code to return paths with uri patterns.
A previous commit removed that code, but we need it in pvesh to
display nice help messages.
Dietmar Maurer [Tue, 6 May 2014 07:40:52 +0000 (09:40 +0200)]
bump version to 3.0-19
Dietmar Maurer [Fri, 2 May 2014 05:06:25 +0000 (07:06 +0200)]
fix typo
Dietmar Maurer [Fri, 2 May 2014 04:50:56 +0000 (06:50 +0200)]
new helper register_page_formater
Dietmar Maurer [Thu, 24 Apr 2014 12:46:05 +0000 (14:46 +0200)]
map_path_to_methods: do not skip folders which evaluate to false
Dietmar Maurer [Thu, 24 Apr 2014 12:13:01 +0000 (14:13 +0200)]
bump version to 3.0-18
Dietmar Maurer [Thu, 24 Apr 2014 11:49:43 +0000 (13:49 +0200)]
speedup find_handler
Avoid to scan the same path multiple times. That way we can speedup things
by factor 5 (depends on patch length and method count).
Dietmar Maurer [Fri, 18 Apr 2014 05:21:21 +0000 (07:21 +0200)]
bump version to 3.0-17
Dietmar Maurer [Fri, 18 Apr 2014 05:20:12 +0000 (07:20 +0200)]
dump_logfile: add filter regex
Dietmar Maurer [Thu, 10 Apr 2014 07:49:57 +0000 (09:49 +0200)]
bump version to 3.0-16
Dietmar Maurer [Thu, 10 Apr 2014 07:47:04 +0000 (09:47 +0200)]
register new standard option pve-config-digest
Dietmar Maurer [Thu, 10 Apr 2014 07:42:21 +0000 (09:42 +0200)]
move assert_if_modified to PVE::Tools
Dietmar Maurer [Wed, 19 Mar 2014 05:52:20 +0000 (06:52 +0100)]
bump version to 3.0-15
Dietmar Maurer [Wed, 19 Mar 2014 05:50:47 +0000 (06:50 +0100)]
dont use undefined var $ifcount
Pablo Ruiz Garcia [Wed, 12 Feb 2014 07:55:30 +0000 (08:55 +0100)]
Delayed vlan interface creation until all checks are done.
Signed-off-by: Pablo Ruiz Garcia <pablo.ruiz@gmail.com>
Pablo Ruiz Garcia [Wed, 12 Feb 2014 07:55:29 +0000 (08:55 +0100)]
Handle cases where the vlan bridge has already been setup previouslly.
Signed-off-by: Pablo Ruiz Garcia <pablo.ruiz@gmail.com>
Pablo Ruiz Garcia [Wed, 12 Feb 2014 07:55:28 +0000 (08:55 +0100)]
Add support for bridges with more than one physical link (ie. two bonds each connected to a different switch using MSTP/PVSTP to load balance vlans across links)
Signed-off-by: Pablo Ruiz Garcia <pablo.ruiz@gmail.com>
Dietmar Maurer [Wed, 26 Feb 2014 06:57:48 +0000 (07:57 +0100)]
use full name for PVE::ProcFSTools::write_proc_entry()
Dietmar Maurer [Wed, 26 Feb 2014 06:51:36 +0000 (07:51 +0100)]
bump version to 3.0-14
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).
Dietmar Maurer [Wed, 22 Jan 2014 06:37:33 +0000 (07:37 +0100)]
bump version to 3.0-13
Dietmar Maurer [Wed, 22 Jan 2014 06:34:33 +0000 (07:34 +0100)]
improve random MAC address generation
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.
Dietmar Maurer [Mon, 30 Dec 2013 07:20:52 +0000 (08:20 +0100)]
support bond_xmit_hash_policy
Dietmar Maurer [Mon, 30 Dec 2013 06:35:27 +0000 (07:35 +0100)]
improve ovs lacp bond mode impelmentation
Dietmar Maurer [Fri, 27 Dec 2013 08:40:03 +0000 (09:40 +0100)]
bump version to 3.0-12
Dietmar Maurer [Fri, 27 Dec 2013 08:38:36 +0000 (09:38 +0100)]
add support for openvswitch network configuration
Dietmar Maurer [Sat, 21 Dec 2013 08:03:25 +0000 (09:03 +0100)]
bump version to 3.0-11
Dietmar Maurer [Sat, 21 Dec 2013 08:01:14 +0000 (09:01 +0100)]
register CIDR format
Dietmar Maurer [Sat, 21 Dec 2013 06:00:30 +0000 (07:00 +0100)]
cleanup coding style
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>
Dietmar Maurer [Tue, 10 Dec 2013 08:57:15 +0000 (09:57 +0100)]
register standard options for SPICE
Dietmar Maurer [Mon, 9 Dec 2013 12:18:40 +0000 (13:18 +0100)]
bump version to 3.0-10
new helper next_spice_port()
Dietmar Maurer [Mon, 9 Dec 2013 12:15:07 +0000 (13:15 +0100)]
avoid unnecessarry delay by using usleep
Dietmar Maurer [Fri, 8 Nov 2013 07:13:49 +0000 (08:13 +0100)]
fix upid parser for long uptimes
Dietmar Maurer [Wed, 30 Oct 2013 11:47:04 +0000 (12:47 +0100)]
bump version to 3.0-9
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.
Dietmar Maurer [Wed, 23 Oct 2013 04:57:21 +0000 (06:57 +0200)]
bump version to 3.0-8
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.
Dietmar Maurer [Tue, 1 Oct 2013 11:20:34 +0000 (13:20 +0200)]
bump version to 3.0-7
Dietmar Maurer [Tue, 1 Oct 2013 11:19:38 +0000 (13:19 +0200)]
use warnings everywhere.
Dietmar Maurer [Mon, 2 Sep 2013 08:45:02 +0000 (10:45 +0200)]
add reference to git version
Dietmar Maurer [Mon, 5 Aug 2013 06:06:33 +0000 (08:06 +0200)]
auth.conf: fix file permissions
Dietmar Maurer [Mon, 5 Aug 2013 05:57:27 +0000 (07:57 +0200)]
bump version to 3.0-6
Dietmar Maurer [Thu, 25 Jul 2013 08:18:27 +0000 (10:18 +0200)]
avoid warning if file does not exist
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
Dietmar Maurer [Mon, 13 May 2013 05:23:54 +0000 (07:23 +0200)]
bump version to 3.0-4
Dietmar Maurer [Mon, 13 May 2013 05:21:56 +0000 (07:21 +0200)]
fix bug #381: use persistent reservation file for ports
Dietmar Maurer [Wed, 8 May 2013 08:55:23 +0000 (10:55 +0200)]
fix date in copyright message
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
Dietmar Maurer [Thu, 25 Apr 2013 09:35:35 +0000 (11:35 +0200)]
implement shared file locks
bump version to 3.0-5
Dietmar Maurer [Fri, 15 Mar 2013 09:34:51 +0000 (10:34 +0100)]
fix path for brctl to /sbin/brctl
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).
Dietmar Maurer [Fri, 15 Mar 2013 09:18:21 +0000 (10:18 +0100)]
update README for wheezy
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>
Alexandre Derumier [Tue, 5 Mar 2013 13:46:47 +0000 (14:46 +0100)]
fix return !$rate
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
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>
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>
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>
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>
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>
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>
Dietmar Maurer [Tue, 5 Mar 2013 10:47:06 +0000 (11:47 +0100)]
start 3.0 development
bump version to 3.0-1
Dietmar Maurer [Mon, 25 Feb 2013 05:21:26 +0000 (06:21 +0100)]
bump version to 1.0-48
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>
Dietmar Maurer [Fri, 22 Feb 2013 08:14:10 +0000 (09:14 +0100)]
fix bug #335: correctly verify ipv4 network masks
Dietmar Maurer [Wed, 13 Feb 2013 11:49:59 +0000 (12:49 +0100)]
add parser for /etc/iscsi/initiatorname.iscsi
Dietmar Maurer [Wed, 13 Feb 2013 09:57:52 +0000 (10:57 +0100)]
bump version to 1.0-46
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.
Dietmar Maurer [Fri, 1 Feb 2013 09:13:11 +0000 (10:13 +0100)]
revert tc rate filter changes
Dietmar Maurer [Fri, 1 Feb 2013 08:05:18 +0000 (09:05 +0100)]
query KSM page sharing
bump version to 1.0-45
Dietmar Maurer [Mon, 28 Jan 2013 10:57:48 +0000 (11:57 +0100)]
bmump version to 1.0-44
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>
Dietmar Maurer [Mon, 28 Jan 2013 10:23:39 +0000 (11:23 +0100)]
fix syntax error
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
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
Dietmar Maurer [Mon, 10 Dec 2012 11:50:38 +0000 (12:50 +0100)]
implement afterfork callback
Dietmar Maurer [Wed, 31 Oct 2012 12:55:26 +0000 (13:55 +0100)]
bump version to 1.0-39
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>
Dietmar Maurer [Wed, 31 Oct 2012 07:22:40 +0000 (08:22 +0100)]
fix bug #273: retry flock if it fails with EINTR
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.