Commit Graph

506 Commits

Author SHA1 Message Date
Wolfgang Bumiller
28705ff6d1 df: untaint the result 2016-07-04 14:13:41 +02:00
Dietmar Maurer
fb1391aae7 use new repoman toolkit 2016-06-25 15:18:39 +02:00
Wolfgang Bumiller
a3f6f8a595 bump version to 4.0-70 2016-06-22 11:25:37 +02:00
Wolfgang Bumiller
a712bf6e37 Fix #132: hold a lock while setting up vlan bridges
It's possible for two simultaneous VM starts to try to
create vlan bridges on non-vlan-aware bridges
simultaneously, which causes one of them to fail with the
error "can't add bridge ...".
2016-06-21 15:01:30 +02:00
Dietmar Maurer
6a47f4b05d bump version to 4.0-69 2016-06-21 06:54:15 +02:00
Wolfgang Bumiller
78e912a3b7 vlan fixups: remove existing vlan ids
bridge_add_interface should remove the existing vids from
the interface (which is usually 1, which was previously left
on the interface)
2016-06-21 06:53:35 +02:00
Dietmar Maurer
e94ca8c8e6 bump version to 4.0-68 2016-06-09 17:56:47 +02:00
Fabian Grünbichler
c9c6d91073 catch malformed mailto/mailfrom in sendmail 2016-06-09 17:55:38 +02:00
Fabian Grünbichler
1a0c010327 remove duplicate 'set -o pipefail' 2016-06-07 10:37:25 +02:00
Dietmar Maurer
1912759d0e bump version to 4.0-67 2016-06-03 11:27:28 +02:00
Wolfgang Bumiller
0b9cf991e5 added: enter_systemd_scope
This essentially performas the task of systemd-run while
also waiting for the job to finish.

With the systemd-run version in jessie we run into a race
condition where the executed process can start forking child
processes before the systemd daemon is done setting up the
scope's cgroups, causing the children to NOT be included in
the cgroups. This means the child processes (in our case
qemu) will not adhere to the limits we want to apply to it
via cgroups.

enter_systemd_scope() performs the setup task of systemd-run
and waits for the job to finish, after this we can spawn the
qemu process without systemd-run.
2016-06-03 11:26:13 +02:00
Wolfgang Bumiller
f0d1b04fda move Network::get_active_interfaces to ProcFSTools
This avoids a circular dependency between PVE::INotify and
PVE::Network.

Also renamed to get_active_network_interfaces since the
package name now doesn't hint at this anymore.
2016-06-03 11:22:40 +02:00
Wolfgang Bumiller
19e609fd33 add netmasks starting from /8 to local netmask list 2016-06-03 11:21:57 +02:00
Wolfgang Bumiller
e43faad9ff Consider /31 and /32 valid subnet masks.
Since we already allow this for container IP addresses it is
reasonable to assume the host might be using such a setup as
well. (You can use an additional route to reach the gateway
and then simply have no "LAN".) Some people seem to want
this...
2016-06-03 11:21:42 +02:00
Dietmar Maurer
c1a4a02b98 bump version to 4.0-66 2016-06-01 11:32:28 +02:00
Wolfgang Bumiller
c064776576 Allow O_PATH and O_TMPFILE to be exported 2016-06-01 11:29:59 +02:00
Wolfgang Bumiller
21c56a963f added: openat, mkdirat 2016-06-01 11:29:49 +02:00
Dietmar Maurer
150f4bc65a bump version to 4.0-65 2016-05-25 11:34:12 +02:00
Thomas Lamprecht
361d54c329 run_cli_handler: add no_rpcenv parameter
This can be used if a CLIHandler child class does not needs or wants
RPCEnv. E.g. this is the case with pve-cluster, as it's a dependency
of the package where RPCEnv resides (access-control), so this can be
set to avoid a implicit circular build dependency.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-05-25 11:33:28 +02:00
Dietmar Maurer
6e537f49bd bump version to 4.0-64 2016-05-23 06:27:01 +02:00
Wolfgang Bumiller
971353e8ac print_property_string: don't print the default key's name
We had this behavior in the past and didn't mean to change
it.
2016-05-23 06:24:46 +02:00
Dietmar Maurer
32f8e0c75b improve doc generator, introduce verbose_description property 2016-05-19 13:11:26 +02:00
Dietmar Maurer
c8e5d28e29 export bond_modes (define with 'our' instead of 'my')
So that other people can use that from outside.
2016-05-18 16:49:19 +02:00
Wolfgang Bumiller
b8246bfca7 typo fix 2016-05-18 12:55:50 +02:00
Dietmar Maurer
5ee7c8243f bump version to 4.0-63 2016-05-18 11:23:49 +02:00
Dominik Csapak
5d662b31b7 show warning when using VLAN 1 on a VLAN aware bridge
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-05-18 11:23:03 +02:00
Wolfgang Bumiller
899f8c4aa5 support for predictable network interface device names
Based on patch from: Igor Vlasenko <viy@altlinux.org>
2016-05-17 16:14:15 +02:00
Dietmar Maurer
cee324e053 bump version to 4.0-62 2016-05-14 11:27:46 +02:00
Dietmar Maurer
1801bdaa93 replace the smartmatch operator 2016-05-12 11:37:00 +02:00
Dietmar Maurer
b7ef63ab0a re-enable run_cli, which is still in use 2016-05-12 07:46:30 +02:00
Dietmar Maurer
2289890bad print_property_string: correctly implement skip parameter 2016-05-12 07:25:51 +02:00
Dietmar Maurer
c88c582dec fix keyAlias test 2016-05-11 13:04:01 +02:00
Dietmar Maurer
dc1401ad0f bump version to 4.0-61 2016-05-11 11:10:36 +02:00
Dietmar Maurer
d8c2b9477c JSONSchema fix property sort order
order: default_key, required options, other
2016-05-11 10:57:06 +02:00
Dietmar Maurer
bf27456b4e remove PodParser.pm, implement keyAlias feature
The keyAlias feature replaces the previous 'group_ feature.
2016-05-11 10:02:34 +02:00
Dietmar Maurer
457c3fcb1e schema_get_type_text: return format_description if available 2016-05-07 10:57:14 +02:00
Dietmar Maurer
825247bdb2 update changelog 2016-05-04 08:11:02 +02:00
Emmanuel Kasper
25eea093dd When starting in debug mode, starts the daemon without going through systemctl
This fixes the problem that debug options for daemons were ignored and sets
the following behaviour for the daemons when -debug 1 is given
 * start on foreground with debug ouput on the console
 * do not start a sytemd unit

Starting the systemd unit in debug mode makes less sense because:
 * systemd will put the daemon in the background
 * systemd ignores environment variables so the only way to start
 the daemon with options would be through reading a config file

tested with pveproxy, pve-ha-lrm, pve-ha-crm
2016-05-04 08:08:37 +02:00
Dietmar Maurer
12e8ae4c71 set RELEASE=4.2 2016-05-03 07:11:27 +02:00
Dietmar Maurer
6af06fb0c0 bump version to 4.0-60 2016-05-03 07:09:37 +02:00
Fabian Grünbichler
2d6b3a90db Use run_command instead of system
and explicitly note that those calls are allowed to fail and
are wrapped in eval {} on purpose.
2016-05-03 07:03:10 +02:00
Dietmar Maurer
a7f30ebf27 SectionConfig: sort values return by lookup_types
They are use to generate type enums in the API.
2016-04-30 12:01:20 +02:00
Dietmar Maurer
0a7de8204e sort keymap array 2016-04-30 11:54:20 +02:00
Dietmar Maurer
08aa41d725 SectionConfig.pm: sort type enum
So that we can better detect API changes.
2016-04-30 11:50:55 +02:00
Dietmar Maurer
b546f33e58 fix coding style 2016-04-19 12:39:04 +02:00
Fabian Grünbichler
f922b8a8be Fix indexed parameter conversion in documentation
this would previously convert properties that matched
'^([a-z]+)(\d+)$' even if they were not part of an indexed
properties series (which always start with 0).

This fixes previously wrongly converted properties:
-smbios1
-server2
2016-04-19 12:29:31 +02:00
Fabian Grünbichler
2c2a5fd3df Fix indexed parameter conversion in API dump
this would previously skip (i.e., ignore) properties that
matched '^([a-z]+)(\d+)$' even if they were not part of an
indexed properties series (which always start with 0).

This fixes previously missing API dump occurrences of:
-smbios1
-comments6
-netmask6
-gateway6
-address6
-dns1
-dns2
-dns3
-server1
-server2
2016-04-19 12:26:26 +02:00
Dietmar Maurer
a76028f847 bump version to 4.0-59 2016-04-13 06:37:47 +02:00
Wolfgang Bumiller
dd44486ecb 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:36:50 +02:00
Dietmar Maurer
b0e5e9fa0c another fix for $get_property_description() - remove format 'pod'
Instead, use the same enum as in usage_str().
2016-04-07 17:30:52 +02:00