Commit Graph

933 Commits

Author SHA1 Message Date
Dominik Csapak
813a5c0d26 fix trailing whitespaces
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-02-16 09:15:47 +01:00
Emmanuel Kasper
ef73f03b60 Fix example to latest RestHandler
looking at the handle() sub from RestHandler.pm

    my $result = &$func($param);

this parameters are not passed anymore
2017-02-15 11:14:59 +01:00
Wolfgang Bumiller
f5a73bff2c bump version to 4.0-92 2017-02-09 11:40:07 +01:00
Wolfgang Bumiller
0c0304c0d9 deps: moving skiplock breaks qemu-server << 4.0-109 2017-02-08 09:56:43 +01:00
Wolfgang Bumiller
26bcdf92d5 JSONSchema: adding skiplock option here 2017-02-07 14:54:31 +01:00
Wolfgang Bumiller
86330049be Network: stop using ifconfig
We shouldn't mix different tool sets on the one hand, and on
the other hand net-tools is an optional package in stretch
and there's no real need for us to depend on it.
2017-02-07 14:54:31 +01:00
Fabian Grünbichler
aa6e988099 bump version to 4.0-91 2017-02-06 14:45:47 +01:00
Fabian Grünbichler
c5df85be73 add Breaks for upgrade path 2017-02-06 14:44:48 +01:00
Wolfgang Bumiller
87cd38946e buildsys: missing build-dependencies 2017-02-03 12:12:54 +01:00
Fabian Grünbichler
fb3a6db16c cleanup previous commit 2017-01-27 15:21:54 +01:00
Wolfgang Link
affde347f1 Fix interface writer for bridge_ports and slaves.
The pve-iface-list allow to separate interfaces with [;,\s].
But in the interface file are only whitespace allowed to separate interfaces.
2017-01-27 14:45:54 +01:00
Fabian Grünbichler
a056df6bda bump version to 4.0-90 2017-01-27 10:57:59 +01:00
Wolfgang Bumiller
a313fe7335 RESTEnvironment: let check_worker take a $self 2017-01-27 10:27:38 +01:00
Fabian Grünbichler
7788d7e523 bump version to 4.0-89 2017-01-25 10:01:55 +01:00
Fabian Grünbichler
c480d509e9 remove AbstractConfig and AbstractMigrate
they have their own repo / package now (pve-guest-common)
2017-01-25 10:01:55 +01:00
Dietmar Maurer
5f9861ad1f set compat level to 9
To avoid warnings on debian stretch.
2017-01-24 11:16:32 +01:00
Dietmar Maurer
5d5a179cda runtest.pl: use lib '.' - because newer perl does not have that by default
To make tests work again on debian stretch.
2017-01-24 11:12:53 +01:00
Wolfgang Bumiller
e0a862e2c0 fix #1232: cleanup bridges on veth_delete
When a container stops or hotplug changes are applied we
do a veth_delete() which does not cleanup the firewall
bridges or OVS ports. This is problematic at the next
startup. When creating a network device we usually want to
copy the MTU of the bridge we intend to put it on, however,
with OVS still having the old port lying around the
recreated device gets associated with the bridge before we
read its MTU, potentially reducing it to that of the newly
created device.

This cleanup also gets rid of stale fwbr/fwln devices from
stopped containers.
2017-01-20 10:05:10 +01:00
Dietmar Maurer
2aabf653ad bump version to 4.0-88 2017-01-19 12:53:30 +01:00
Dietmar Maurer
2b4582cb92 remove libmime-base32-perl - we do not need that 2017-01-19 12:52:32 +01:00
Dietmar Maurer
8ecb08d710 PVE::Ticket - new helper class to create auth tickets 2017-01-19 12:42:40 +01:00
Dietmar Maurer
a0a8c8bc71 bump version to 4.0-87 2017-01-19 09:09:53 +01:00
Dietmar Maurer
7278cb3c12 JSONSchema: remove formatter option
We do no longer store that information in the method info.
2017-01-18 16:46:54 +01:00
Dietmar Maurer
4612730446 RESTHandler.pm: remove register_page_formatter (no longer required) 2017-01-18 13:13:23 +01:00
Dietmar Maurer
d9072797ea PVE::RESTEnvironment: new base class for PVE::RPCEnvironment
Copied most code from PVE::RPCEnvironment.
2017-01-18 13:12:49 +01:00
Dietmar Maurer
91b6fe3abb bump version to 4.0-86 2017-01-13 11:22:43 +01:00
Dietmar Maurer
cb87191ed6 CLIHandler.pm: remove run as root restriction
This should be checked somewhere else.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-13 10:20:09 +01:00
Dietmar Maurer
7b7f99c9b9 CLIHandler.pm: add setup_environment hook
Most PVE command line tools will simply call

 PVE::RPCEnvironment->setup_default_cli_env();

there.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-13 10:19:59 +01:00
Dietmar Maurer
1042b82cc1 remove calls to PVE::RPCEnvironment
This introduces a cyclic dependency, so we need to remove this.

PVE::CLI::* classes should instead add ad call to

 PVE::RPCEnvironment->setup_default_cli_env();

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-13 10:07:18 +01:00
Dietmar Maurer
3e3871c3ee bump version 4.0-85 2016-12-22 12:37:16 +01:00
Fabian Grünbichler
e4ae117099 refactor delete_snapshot for readability
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2016-12-22 12:35:52 +01:00
Fabian Grünbichler
0037d63436 set 'snapshot-delete' lock when deleting snapshot
unless we are in cleanup mode from a failed snapshot_create,
in which case the config already has a 'snapshot' lock.

this is necessary to prevent concurrent starting of or other
actions on the guest in the windows inbetween holding the
flock, e.g. when removing the volume snapshot (which can
take a bit of time).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2016-12-22 12:34:41 +01:00
Dietmar Maurer
4eff045b05 bump version to 4.0-84
and remove RELEASE
2016-12-21 11:53:36 +01:00
Dietmar Maurer
dbfaa2b883 CpuSet write_to_cgroup: catch errors from close() 2016-12-21 08:56:06 +01:00
Dietmar Maurer
74116083bb CpuSet short_string - avoid ranges like 0-0, 1-1, 2-2, ... 2016-12-21 08:44:14 +01:00
Dietmar Maurer
1621113cec bump version to 4.0-83 2016-11-28 07:46:56 +01:00
Dietmar Maurer
034a8181c6 safe_read_from: add filename parameter to improve error messages 2016-11-28 07:42:34 +01:00
Dietmar Maurer
87d9cda051 bump version to 4.0-82 2016-11-23 12:22:23 +01:00
Wolfgang Bumiller
9c07db40e0 cpuset: fix short_string
don't drop the next current cpu after finishing a range
2016-11-23 11:37:36 +01:00
Dietmar Maurer
457d3cd6f2 bump version to 4.0-81 2016-11-22 11:50:51 +01:00
Thomas Lamprecht
cca9492eb4 use better regex for remote ip check
while the input should be correctly generated by the other site its
still better to be on the safe side, so check if the IP is really an
valid one.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-11-09 12:50:32 +01:00
Dietmar Maurer
abc1afd874 schema_get_type_text: do not always expand enums
We try to keep the text short by default.
2016-11-05 16:44:59 +01:00
Dietmar Maurer
25d9bda941 schema_get_type_text: render generic types as <type> 2016-11-05 15:38:29 +01:00
Dietmar Maurer
a007a5bc4b bump version to 4.0-80 2016-11-03 09:47:35 +01:00
Thomas Lamprecht
35f8fae2c8 use the pvecm mtunnel command to get remote migration ip
Ask the pvecm mtunnel command (was earlier in qm) if the remote side
has an IP configured in a given migration_network denoted by a CIDR.

If such a IP is available reset the nodeip and rem_ssh variables
and check if we can connect to the other side with ssh public key
authentication.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-11-03 09:43:42 +01:00
Wolfgang Bumiller
77b2b96ffc tempfile: use /tmp for fallback-tempfiles
At this point we know it's not a tmpfs (as tmpfs definitely
supports O_TMPFILE), so /tmp makes more sense than /run as
default path.
2016-11-02 12:47:05 +01:00
Wolfgang Bumiller
7e1ee743f4 tempfile: unliked-file fallback
some file systems (eg. ZFS) don't support O_TMPFILE
2016-11-02 12:44:35 +01:00
Wolfgang Bumiller
f0cfc20e65 Fix #1188: tempfile: use /run by default
as /tmp is not a tmpfs by default and some file systems
(like ZFS) don't support O_TMPFILE
2016-11-02 12:43:16 +01:00
Wolfgang Bumiller
7c1617b01d JSONSchema: named formats in parse_property_string
While our code currently passes the format hashes directly,
some code gets them via the format property of a
configuration description which verifies successfully via
check_format() for named property string formats, so this
should be allowed.
2016-11-02 12:40:56 +01:00
Dietmar Maurer
a9da67124d bump version to 4.0-79 2016-10-28 17:47:21 +02:00