Commit Graph

554 Commits

Author SHA1 Message Date
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
Dietmar Maurer
ae97d5532d CpuSet: read $MAX_CPUID from /proc/cpuinfo 2016-10-28 17:43:41 +02:00
Thomas Lamprecht
beb9820ffb add get_local_ip_from_cidr
The get_local_ip_from_cidr method can be used to determine addresses
configured on interfaces from the callers node which are located
in the subnet. The subnet can be passed in CIDR notation.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-10-28 12:01:38 +02:00
Dominik Csapak
8b6e737a75 fix typo
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-10-28 08:50:02 +02:00
Dietmar Maurer
08ffd3f3dd bump version to 4.0-78 2016-10-28 07:04:41 +02:00
Dietmar Maurer
284dca701b CpuSet: add helper to format/print cpu sets. 2016-10-28 06:56:55 +02:00
Dietmar Maurer
2862235726 bump version to 4.0-77 2016-10-26 11:16:28 +02:00
Dietmar Maurer
a1c3f18e06 CpuSet: Simply class to handle cpu sets 2016-10-26 11:13:33 +02:00
Michael Rasmussen
d3d77e03f8 Add check for infiniband to write functions as well
Signed-off-by: Michael Rasmussen <mir@datanom.net>
2016-10-24 11:37:35 +02:00
Michael Rasmussen
309085272b Add support for infiniband nics
Signed-off-by: Michael Rasmussen <mir@datanom.net>
2016-10-24 11:36:43 +02:00
Dietmar Maurer
8fd0e286c2 bump version to 4.0-76 2016-10-20 06:16:42 +02:00
Michael Rasmussen
48e957b935 Update to reflect current status
Signed-off-by: Michael Rasmussen <mir@datanom.net>
2016-10-20 06:14:26 +02:00
Wolfgang Bumiller
d152f8b0ee SectionConfig: always write out explicitly set booleans
Because when only writing the ones which are true we're
breaking the ones which default to true (like the mkdir
option on directory storages, where we need a false value
to be written out explicitly).
2016-10-18 10:50:04 +02:00
Dietmar Maurer
e7cc4f9a97 bump version to 4.0-75 2016-10-07 09:02:51 +02:00
Fabian Grünbichler
0a5a1eeec2 correct spelling of synopsis 2016-10-07 09:02:07 +02:00
Dietmar Maurer
ec48b70cc9 bump version to 4.0-74 2016-09-29 12:46:42 +02:00
Wolfgang Bumiller
f3ccd9b4b9 Network: add disable_ipv6 and use it
Many interfaces used to get an ipv6 link-local address which
was usually unusable and therefore pointless.

In order to ensure consistency this is called in various
places:
* $bridge_add_interface() and $ovs_bridge_add_port() because
  it's generally a good choice for bridge ports.
* tap_create() and veth_create() because the activate the
  interfaces and we want to avoid the link local address to
  exist temporarily between bringing the interface up and
  adding it to a bridge.
* create_firewall_bridge_*() because firewall bridges aren't
  meant to have addresses either.
* activate_bridge_vlan() - if vlan_filtering is disabled we
  create vlan-bridges and neither them nor their physical
  ports should have link local addresses.
2016-09-29 12:45:23 +02:00
Dietmar Maurer
b54ad320a5 fix doc generator (do not convert efidisk0 to efidisk[N])
Also fix spacing in typetext generator.
2016-09-29 12:15:47 +02:00
Dietmar Maurer
1eac8b4b2c bump version to 4.0-73 2016-09-16 08:48:41 +02:00
Dietmar Maurer
05185ea25a schema_get_type_text: always access values as number
Else PVE::RESTHandler::api_dump prints values as strings.
2016-09-05 09:27:50 +02:00
Dietmar Maurer
534d427098 add typetext property for more complex types 2016-09-05 07:47:32 +02:00
Fabian Grünbichler
0ddae1ce6d bump version to 4.0-72 2016-08-16 17:16:49 +02:00
Wolfgang Bumiller
ce338f4fbc harden file_set_contents against symlink attacks 2016-08-16 17:12:55 +02:00
Wolfgang Bumiller
88a490ff71 allow Regexp objects for strings in the schema
The 'pattern' property has type string and format regex, so
it makes sense to allow Regexp objects to be used for it.

While check_type() doesn't know the format, Regexp objects
can be treated like strings anyway, including compared via
'eq' or matched via '=~', so we allow strings to generally
come from a Regexp object.
2016-07-14 10:28:57 +02:00
Wolfgang Bumiller
123921731a tools: optional prefix for random_ether_addr 2016-07-14 09:01:01 +02:00
Wolfgang Bumiller
084dc74db6 bump version to 4.0-71 2016-07-11 11:34:10 +02:00
Wolfgang Bumiller
d743b69c4b fix mac address generation limitation
Commit de9a267 introduced vec() to optimize the generation
by using binary operations instead of converting back and
forth between hex and strings, but forgot to switch over to
the binary sha1 method. This resulted in only the first 6
hex digits of the output string making up the address.
2016-07-05 13:42:30 +02:00
Fabian Grünbichler
e561bc74bb fix 1046: add non-snapshotted disks as unused 2016-07-05 09:39:20 +02:00
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