3421 Commits

Author SHA1 Message Date
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
Dominik Csapak
0f74857efe add missing idProperty for pve-domains model
without this, we could not delete realms

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-03-12 15:19:06 +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
Thomas Lamprecht
7755aa883c services: remove obsolete init.d scripts
They all have a systemd service file so no need for them anymore

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-12 14:19:41 +01:00
Thomas Lamprecht
0d6bb692f5 buildsys: add %.1.pod make target to reduce duplication
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-12 14:19:41 +01:00
Thomas Lamprecht
bb195e69b7 remove obsolete (rgmanager era) HA resource agent
This was used by rgmanager which was superseeded in 2015 with our
ha-manager for PVE 4.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-12 14:19:41 +01:00
Herman van Rink
cf24dc48fb Whitespace cleanup
Signed-off-by: Herman van Rink <rink@initfour.nl>
2018-03-09 17:11:23 +01:00
Herman van Rink
85cf35f894 Elaborate comment in hook example
Signed-off-by: Herman van Rink <rink@initfour.nl>
2018-03-09 17:11:23 +01:00
Fabian Grünbichler
998e4eebe7 VZDump: handle timelocal year correctly
while this is unlikely to cause any problems, it is unnecessary to
substract 1900 here - timelocal handles 4-digit years perfectly well.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2018-03-07 11:36:31 +01:00
Dominik Csapak
5c90e08ab0 Graphite.pm: fix whitespace
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-03-05 14:21:50 +01:00
Dominik Csapak
5a5aed73e2 fix #1683: do not send non-numeric values to graphite
the graphite daemons which accept the data (carbon), only
accepts numeric values, and logs all invalid lines

since that were about 5 values per vm/ct this generated lot of noise
in the carbon log

so we check with a regex if a value is numeric, and
additionally we have a blacklist of keys which seem to be numeric but
are either boolean (e.g. template) or a state (e.g. pid)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-03-05 14:21:50 +01:00
Wolfgang Bumiller
03e12c545b Merge branch 'master' of git://git.proxmox.com/git/pve-manager 2018-02-27 15:55:15 +01:00
Dominik Csapak
5ba37d7c0b make GuestStatusView declarative
use the cbind function to generate isLxc/Qemu to hide the
relevant fields, and cbind the nodename

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-02-27 10:52:09 +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
Dominik Csapak
86d3122791 node/Summary.js: fix trailing whitespace
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-02-23 11:01:28 +01:00
Dominik Csapak
33f459ca5c improve node/lxc/qemu summary pages
let them use a one/two column layout depending on browser width
optimize stylings/padding values
get rid of the (now long) unecessary lazyitems plugin
(this was necessary for performance when we still used tabpanels instead
of our own configpanel with treelist)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-02-23 11:01:28 +01:00
Dominik Csapak
413613df95 use notesview declaratively in storage summary
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-02-23 11:01:28 +01:00
Dominik Csapak
773062339f let the storage summary use the full browser width
use one/two column layout depending on browser width
and optimize some stylings

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-02-23 11:01:28 +01:00
Dominik Csapak
ade55c154f add xtype to noteview so we can use it declaratively
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-02-23 11:01:28 +01:00
Dominik Csapak
5da98a059e let cluster dashboard use full browser width
use one/two column layout instead of hardcoding width for the panels
also optimize padding values

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-02-23 11:01:28 +01:00
Dominik Csapak
9f7cbaf393 let ceph dashboard use the full browser width
instead of hardcoding the width of the panels,
use a columnlayout and use one column for screens < 1900 width
and two columns for screens >= 1900 width

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-02-23 11:01:28 +01:00
Dominik Csapak
e7f07a2efc show guest-agent provided ip address in qemu summary
this adds a new component 'AgentIPView' which
uses the qemu-agent api call to tries to get the ip information for
the guests

only for vms at the moment, since for containers you already
set it on their network tab

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-02-23 11:01:28 +01:00
Thomas Lamprecht
7adbc4a457 ui: declarative LXC Create
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-02-22 15:04:51 +01:00
Thomas Lamprecht
658bf72581 ui: MPEdit: add setUnprivileged to allow data binding
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-02-22 15:04:51 +01:00
Thomas Lamprecht
d8e3d77c15 ui: lxc/Network: set empty datachache by default when in wizard
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-02-22 15:04:51 +01:00
Thomas Lamprecht
f03db57eb6 ui: FileSelector: add setNodename to allow data binding
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-02-22 15:04:51 +01:00
Thomas Lamprecht
857b97a7dc ui: move loadSSHKeyFromFile from lxc/Create to Utils
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-02-22 15:04:51 +01:00
Dominik Csapak
20d76d1a12 add ha info to the template summary
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-02-22 14:36:40 +01:00
Dominik Csapak
3ff9bf5a7c add icons to summaries and improve spacing
also add a helper css class to use the png icons like fontawesome icons
and add the ha state to template summary

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-02-22 14:36:40 +01:00
Dominik Csapak
60fb2b99b4 add optional icon to InfoWidget
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-02-22 14:36:40 +01:00
Thomas Lamprecht
cc3bcee00a tree: prepare for ExtJS 6.2.0
Remove the expand/collapse hack needed for an earlier ExtJS version.

Further do not collapse the rootnode before restoring the state, it
may not be collapsible at this time, as it may be still seen as leaf
node, and thus throws exceptions with ExtJS 6.2.0

we fired the refresh to late for the store, i moved it up to fire
directly after we resume events on the store, i.e. when our store update
window is closed again. So it happens before applying the state and
expanding the rootnode.

see
https://pve.proxmox.com/pipermail/pve-devel/2018-February/030762.html

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-02-22 11:47:04 +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
ee94b16ae5 pveversion: use AptPkg::Version, not Dpkg::Version
to avoid an extra dependency

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2018-02-16 15:06:28 +01:00
Fabian Grünbichler
50e0eebae5 bump version to 5.1-45 2018-02-16 12:46:35 +01:00
Fabian Grünbichler
0459599d1a pveversion: sort kernel packages by version
instead of lexically by package name

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-02-16 11:17:00 +01:00
Dominik Csapak
373d7ea44e fix wizard validity check for options spanning multiple tabs
when changing the guest os, we changed the disk type
(e.g. ide for windows, scsi for linux, etc.)

but if the id was outside the allowed range (e.g. > 3 for ide)
we did not correctly enable/disable tabs

now we check all tabs until the highest already visited,
or until we detect a not valid tab

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-02-16 11:08:17 +01:00