5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2025-02-08 13:57:22 +03:00

182 Commits

Author SHA1 Message Date
Dietmar Maurer
3206cdf677 Daemon: try harder (up to 5 times) to get lock 2014-12-31 10:07:52 +01:00
Dietmar Maurer
b192b93018 code cleanup 2014-12-31 09:53:47 +01:00
Dietmar Maurer
b21320547b Daemon: implement pre-fork server (max_wrokers property) 2014-12-31 09:47:41 +01:00
Dietmar Maurer
4fc6917657 improve doc 2014-12-20 09:59:42 +01:00
Dietmar Maurer
bdb5acce61 implement new Daemon features
- allow to specify run_dir (directory to store pid file)

- make hup optional

- correctly untaint pid when reading from file

- restart daemon by HUP or stop/start

- allow to register reload command
2014-12-18 13:44:35 +01:00
Dietmar Maurer
891b909745 Daemon: call setsid at startup 2014-12-18 10:56:07 +01:00
Dietmar Maurer
6735f2606f bump version to 3.0-21 2014-12-17 14:49:52 +01:00
Dietmar Maurer
390802ab5a add abstract class to implement daemons 2014-12-17 14:35:17 +01:00
Dietmar Maurer
26a8d824a5 cleanup error message 2014-12-16 13:24:20 +01:00
Dietmar Maurer
0e5ad0c72b set RELEASE to 3.3 2014-12-11 06:38:13 +01:00
Dietmar Maurer
dedb644945 bump version to 3.0-20 2014-12-11 06:36:36 +01:00
Alexandre Derumier
ac3a04b8f5 create_firewall_bridge_ovs : activate ovsint interface
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-12-11 06:35:40 +01:00
Dietmar Maurer
57eeea0cec avoid warning when parsing long hex values with hex() 2014-06-25 12:32:48 +02:00
Dietmar Maurer
b732bea701 improve debug message 2014-06-23 13:53:41 +02:00
Dietmar Maurer
2d3bca34dd add FVN digest
Userful for short strings.
2014-05-28 10:27:03 +02:00
Dietmar Maurer
1dad1ca5b9 add additional check for duplicate method definitions
If we have a SUBCLASS, other methods are not allowed.
2014-05-27 11:40:29 +02:00
Dietmar Maurer
212fc0b77e fix typo 2014-05-23 10:26:34 +02:00
Dietmar Maurer
a993e470d7 new helper read_proc_net_route 2014-05-19 12:59:08 +02:00
Dietmar Maurer
6c80e6d615 add 'noerr' parameter to parse_tap_devive_name()
And simply ignore devices with random names in cleanup_firewall_bridge().
2014-05-16 11:14:47 +02:00
Dietmar Maurer
f193aa7403 add additional comment 2014-05-14 07:18:17 +02:00
Alexandre Derumier
7d78a966e5 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>
2014-05-14 07:15:34 +02:00
Dietmar Maurer
47c710a624 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}"
2014-05-13 14:33:49 +02:00
Dietmar Maurer
70ab4434cd 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.
2014-05-08 13:07:52 +02:00
Dietmar Maurer
605bb891dd 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.
2014-05-08 12:00:21 +02:00
Dietmar Maurer
2db1cc0de9 tap_unplug: auto-detect bridge, improve error messages
Based on patch sent by Alexandre.
2014-05-08 09:09:56 +02:00
Dietmar Maurer
39313ced7e 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.
2014-05-07 12:27:57 +02:00
Dietmar Maurer
ffb5329cbc bump version to 3.0-19 2014-05-06 09:40:52 +02:00
Dietmar Maurer
af7a59546d fix typo 2014-05-02 07:06:25 +02:00
Dietmar Maurer
15a4dae162 new helper register_page_formater 2014-05-02 06:50:56 +02:00
Dietmar Maurer
844a246d44 map_path_to_methods: do not skip folders which evaluate to false 2014-04-24 14:46:05 +02:00
Dietmar Maurer
89a3d8347d bump version to 3.0-18 2014-04-24 14:13:01 +02:00
Dietmar Maurer
c108979483 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).
2014-04-24 14:03:49 +02:00
Dietmar Maurer
88b030e64c bump version to 3.0-17 2014-04-18 07:21:21 +02:00
Dietmar Maurer
eb7e553861 dump_logfile: add filter regex 2014-04-18 07:20:12 +02:00
Dietmar Maurer
5ca176e356 bump version to 3.0-16 2014-04-10 09:49:57 +02:00
Dietmar Maurer
dc5eae7dbd register new standard option pve-config-digest 2014-04-10 09:47:04 +02:00
Dietmar Maurer
a345b9d584 move assert_if_modified to PVE::Tools 2014-04-10 09:42:21 +02:00
Dietmar Maurer
97ffb83b4d bump version to 3.0-15 2014-03-19 06:52:20 +01:00
Dietmar Maurer
5ffa7628c5 dont use undefined var $ifcount 2014-03-19 06:50:47 +01:00
Pablo Ruiz Garcia
c9030d977c Delayed vlan interface creation until all checks are done.
Signed-off-by: Pablo Ruiz Garcia <pablo.ruiz@gmail.com>
2014-03-19 06:47:03 +01:00
Pablo Ruiz Garcia
eee4b32a65 Handle cases where the vlan bridge has already been setup previouslly.
Signed-off-by: Pablo Ruiz Garcia <pablo.ruiz@gmail.com>
2014-03-19 06:43:23 +01:00
Pablo Ruiz Garcia
70d89745ca 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>
2014-03-19 06:33:24 +01:00
Dietmar Maurer
aec048035e use full name for PVE::ProcFSTools::write_proc_entry() 2014-02-26 07:57:48 +01:00
Dietmar Maurer
f6473a5f68 bump version to 3.0-14 2014-02-26 07:51:36 +01:00
Dietmar Maurer
0758d0928c 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).
2014-02-26 07:47:10 +01:00
Dietmar Maurer
113cfc6a0d bump version to 3.0-13 2014-01-22 07:37:33 +01:00
Dietmar Maurer
46a11c0030 improve random MAC address generation 2014-01-22 07:34:33 +01:00
Dietmar Maurer
2a75193897 extrac ovs_option tag= into ovs_tag property
To make the API simpler.
2013-12-30 10:43:54 +01:00
Dietmar Maurer
40fae2b341 support bond_xmit_hash_policy 2013-12-30 08:20:52 +01:00
Dietmar Maurer
a68760b6b7 improve ovs lacp bond mode impelmentation 2013-12-30 07:35:27 +01:00