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

104 Commits

Author SHA1 Message Date
Lukas Wagner
4cb3b2cf9b manager: send notifications via new notification module
... instead of using sendmail directly.

If the new 'notify.target-fencing' parameter from datacenter config
is set, we use it as a target for notifications. If it is not set,
we send the notification to the default target (mail-to-root).

There is also a new 'notify.fencing' paramter which controls if
notifications should be sent at all. If it is not set, we
default to the old behavior, which is to send.

Also add dependency to the `libpve-notify-perl` package to d/control.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2023-08-03 17:34:52 +02:00
Thomas Lamprecht
dfe080bab1 bump version to 4.0.2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-13 08:35:56 +02:00
Thomas Lamprecht
eee63557bc bump version to 4.0.1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 10:41:59 +02:00
Thomas Lamprecht
bf5d92725e d/control: bump versioned dependency for pve-container & qemu-server
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-09 10:33:40 +02:00
Thomas Lamprecht
973bf0324f bump version to 4.0.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-24 19:27:04 +02:00
Thomas Lamprecht
c1b4249bde d/control: raise standards version compliance to 4.6.2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-24 19:26:27 +02:00
Thomas Lamprecht
b0274c4acf bump version to 3.6.1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-04-20 14:16:18 +02:00
Thomas Lamprecht
03f825dbc7 bump version to 3.6.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-03-20 13:45:36 +01:00
Thomas Lamprecht
071e69ce7f bump version to 3.5.1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-19 15:51:16 +01:00
Thomas Lamprecht
091f890416 bump version to 3.5.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-18 15:03:00 +01:00
Thomas Lamprecht
42d9b683f2 d/control: add (build-)dependency for libpve-rs-perl
to ensure we got the perlmod for the basic scheduler available.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-18 13:44:45 +01:00
Fiona Ebner
48f2144b27 usage: add Usage::Static plugin
for calculating node usage of services based upon static CPU and
memory configuration as well as scoring the nodes with that
information to decide where to start a new or recovered service.

For getting the service stats, it's necessary to also consider the
migration target (if present), becuase the configuration file might
have already moved.

It's necessary to update the cluster filesystem upon stealing the
service to be able to always read the moved config right away when
adding the usage.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2022-11-18 13:25:21 +01:00
Fiona Ebner
c8c6e462fc add Usage base plugin and Usage::Basic plugin
in preparation to also support static resource scheduling via another
such Usage plugin.

The interface is designed in anticipation of the Usage::Static plugin,
the Usage::Basic plugin doesn't require all parameters.

In Usage::Static, the $haenv will necessary for logging and getting
the static node stats. add_service_usage_to_node() and
score_nodes_to_start_service() take the sid, service node and the
former also the optional migration target (during a migration it's not
clear whether the config file has already been moved or not) to be
able to get the static service stats.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2022-11-18 13:25:21 +01:00
Thomas Lamprecht
bc64c08e37 d/lintian-overrides: update for newer lintian
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-07-22 10:06:47 +02:00
Thomas Lamprecht
2a1638b77b bump version to 3.4.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-07-22 09:22:52 +02:00
Thomas Lamprecht
c00c44818a bump version to 3.3-4
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-27 14:02:22 +02:00
Thomas Lamprecht
c15a8b803e bump version to 3.3-3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-20 18:05:37 +01:00
Thomas Lamprecht
0179818f48 d/changelog: s/nodes/services/
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-20 10:10:27 +01:00
Thomas Lamprecht
ccf328a833 bump version to 3.3-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-19 14:30:19 +01:00
Thomas Lamprecht
8a25bf2969 d/postinst: fix restarting LRM/CRM when triggered
We wrongly dropped the semi-manual postinst in favor of a fully
auto-generated one, but we always need to generate the trigger
actions ourself - cannot work otherwise.

Fix 3166752 ("postinst: use auto generated postinst")
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-17 11:30:49 +01:00
Thomas Lamprecht
b7fb934810 d/lintian: update repeated-trigger override
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-01-17 11:30:08 +01:00
Thomas Lamprecht
a2d12984b5 bump version to 3.3-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-02 20:08:12 +02:00
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