5
0
mirror of git://git.proxmox.com/git/pve-ha-manager.git synced 2025-01-07 21:18:00 +03:00
Commit Graph

104 Commits

Author SHA1 Message Date
Thomas Lamprecht
b65075d6a7 bump version to 2.0-7
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-04 10:37:35 +01:00
Thomas Lamprecht
9698b69403 d/control: bump version dependency to pve-doc-generator
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-02-22 13:31:32 +01:00
Christian Ebner
2dbc366995 1891 Add zsh command completion for ha-manager CLI tools
Add the zsh command completion generation for the ha-manager CLI tools.

This adds the automatic generation of the autocompletion scripts for zsh

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2019-02-22 11:44:13 +01:00
Thomas Lamprecht
1c2561110f d/lintian-overrids: add repeated-trigger-name override
in this package we provide api functions, thus we want to activate
the pve-api-update trigger, so that packages like pve-manager get
notified about it. But we also use api functions directly so we setup
an interest in the pve-api-update trigger. This results in an lintian
error (lintian version from buster or newer) which we can override:

> [...]
> This tag is also triggered if the package has an activate trigger
> for something on which it also declares an interest. The only (but
> rather unlikely) reason to do this is if another package also
> declares an interest and this package needs to activate that other
> package. If the package is using it for this exact purpose, then
> please use a Lintian override to state this.
-- https://lintian.debian.org/tags/repeated-trigger-name.html

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-01-08 17:35:59 +01:00
Thomas Lamprecht
a57a3b7809 d/control: add missing pve-container dependency
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-01-08 15:23:56 +01:00
Thomas Lamprecht
7655c92c81 fixup changelog line length and typos
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-01-07 13:35:34 +01:00
Thomas Lamprecht
e3e02f4688 bump version 2.0-6
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-01-07 13:00:00 +01:00
Rhonda D'Vine
b9350791a3 Add missing Build-Depends
Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com>
2018-12-17 09:41:11 +01:00
Thomas Lamprecht
c974828745 install simulator executable into bin not sbin
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-10-17 11:51:04 +02:00
Fabian Grünbichler
728d9a2a97 build: actually ship SOURCE file
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2018-10-17 11:20:41 +02:00
Fabian Grünbichler
6ea95574cc build: bump compat level to 10
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2018-10-17 11:20:41 +02:00
Fabian Grünbichler
1116ca25b8 build: restructure packaging
use dpkg-buildpackage and debhelper properly, add missing dependencies and
embed used perl modules from libpve-common-perl to make pve-ha-simulator
standalone.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2018-10-17 11:20:41 +02:00
Thomas Lamprecht
3166752f13 postinst: use auto generated postinst
This was introduced for cleaning up an possible left over systemd
watchdog mux enable link, which is gone for good now.

Then it was extended with trigger targets, as the HA Manager services
now restart when the pve-api-update trigger fires.
As the autogenerated postinst does the same unconditionally for the
pve-ha-lrm.service and pve-ha-crm.service already we may remove it
too.
The only difference is that try-restart is used by the auto generated
script, not reload-or-try-restart, but this does not matter, as the
HA services have currently no reload ability.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-26 09:37:22 +01:00
Thomas Lamprecht
c122969ff2 postinst: we do not use templates, remove debconf
This was copied by accident when adding the transitional code for
removing the left over of the systemd managed watchdog mux in
commit f8a3fc80af

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-26 09:37:22 +01:00
Thomas Lamprecht
e2c96fdae4 postinst: drop transitional systemd watchdog mux socket cleanup
This transitional code was added first with
commit f8a3fc80af
and fixed up with
commit ecc145c972
during Proxmox VE 4.1 and 4.2 to remove the problematic systemd
managed watchdog mux socket.

As each system going for an distribution upgrade must first upgrade
to 4.4, where this gets handled, we can remove it now.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-26 09:37:22 +01:00
Fabian Grünbichler
a6b9892808 debian/rules: add some explaining comments
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-12-28 16:37:25 +01:00
Fabian Grünbichler
1abfa1f8ec debian/rules: don't dh_systemd_start watchdog-mux
as it's a static unit dh_systemd_starting it is not possible - but it gets
pulled in and started by pve-ha-crm/pve-ha-lrm anyway.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-12-28 16:37:25 +01:00
Fabian Grünbichler
449a03b794 debian/rules: add file names to dh_systemd_enable
otherwise it gets confused and enables pve-ha-crm twice in the postinst.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-12-28 16:37:25 +01:00
Thomas Lamprecht
042a5d2dcf lrm: crm: show interest in pve-api-update trigger
To ensure that the LRM and CRM services get reloaded when
pve-api-update trigger gets activated.
Important, as we directly use perl API modules from qemu-server,
pve-container, pve-common and really want to avoid to run outdated,
possible problematic or deprecated, code.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-10-13 10:37:15 +02:00
Thomas Lamprecht
2fb6fcd318 lrm.service: do not timeout on stop
we must shut all services down when stopping the LRM for a host
shutdown, this can take longer than 95 seconds and should not
get interrupted to ensure a gracefull poweroff.

The watchdog is still active untill all services got stopped so we
still are safe from a freeze or equivalent failure.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-10-13 10:37:15 +02:00
Fabian Grünbichler
1afe2ae2c7 build: reformat debian/control
using wrap-and-sort -abt
2017-10-04 11:05:33 +02:00
Wolfgang Link
2f549281f2 Fix shutdown order of HA and storage services
It is important that all storages stop after pve-ha-lrm.

If the storages stop too early the vm loses disks and can not shutdown.

This can end in fencing the node.
2017-05-03 12:00:03 +02:00
Wolfgang Bumiller
ffc6cea9af buildsys: drop libsystemd-daemon-dev build dep
We don't actually need it and it and on stretch
libsystemd-dev (which we still depend on) replaces it.
2017-02-06 15:20:10 +01:00
Dietmar Maurer
08faa7f048 use pve-doc-generator to generate man pages 2016-04-08 08:23:50 +02:00
Wolfgang Bumiller
ecc145c972 Fix postinstall script not removing watchdog-mux.socket
watchdog-mux.socket was removed in f8a3fc80af but the
postinstall script used -e instead of -L to test for the
symlink, which fails since the destination is already
removed at that point.

Use -L and remove the dead symlink if it exists.

Reported-by: Alexandre Derumier <aderumier@odiso.com>
2016-02-04 18:23:19 +01:00
Dietmar Maurer
9c042d0242 pve-ha-lrm.service: depend on lxc.service
lxc.service kills all containers at shutdown. So we need to deppend
on that, so that we can cleanly shutdown our containers.
2016-01-12 12:02:23 +01:00
Dietmar Maurer
8d357f3071 re-add #DEBHELPER# code to postinst
otherwise the services are not re-started correctly!
2016-01-12 10:37:50 +01:00
Dietmar Maurer
b3395c8a8d cleanup postinst script
only remove files when necessary - and run systemctl daemon-reload.
2016-01-12 10:29:21 +01:00
Thomas Lamprecht
f8a3fc80af remove watchdog-mux.socket
The use of an systemd socket unit for the watchdog socket is not
necessary for us it even generates problems as the socket already
runs and accepts input when the watchdog-mux daemon itself is not
running. So the LRM/CRM could successfully open and update the
watchdog even if it was not running!

This patch removes the unit file, adds a postinst script which
handles the removal of the links generated from systemd itself
and removes also the code from watchdog-mux which handled
the systemd socket unit.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-01-12 10:18:55 +01:00
Dietmar Maurer
6263c81dfe allow to configure watchdog module in /etc/default/pve-ha-manager
All watchdog modules are blacklisted, so we cannot load them via /etc/modules.
Instead, watchdog-mux loads it at startup.
2015-12-03 11:13:14 +01:00
Dietmar Maurer
150f2bbf04 add trigger for pve-api-updates 2015-06-16 09:55:48 +02:00
Dietmar Maurer
6d09288cf9 use Wants instead of Requires inside systemd service definitions
To avoid unnecessary restarts of dependent services.
2015-06-09 09:32:15 +02:00
Dietmar Maurer
f55f4c3224 always start crm and lrm service
Even if there is no resources.cfg. That makes it easier to
enable HA, because we don't need to start services manually.
2015-06-05 10:00:48 +02:00
Dietmar Maurer
af3eccc0b8 lrm: reduce TimeoutStopSec
because systemd waits 2*TimeoutStopSec
2015-04-02 08:47:01 +02:00
Dietmar Maurer
3184ff8fb6 lrm: set systemd killmode to 'process'
We do not want to kill running VMs (for example during software update).
2015-04-02 08:43:28 +02:00
Dietmar Maurer
03307e137c depend on systemd (build-depend on dh-systemd) 2015-04-01 08:05:01 +02:00
Dietmar Maurer
239ee8cffa fix dependencies 2015-03-31 13:46:33 +02:00
Dietmar Maurer
13cf3b8804 restart lrm after upgrade 2015-03-27 08:51:41 +01:00
Dietmar Maurer
9c72e6604a depend on qemu-server 2015-03-27 06:32:04 +01:00
Dietmar Maurer
193d0c892b lrm: fix stop timeout 2015-03-26 10:46:02 +01:00
Dietmar Maurer
622cb56a0a fix service dependencies
So that we can shutdown without triggering the watchdog. It is also
important to depend on syslog.service (else logs gets lost)
2015-03-26 10:21:02 +01:00
Dietmar Maurer
6d3b8d9b8f do not restart watchdog-mux.socket 2015-03-13 16:18:35 +01:00
Dietmar Maurer
b0bf08a9a9 use systemd condition to avoid daemon startup when ha is disabled 2015-03-13 16:16:06 +01:00
Dietmar Maurer
587aca551f add Restart=no to make it more clear
This service should not be re-started, because a restart would clear
the watchdoh timer!
2015-03-13 08:36:07 +01:00
Dietmar Maurer
42ea821f69 do not restart watchdog-mux on upgrade 2015-03-12 09:10:56 +01:00
Dietmar Maurer
3d411a6b17 allow to shutdown CRM/LRM 2015-03-12 08:40:58 +01:00
Dietmar Maurer
df5743bdf9 add service description for pve-ha-lrm 2015-03-11 12:06:25 +01:00
Dietmar Maurer
92763a2eb4 set backlog for watchdog-mux.socket 2015-03-10 15:43:38 +01:00
Dietmar Maurer
0079b45f2e disable OOM killer for watchdog-mux 2015-03-10 15:23:50 +01:00
Dietmar Maurer
350a6750da conflict with watchdog packages 2015-03-10 15:14:19 +01:00
Dietmar Maurer
b1aac24306 add systemd service for pve-ha-crm 2015-03-10 11:24:06 +01:00
Dietmar Maurer
3e5fd654d1 add service description, fix socket mode 2015-03-09 12:50:18 +01:00
Dietmar Maurer
bcde32d44e install systemd files for watchdog-mux 2015-03-09 12:11:46 +01:00
Dietmar Maurer
ba878e35cd restructure directory layout for dpkg-buildpackage 2015-03-09 11:29:51 +01:00