]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
6 years agoUtils: add forEachMP
Dominik Csapak [Thu, 5 Apr 2018 14:03:55 +0000 (16:03 +0200)]
Utils: add forEachMP

in the style of forEachBus, but for containers, so that we
only have to save the count once

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agolxc/ResoureEdit: move some cpu fields to advanced options
Dominik Csapak [Thu, 5 Apr 2018 14:03:54 +0000 (16:03 +0200)]
lxc/ResoureEdit: move some cpu fields to advanced options

and show them now also in the wizard

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoqemu/CreateWizard: add advanced options on general tab
Dominik Csapak [Thu, 5 Apr 2018 14:03:53 +0000 (16:03 +0200)]
qemu/CreateWizard: add advanced options on general tab

add start on boot, guest agent and boot order fields

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoqemu/NetworkEdit: rework panel for advanced options
Dominik Csapak [Thu, 5 Apr 2018 14:03:52 +0000 (16:03 +0200)]
qemu/NetworkEdit: rework panel for advanced options

move some fields into advanced options, and remove nat mode

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoqemu/MemoryEdit: rework panel and move most things in advanced options
Dominik Csapak [Thu, 5 Apr 2018 14:03:51 +0000 (16:03 +0200)]
qemu/MemoryEdit: rework panel and move most things in advanced options

this is a major rework of the memory inputpanel
previously we had to select fixed/variable and
could set shares/ballooning, depending on what was selected

now the panel is much simpler:

non advanced:

memory: the target maximum memory

advanced:

min-memory: the minimum memory, if different from the memory field
we have 'dynamic' memory

shares, only if we have 'dynamic' memory

ballooning-device: better naming, deactivates the ballooning device

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoqemu/HDEdit: move diskthrottling to advanced options
Dominik Csapak [Thu, 5 Apr 2018 14:03:50 +0000 (16:03 +0200)]
qemu/HDEdit: move diskthrottling to advanced options

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofix editor and set_button_status for cloudinit
Dominik Csapak [Fri, 6 Apr 2018 08:22:44 +0000 (10:22 +0200)]
fix editor and set_button_status for cloudinit

cloudinit images do not have an editor so return here
and value has to be a string to match
also set the remove button text correctly when selecting a cloudinit disk

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoremove CPUOptions
Dominik Csapak [Thu, 5 Apr 2018 14:03:49 +0000 (16:03 +0200)]
remove CPUOptions

this is now merged with ProcessorEdit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agorework ProcessorEdit and merge with CPUOptions using advanced options
Dominik Csapak [Thu, 5 Apr 2018 14:03:48 +0000 (16:03 +0200)]
rework ProcessorEdit and merge with CPUOptions using advanced options

make ProcessorEdit static and merge with CPUOptions
moves some fields in the advanced options

this also changes how we add the flag checkboxes,
which is static now, but if we want to add more, we have to
create a better way than add a checkbox for each flag anyway

also increases the cpulimit to 128 (as per api)
and fixes a small whitespace error

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoqemu/HDEdit.js: move some fields into advanced options
Dominik Csapak [Thu, 5 Apr 2018 14:03:47 +0000 (16:03 +0200)]
qemu/HDEdit.js: move some fields into advanced options

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd advanced checkbox to the wizard
Dominik Csapak [Thu, 5 Apr 2018 14:03:46 +0000 (16:03 +0200)]
add advanced checkbox to the wizard

so we can show/hide the advanced options of the inputpanels

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoAdd CIFS in strorage info to allow backup.
Wolfgang Link [Thu, 5 Apr 2018 11:29:50 +0000 (13:29 +0200)]
Add CIFS in strorage info to allow backup.

6 years agobump version to 5.1-49
Dietmar Maurer [Thu, 5 Apr 2018 10:31:32 +0000 (12:31 +0200)]
bump version to 5.1-49

6 years agoCluster.js - use load event from rstore
Dietmar Maurer [Thu, 5 Apr 2018 10:11:21 +0000 (12:11 +0200)]
Cluster.js - use load event from rstore

6 years agoui: silence auth failures during cluster join
Thomas Lamprecht [Wed, 4 Apr 2018 12:36:47 +0000 (14:36 +0200)]
ui: silence auth failures during cluster join

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui: add cluster join window POC
Thomas Lamprecht [Wed, 4 Apr 2018 12:36:46 +0000 (14:36 +0200)]
ui: add cluster join window POC

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agodc/Cluster: allow to get join information
Thomas Lamprecht [Wed, 4 Apr 2018 12:36:45 +0000 (14:36 +0200)]
dc/Cluster: allow to get join information

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agodc/Cluster: allow cluster create over WebUI
Thomas Lamprecht [Wed, 4 Apr 2018 12:36:44 +0000 (14:36 +0200)]
dc/Cluster: allow cluster create over WebUI

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agodc: add simple cluster panel
Thomas Lamprecht [Wed, 4 Apr 2018 12:36:43 +0000 (14:36 +0200)]
dc: add simple cluster panel

Show configured cluster nodes with their addresses, votes, IDs.
Also show cluster name, config_version, and node count.

Prepares for creating and joining a cluster over the WebUI.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui: add storage plugin base class
Thomas Lamprecht [Tue, 27 Mar 2018 12:19:46 +0000 (14:19 +0200)]
ui: add storage plugin base class

This removes *a lot* of code duplication.

I add a base class for the storage edit window and for its containing
input panel, they implement the shared stuff. Especially the window
was mostly a 1:1 copy...

I look hard for a way to split up this patch, but I did not really
found one which would not generate a lot of work for no value added
(value being 'revertability' and better git history here).
nd actually not too much happens, the same thing happens just over
and over again.
Thus, I've thrown in the dynamic creation of the storage add menu
items here too.

I remove all storage specific Edit windows, they where all just >95%
duplicates of each other.
Special functionallity, i.e. some data deletion/transforming before
submitting gets done with onGetValues.

For the RBD external vs PVE plugin I just added a minimal child class
to RBD which only tells it'S parent that it is the pve one, this is
nice for the mapping and should be easy to understand when reading
the code.

Tried to test an add and an edit of all visible storage plugins,
seems to be OK now.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agocontroller: StorageEdit: check if 'maxfiles' could be looked up
Thomas Lamprecht [Tue, 27 Mar 2018 12:19:45 +0000 (14:19 +0200)]
controller: StorageEdit: check if 'maxfiles' could be looked up

Allows to extend our, in the ext patch introduced, storage base class
to use the controller for all storage plugins without breaking those
which cannot host backups - i.e., all block based storages

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui/Utils: add storage schema
Thomas Lamprecht [Tue, 27 Mar 2018 12:19:44 +0000 (14:19 +0200)]
ui/Utils: add storage schema

add a schema describing our storages name, the map for its
InputPanel, the icon we show in the add menu, and if it is available
at all there.

For now just use it to simplify the ugly if/else mess
format_storage_type was, future patches will use the information to
generalise Adding/Editing of those storages.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui/Utils: do not create non-standard console.dir fallback
Thomas Lamprecht [Tue, 27 Mar 2018 12:19:43 +0000 (14:19 +0200)]
ui/Utils: do not create non-standard console.dir fallback

resolves a future jslint type confusion and as it's nor standarized
nor used by our code we can just drop it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui: restore: add bandwidth limit field
Thomas Lamprecht [Thu, 22 Mar 2018 09:46:22 +0000 (10:46 +0100)]
ui: restore: add bandwidth limit field

Let user input MiB/s as values in the KiB/s range are not that handy
and would make even smaller backups need several hours to restore,
days for bigger ones.

Try to give the user imformation about per-storage bandwidth limits
and how he can disable all of them.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui: dc/storages: add bwlimit column
Thomas Lamprecht [Thu, 22 Mar 2018 15:27:05 +0000 (16:27 +0100)]
ui: dc/storages: add bwlimit column

we have a format list, so just render it as plain text easiest to do
and gives an OK feedback

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui: dc/storages: use responsive column width
Thomas Lamprecht [Thu, 22 Mar 2018 15:27:04 +0000 (16:27 +0100)]
ui: dc/storages: use responsive column width

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agopve-daily-update.service: add Wants/After for pve-cluster.service
Thomas Lamprecht [Fri, 23 Mar 2018 10:39:49 +0000 (11:39 +0100)]
pve-daily-update.service: add Wants/After for pve-cluster.service

Else systemd may start this to early on boot, before pve-cluster is
up and ready, if it missed and update because the node was offline.
This fails the services as it cannot do any IPC with pmxcfs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agobump version to 5.1-48
Thomas Lamprecht [Thu, 22 Mar 2018 08:45:30 +0000 (09:45 +0100)]
bump version to 5.1-48

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoReport: add info about PCI devices
Thomas Lamprecht [Fri, 2 Mar 2018 08:39:00 +0000 (09:39 +0100)]
Report: add info about PCI devices

Good to have when a NIC or other peripheral devices does not works.

Flags used:
-k  Show kernel drivers handling each device and also kernel modules
    capable of handling it.
-nn Show PCI vendor and device codes as both numbers and names.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoReport: add pct list
Thomas Lamprecht [Fri, 2 Mar 2018 08:38:59 +0000 (09:38 +0100)]
Report: add pct list

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoReport: use findmnt instead of mount
Thomas Lamprecht [Fri, 2 Mar 2018 08:38:58 +0000 (09:38 +0100)]
Report: use findmnt instead of mount

much easier to parse visually while keeping the same amount of
information

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoReport: refactor to simple schema definition of subreports
Thomas Lamprecht [Fri, 2 Mar 2018 08:38:57 +0000 (09:38 +0100)]
Report: refactor to simple schema definition of subreports

Easier to add new commands, or change flags of existing ones.

Use an hash for top level definition as we can push optional commands
easier there than in an array, it resembles also more our normal
schema definitions.

Add a truth-y value at the bottom, to ensure perls require is happy
with this module.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoReport: remove useless version check
Thomas Lamprecht [Fri, 2 Mar 2018 08:38:56 +0000 (09:38 +0100)]
Report: remove useless version check

this is packaged with pve-manager and runs locally on the node,
so we're pretty sure that the version is the one from pve-manager
anyway, this check just makes no sense...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agomake container clones/template available in the gui
Dominik Csapak [Wed, 21 Mar 2018 14:12:17 +0000 (15:12 +0100)]
make container clones/template available in the gui

also refactor the right click menu logic

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadapt and rescope TemplateMenu for containers
Dominik Csapak [Wed, 21 Mar 2018 14:12:16 +0000 (15:12 +0100)]
adapt and rescope TemplateMenu for containers

make it guest agnostic so that we can use it for lxc also

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agomove TemplateMenu to menu directory
Dominik Csapak [Wed, 21 Mar 2018 14:12:15 +0000 (15:12 +0100)]
move TemplateMenu to menu directory

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agomake clone window guest agnostic
Dominik Csapak [Wed, 21 Mar 2018 14:12:14 +0000 (15:12 +0100)]
make clone window guest agnostic

so that we can reuse it for containers

while we do this, we also have to adapt the SnapshotSelector

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agomove Clone to window directory
Dominik Csapak [Wed, 21 Mar 2018 14:12:13 +0000 (15:12 +0100)]
move Clone to window directory

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoAdd cifs storage plugin
Wolfgang Link [Fri, 16 Mar 2018 14:02:34 +0000 (15:02 +0100)]
Add cifs storage plugin

6 years agouse correct settings for nf_conntrack options in firewall panel
Dominik Csapak [Fri, 16 Mar 2018 13:58:39 +0000 (14:58 +0100)]
use correct settings for nf_conntrack options in firewall panel

this changes the FirewallOptions back like it was before we
changed to the widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agocloudinit: implement missing remove logic
Dominik Csapak [Fri, 16 Mar 2018 10:59:42 +0000 (11:59 +0100)]
cloudinit: implement missing remove logic

this was missing from my original series
also enable deletion of the password field via remove button

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofix #1698: add_integer_row should add an integer row
Dominik Csapak [Thu, 15 Mar 2018 16:19:04 +0000 (17:19 +0100)]
fix #1698: add_integer_row should add an integer row

this got mixed up during the change to the widget toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd CloudInit Config Panel and use it
Dominik Csapak [Thu, 15 Mar 2018 15:21:36 +0000 (16:21 +0100)]
add CloudInit Config Panel and use it

this lets the user edit the cloud init config
like username, sshkey, ipconfig, etc.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd CIDriveEdit
Dominik Csapak [Thu, 15 Mar 2018 15:21:35 +0000 (16:21 +0100)]
add CIDriveEdit

and use it on the HardwareView to add/remove and display the
CloudInit drives

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd qemu SSHKey Edit for CloudInit
Dominik Csapak [Thu, 15 Mar 2018 15:21:34 +0000 (16:21 +0100)]
add qemu SSHKey Edit for CloudInit

displays all ssh keys in a big textarea, and lets you load one
from a file

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd qemu IPConfigEdit for CloudInit
Dominik Csapak [Thu, 15 Mar 2018 15:21:33 +0000 (16:21 +0100)]
add qemu IPConfigEdit for CloudInit

resembles the lxc IPConfigEdit, but is slightly different

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd PVE.Utils.forEachBus and use it in qemu/HardwareView
Dominik Csapak [Thu, 15 Mar 2018 15:21:32 +0000 (16:21 +0100)]
add PVE.Utils.forEachBus and use it in qemu/HardwareView

this iterates over all busses or over the ones you specify
( a single or an array )

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agorework lxc DNS Edit
Dominik Csapak [Thu, 15 Mar 2018 15:21:31 +0000 (16:21 +0100)]
rework lxc DNS Edit

instead of having 3 server fields, have a single line
which can be ips seperated by ',' ';' or ' '

also now the domain and dns server can be changed seperately

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd IP64AddressList vtype
Dominik Csapak [Thu, 15 Mar 2018 15:21:30 +0000 (16:21 +0100)]
add IP64AddressList vtype

this can be used for DNS Server list

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd cloudinit pve icon svg and class
Dominik Csapak [Thu, 15 Mar 2018 15:21:29 +0000 (16:21 +0100)]
add cloudinit pve icon svg and class

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agopostinst: ensure pve-daily-upgrade timer gets started on transition
Thomas Lamprecht [Tue, 13 Mar 2018 11:12:45 +0000 (12:12 +0100)]
postinst: ensure pve-daily-upgrade timer gets started on transition

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agopostinst: handle masked units
Thomas Lamprecht [Tue, 13 Mar 2018 11:08:39 +0000 (12:08 +0100)]
postinst: handle masked units

check if a unit is masked before starting/restarting/reloading it,
as else we get pretty ugly error messages during upgrade.

as "deb-systemd-helper --quiet was-enabled" differs from the
"systemctl is-enabled" behaviour, the former returns true for masked
units while the latter does not, we have to manually call systemctl,
circumventing the deb helper.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agobuild: remove empty WWWROOT dir
Fabian Grünbichler [Tue, 13 Mar 2018 09:46:42 +0000 (10:46 +0100)]
build: remove empty WWWROOT dir

seems to be a remnant of the Apache days..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agobuild: use git rev-parse for GITVERSION
Fabian Grünbichler [Tue, 13 Mar 2018 09:46:41 +0000 (10:46 +0100)]
build: use git rev-parse for GITVERSION

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agopostinst: switch to /bin/sh
Fabian Grünbichler [Tue, 13 Mar 2018 09:46:40 +0000 (10:46 +0100)]
postinst: switch to /bin/sh

we don't use anything bash specific in our postinst, and this way linitian
should warn us about any bashisms we introduce.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agopostinst: start/restart units like dh_start
Fabian Grünbichler [Tue, 13 Mar 2018 09:46:39 +0000 (10:46 +0100)]
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>
6 years agopostinst: unify version-dependent cleanup
Fabian Grünbichler [Tue, 13 Mar 2018 09:46:38 +0000 (10:46 +0100)]
postinst: unify version-dependent cleanup

putting this into one place is better for readability

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agopostinst: refactor service/timer handling
Fabian Grünbichler [Tue, 13 Mar 2018 09:46:37 +0000 (10:46 +0100)]
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>
6 years agopostinst: actually enable and start pveupdate.timer
Fabian Grünbichler [Tue, 13 Mar 2018 09:46:36 +0000 (10:46 +0100)]
postinst: actually enable and start pveupdate.timer

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agopostinst: cleanup trigger code
Fabian Grünbichler [Tue, 13 Mar 2018 09:46:35 +0000 (10:46 +0100)]
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>
6 years agoadd missing idProperty for pve-domains model
Dominik Csapak [Mon, 12 Mar 2018 14:02:34 +0000 (15:02 +0100)]
add missing idProperty for pve-domains model

without this, we could not delete realms

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agob/prerm: cleanup cruft from prerm helper
Thomas Lamprecht [Mon, 12 Mar 2018 13:14:08 +0000 (14:14 +0100)]
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>
6 years agobuildsys: remove outdated preinst helper
Thomas Lamprecht [Mon, 12 Mar 2018 13:14:07 +0000 (14:14 +0100)]
buildsys: remove outdated preinst helper

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agob/postrm: let debhelper generate systemd stuff
Thomas Lamprecht [Mon, 12 Mar 2018 13:14:06 +0000 (14:14 +0100)]
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>
6 years agopveupdate: replace cron job with systemd timer
Thomas Lamprecht [Mon, 12 Mar 2018 13:14:05 +0000 (14:14 +0100)]
pveupdate: replace cron job with systemd timer

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agopostinst: remove pvebanner call
Thomas Lamprecht [Mon, 12 Mar 2018 13:14:04 +0000 (14:14 +0100)]
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>
6 years agopostinst: remove commented out call to a2ensite
Thomas Lamprecht [Mon, 12 Mar 2018 13:14:03 +0000 (14:14 +0100)]
postinst: remove commented out call to a2ensite

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agopostinst: remove fixup for ceph jewel update transition
Thomas Lamprecht [Mon, 12 Mar 2018 13:14:02 +0000 (14:14 +0100)]
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>
6 years agopostinst: simplify code for transitional updates
Thomas Lamprecht [Mon, 12 Mar 2018 13:14:01 +0000 (14:14 +0100)]
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>
6 years agopostinst: combine abort-* cases and remove boilerplate cruft
Thomas Lamprecht [Mon, 12 Mar 2018 13:14:00 +0000 (14:14 +0100)]
postinst: combine abort-* cases and remove boilerplate cruft

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agopostinst: simplify root's mail .forward check
Thomas Lamprecht [Mon, 12 Mar 2018 13:13:59 +0000 (14:13 +0100)]
postinst: simplify root's mail .forward check

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agopostinst: bootlogd is not used under systemd
Thomas Lamprecht [Mon, 12 Mar 2018 13:13:58 +0000 (14:13 +0100)]
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>
6 years agopostinst: removing old APL dir is obsolete
Thomas Lamprecht [Mon, 12 Mar 2018 13:13:57 +0000 (14:13 +0100)]
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>
6 years agobuildsys: remove unused debconf template
Thomas Lamprecht [Mon, 12 Mar 2018 13:13:56 +0000 (14:13 +0100)]
buildsys: remove unused debconf template

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agopostinst: purge all old init.d service files on upgrade
Thomas Lamprecht [Mon, 12 Mar 2018 13:13:55 +0000 (14:13 +0100)]
postinst: purge all old init.d service files on upgrade

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoservices: remove obsolete init.d scripts
Thomas Lamprecht [Mon, 12 Mar 2018 13:13:54 +0000 (14:13 +0100)]
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>
6 years agobuildsys: add %.1.pod make target to reduce duplication
Thomas Lamprecht [Mon, 12 Mar 2018 13:13:53 +0000 (14:13 +0100)]
buildsys: add %.1.pod make target to reduce duplication

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoremove obsolete (rgmanager era) HA resource agent
Thomas Lamprecht [Mon, 12 Mar 2018 13:13:52 +0000 (14:13 +0100)]
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>
6 years agoWhitespace cleanup
Herman van Rink [Fri, 9 Mar 2018 10:32:32 +0000 (11:32 +0100)]
Whitespace cleanup

Signed-off-by: Herman van Rink <rink@initfour.nl>
6 years agoElaborate comment in hook example
Herman van Rink [Fri, 9 Mar 2018 10:32:31 +0000 (11:32 +0100)]
Elaborate comment in hook example

Signed-off-by: Herman van Rink <rink@initfour.nl>
6 years agoVZDump: handle timelocal year correctly
Fabian Grünbichler [Wed, 28 Feb 2018 10:12:01 +0000 (11:12 +0100)]
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>
6 years agoGraphite.pm: fix whitespace
Dominik Csapak [Mon, 5 Mar 2018 08:58:41 +0000 (09:58 +0100)]
Graphite.pm: fix whitespace

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofix #1683: do not send non-numeric values to graphite
Dominik Csapak [Mon, 5 Mar 2018 08:58:40 +0000 (09:58 +0100)]
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>
6 years agoMerge branch 'master' of git://git.proxmox.com/git/pve-manager
Wolfgang Bumiller [Tue, 27 Feb 2018 14:55:15 +0000 (15:55 +0100)]
Merge branch 'master' of git://git.proxmox.com/git/pve-manager

6 years agomake GuestStatusView declarative
Dominik Csapak [Mon, 26 Feb 2018 12:12:21 +0000 (13:12 +0100)]
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>
6 years agobump version to 5.1-47
Wolfgang Bumiller [Mon, 26 Feb 2018 09:29:18 +0000 (10:29 +0100)]
bump version to 5.1-47

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 years agod/control: update version dependency to widget toolkit
Thomas Lamprecht [Fri, 23 Feb 2018 10:14:33 +0000 (11:14 +0100)]
d/control: update version dependency to widget toolkit

6 years agonode/Summary.js: fix trailing whitespace
Dominik Csapak [Fri, 23 Feb 2018 09:32:02 +0000 (10:32 +0100)]
node/Summary.js: fix trailing whitespace

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoimprove node/lxc/qemu summary pages
Dominik Csapak [Fri, 23 Feb 2018 09:32:01 +0000 (10:32 +0100)]
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>
6 years agouse notesview declaratively in storage summary
Dominik Csapak [Fri, 23 Feb 2018 09:32:00 +0000 (10:32 +0100)]
use notesview declaratively in storage summary

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agolet the storage summary use the full browser width
Dominik Csapak [Fri, 23 Feb 2018 09:31:59 +0000 (10:31 +0100)]
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>
6 years agoadd xtype to noteview so we can use it declaratively
Dominik Csapak [Fri, 23 Feb 2018 09:31:58 +0000 (10:31 +0100)]
add xtype to noteview so we can use it declaratively

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agolet cluster dashboard use full browser width
Dominik Csapak [Fri, 23 Feb 2018 09:31:57 +0000 (10:31 +0100)]
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>
6 years agolet ceph dashboard use the full browser width
Dominik Csapak [Fri, 23 Feb 2018 09:31:56 +0000 (10:31 +0100)]
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>
6 years agoshow guest-agent provided ip address in qemu summary
Dominik Csapak [Fri, 23 Feb 2018 09:31:55 +0000 (10:31 +0100)]
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>
6 years agoui: declarative LXC Create
Thomas Lamprecht [Thu, 22 Feb 2018 13:17:41 +0000 (14:17 +0100)]
ui: declarative LXC Create

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui: MPEdit: add setUnprivileged to allow data binding
Thomas Lamprecht [Thu, 22 Feb 2018 13:17:40 +0000 (14:17 +0100)]
ui: MPEdit: add setUnprivileged to allow data binding

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui: lxc/Network: set empty datachache by default when in wizard
Thomas Lamprecht [Thu, 22 Feb 2018 13:17:39 +0000 (14:17 +0100)]
ui: lxc/Network: set empty datachache by default when in wizard

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui: FileSelector: add setNodename to allow data binding
Thomas Lamprecht [Thu, 22 Feb 2018 13:17:38 +0000 (14:17 +0100)]
ui: FileSelector: add setNodename to allow data binding

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agoui: move loadSSHKeyFromFile from lxc/Create to Utils
Thomas Lamprecht [Thu, 22 Feb 2018 13:17:37 +0000 (14:17 +0100)]
ui: move loadSSHKeyFromFile from lxc/Create to Utils

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>