Commit Graph

288 Commits

Author SHA1 Message Date
Stoiko Ivanov
b0f596edd4 api-daemons: set oom-policy to continue
OOMPolicy [0] defaults to stop - resulting in the complete daemon to
be killed.
Our Daemon class does start new workers automatically if it detects
that fewer than configured are running.

[0] systemd.service(5)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-11-24 18:59:46 +01:00
Stoiko Ivanov
da29d81d3f api-daemons: restart on-failure
user experience benefits when we restart pmgdaemon and pmgproxy if
they get terminated abnormally (now observed with oom-kills).

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-11-24 18:59:46 +01:00
Thomas Lamprecht
22c1452e30 d/control: bump http-server and mini-journalreader dependencies
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-11-24 18:47:19 +01:00
Stoiko Ivanov
b6398262ef d/control: add missing builddep on libpod-parser-perl
Reported-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-09-24 12:09:31 +02:00
Thomas Lamprecht
36f2537c82 bump version to 7.0-8
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-09-20 08:55:24 +02:00
Thomas Lamprecht
466c71c4b7 services: update description
and sort the ordering constrains alphabetically

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-09-20 08:55:24 +02:00
Thomas Lamprecht
a0e286f0e3 services: add drop weird binary-exists condition
The package that ships the service is the same as the one that ships
the binaries, so quite the useless check and a remainder from initial
switch from sysv to systemd in ~2015 (when it was not 100% clear
what/how systemd features should be integrated or units encoded).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-09-20 08:55:24 +02:00
Thomas Lamprecht
81faf89e05 services: add After=network-online.target and update
while we indirectly got that by the remote-fs ordering constraint its
better to encode it explicitly, especially as the remote-fs does not
make much sense and may get removed soon

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-09-20 08:55:24 +02:00
Thomas Lamprecht
687cb0ef9c prefer more flexible get_local_ip where possible
get_ip_from_hostname does only check getaddrinfo, which can fail for
the local node in some environments, especially container ones.

Rather, use the new get_local_ip helper, that still tries to do a gai
call first, but falls back to configured (/etc/network/interfaces)
IPs and also on the currently, from kernel POV active ones.

A big bonus is that the new helper is much less likely to die, so it
won't break service startup in restricted (CTs) envs after initial
setup as often anymore.

While yes, if no addr is resolved, configured or active the PMG won't
work, but killing pmg proxy/daemon won't better that situation either
;)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-09-18 15:07:03 +02:00
Thomas Lamprecht
78c8fe1762 bump version to 7.0-7
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-19 09:11:22 +02:00
Thomas Lamprecht
773780b022 bump version to 7.0-6
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-14 17:54:07 +02:00
Thomas Lamprecht
9b4f6334f0 bump version to 7.0-5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-14 11:58:53 +02:00
Thomas Lamprecht
e9d823c960 bump version to 7.0-4
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-14 10:32:38 +02:00
Thomas Lamprecht
3bd155cfa9 d/control: recommend ifupdown2 and suggest zfsutils-linux
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-14 10:02:15 +02:00
Thomas Lamprecht
ecab836a03 bump version to 7.0-3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-13 18:42:14 +02:00
Thomas Lamprecht
982c37b78e d/control: bump versioned dependency for libpmg-rs-perl
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-13 14:16:19 +02:00
Thomas Lamprecht
7266d5fd32 bump version to 7.0-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-03 22:51:18 +02:00
Thomas Lamprecht
737c6f66ec d/postinst: handle static machine-id from ISO 5.0 <= x <= 6.0
Ported over from commit 8797cc74cd94583130ab4c2f541d1a75b518cfa6
of pve-manager, but with the list of machine-id extracted from PMG
ISOs.

The full map:

PMG 5.0-5  -> "e378bde63ac54872a85af23a8e4dac73"
PMG 5.1-1  -> "932b668d1fad4709b4976d54152d223c"
PMG 5.1-2  -> "931a8410cd034202a26b0e19d56e157a"
PMG 5.2-1  -> "9a1f3c5284e1423c9b0e0ee5819db6c9"
PMG 6.0-1  -> "5472a49c6436426fbebd7881f7b7f13b"

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-29 10:42:10 +02:00
Thomas Lamprecht
c4f64dd665 bump version to 7.0-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-28 16:04:30 +02:00
Thomas Lamprecht
d51799a35c d/control: bump pve-common and pve-http-server dependency versions
To ensure we have the new `upid_normalize_status_type` and the
new http-server listening behavior available

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-28 16:01:22 +02:00
Thomas Lamprecht
fd1d033817 adpi: node config: fix style nits/issues
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-28 15:27:02 +02:00
Thomas Lamprecht
b8b56fbfa5 d/control: drop transitional apt-transport-https, provided by apt
It was actually integrated into apt quite a bit before version 2.0
but it does not really hurts and version 2 is available since Q1 2020
on sid, bullseye will have 2.2.x so using (>= 2~) is just fine.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-28 14:15:31 +02:00
Thomas Lamprecht
64537e425b d/control: bump standards version and use https in homepage
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-28 14:15:08 +02:00
Stoiko Ivanov
2e08e3c97b unpack: adapt to new libarchive methods
This patch changes the deprecated method used from libarchive-perl.
It needs a versioned dependency bump on libarchive-perl (>= 3.4.0).

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-06-11 14:53:45 +00:00
Stoiko Ivanov
771f863cbb update postgresql dependency to 13
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-06-11 14:53:45 +00:00
Stoiko Ivanov
f6d5ecfd4e d/control: bump versioned dependency on pve-common and pve-http-server
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-06-11 14:53:45 +00:00
Stoiko Ivanov
4ea8d2de9f buildsys: update lintian-overrides
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-06-10 15:33:08 +00:00
Stoiko Ivanov
431b78b9d8 buildsys: bump d/compat to 12 and adapt d/rules
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-05-31 15:33:18 +00:00
Stoiko Ivanov
9abcb50508 buildsys: wrap-and-sort
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-05-31 10:52:37 +00:00
Thomas Lamprecht
1c8a73c7b5 bump version to 6.4-4
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-04-15 15:19:04 +02:00
Thomas Lamprecht
225ecb80a5 bump version to 6.4-3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-03-26 19:09:49 +01:00
Stoiko Ivanov
cb532a2c7a bump version to 6.4-3
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-03-26 18:53:18 +01:00
Thomas Lamprecht
33ee932e97 bump version to 6.4-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-03-23 08:30:51 +01:00
Thomas Lamprecht
cd99b9a0a0 bump version to 6.4-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-03-22 17:30:41 +01:00
Stoiko Ivanov
9c8321690f package: ship /etc/pmg/acme/accounts in deb
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-03-18 16:31:46 +01:00
Thomas Lamprecht
c799c5f4b4 bump version to 6.3-7
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-03-18 11:15:33 +01:00
Wolfgang Bumiller
0357cac721 depend on libpmg-rs-perl and proxmox-acme
This contains `PMG::RS::Acme` and `PMG::RS::CSR` which are
used for letsencrypt certificates.

Note that for the DNS plugins this still uses the perl code
from proxmox-acme for now.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-03-16 17:14:57 +01:00
Thomas Lamprecht
30891f7ed6 bump version to 6.3-6
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-03-05 22:48:17 +01:00
Thomas Lamprecht
b2033d4bd7 debian: add some OK lintian overrides
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-02-25 10:40:18 +01:00
Dietmar Maurer
3cef65a3e7 build-depends: remove dh-systemd
no longer required
2020-11-27 07:25:44 +01:00
Thomas Lamprecht
40d25ec266 bump version to 6.3-5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-25 10:21:55 +01:00
Thomas Lamprecht
0e42a95c76 bump version to 6.3-4
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-18 19:53:01 +01:00
Thomas Lamprecht
df56ff0423 bump version to 6.3-3
...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-18 19:47:11 +01:00
Thomas Lamprecht
782fd5f4cd bump version to 6.3-2
re use previous changelog, it's just a small bug fix after all

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-18 19:25:00 +01:00
Thomas Lamprecht
fa172d34bd bump version to 6.3-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-18 18:00:40 +01:00
Thomas Lamprecht
d69a16614c d/control: bump versioned dependency on pve-common
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-18 18:00:40 +01:00
Thomas Lamprecht
8e7c0b86bf backup service template: update to new CLI
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-18 16:40:51 +01:00
Stoiko Ivanov
7251cc51c1 add scheduled backup to PBS remotes
PMG::PBSSchedule contains methods for creating/deleting systemd-timer units,
which will run a backup to a configured PBS remote.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2020-11-17 11:30:36 +01:00
Stoiko Ivanov
2de4cfb286 add initial SectionConfig for PBS
add a SectionConfig definition to hold information about PBS-remotes used
for backing up PMG.

Mostly adapted from the PBSPlugin.pm in pve-storage.

This commit needs a versioned dependency on pve-common

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2020-11-17 09:54:28 +01:00
Stoiko Ivanov
6522f6b544 debian: drop duplicate ', ' in dependencies
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2020-11-17 09:54:28 +01:00