]> git.proxmox.com Git - pve-cluster.git/log
pve-cluster.git
8 years agoclean up some error handling
Thomas Lamprecht [Fri, 9 Oct 2015 16:49:37 +0000 (18:49 +0200)]
clean up some error handling

Does not change functionality, makes some code a bit more readable
and lessens code reuse.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 years agoprefer 'name' subkey over 'ring0_addr' for nodename
Thomas Lamprecht [Fri, 9 Oct 2015 16:49:36 +0000 (18:49 +0200)]
prefer 'name' subkey over 'ring0_addr' for nodename

Use the name subkey from the cmap keys by default, if not set
fallback to the ring0_addr.
This fixes some issues when we move the corosync communication to
a different network and use an specific address or an new hostname
for that. Withouth this patch the nodename in the .members special
file changes together with ring0_addr, which can result in quite a
few problems (e.g.: in the ha-manager).
This allows also to separate the webinterface traffic from corosync.
IP adresses can be used for ring0 addresses directly now also,
without making problems.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 years agobump version to 4.0-22
Dietmar Maurer [Mon, 5 Oct 2015 11:16:28 +0000 (13:16 +0200)]
bump version to 4.0-22

8 years agocheck_vmid_unused: fix error message
Dietmar Maurer [Mon, 5 Oct 2015 11:14:54 +0000 (13:14 +0200)]
check_vmid_unused: fix error message

8 years agobump version to 4.0-21
Dietmar Maurer [Sat, 26 Sep 2015 08:31:47 +0000 (10:31 +0200)]
bump version to 4.0-21

8 years agoadd function to lock a domain
Thomas Lamprecht [Fri, 25 Sep 2015 15:50:05 +0000 (17:50 +0200)]
add function to lock a domain

This can be used to execute code on an 'action domain' basis.
E.g.: if there are actions that cannot be run simultaneously even if
they, for example, don't access a common file and maybe also spread
across different packages we can now secure the consistence of said
actions on an 'action domain' basis.

The need to use a dirty hack like cfs_lock_storage with some
arbitrary storage name becomes obsolete. Also the code behaviour
and meaning becomes clearer.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 years agobump version to 4.0-20
Dietmar Maurer [Fri, 25 Sep 2015 11:03:36 +0000 (13:03 +0200)]
bump version to 4.0-20

8 years agoinstall bash completion configuration file
Dietmar Maurer [Fri, 25 Sep 2015 10:16:57 +0000 (12:16 +0200)]
install bash completion configuration file

8 years agoconvert pvecm into a PVE::CLI class
Dietmar Maurer [Fri, 25 Sep 2015 10:05:18 +0000 (12:05 +0200)]
convert pvecm into a PVE::CLI class

8 years agobump version to 4.0-19
Dietmar Maurer [Wed, 23 Sep 2015 05:57:38 +0000 (07:57 +0200)]
bump version to 4.0-19

8 years agocheck_vmid_unused: simplify code
Dietmar Maurer [Wed, 23 Sep 2015 05:54:15 +0000 (07:54 +0200)]
check_vmid_unused: simplify code

8 years agocheck_vmid_unused message change
Alen Grizonic [Tue, 22 Sep 2015 14:21:36 +0000 (16:21 +0200)]
check_vmid_unused message change

changed message if vmid used on a different cluster node

8 years agobump version to 4.0-18
Dietmar Maurer [Fri, 18 Sep 2015 07:19:53 +0000 (09:19 +0200)]
bump version to 4.0-18

8 years agonew helper: complete_vmid
Dietmar Maurer [Fri, 18 Sep 2015 07:13:12 +0000 (09:13 +0200)]
new helper: complete_vmid

8 years agobump version to 4.0-17
Dietmar Maurer [Tue, 8 Sep 2015 05:21:56 +0000 (07:21 +0200)]
bump version to 4.0-17

8 years agonew bash completion helper: complete_migration_target
Dietmar Maurer [Mon, 7 Sep 2015 05:23:59 +0000 (07:23 +0200)]
new bash completion helper: complete_migration_target

moved from PVE::LXC

8 years agoadd some bash completion helpers
Dietmar Maurer [Fri, 4 Sep 2015 06:06:58 +0000 (08:06 +0200)]
add some bash completion helpers

8 years agobump version to 4.0-16
Dietmar Maurer [Tue, 1 Sep 2015 08:44:01 +0000 (10:44 +0200)]
bump version to 4.0-16

8 years agodo not pass undefined value to PVE::JSONSchema::parse_config
Dietmar Maurer [Tue, 1 Sep 2015 08:41:55 +0000 (10:41 +0200)]
do not pass undefined value to PVE::JSONSchema::parse_config

8 years agobump version to 4.0-15
Dietmar Maurer [Thu, 6 Aug 2015 09:22:24 +0000 (11:22 +0200)]
bump version to 4.0-15

8 years agouse simple files for LXC configuration
Dietmar Maurer [Mon, 3 Aug 2015 04:27:01 +0000 (06:27 +0200)]
use simple files for LXC configuration

8 years agocluster typo bug #588 fix
Alen Grizonic [Wed, 29 Jul 2015 08:05:06 +0000 (10:05 +0200)]
cluster typo bug #588 fix

Signed-off-by: Alen Grizonic <a.grizonic@proxmox.com>
8 years agobump version to 4.0-14
Dietmar Maurer [Mon, 22 Jun 2015 07:37:12 +0000 (09:37 +0200)]
bump version to 4.0-14

8 years agoadd observed file status.cfg
Dietmar Maurer [Mon, 22 Jun 2015 06:55:01 +0000 (08:55 +0200)]
add observed file status.cfg

We want to use that for new status plugins (graphite server).

8 years agobump version to 4.0-13
Dietmar Maurer [Fri, 19 Jun 2015 05:33:50 +0000 (07:33 +0200)]
bump version to 4.0-13

8 years agopvecm use of uninitialized value $ARGV[0]
Alen Grizonic [Thu, 18 Jun 2015 13:58:29 +0000 (15:58 +0200)]
pvecm use of uninitialized value $ARGV[0]

Just a small bug fix for the pvecm script which did not verify
the argument existence during the $ARGV[0] check (when argument not used).

Script run error -> Use of uninitialized value $ARGV[0] in
string ne at /usr/bin/pvecm line 26.

Signed-off-by: Alen Grizonic <a.grizonic@proxmox.com>
8 years agopath_is_lockdir: optimize away a strlen call
Wolfgang Bumiller [Wed, 3 Jun 2015 11:55:54 +0000 (13:55 +0200)]
path_is_lockdir: optimize away a strlen call

8 years agobump version to 4.0-12
Dietmar Maurer [Mon, 1 Jun 2015 10:22:58 +0000 (12:22 +0200)]
bump version to 4.0-12

8 years agouse activate-noawait triggers
Dietmar Maurer [Mon, 1 Jun 2015 08:05:20 +0000 (10:05 +0200)]
use activate-noawait triggers

8 years agoimprove parser for /etc/ssh/ssh_host_rsa_key.pub
Dietmar Maurer [Sun, 31 May 2015 06:10:37 +0000 (08:10 +0200)]
improve parser for /etc/ssh/ssh_host_rsa_key.pub

8 years agofix filename in error message
Dietmar Maurer [Sun, 31 May 2015 06:06:46 +0000 (08:06 +0200)]
fix filename in error message

8 years agouse systemctl instead of service
Dietmar Maurer [Fri, 29 May 2015 12:59:47 +0000 (14:59 +0200)]
use systemctl instead of service

8 years agobump version to 4.0-11
Dietmar Maurer [Fri, 29 May 2015 12:45:50 +0000 (14:45 +0200)]
bump version to 4.0-11

8 years agoallow sshd root login when we setup a PVE cluster
Dietmar Maurer [Fri, 29 May 2015 12:37:19 +0000 (14:37 +0200)]
allow sshd root login when we setup a PVE cluster

9 years agopvecm create: put brackets around hostnames for rsync
Wolfgang Bumiller [Thu, 21 May 2015 11:07:44 +0000 (13:07 +0200)]
pvecm create: put brackets around hostnames for rsync

ssh and friends differ with respect to ipv6notations
 * ssh: 'user@host'
 * ssh-copy-id: 'user@host' as it uses ssh
 * scp: 'user@[host]:file'
 * rsync --rsh=ssh: '[user@host]'

rsync accepts brackets for all of ipv4, ipv6 or named hosts, so simply
defaulting to always using them works

9 years agopvecm create: add corosync.conf parameters for ipv6
Wolfgang Bumiller [Thu, 21 May 2015 11:07:43 +0000 (13:07 +0200)]
pvecm create: add corosync.conf parameters for ipv6

pvecm create now adds the following additional corosync.conf parameters:
 * totem.ip_version
 * totem.interface.ringnumber
 * totem.interface.bindnetaddr

For ipv6 corosync needs a 'totem.interface' list with at least one entry
containing a bindnetaddr setting. Additionally 'totem.ip_version' needs to
explicitly be set to ipv6 (or an 'mcastaddr' set, which corosync can
choose automatically, though, so we let it do just that).

9 years agoinclude ::1 in a certificate's subjectAltName list
Wolfgang Bumiller [Thu, 21 May 2015 11:07:42 +0000 (13:07 +0200)]
include ::1 in a certificate's subjectAltName list

9 years agocache address families for known nodes
Wolfgang Bumiller [Thu, 21 May 2015 11:07:41 +0000 (13:07 +0200)]
cache address families for known nodes

9 years agoremote_node_ip: option to include the packet family
Wolfgang Bumiller [Tue, 12 May 2015 09:19:09 +0000 (11:19 +0200)]
remote_node_ip: option to include the packet family

If an array is requested, the function now returns ($ip, $family),
otherweise just the IP alone.
Several ipv6 related changes in other packages need to pass the packet
family to functions and will make use of this functionality.

9 years agobump version to 4.0-10
Dietmar Maurer [Fri, 8 May 2015 10:24:16 +0000 (12:24 +0200)]
bump version to 4.0-10

9 years agowhitespace cleanups
Dietmar Maurer [Fri, 8 May 2015 10:23:18 +0000 (12:23 +0200)]
whitespace cleanups

9 years agouse freeaddrinfo on getaddrinfo results when done
Wolfgang Bumiller [Fri, 8 May 2015 09:39:25 +0000 (11:39 +0200)]
use freeaddrinfo on getaddrinfo results when done

9 years agoipv6 support for lookup_node_ip
Wolfgang Bumiller [Fri, 8 May 2015 09:39:24 +0000 (11:39 +0200)]
ipv6 support for lookup_node_ip

9 years agobump version to 4.0-9
Dietmar Maurer [Tue, 5 May 2015 13:13:48 +0000 (15:13 +0200)]
bump version to 4.0-9

9 years agotrigger pve-api-updates event
Dietmar Maurer [Tue, 5 May 2015 13:12:45 +0000 (15:12 +0200)]
trigger pve-api-updates event

9 years agosystem() is declared to warn on an unused result, replacing this with umount2(2)...
Wolfgang Bumiller [Tue, 5 May 2015 07:57:11 +0000 (09:57 +0200)]
system() is declared to warn on an unused result, replacing this with umount2(2) is more efficient anyway

9 years agoWith _FORTIFY_SOURCE and optimization, glibc defines a fortify_function for open...
Wolfgang Bumiller [Tue, 5 May 2015 07:45:37 +0000 (09:45 +0200)]
With _FORTIFY_SOURCE and optimization, glibc defines a fortify_function for open(2) which checks whether the mode parameter was provided when O_CREAT was used.

9 years agomake it compile as user: don't try to resolve the node IP when the 'printmanpod'...
Wolfgang Bumiller [Tue, 5 May 2015 07:41:26 +0000 (09:41 +0200)]
make it compile as user: don't try to resolve the node IP when the 'printmanpod' or 'verifyapi' options are used

9 years agoreplace hardcoded perl paths with variables coming from perl's Config and ExtUtils...
Wolfgang Bumiller [Tue, 5 May 2015 07:07:57 +0000 (09:07 +0200)]
replace hardcoded perl paths with variables coming from perl's Config and ExtUtils::Embed modules

9 years agopve-cluster : fix typo error in mkdir /etc/corosync
Alexandre Derumier [Tue, 28 Apr 2015 15:10:51 +0000 (17:10 +0200)]
pve-cluster : fix typo error in mkdir /etc/corosync

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
9 years agonew helper PVE::Cluster::check_vmid_unused
Dietmar Maurer [Thu, 16 Apr 2015 09:01:02 +0000 (11:01 +0200)]
new helper PVE::Cluster::check_vmid_unused

9 years agobump version to 4.0-8
Dietmar Maurer [Thu, 16 Apr 2015 05:15:58 +0000 (07:15 +0200)]
bump version to 4.0-8

9 years agoallow unpriviledged users to read lxc configuration
Dietmar Maurer [Wed, 15 Apr 2015 14:16:57 +0000 (16:16 +0200)]
allow unpriviledged users to read lxc configuration

We need this to run unprivileged lxc containers.

9 years agobump version to 4.0-7
Dietmar Maurer [Fri, 10 Apr 2015 06:31:20 +0000 (08:31 +0200)]
bump version to 4.0-7

9 years agotrack configuration changes inside lxc subdirectories
Dietmar Maurer [Fri, 10 Apr 2015 06:29:44 +0000 (08:29 +0200)]
track configuration changes inside lxc subdirectories

9 years agoremove vm_is_ha_managed method
Dietmar Maurer [Fri, 27 Mar 2015 09:56:33 +0000 (10:56 +0100)]
remove vm_is_ha_managed method

9 years agobump version to 4.0-6
Dietmar Maurer [Fri, 27 Mar 2015 09:55:07 +0000 (10:55 +0100)]
bump version to 4.0-6

9 years agoadd more 'observed' files.
Dietmar Maurer [Fri, 27 Mar 2015 09:53:53 +0000 (10:53 +0100)]
add more 'observed' files.

9 years agobump version to 4.0-5
Dietmar Maurer [Fri, 20 Mar 2015 08:43:33 +0000 (09:43 +0100)]
bump version to 4.0-5

9 years agoalso track totem.config_version
Dietmar Maurer [Fri, 20 Mar 2015 08:42:14 +0000 (09:42 +0100)]
also track totem.config_version

9 years agocorrectly track corosync config changes
Dietmar Maurer [Fri, 20 Mar 2015 08:19:19 +0000 (09:19 +0100)]
correctly track corosync config changes

9 years agoclear changes flag after read (to avoid confusion)
Dietmar Maurer [Thu, 19 Mar 2015 05:12:03 +0000 (06:12 +0100)]
clear changes flag after read (to avoid confusion)

9 years agobump version to 4.0-4
Dietmar Maurer [Wed, 18 Mar 2015 14:09:14 +0000 (15:09 +0100)]
bump version to 4.0-4

9 years agofix corosync cmap reader
Dietmar Maurer [Wed, 18 Mar 2015 14:07:52 +0000 (15:07 +0100)]
fix corosync cmap reader

9 years agodepend on corosync-pve
Dietmar Maurer [Fri, 13 Mar 2015 11:08:17 +0000 (12:08 +0100)]
depend on corosync-pve

9 years agofix path for corosync config
Dietmar Maurer [Fri, 13 Mar 2015 10:57:47 +0000 (11:57 +0100)]
fix path for corosync config

9 years agouse systemctl to start/stop services, bump version to 4.0-3
Dietmar Maurer [Fri, 13 Mar 2015 10:35:51 +0000 (11:35 +0100)]
use systemctl to start/stop services, bump version to 4.0-3

9 years agobump version to 4.0-2
Dietmar Maurer [Mon, 9 Mar 2015 05:45:22 +0000 (06:45 +0100)]
bump version to 4.0-2

9 years agocorrectly depend on perlapi-5.20.0
Dietmar Maurer [Mon, 9 Mar 2015 05:43:58 +0000 (06:43 +0100)]
correctly depend on perlapi-5.20.0

9 years agofix service configuration
Dietmar Maurer [Tue, 3 Mar 2015 11:24:26 +0000 (12:24 +0100)]
fix service configuration

9 years agoadd method vm_is_ha_managed
Dietmar Maurer [Mon, 2 Mar 2015 08:57:54 +0000 (09:57 +0100)]
add method vm_is_ha_managed

always return false for now.

9 years agoimplement addnode/delnode for cororsnc 2
Dietmar Maurer [Thu, 26 Feb 2015 09:57:26 +0000 (10:57 +0100)]
implement addnode/delnode for cororsnc 2

9 years agodepend on systemd (instead of insserv)
Dietmar Maurer [Thu, 26 Feb 2015 08:29:23 +0000 (09:29 +0100)]
depend on systemd (instead of insserv)

9 years agoadd parser for corosync.conf
Dietmar Maurer [Thu, 26 Feb 2015 08:21:01 +0000 (09:21 +0100)]
add parser for corosync.conf

9 years agouse corosync-quorumtool to set expected votes
Dietmar Maurer [Wed, 25 Feb 2015 17:24:50 +0000 (18:24 +0100)]
use corosync-quorumtool to set expected votes

9 years agoremove stale docs
Dietmar Maurer [Wed, 25 Feb 2015 17:16:06 +0000 (18:16 +0100)]
remove stale docs

9 years agocpgtest: updates for corosync 2
Dietmar Maurer [Wed, 25 Feb 2015 17:11:20 +0000 (18:11 +0100)]
cpgtest: updates for corosync 2

9 years agoremove cman, and use corosync.conf instead of cluster.conf
Dietmar Maurer [Wed, 25 Feb 2015 16:42:02 +0000 (17:42 +0100)]
remove cman, and use corosync.conf instead of cluster.conf

9 years agouse external corosync-keygen
Dietmar Maurer [Wed, 25 Feb 2015 10:32:33 +0000 (11:32 +0100)]
use external corosync-keygen

9 years agoavoid lintian hardening-no-relro warning
Dietmar Maurer [Wed, 25 Feb 2015 09:12:15 +0000 (10:12 +0100)]
avoid lintian hardening-no-relro warning

by adding -Wl,-z,relro compiler flag

9 years agoadd Pre-Depends to avoid warnings
Dietmar Maurer [Wed, 25 Feb 2015 09:00:56 +0000 (10:00 +0100)]
add Pre-Depends to avoid warnings

9 years agoavoid race conditions when starting threads
Dietmar Maurer [Wed, 25 Feb 2015 08:49:33 +0000 (09:49 +0100)]
avoid race conditions when starting threads

Use Mutex/Cond to wait until server threads are fully functional.

9 years agoadd missing debian/pve-cluster.service
Dietmar Maurer [Tue, 24 Feb 2015 18:56:04 +0000 (19:56 +0100)]
add missing debian/pve-cluster.service

9 years agoadd dh-systemd build dependency
Dietmar Maurer [Tue, 24 Feb 2015 17:48:34 +0000 (18:48 +0100)]
add dh-systemd build dependency

9 years agoadd systemd support
Dietmar Maurer [Tue, 24 Feb 2015 13:00:45 +0000 (14:00 +0100)]
add systemd support

9 years agodo not create /etc/pve with debian/dirs
Dietmar Maurer [Tue, 24 Feb 2015 12:59:19 +0000 (13:59 +0100)]
do not create /etc/pve with debian/dirs

Because that can fail with chrashed pmxcfs (mountpoint not connected).

9 years agoupdate to debian jessie
Dietmar Maurer [Tue, 24 Feb 2015 10:53:59 +0000 (11:53 +0100)]
update to debian jessie

confdb.c: this is broken now

9 years agoadd ability to update cfs locks, bump version to 3.0-17
Dietmar Maurer [Thu, 19 Feb 2015 11:09:05 +0000 (12:09 +0100)]
add ability to update cfs locks, bump version to 3.0-17

9 years agobump version to 3.0-16, fix lintian warnings
Dietmar Maurer [Mon, 9 Feb 2015 16:11:26 +0000 (17:11 +0100)]
bump version to 3.0-16, fix lintian warnings

9 years agoenable debug package for pve-cluster
Stefan Priebe [Mon, 9 Feb 2015 14:05:50 +0000 (15:05 +0100)]
enable debug package for pve-cluster

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
9 years agobump version to 3.0-15
Dietmar Maurer [Thu, 4 Sep 2014 15:31:55 +0000 (17:31 +0200)]
bump version to 3.0-15

9 years agodatacenter.cfg: validate email_from option
Stanislav German-Evtushenko [Wed, 3 Sep 2014 10:20:45 +0000 (10:20 +0000)]
datacenter.cfg: validate email_from option

Signed-off-by: Stanislav German-Evtushenko <ginermail@gmail.com>
9 years agodatacenter.cfg: add new email_from option
Stanislav German-Evtushenko [Wed, 3 Sep 2014 10:18:48 +0000 (10:18 +0000)]
datacenter.cfg: add new email_from option

Signed-off-by: Stanislav German-Evtushenko <ginermail@gmail.com>
9 years agobump version to 3.0-14, add new value (html5) for console settings
Dietmar Maurer [Wed, 25 Jun 2014 04:23:47 +0000 (06:23 +0200)]
bump version to 3.0-14, add new value (html5) for console settings

10 years agobump version to 3.0-13
Dietmar Maurer [Wed, 30 Apr 2014 05:20:16 +0000 (07:20 +0200)]
bump version to 3.0-13

10 years agofix bug 204: use DERIVE instead of COUNTER
Dietmar Maurer [Wed, 30 Apr 2014 05:17:19 +0000 (07:17 +0200)]
fix bug 204: use DERIVE instead of COUNTER

10 years agomake sure we read latest versions inside locked code
Dietmar Maurer [Tue, 28 Jan 2014 15:36:39 +0000 (16:36 +0100)]
make sure we read latest versions inside locked code

File locks are used for read/modify/write cycles, so we need to make
sure that we always read latest versions.

10 years agobump version to 3.0-12, update libfuse2 dependency
Dietmar Maurer [Mon, 27 Jan 2014 10:50:52 +0000 (11:50 +0100)]
bump version to 3.0-12, update libfuse2 dependency

fix bug #489

10 years agobump version to 3.0-11
Dietmar Maurer [Mon, 13 Jan 2014 06:46:41 +0000 (07:46 +0100)]
bump version to 3.0-11

10 years agostop after ceph
Dietmar Maurer [Mon, 13 Jan 2014 06:45:35 +0000 (07:45 +0100)]
stop after ceph