Commit Graph

216 Commits

Author SHA1 Message Date
Fabian Grünbichler
26d8533d1d bump version to 3.0-27 2016-08-16 17:11:34 +02:00
Wolfgang Bumiller
bbe0fe1fb6 backport file_copy from PVE4 2016-08-16 16:41:15 +02:00
Wolfgang Bumiller
aa757172c6 harden file_set_contents against symlink attacks 2016-08-16 16:41:15 +02:00
Dietmar Maurer
c9cb574660 bump version to 3.0-26 2016-04-13 06:41:30 +02:00
Wolfgang Bumiller
807d94bb2e Fix #908: cleanup OVS ports in tap_unplug
tap_unplug() is only called in hotplugging functions which
perform a tap_plug() afterwards, and and in qemu-server's
bridge-down script.
The OVS port cleanup for non-firewall ports was done only in
tap_plug(), which means that in the case when qemu exits and
the tap device disappears, the OVS port for it stays.

With this patch the cleanup happens in both tap_unplug() and
tap_plug() to avoid problems with upgrades on systems
where there have already been ports leaked.
2016-04-13 06:40:21 +02:00
Dietmar Maurer
afe31bbf6b set RELEASE=3.4 2016-03-09 13:27:28 +01:00
Dietmar Maurer
8c7ae2a804 bump version to 3.0-25 2016-03-09 13:00:56 +01:00
Wolfgang Bumiller
3f9e278c2e network: tap_rate_limit: fix uninitialized value 2016-03-09 12:38:31 +01:00
Wolfgang Bumiller
683d81c2a2 net: tap_plug() needs to apply rate limiting
Any action we take in tap_plug() when using OVS will undo
our rate limiting, which means any hotplug change must
restore the previous rate setting.
Since this means tap_plug() would always be followed by a
tap_rate_limit() call anyway we just include the rate
parameter here and let the caller decide whether the full
tap_plug() is required or the simple tap_rate_limit()
suffices.
2016-03-09 12:38:21 +01:00
Dietmar Maurer
c58f205b5c bump version to 3.0-24 2015-02-11 06:38:44 +01:00
Stefan Priebe
16d74d09ca next_migrate_port: higher port range - all other ranges are 100 ports
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
2015-02-11 06:36:09 +01:00
Stefan Priebe
940be49b86 Fix next_unused_port already bin detection
unsecure migration does not use localhost to bind to. Instead it uses a specific IP on the node.
As we don't know that IP in this part of the code the only chance to check for a possible already
existing bind is to bind to all IPs.

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
2015-02-11 06:35:37 +01:00
Dietmar Maurer
0324c6a27f bump version to 3.0-23 2015-02-09 07:02:29 +01:00
Alexandre Derumier
4b40ad1871 read_etc_network_interfaces : don't always add vmbr0
Currently it's impossible to remove vmbr0 from network gui,

if we really want to remove it, or replace it with an OVS vmbr0

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2015-02-09 07:01:27 +01:00
Dietmar Maurer
363a51a0d4 bump version to 3.0-22 2015-01-08 14:49:59 +01:00
Dietmar Maurer
309d99e718 Daemon: change option name 'run_dir' to 'pidfile' 2015-01-02 14:15:09 +01:00
Dietmar Maurer
c4ad45cf20 Daemon: new option to change user/group (setuid/setgid) 2015-01-02 14:06:46 +01:00
Dietmar Maurer
9403080a44 Daemon: make sure we kill all child processes on TERM 2015-01-02 09:31:21 +01:00
Dietmar Maurer
517c11257c Daemon: add helper to create sockets
Those sockets are not closed and reopened at restart.
2015-01-01 15:41:19 +01:00
Dietmar Maurer
ce0ae1edec Daemon: catch finished worker earlier
Else we get zobies for 5 seconds at restart.
2015-01-01 14:59:04 +01:00
Dietmar Maurer
f3a33995cd Daemon: also terminate old_workers on stop 2015-01-01 12:42:31 +01:00
Dietmar Maurer
8826037040 Daemon: call terminate_server if we get unexpected errors 2015-01-01 12:06:17 +01:00
Dietmar Maurer
d7950851db Daemon: implement new option leave_children_open_on_reload
We want to be able restart daemons without closing existing connections.
2015-01-01 12:02:13 +01:00
Dietmar Maurer
93710700b9 Daemon: correctly set got_hup_signal flag (before we call terminate) 2015-01-01 10:57:10 +01:00
Dietmar Maurer
6105a115c6 Daemon: raise error if we cannot parse lockfd 2015-01-01 10:41:52 +01:00
Dietmar Maurer
da1a7f5889 Daemon: remove useless parameter 2014-12-31 17:40:04 +01:00
Dietmar Maurer
7db2b94082 Daemon: untaint value read from ENV 2014-12-31 17:28:33 +01:00
Dietmar Maurer
1ea9e6df45 Daemon: log error and exit if something fails inside constructor 2014-12-31 17:17:44 +01:00
Dietmar Maurer
f1fb34a0a5 RESTHandler: define empty DESTROY to avoid useless warings
We oserverd the following warning sometimes:

  (in cleanup) no such method 'main=HASH(0x38b2d48)::DESTROY'

Defining an empty DESTROY seems to avoid it.
2014-12-31 17:11:28 +01:00
Dietmar Maurer
48876459cb Daemon: do not wait for lock on restart 2014-12-31 17:01:51 +01:00
Dietmar Maurer
c56111950d Daemon: cleanup logging 2014-12-31 12:31:21 +01:00
Dietmar Maurer
1a6bc2f371 Daemon: keep lock file open during restart
So that nobody else can grab the lock
2014-12-31 11:54:27 +01:00
Dietmar Maurer
a8ba2293d4 Daemon: move ENV manipulation into new() 2014-12-31 10:29:23 +01:00
Dietmar Maurer
eead1ad86a after_fork_cleanup: move code into separate sub 2014-12-31 10:20:50 +01:00
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