633 Commits

Author SHA1 Message Date
Fabian Grünbichler
de01cff008 postinst: start/restart units like dh_start
with an added "reload-or" for pvedaemon/pveproxy/spiceproxy, which
dh_start unfortunately does not yet support

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2018-03-13 11:06:12 +01:00
Fabian Grünbichler
891e90abbf postinst: unify version-dependent cleanup
putting this into one place is better for readability

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2018-03-13 11:06:12 +01:00
Fabian Grünbichler
aad80361fb postinst: refactor service/timer handling
reduce code duplication, and reload-or-restart timers just like service
units instead of just starting them.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2018-03-13 11:06:12 +01:00
Fabian Grünbichler
27a01f1d0c postinst: actually enable and start pveupdate.timer
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2018-03-13 11:06:12 +01:00
Fabian Grünbichler
15c7210221 postinst: cleanup trigger code
reload-or-try-restart works just fine even if the unit is stopped or
disabled

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2018-03-13 11:06:12 +01:00
Thomas Lamprecht
ca7fa064d3 b/prerm: cleanup cruft from prerm helper
we actually want to keep this for now as else we get the
autogenerated systemd helper code here which stops all services from
this package before upgrading, which we really really do not want
(kills API connections, among other things)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-12 15:14:16 +01:00
Thomas Lamprecht
2b0cad0eca buildsys: remove outdated preinst helper
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-12 15:14:16 +01:00
Thomas Lamprecht
3fde056435 b/postrm: let debhelper generate systemd stuff
With #DEBHELPER# the manual maintained code will be autogenerated, no
need to manually track which services and timers this packages has.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-12 15:14:16 +01:00
Thomas Lamprecht
3877d4bff5 pveupdate: replace cron job with systemd timer
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-12 15:14:13 +01:00
Thomas Lamprecht
07bbb52f76 postinst: remove pvebanner call
We have the pvebanner.service in places which ensures this gets
called on boot before the getty target.

Thus this only had an effect if we changed the nodename to IP mapping
_and_ upgraded/reinstalled pve-manager, then switching to another TTY
would show the updated IP. But as this a) is for sure not a common
triggered path and b) a IP change suggest a reboot either way, and if
the user can handle it on their own without a reboot, they should be
able to also handle an outdated /etc/issue until the next reboot.

Also for PVE ontop of plain Debian a reboot is needed, so that the
PVE kernel gets booted, so this shouldn't be an issue ther neither.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-12 15:13:48 +01:00
Thomas Lamprecht
6e4c500213 postinst: remove commented out call to a2ensite
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-12 15:13:48 +01:00
Thomas Lamprecht
8f27fdc5c4 postinst: remove fixup for ceph jewel update transition
In commit 2bde88fb3f6ed61ddb67c01190cbffdbfc210ea9 we needed to
change the ceph.service install target to multi-user.target, as
ceph.target could hang indefinitely if ceph-common gets upgraded.
This change is included in pve-manager 4.4-13 and newer, as users
wanting to upgrade to 5.0 must upgrade to latest 4.4 to be able to do
so (without headache) this can be removed.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-12 15:13:48 +01:00
Thomas Lamprecht
01fe34e041 postinst: simplify code for transitional updates
The first case won't happen anymore on a recent PVE.
The 'version is empty or <unknown>' check may drop the '<unknown>'
part, it gets handled by the 'dpkg --compare-versions' bits just
fine, if it happens at all for the 'configure' case

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-12 15:13:48 +01:00
Thomas Lamprecht
e3ffd2c0b5 postinst: combine abort-* cases and remove boilerplate cruft
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-12 15:13:48 +01:00
Thomas Lamprecht
544221fa8a postinst: simplify root's mail .forward check
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-12 15:13:48 +01:00
Thomas Lamprecht
b0e70271e5 postinst: bootlogd is not used under systemd
"Note that not all init systems print messages to the system console,
so that the logfile may remain empty; this is the case with systemd
(the default init system). Try "journalctl -b" instead."
-- https://packages.debian.org/stretch/bootlogd

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-12 15:13:48 +01:00
Thomas Lamprecht
a1ed4d5c75 postinst: removing old APL dir is obsolete
This was added by c91649753 on 2012-02-21 11:42:32, as we had 2 major
upgrades since them every system either was update or new installed,
so just remove this.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-12 15:13:48 +01:00
Thomas Lamprecht
4bfc630470 buildsys: remove unused debconf template
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-12 15:13:48 +01:00
Thomas Lamprecht
70767f6882 postinst: purge all old init.d service files on upgrade
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-12 15:13:44 +01:00
Wolfgang Bumiller
be42d8e602 bump version to 5.1-47
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-02-26 10:29:18 +01:00
Thomas Lamprecht
8d58a8bcdd d/control: update version dependency to widget toolkit 2018-02-23 11:14:33 +01:00
Wolfgang Bumiller
1f2c48153b bump version to 5.1-46
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-02-16 15:08:32 +01:00
Fabian Grünbichler
50e0eebae5 bump version to 5.1-45 2018-02-16 12:46:35 +01:00
Wolfgang Bumiller
c5023a7bef bump version to 5.1-44
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-01-26 10:41:49 +01:00
Dominik Csapak
411967db91 use pve-i18n package
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-01-25 13:36:37 +01:00
Dominik Csapak
f90908cb16 add proxmox-widget-toolkit to pve gui
we will use components from proxmox-widget-toolkit rather than
directly from pve-manager

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-01-23 10:15:09 +01:00
Fabian Grünbichler
a79a07ddb2 bump version to 5.1-43 2018-01-17 09:11:00 +01:00
Wolfgang Bumiller
1623233032 bump version to 5.1-42
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-01-10 11:53:42 +01:00
Fabian Grünbichler
550707c920 bump version to 5.1-41 2017-12-21 12:47:49 +01:00
Wolfgang Bumiller
646111ec9b bump version to 5.1-40
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2017-12-13 14:51:07 +01:00
Dominik Csapak
4b168c2772 add termproxy api call for nodes
and add dependency for pve-xtermjs

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-12-12 08:34:07 +01:00
Fabian Grünbichler
6a21d936ec bump version to 5.1-39 2017-12-11 15:35:22 +01:00
Fabian Grünbichler
48f65bb454 add versioned dependency on libpve-storage-perl
for API changes needed for new DiskSelector
2017-11-30 11:40:03 +01:00
Fabian Grünbichler
9248857d28 bump version to 5.1-38 2017-11-30 11:36:30 +01:00
Wolfgang Bumiller
0628b7355c bump version to 5.1-37
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2017-11-28 16:42:55 +01:00
Thomas Lamprecht
f33f0a0fa1 access log rotate: try to reload not restart services
with the use of systemd the /etc/init.d/pveproxy restart call got
intercepted and redirected to systemd, which did an restart.
But, that is a behvaior change to the intention of the init.d script,
which would not restart but reload the service.
Thus change this to systemds equivalent:
systemctl try-reload-or-restart pveproxy.service

Which tries to reload, if the unit supports it, and only if that does
not worked it restarts.

Same for spiceproxy.

Reported-by: Stefan Priebe <s.priebe@profihost.ag>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-11-14 14:08:52 +01:00
Wolfgang Bumiller
8bbf53d332 buildsys: add excludes to dh_fixperms
Instead of fixing up permissions manually as the make
install target is actually responsible for this (and already
doing it).

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2017-11-14 14:06:51 +01:00
Wolfgang Bumiller
214053d670 bump version to 5.1-36 2017-10-25 11:16:27 +02:00
Fabian Grünbichler
cfaf62cdd5 bump version to 5.1-35 2017-10-23 09:21:06 +02:00
Wolfgang Bumiller
016f392453 bump version to 5.0-34 2017-10-20 12:04:34 +02:00
Fabian Grünbichler
fc4a772e78 bump version to 5.0-33
and add versioned dependencies:
- libpve-common-perl: for PVE::Subscription
- libpve-access-control: for new VM.Snapshot.Rollback privilege
2017-10-10 14:23:00 +02:00
Fabian Grünbichler
2b1f3fa87a build: reformat debian/control
using wrap-and-sort -abt
2017-10-04 11:05:32 +02:00
Wolfgang Bumiller
80adf793a8 bump version to 5.0-32 2017-09-12 13:55:49 +02:00
Thomas Lamprecht
57de747b0c rename pve-manager.service to pve-guests
the name 'pve-manager' collides with our pve-manager package name,
which - from the user point of view - provides mainly the API and
WebUI.
An user could thus think that restarting 'pve-manager' would restart
the WebUIs server, which is relatable.
But, the pve-manager.service does not controls the WebUI or its
server but is responsible for starting all guest with 'onboot=1' in
their config on system boot and to stop all remaining running guests
on system shutdown.

Thus rename it to pve-guests and adapt its description. This may not
seem as ideal name at first glance, but its better than the current
option. Further it leads to log messages like:
 > Starting PVE guests (Service providing start-on-boot and stop-all-on-shutdown)
 > [...]
 > Started PVE guests (Service providing start-on-boot and stop-all-on-shutdown)
 > [...]
 > Stopping PVE guests (Service providing start-on-boot and stop-all-on-shutdown)

which makes it clearer what happens, or what this service is for.

Alias the new service to the old pve-manager.service for legacy
reasons. While our services do not depend on it an user could have
made an own service which used pve-manager.service as synchronisation
point.

Linitian then complains about init.d/pve-manager not having a related
systemd service file. Instead of renmaning it just drop it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-09-11 09:34:02 +02:00
Fabian Grünbichler
a0946ccba8 bump version to 5.0-31 2017-09-01 12:05:14 +02:00
Fabian Grünbichler
ad98a36fc1 bump version to 5.0-30 2017-08-08 11:08:24 +02:00
Wolfgang Bumiller
db9770dfd7 bump version to 5.0-29 2017-07-31 15:47:17 +02:00
Fabian Grünbichler
74911546dd bump version to 5.0-28 2017-07-31 15:31:33 +02:00
Wolfgang Bumiller
2ef26c4eec bump version to 5.0-27 2017-07-26 16:52:18 +02:00
Wolfgang Bumiller
f49b4beb54 add missing changelog entry 2017-07-26 16:51:06 +02:00