5
0
mirror of git://git.proxmox.com/git/pve-ha-manager.git synced 2025-01-23 02:04:19 +03:00

82 Commits

Author SHA1 Message Date
Thomas Lamprecht
19265402bc bump version to 3.2-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-24 11:38:46 +02:00
Thomas Lamprecht
b7e7495bed d/rules: update to systemd dh changes
both, `override_dh_systemd_enable` and `override_dh_systemd_start`
are ignored with current compat level 12, and will become an error in
level >= 13, so drop them and use `override_dh_installsystemd` for
both of the previous uses.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-24 11:37:01 +02:00
Thomas Lamprecht
8a35366fa6 bump version to 3.2-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-12 20:56:03 +02:00
Thomas Lamprecht
5868b0cf16 d/control: bump debhelper compat level to 12
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-12 20:54:22 +02:00
Thomas Lamprecht
985b73521b bump version to 3.1-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-08-31 10:52:28 +02:00
Thomas Lamprecht
efc332d9ab bump version to 3.0-9
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-03-12 13:18:52 +01:00
Oguz Bektas
cd9c430604 fix service name for pve-ha-crm
"PVE Cluster Resource Manager Daemon" should be "PVE Cluster HA Resource
Manager Daemon"

[0]: https://forum.proxmox.com/threads/typo-omission.65107/

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
2020-02-11 09:40:54 +01:00
Thomas Lamprecht
ab472a7e0e bump version to 3.0-8
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-12-02 10:33:10 +01:00
Thomas Lamprecht
908054bacb bump version to 3.0-7
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-11-30 19:47:48 +01:00
Thomas Lamprecht
1c4cf42733 bump version to 3.0-6
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-11-26 18:03:32 +01:00
Thomas Lamprecht
1694ce69f9 lrm.service: add after ordering for SSH and pveproxy
To avoid early disconnect during shutdown ensure we order After them,
for shutdown the ordering is reversed and so we're stopped before
those two - this allows to checkout the node stats and do SSH stuff
if something fails.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-11-25 19:48:34 +01:00
Thomas Lamprecht
54d808ad80 lrm.service: sort After statements
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-11-25 17:53:03 +01:00
Thomas Lamprecht
ad8a5e123a bump version to 3.0-5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-11-20 20:14:11 +01:00
Thomas Lamprecht
63a39498f0 d/control: re-add CT/VM dependency
this was an issue for 5.x, initial pre-6.0 and should work now again
as expected..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-11-20 20:13:36 +01:00
Fabian Grünbichler
6225c47c96 bump version to 3.0-4
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-11-18 12:17:18 +01:00
Fabian Grünbichler
ef39a1ca5d use PVE::DataCenterConfig
to make sure that the corresponding cfs_read_file works() works.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2019-11-18 12:14:49 +01:00
Thomas Lamprecht
2378f1c1b3 bump version to 3.0-3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-11-11 17:04:40 +01:00
Thomas Lamprecht
58500679bc bump version to 3.0-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-11 19:27:27 +02:00
Rhonda D'Vine
3cf61f860a Add missing Dependencies to pve-ha-simulator
This two missing dependencies makes it possible to install the package
on a stock Debian system (without PVE)

Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com>
2019-06-27 22:10:22 +02:00
Christian Ebner
993af4280e fix #2234: fix typo in service description
replace Ressource by Resource

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2019-06-12 10:50:46 +02:00
Thomas Lamprecht
b9828b7552 services: update PIDFile to point directly to /run
fixes a complaint from system:
> PIDFile= references path below legacy directory /var/run/'

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-26 15:16:15 +02:00
Thomas Lamprecht
bd29ad2938 bump version to 3.0-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-22 19:18:40 +02:00
Thomas Lamprecht
42294dfd6b bump version to 2.0-9
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-04-04 16:27:49 +02:00
Thomas Lamprecht
5bb0c3daf4 d/control: remove obsolete dh-systemd dependency
We do not need to depend explicitly on dh-systemd as we have a
versioned debhelper dependency with >= 10~, and lintian on buster for
this .dsc even warns:

> build-depends-on-obsolete-package build-depends: dh-systemd => use debhelper (>= 9.20160709)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-30 19:03:53 +01:00
Thomas Lamprecht
f936251577 add target to build DSC
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-30 18:59:36 +01:00
Thomas Lamprecht
06b64405fa d/control: remove unused libsystemd-dev from build dependencies
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-21 13:18:37 +01:00
Thomas Lamprecht
ffb4bc0d8a bump version to 2.0-8
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-06 08:07:09 +01:00
Thomas Lamprecht
6b10f92d23 d/control: do not track qemu-server and pve-container dependency
While it would be correct to have them tracked here we cannot do this
at the moment, as with those two also depend on pve-ha-manager, and
with dpkg packaged under strech there's an issue with such cyclic
dependencies and trigger cycle detection only resolved for buster[0]

Currently, the issue exists on the following condition:

* update of pve-ha-manager plus either pve-container or qemu-server
* but _no_ update of pve-manager in the same upgrade cycle

[0]: 7f43bf5f93

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-06 08:07:09 +01:00
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 f8a3fc80af299e613c21c9b67e29aee8cc807018

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 f8a3fc80af299e613c21c9b67e29aee8cc807018
and fixed up with
commit ecc145c9724f056549e5458f17d7714ac8c83459
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