]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
6 years agoadd render functions for Certificates
Dominik Csapak [Fri, 4 May 2018 09:53:33 +0000 (11:53 +0200)]
add render functions for Certificates

this adds render_optional_url for a field which may contain a link
and render_san which simply displays the different values
in each line

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoExtend the .gitignore(s)
René Jochum [Wed, 18 Apr 2018 20:26:04 +0000 (22:26 +0200)]
Extend the .gitignore(s)

Signed-off-by: René Jochum <rene@jochums.at>
6 years agopveupdate: add ACME certificate renewal
Fabian Grünbichler [Fri, 27 Apr 2018 12:02:14 +0000 (14:02 +0200)]
pveupdate: add ACME certificate renewal

renew certificate if an acme config entry and a custom certificate
exists on the local node and the certificate expires soon.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agoadd pvenode CLIHandler
Fabian Grünbichler [Fri, 27 Apr 2018 12:02:13 +0000 (14:02 +0200)]
add pvenode CLIHandler

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agoadd certificates API endpoints
Fabian Grünbichler [Fri, 27 Apr 2018 12:02:12 +0000 (14:02 +0200)]
add certificates API endpoints

to allow retrieval of certificate information, and uploading or removing
of custom certificate files.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agoadd ACME certificate API endpoints
Fabian Grünbichler [Mon, 30 Apr 2018 10:16:17 +0000 (12:16 +0200)]
add ACME certificate API endpoints

for creating/ordering a new certificate and renewing respectively
revoking an existing one.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agoadd ACME account API endpoints
Fabian Grünbichler [Fri, 27 Apr 2018 12:02:10 +0000 (14:02 +0200)]
add ACME account API endpoints

for registering, updating, refreshing and deactiving a PVE-managed ACME
account, as well as for retrieving the (optional, but required if
available) terms of service of the ACME API provider / CA.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agoadd node configuration file and API
Fabian Grünbichler [Fri, 27 Apr 2018 12:02:09 +0000 (14:02 +0200)]
add node configuration file and API

this currently only contains a description and the node-specific ACME
configuration, but I am sure we can find other goodies to put there.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agoadd CertHelpers utility
Fabian Grünbichler [Fri, 27 Apr 2018 12:02:07 +0000 (14:02 +0200)]
add CertHelpers utility

PVE-specific certificate helper functions

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
6 years agodisable the mountpoint selector and path field by default
Dominik Csapak [Mon, 30 Apr 2018 12:55:33 +0000 (14:55 +0200)]
disable the mountpoint selector and path field by default

since in the wizard, the validity check happens before the
viewmodel can set the visible/enabled state so this is invalid there,
even if the remaining panel is valid

setting it to disabled by default, makes the fields 'valid' at the
beginning but retain their behavior

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agogive vms with 'io-error' an error icon
Dominik Csapak [Mon, 30 Apr 2018 09:00:35 +0000 (11:00 +0200)]
give vms with 'io-error' an error icon

so that one can see that the vm has an error, even when not
directly investigating the status of that vm

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoshow qmpstatus if available
Dominik Csapak [Mon, 30 Apr 2018 09:00:34 +0000 (11:00 +0200)]
show qmpstatus if available

this patch shows the qmpstatus if it is available on the summary in
parenthesis

this shows things like 'suspended' and 'io-error'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoimplement multiField renderer for infopanels
Dominik Csapak [Mon, 30 Apr 2018 09:00:33 +0000 (11:00 +0200)]
implement multiField renderer for infopanels

we can use this for fields which use more than one value of the
guest status

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agodc/ClusterEdit: join: fix assisted entry chechbox change listener
Thomas Lamprecht [Fri, 27 Apr 2018 13:46:16 +0000 (15:46 +0200)]
dc/ClusterEdit: join: fix assisted entry chechbox change listener

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 years agojslint fixes
Dominik Csapak [Wed, 25 Apr 2018 09:37:49 +0000 (11:37 +0200)]
jslint fixes

those found their way in during a rebase of my patches

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 5.1-52
Thomas Lamprecht [Mon, 23 Apr 2018 14:01:48 +0000 (16:01 +0200)]
bump version to 5.1-52

6 years agouse correct multiKey and getObjectValue calls for memory line
Dominik Csapak [Tue, 10 Apr 2018 14:36:17 +0000 (16:36 +0200)]
use correct multiKey and getObjectValue calls for memory line

also show shares and if ballooning is off

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoadd xterm.js settings
Dominik Csapak [Fri, 20 Apr 2018 13:37:50 +0000 (15:37 +0200)]
add xterm.js settings

this adds font-settings to the 'My Settings'
window and makes that bigger

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoset the default console in the gui when setting the option
Dominik Csapak [Fri, 20 Apr 2018 13:37:49 +0000 (15:37 +0200)]
set the default console in the gui when setting the option

until now, we only set the default console once on page load,
this enables to set it everytime the dc->options panel loads,
so also after setting an option

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoremove the novnc panels for node/container
Dominik Csapak [Fri, 20 Apr 2018 13:37:48 +0000 (15:37 +0200)]
remove the novnc panels for node/container

so that by default the users get xtermjs
not for vms though, since most will still not use a serial
terminal as the display

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoallow xtermjs to be the default console
Dominik Csapak [Fri, 20 Apr 2018 13:37:47 +0000 (15:37 +0200)]
allow xtermjs to be the default console

if not available for a vm, we fallback to novnc like with spice

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agofix #1691: use asynchronous API call for HD create
Wolfgang Link [Thu, 19 Apr 2018 06:39:49 +0000 (08:39 +0200)]
fix #1691: use asynchronous API call for HD create

It should use an asynchronous API call to create an image,
because some storages may need longer to alloc an image.

If a storage needs more than 30 sec
the proxy will timeout and we have an orphan image.

Also, it is possible to increase the timeout for some
storages if an asynchronous call is used

6 years agofix #1732: actually post values in IScsiEdit
Dominik Csapak [Thu, 19 Apr 2018 08:17:03 +0000 (10:17 +0200)]
fix #1732: actually post values in IScsiEdit

this prevented creating/editing an iscsi storage

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 5.1-51
Dietmar Maurer [Fri, 6 Apr 2018 12:10:09 +0000 (14:10 +0200)]
bump version to 5.1-51

6 years agooverwrite the built-in 'run_editor' function
Dominik Csapak [Fri, 6 Apr 2018 11:22:45 +0000 (13:22 +0200)]
overwrite the built-in 'run_editor' function

this is needed for the 'enter' handler

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agobump version to 5.1-50
Dietmar Maurer [Fri, 6 Apr 2018 11:56:11 +0000 (13:56 +0200)]
bump version to 5.1-50

6 years agobetter focus of lxc/MPEdit
Dominik Csapak [Fri, 6 Apr 2018 11:11:27 +0000 (13:11 +0200)]
better focus of lxc/MPEdit

this gives the focus to either the 'path' field
or to the 'X' tool (if it is a rootfs)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agomerge cores, cpulimit and cpuunits for containers
Dominik Csapak [Fri, 6 Apr 2018 11:03:57 +0000 (13:03 +0200)]
merge cores, cpulimit and cpuunits for containers

like we do for qemu vms

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

this is a complete rework of the inputpanel (long overdue)
it uses a viewModel and viewcontroller to avoid the
multiple is zfs/root/bind checks and concentrate them
in one place

also some features get optimized (e.g. the noreplication checkbox)

adds a setNodename to the DiskStorageSelector so that we can bind
the nodename there

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
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>