]> git.proxmox.com Git - pve-cluster.git/log
pve-cluster.git
7 years agoimplement chown and chmod for user root group www-data and perm 0640
Stefan Priebe [Tue, 4 Apr 2017 14:43:31 +0000 (16:43 +0200)]
implement chown and chmod for user root group www-data and perm 0640

This allows us to use management software for files inside of /etc/pve.
e.g. saltstack which rely on being able to set uid,gid and chmod

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
7 years agobuildsys: update make upload target
Fabian Grünbichler [Fri, 10 Mar 2017 12:04:26 +0000 (13:04 +0100)]
buildsys: update make upload target

7 years agoRequire Sys.Audit to read the cluster configuration
Emmanuel Kasper [Mon, 6 Mar 2017 10:42:30 +0000 (11:42 +0100)]
Require Sys.Audit to read the cluster configuration

Up to now only root could see the corosync cluster config.

Sys.Audit is the same permission required
for reading the HA Config and the HA Resources Config.

7 years agobuildsys: reformat (build-)depends
Fabian Grünbichler [Tue, 7 Mar 2017 07:40:35 +0000 (08:40 +0100)]
buildsys: reformat (build-)depends

7 years agouse unsigned long for strtoul result
Dominik Csapak [Fri, 3 Mar 2017 08:17:58 +0000 (09:17 +0100)]
use unsigned long for strtoul result

strtoul gives back an unsigned long int, which may or may not be wider
than a guint32 (depending on the platform)

when it is wider, the assignment would parse vmids bigger than 2^32 but
truncate them, giving back an invalid vmid

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agobump version to 4.0-49
Dietmar Maurer [Tue, 28 Feb 2017 11:03:30 +0000 (12:03 +0100)]
bump version to 4.0-49

7 years agopvecm add: assert that ringX IPs are available on node add
Thomas Lamprecht [Wed, 22 Feb 2017 15:59:11 +0000 (16:59 +0100)]
pvecm add: assert that ringX IPs are available on node add

If 'ringX_addr' parameters are used on adding a node to a cluster
check if those addresses are actually configured on the to-be-added
node. It makes no sense that the address is not or multiple times
configured.

This prevents a node in limbo, waiting for quorum (if it was the
second node in a cluster, even two node would be in the no-quorum
limbo) where manual pmxcfs kills, local starts and manual
configuration edits which may need to get manually synced to other
cluster members are needed.

The check does not cost much and gets only made on node additions, so
assert with our get_local_ip_from_cidr method that the IP is
configured on any interface.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agopvecm add: report all errors found at once
Thomas Lamprecht [Wed, 22 Feb 2017 15:59:10 +0000 (16:59 +0100)]
pvecm add: report all errors found at once

Else only the first error got reported and we had no idea what else
was possible wrong.

I'll also use the $err method more in next commits

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agopvecm addnode: ensure ring1_addr is set if ring 1 is configured
Thomas Lamprecht [Wed, 22 Feb 2017 15:59:09 +0000 (16:59 +0100)]
pvecm addnode: ensure ring1_addr is set if ring 1 is configured

Else the joining node will not be able to work correctly.
Also improve the respective error messages.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agopvecm addnode: ensure ring address isn't already used by cluster
Thomas Lamprecht [Wed, 22 Feb 2017 15:59:08 +0000 (16:59 +0100)]
pvecm addnode: ensure ring address isn't already used by cluster

If someone enters the wrong address by accident when adding a node it
may cause havoc in the cluster (meaning a reset of the whole cluster
when HA is used, may even happen more often during the recovery
tries. Also a whole lot of problems get triggered in gneral, even
witouth HA).

Further, user get into a hard to repair situation where a layman may
not be able to fix it by hand even when given directions by an
experienced user.

This is a really bad outcome for such a small and easy to make
mistake, so just make a small check and assert that the requested IPs
are not used by any node on any ring in the cluster configuration.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agopvecm addnode: error out on interactive call
Thomas Lamprecht [Wed, 22 Feb 2017 15:59:07 +0000 (16:59 +0100)]
pvecm addnode: error out on interactive call

addnode is thought to be used by the `add` command only.
So check if STDIN or STOUT are connected to a tty and exit with an
error message if this is the case.
The force flag allows overwriting this check.

Fixes bug #294

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agopvecm create: remove rrp_mode parameter
Thomas Lamprecht [Wed, 22 Feb 2017 15:59:06 +0000 (16:59 +0100)]
pvecm create: remove rrp_mode parameter

I detected a bug where we overwrote the whole $interfaces variable
(and so all interfaces from the corosync config) if the 'rrp_mode'
param was set.

While this would be easy to with by changing the line to
$interfaces .= ...
I removed the whole rrp_mode parameter instead.

As:
a) I've seen no one running into this bug, so this parameter was not
   really used either way.
b) only the 'passive' is supported and works, 'active' has a whole
   lot of problems. If someone really wants it he should edit the
   corosync config file to achieve this

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agopvecm: small cleanup
Thomas Lamprecht [Wed, 22 Feb 2017 15:59:05 +0000 (16:59 +0100)]
pvecm: small cleanup

clvm is was used in 3.4 and earlier, it won't come back anytime soon

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agopvecm add: fix check if corosync alread runs
Thomas Lamprecht [Wed, 22 Feb 2017 15:59:04 +0000 (16:59 +0100)]
pvecm add: fix check if corosync alread runs

`corosync-quorumtool` exit with 1 (CS_OK) if corosync runs and is
quorate.
Use `corosync-quorumtool -l` (list nodes) instead, this returns
1 if corosync does not run
0 if corosync runs, independent if a cluster is quorate or not.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoRemove depency to libxml-parser-perl
Emmanuel Kasper [Thu, 16 Feb 2017 15:34:16 +0000 (16:34 +0100)]
Remove depency to libxml-parser-perl

This xml parser was added to parser RHCM cluster.conf, we don't parse this
anymore.

7 years agobuildsys: write control file into build directory
Thomas Lamprecht [Wed, 8 Feb 2017 10:24:55 +0000 (11:24 +0100)]
buildsys: write control file into build directory

Else the first make {deb,dinstall} from a clean repo fails as we
generated the debian control file to the source debian/ folder.
Just write it directly to the build/debian directory, so we do not
clutter the source directory and build always with the up to date
control file.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agobuildsys: don't include autogenerated files
Wolfgang Bumiller [Tue, 7 Feb 2017 09:50:13 +0000 (10:50 +0100)]
buildsys: don't include autogenerated files

they're usually outdated

7 years agobuildsys: remove gthread dependency
Wolfgang Bumiller [Tue, 7 Feb 2017 09:49:49 +0000 (10:49 +0100)]
buildsys: remove gthread dependency

7 years agomake clean: remove *.buildinfo
Wolfgang Bumiller [Tue, 7 Feb 2017 09:46:22 +0000 (10:46 +0100)]
make clean: remove *.buildinfo

7 years agobuildsys: shlibs:Depends finds librrd on its own
Wolfgang Bumiller [Tue, 7 Feb 2017 09:45:06 +0000 (10:45 +0100)]
buildsys: shlibs:Depends finds librrd on its own

On stretch we have librrd8 instead of librrd4.

7 years agobuildsys: generate perlapi dependency version
Wolfgang Bumiller [Fri, 3 Feb 2017 15:37:25 +0000 (16:37 +0100)]
buildsys: generate perlapi dependency version

7 years agobuildsys: depend on lsb-base
Wolfgang Bumiller [Fri, 3 Feb 2017 15:24:46 +0000 (16:24 +0100)]
buildsys: depend on lsb-base

shipping init scripts without this dependency is considered
an error by lintian in stretch

7 years agobuildsys: make perl find the local IPCC.so
Wolfgang Bumiller [Tue, 31 Jan 2017 10:15:20 +0000 (11:15 +0100)]
buildsys: make perl find the local IPCC.so

Otherwise the checks depend on an installed version of the
package.

7 years agobuildsys: missing build dependencies
Wolfgang Bumiller [Fri, 3 Feb 2017 15:15:34 +0000 (16:15 +0100)]
buildsys: missing build dependencies

7 years agobuildsys: make job safety and old svn cruft removal
Wolfgang Bumiller [Fri, 3 Feb 2017 14:31:30 +0000 (15:31 +0100)]
buildsys: make job safety and old svn cruft removal

7 years agoalso update PVE/Makefile.in
Dietmar Maurer [Thu, 19 Jan 2017 08:51:04 +0000 (09:51 +0100)]
also update PVE/Makefile.in

7 years agobump version to 4.0-48
Dietmar Maurer [Tue, 29 Nov 2016 11:00:57 +0000 (12:00 +0100)]
bump version to 4.0-48

7 years agoadd API class for cluster configuration
Dietmar Maurer [Tue, 29 Nov 2016 10:51:38 +0000 (11:51 +0100)]
add API class for cluster configuration

Read-only for now. addnode/delnode implementation will follow.

7 years agomove corosync config helpers to PVE::Cluster
Dietmar Maurer [Tue, 29 Nov 2016 10:21:16 +0000 (11:21 +0100)]
move corosync config helpers to PVE::Cluster

7 years agocleanup: delete trailing whitespace
Dietmar Maurer [Tue, 29 Nov 2016 06:44:46 +0000 (07:44 +0100)]
cleanup: delete trailing whitespace

7 years agoFix #1199: pmxcfs: vmlist cache update condition in rename
Wolfgang Bumiller [Wed, 9 Nov 2016 08:15:56 +0000 (09:15 +0100)]
Fix #1199: pmxcfs: vmlist cache update condition in rename

rename() wrongly used the vmid filled in by
path_contain_vm_config() as a condition for whether to
update the vmlist cache rather than the returned nodename.

This caused a rename in any folder of a file whose name
was a number followed by '.conf' to remove the corresponding
vmid from the vmlist cache.

7 years agopmxcfs: cleanup: remove unnecessary checks before free
Wolfgang Bumiller [Wed, 9 Nov 2016 08:15:55 +0000 (09:15 +0100)]
pmxcfs: cleanup: remove unnecessary checks before free

7 years agopmxcfs: cleanup
Wolfgang Bumiller [Wed, 9 Nov 2016 08:15:54 +0000 (09:15 +0100)]
pmxcfs: cleanup

7 years agonew helper initialize_cert_cache()
Dietmar Maurer [Fri, 25 Nov 2016 06:32:31 +0000 (07:32 +0100)]
new helper initialize_cert_cache()

7 years agomoved x509 certificate cache helpers from pve-manager package
Dietmar Maurer [Fri, 25 Nov 2016 06:24:25 +0000 (07:24 +0100)]
moved x509 certificate cache helpers from pve-manager package

No we depend on libcrypt-ssleay-perl.

7 years agosetup_sshd_config: add start_sshd flag
Dietmar Maurer [Thu, 24 Nov 2016 05:40:17 +0000 (06:40 +0100)]
setup_sshd_config: add start_sshd flag

and call setup_sshd_config within updatecerts.

7 years agopvecm.pm: add space after perl reference operator
Dietmar Maurer [Thu, 24 Nov 2016 05:16:54 +0000 (06:16 +0100)]
pvecm.pm: add space after perl reference operator

Else emacs font lock mode gets confused.

7 years agouse cannot instead of can't
Dietmar Maurer [Thu, 24 Nov 2016 05:12:23 +0000 (06:12 +0100)]
use cannot instead of can't

7 years agoerror out when getting remote ip address fails
Thomas Lamprecht [Fri, 11 Nov 2016 08:03:13 +0000 (09:03 +0100)]
error out when getting remote ip address fails

remove the noerr flag so that we error out when we get multiple IPs
from a CIDR or none at all, the user has to guarantee that his CIDR
matches just one IP on each local host.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoget_local_migration_ip: change to a reasonable error message
Thomas Lamprecht [Fri, 11 Nov 2016 08:03:12 +0000 (09:03 +0100)]
get_local_migration_ip: change to a reasonable error message

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoset PERLIB=.. instead of overwriting rules from pve-doc-generator.mk
Dietmar Maurer [Thu, 3 Nov 2016 08:18:15 +0000 (09:18 +0100)]
set PERLIB=.. instead of overwriting rules from pve-doc-generator.mk

7 years agodo not set format_description for migration type property
Dietmar Maurer [Thu, 3 Nov 2016 07:59:38 +0000 (08:59 +0100)]
do not set format_description for migration type property

We want to show possible enum values in the man page.

7 years agoremoved unused script gen-datacenter-pod.pl
Dietmar Maurer [Thu, 3 Nov 2016 07:48:31 +0000 (08:48 +0100)]
removed unused script gen-datacenter-pod.pl

7 years agoMakefile: remove unused RELEASE var
Dietmar Maurer [Thu, 3 Nov 2016 07:41:34 +0000 (08:41 +0100)]
Makefile: remove unused RELEASE var

7 years agobump version to 4.0-47
Dietmar Maurer [Thu, 3 Nov 2016 07:41:01 +0000 (08:41 +0100)]
bump version to 4.0-47

7 years agowrite_datacenter_config: do not overwrite new migration option with old value
Dietmar Maurer [Thu, 3 Nov 2016 07:37:32 +0000 (08:37 +0100)]
write_datacenter_config: do not overwrite new migration option with old value

Just to be sure.

7 years agoadd migration format to datacenter config
Thomas Lamprecht [Mon, 31 Oct 2016 08:42:30 +0000 (09:42 +0100)]
add migration format to datacenter config

This adds a new format for configuring cluster wide migration
settings.
Those settings include the migration transfer method, secure
(currently ssh) or insecure (tcp), this deprecates the
migration_unsecure parameter which we only keep for backward
compatibility and map it to the new property.
The mapping of the setting should be unproblematic for the user as
exactly the same semantics happen.
Only the case where both, new and old are set at the same time is
problematic, here warn the user and ignore the old setting.

Further the migration network can be set, this denotes the network
used for sending the migration traffic.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoadd request for migration ip to mtunnel
Thomas Lamprecht [Fri, 28 Oct 2016 10:11:33 +0000 (12:11 +0200)]
add request for migration ip to mtunnel

reuse mtunnel to allow the migration source side to ask the
migration target side for its dedicated migration IP.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoadd 'mtunnel' to pvecm
Thomas Lamprecht [Fri, 28 Oct 2016 10:11:32 +0000 (12:11 +0200)]
add 'mtunnel' to pvecm

This was copied from the 'qm' CLI tool as it uses no functionality
from qemu server itself and will be used in the abstract migrate
class.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoadd get_local_migration_ip method
Thomas Lamprecht [Fri, 28 Oct 2016 09:53:25 +0000 (11:53 +0200)]
add get_local_migration_ip method

used to get the local IP from the datacenter migration->network
CIDR, if any.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agobump version to 4.0-46
Dietmar Maurer [Tue, 20 Sep 2016 07:36:42 +0000 (09:36 +0200)]
bump version to 4.0-46

7 years agoreload corosync.conf after removing a node
Dietmar Maurer [Tue, 20 Sep 2016 07:34:30 +0000 (09:34 +0200)]
reload corosync.conf after removing a node

origial patch from w.link, rebased on current code

7 years agoFix #1093: allow also delete node by IP
Wolfgang Link [Tue, 6 Sep 2016 09:43:57 +0000 (11:43 +0200)]
Fix #1093: allow also delete node by IP

If there is a second ring or the ring0_addr is set on a IP.
pvecm nodes shows the ip instead the name.
So there is a reason to delete a node also by IP.

7 years agouse new repoman for upload target
Dietmar Maurer [Tue, 13 Sep 2016 04:33:03 +0000 (06:33 +0200)]
use new repoman for upload target

7 years agobump version to 4.0-45
Dietmar Maurer [Tue, 13 Sep 2016 04:30:25 +0000 (06:30 +0200)]
bump version to 4.0-45

7 years agopmxcfs: increase max filesize from 128k to 512k
Thomas Lamprecht [Mon, 12 Sep 2016 15:50:54 +0000 (17:50 +0200)]
pmxcfs: increase max filesize from 128k to 512k

This fixes bug 1014 and also fixes a few other problems where user
ran into the file size limitation, I did not found the bug entries
for them, but they covered:
1) there was a maximum of about <1500 services which could be
   managed by our HA manager, as after that the manager_status file
   got to big

2) firewall rules may also reach this limit on a bigger setup

I tested this with concurrent started read/writes of random data
files from and into RAM (tmpfs mounts), as long as we do not flush
often and read everything at once (i.e. write/read with a big block
size) the performance stays good.

The limiting factor in speed is not corosyncs CPG but sqlite, that
can be seen when comparing worst case scenarios between local pmxcfs
and clustered pmxcfs instances and simple debug logging.

We optimize our sqlite usage quite heavy, relevant additional speed
gains cannot be made without loosing reliability, as far as I've
seen.

So I only got into problems if I read/wrote small blocks
with a few hundred big writes started at once, e.g.
for i in {1..100}
do
    dd if=/tmp/random512k.data of="/etc/pve/data$i" bs=1k &
done

As with the above worst case each block gets written as a single
transaction to the database, where each transaction has to be locked
and synced to disk for reliability.
So packing all changes (i.e. the whole file) into one DB transaction
does not produces much overhead of 512k files compared to 128k files

As data written through the PVE framework is written and read in
such a way we can increase this without seeing much of a
performance impact.

It should be also noted that just because files can now get bigger
not a lot will get that. Rather there may be just one to three files
bigger than 128k on some setups.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agobump version to 4.0-44
Wolfgang Bumiller [Fri, 19 Aug 2016 12:52:53 +0000 (14:52 +0200)]
bump version to 4.0-44

7 years agouse g_return_val_fail as cfs_loop_stop_worker returns void
Thomas Lamprecht [Fri, 5 Aug 2016 10:34:04 +0000 (12:34 +0200)]
use g_return_val_fail as cfs_loop_stop_worker returns void

do not use g_return_val_if_fail because the cfs_loop_stop_worker
function does not return anything and newer versions of GCC complain
about that (I used gcc version 5.4.0 20160609 (Debian 5.4.0-6 from
stretch)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoadd mac_prefix option to datacenter.cfg
Wolfgang Bumiller [Thu, 14 Jul 2016 06:44:29 +0000 (08:44 +0200)]
add mac_prefix option to datacenter.cfg

We allow up to 3 fixed prefix bytes.

7 years agobump version to 4.0-43
Wolfgang Bumiller [Mon, 11 Jul 2016 11:57:55 +0000 (13:57 +0200)]
bump version to 4.0-43

7 years agoensure quorum is set false when corosync fails
Thomas Lamprecht [Thu, 30 Jun 2016 14:35:36 +0000 (16:35 +0200)]
ensure quorum is set false when corosync fails

If corosync directly fails (i.e. `killall corosync`) the local node
acted like it had still quorum, which is not ideal.

Ensure that we set quorate to false before we finalize the quorum.

Do this in:

* service_quorum_dispatch, if it fails it is important that we set
it to false, as there is a good possibility that the
quorum_notification_fn won't get called anymore, reproducible with
$ killall corosync && sleep 0.1 && ls -l /etc/pve/ \
  && systemctl start corosync
Expected behavior: corosync is dead, the ls should show that
everything in /etc/pve is read only
Shown: behavior: /etc/pve still has read/write access and
PVE::Cluster::check_cfs_quorum() still returns true

* service_quorum_initialize: just to be sure as we successfully
  registered the quorum notification function already

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agocleanup format strings for cfs_* messages
Thomas Lamprecht [Tue, 24 May 2016 13:55:53 +0000 (15:55 +0200)]
cleanup format strings for cfs_* messages

This does not change semantics on our current target platform
(x86_64) but is needed for porting it to other platforms.

The GCC on ARM, for example, complains about them.

For all:
* size_t use "%z*"
* off_t use "%j*"
* uint64_t use "PRI*64"

where * may be one of (X,d,u).

Also cast guint64 to uint64_t to allow use of a general, portable
format which also supports hex output as the GUINT64_FORMAT allows
decimal output only.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Cc: mir@datanom.net
7 years agobuildsys: add phony deb target, make ${DEBS} non-phony
Wolfgang Bumiller [Tue, 28 Jun 2016 13:11:00 +0000 (15:11 +0200)]
buildsys: add phony deb target, make ${DEBS} non-phony

7 years agobump version to 4.0-42
Dietmar Maurer [Tue, 14 Jun 2016 07:56:35 +0000 (09:56 +0200)]
bump version to 4.0-42

7 years agoFix command line arguments when creating the ssl private key
Emmanuel Kasper [Mon, 13 Jun 2016 14:18:11 +0000 (16:18 +0200)]
Fix command line arguments when creating the ssl private key

A fresh pve-cluster installation on top of Debian would err
because the ssl private key generation failed.

7 years agobump version to 4.0-41
Dietmar Maurer [Fri, 10 Jun 2016 11:06:46 +0000 (13:06 +0200)]
bump version to 4.0-41

7 years agouse UUID for CA certificate subject
Fabian Grünbichler [Fri, 10 Jun 2016 09:57:01 +0000 (11:57 +0200)]
use UUID for CA certificate subject

7 years agocleanup calls to external programs
Fabian Grünbichler [Fri, 10 Jun 2016 09:57:00 +0000 (11:57 +0200)]
cleanup calls to external programs

7 years agoset RELEASE=4.2
Dietmar Maurer [Wed, 25 May 2016 09:38:15 +0000 (11:38 +0200)]
set RELEASE=4.2

7 years agobump version to 4.0-40
Dietmar Maurer [Wed, 25 May 2016 09:37:38 +0000 (11:37 +0200)]
bump version to 4.0-40

7 years agopvecm: remove RPCEnvironment use clause
Thomas Lamprecht [Wed, 25 May 2016 09:03:09 +0000 (11:03 +0200)]
pvecm: remove RPCEnvironment use clause

We do not use it anywhere and it triggers an cyclic build dependency
between pve-access-control and pve-cluster.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agofix rule for %.1-synopsis.adoc
Dietmar Maurer [Tue, 24 May 2016 14:32:32 +0000 (16:32 +0200)]
fix rule for %.1-synopsis.adoc

use correct include path -I..

8 years agodocs: replace NOTE: with WARNING:
Fabian Grünbichler [Fri, 15 Apr 2016 11:10:51 +0000 (13:10 +0200)]
docs: replace NOTE: with WARNING:

8 years agoFix #935: fix corosync.conf check
Fabian Grünbichler [Mon, 11 Apr 2016 07:56:00 +0000 (09:56 +0200)]
Fix #935: fix corosync.conf check

8 years agoinstall pmxcfs.8 man page
Dietmar Maurer [Sat, 9 Apr 2016 13:26:23 +0000 (15:26 +0200)]
install pmxcfs.8 man page

8 years agobump version to 4.0-39
Dietmar Maurer [Wed, 6 Apr 2016 15:44:00 +0000 (17:44 +0200)]
bump version to 4.0-39

8 years agoremove old/stale inline docs
Dietmar Maurer [Wed, 6 Apr 2016 15:42:33 +0000 (17:42 +0200)]
remove old/stale inline docs

8 years agogenerate man pages with pve-doc-generator
Dietmar Maurer [Wed, 6 Apr 2016 15:39:43 +0000 (17:39 +0200)]
generate man pages with pve-doc-generator

8 years agobump version to 4.0-38
Dietmar Maurer [Thu, 31 Mar 2016 08:33:37 +0000 (10:33 +0200)]
bump version to 4.0-38

8 years agoallow empty values in rrddata
Dominik Csapak [Thu, 24 Mar 2016 14:24:34 +0000 (15:24 +0100)]
allow empty values in rrddata

since the charts plugin in extjs6 behaves correctly
when some values are missing,
we can allow empty fields in the rrddata response

if we do not do this, we have to manually insert
empty values on the client side to correctly show
the graphs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agobump version to 4.0-37
Dietmar Maurer [Tue, 15 Mar 2016 15:45:06 +0000 (16:45 +0100)]
bump version to 4.0-37

8 years agoAdd warning for pvecm commands if not part of cluster
Fabian Grünbichler [Mon, 14 Mar 2016 08:19:22 +0000 (09:19 +0100)]
Add warning for pvecm commands if not part of cluster

If the cluster config file is missing, pvecm status, nodes
and expected will probably not work. Add a helpful warning
because the corosync-quorumtool error message is not very
descriptive here.

Add a helper sub in Cluster.pm to actually do the check.

8 years agobump version to 4.0-36
Dietmar Maurer [Mon, 14 Mar 2016 07:35:07 +0000 (08:35 +0100)]
bump version to 4.0-36

8 years agofix #904: wrap openssl with faketime
Fabian Grünbichler [Fri, 11 Mar 2016 08:37:19 +0000 (09:37 +0100)]
fix #904: wrap openssl with faketime

This should prevent issues when generating certificates on
first boot of a node with the RTC wrongly set to the local
timezone instead of UTC. Since we cannot require the node to
be synchronized with an NTP server, we pretend it's
yesterday when calling openssl.

8 years agobump version to 4.0-35
Dietmar Maurer [Fri, 4 Mar 2016 16:01:27 +0000 (17:01 +0100)]
bump version to 4.0-35

8 years agoadd 'fencing' to datacenter.cfg
Thomas Lamprecht [Fri, 4 Mar 2016 12:08:31 +0000 (13:08 +0100)]
add 'fencing' to datacenter.cfg

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 years agobump version to 4.0-34
Dietmar Maurer [Sat, 27 Feb 2016 08:38:20 +0000 (09:38 +0100)]
bump version to 4.0-34

8 years agoalways start rrd grephs at 0
Markus Köberl [Thu, 25 Feb 2016 13:14:41 +0000 (14:14 +0100)]
always start rrd grephs at 0

Signed-off-by: Markus Köberl <markus.koeberl@tugraz.at>
8 years agobump version to 4.0-33
Dietmar Maurer [Thu, 18 Feb 2016 18:09:56 +0000 (19:09 +0100)]
bump version to 4.0-33

8 years agofix strtol error check (see manual page)
Dietmar Maurer [Thu, 18 Feb 2016 18:09:12 +0000 (19:09 +0100)]
fix strtol error check (see manual page)

8 years agoadd check for int overflow on vmids
Dominik Csapak [Mon, 15 Feb 2016 11:02:10 +0000 (12:02 +0100)]
add check for int overflow on vmids

this patch adds a check for overflow after converting the
<vmid>.conf path to an vmid (which are 32-bit integers)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agobump version to 4.0-32
Dietmar Maurer [Thu, 11 Feb 2016 09:01:25 +0000 (10:01 +0100)]
bump version to 4.0-32

8 years agoadd 'max_workers' to datacenter.cfg
Thomas Lamprecht [Wed, 10 Feb 2016 10:58:23 +0000 (11:58 +0100)]
add 'max_workers' to datacenter.cfg

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 years agobump version to 4.0-31
Dietmar Maurer [Fri, 15 Jan 2016 16:17:04 +0000 (17:17 +0100)]
bump version to 4.0-31

8 years agoUse correct key usage in node SSL certificate
Fabian Grünbichler [Fri, 15 Jan 2016 09:12:33 +0000 (10:12 +0100)]
Use correct key usage in node SSL certificate

8 years agoChange CA SSL key size to 4096 bit
Fabian Grünbichler [Fri, 15 Jan 2016 09:12:32 +0000 (10:12 +0100)]
Change CA SSL key size to 4096 bit

8 years agobump version to 4.0-30
Dietmar Maurer [Sat, 26 Dec 2015 18:11:42 +0000 (19:11 +0100)]
bump version to 4.0-30

8 years agoipcc_send_rec: clear errno if we get a valid result
Dietmar Maurer [Sat, 26 Dec 2015 18:09:12 +0000 (19:09 +0100)]
ipcc_send_rec: clear errno if we get a valid result

8 years agobump version to 4.0-29
Dietmar Maurer [Fri, 4 Dec 2015 12:52:25 +0000 (13:52 +0100)]
bump version to 4.0-29

8 years agoqb_loop_timer_add: do not use small timeouts
Dietmar Maurer [Fri, 4 Dec 2015 12:34:33 +0000 (13:34 +0100)]
qb_loop_timer_add: do not use small timeouts

because callbacks seems to get skipped sometimes.