Commit Graph

3021 Commits

Author SHA1 Message Date
Wolfgang Bumiller
1adc6f7ab3 replication: refuse to create jobs with nothing to do
When a VM has no disks or all of them are on shared storage
the replication job has nothing to do and fails, so catch
this when creating a new job.
2017-06-27 15:16:41 +02:00
Wolfgang Bumiller
5b35845009 tests: update pvesr_lock_path variable location 2017-06-27 15:16:41 +02:00
Fabian Grünbichler
2e9d791ee6 ceph: init: allow pool deletion by default
set to false by default since Ceph > Kraken

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-27 14:53:17 +02:00
Emmanuel Kasper
1b6f87ab1d Add a Skip replication option on Disk Panel
This will allow to disable replication, when for instance we
add a disk on a non-replicatable storage.
The option is hidden in the wizard, because at that time no VM
replication has been set.
2017-06-27 10:49:35 +02:00
Wolfgang Bumiller
25420507b2 refuse to create replication jobs for unreplicatable VMs 2017-06-27 06:28:33 +02:00
Dietmar Maurer
224c78da76 bump version to 5.0-16 2017-06-23 13:03:32 +02:00
Dominik Csapak
6b70251440 fix lxc hostname input window
we used a static emptytext at creation, which is wrong after editing
now copied from qemu/Options.js (the name), but instead of deleting the
hostname on the backend on an empty field, we set it to CT<VMID>
(this is also the default in the wizard)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-23 13:02:19 +02:00
Dominik Csapak
d5a7996b13 fix reselection on vm/ct migrate in gui
there were a number of problems in how we reselected vms when they
migrated and selected:

we relied on the data in the configpanel to be static, but since
pveselnode is a reference, it actually changes when the resourcestore
changes
also, handling the reselection as a response to the statusstore failure
is very inconsistent, because we know exactly when a vm moves node in
the tree

this patch removes the whole configpanel vm migration code,
and lets the tree handle it
for this, we have to check if we have to reselect the entry,
deselect it manually and after the treeupdate reselect it

also in the right click selection check we have to check if it is
already selected, else the next selection will get canceled

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-23 13:01:12 +02:00
Dietmar Maurer
75d71d4ea2 bump version to 5.0-15 2017-06-23 11:43:58 +02:00
Dietmar Maurer
2ca8059196 pvesr.timer: set AccuracySec=1
So that the user can predict when a job will/shpuld be started. I think
this will not have much impact on the cluster wide power consumption.
2017-06-23 11:41:37 +02:00
Dietmar Maurer
6b562b3da7 bump version to 5.0-14 2017-06-23 10:48:59 +02:00
Dietmar Maurer
eaae2b5bb5 pvesr.service: add ConditionPathExists=/usr/bin/pvesr
And explicitly set type to 'oneshot', but I am not sure if it makes
any difference to 'simple'.
2017-06-23 10:44:54 +02:00
Wolfgang Link
0dfd4a9413 add systemd timer unit to trigger pvesr run 2017-06-23 10:20:34 +02:00
Dietmar Maurer
7d63c83ce4 bump version to 5.0-13 2017-06-22 12:28:24 +02:00
Dominik Csapak
0f3e4bc242 fix regression in gui when migrating guests
with using suspend/resumeEvents the reselection of vms when migrating,
was not working correctly, fixing this by resuming before selecting

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-22 12:24:43 +02:00
Dominik Csapak
1d0293b8c0 show resume button when qmpstatus is 'suspended'
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-22 12:24:03 +02:00
Fabian Grünbichler
7a26f73112 add initramfs conf snippet disabling RESUME
otherwise, every boot will wait for the swap ZVol on root on
ZFS systems.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-22 12:23:01 +02:00
Dominik Csapak
17975935b3 better default column sizes for replication grid
to see the full date, and save space from the other columns

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-22 10:09:18 +02:00
Dominik Csapak
79b04dba79 change default replication status text to 'OK'
The status '-' can confuse users, as it could indicate something is
missing, whereas OK indicates everything is alright (which is the status
we want to show)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-22 10:09:07 +02:00
Dominik Csapak
530ee6b769 change short duration format to x.y
so we always show one decimal place
(instead of all with seconds and none with minutes, hours, days)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-22 10:08:56 +02:00
Dominik Csapak
a0f3e8e3a2 add replication to stateprovider dictionary
to show the number in the url fragment instead of 'replication'
also change the itemid in the datacenter to 'replication' from 'replica'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-22 10:08:13 +02:00
Dominik Csapak
fcd3cdd5d6 use git rev-parse for repoid
instead of getting the repoid from .git/refs/heads/master

using HEAD as commit also means we get the correct commit hash for when
building the package (e.g. when building from stable-4)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-22 09:58:41 +02:00
Emmanuel Kasper
0b142737f7 Better Status description for jobs which are about to be run 2017-06-22 09:52:48 +02:00
Emmanuel Kasper
44d711641c Use also a 150 pix width for Date in LXC Snapshot Tree
Otherwise the date is truncated by default
2017-06-22 09:46:38 +02:00
Emmanuel Kasper
57e780d739 Fix LXC Snapshots Edit Window timestamps
API calls return dates in seconds where the JS Date() constructor
wants millisecond.

For the correct computation use render_timestamp_human_readable.

A similar fix was commited in 4092576b1b
for VMs but Containers missed the fix.
2017-06-22 09:45:19 +02:00
Dietmar Maurer
068d1c3494 bump version to 5.0-12 2017-06-22 09:32:01 +02:00
Thomas Lamprecht
fb0e18136c OSD: rename 'remove' to 'destroy'
To have consistency with the CLI tools `pveceph destroyosd` command.
This is also more clear about the resulting action, as 'Remove' could
also just mean 'Remove from Config', for example.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-21 08:30:08 +02:00
Thomas Lamprecht
ee3a898983 pvereport: improve output and add timeouts to commands
Each command may not run longer than 10 seconds. This avoids
situations where no output gets generated because of a infinitely
hanging command (e.g. check for dead NFS storage)
Also ensure that commands are separated with a new line from each
other to improve readability.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-21 07:45:22 +02:00
Dietmar Maurer
2aa029571c PVE/API2/Replication.pm: add $verbose parameter run_jobs() 2017-06-20 08:58:48 +02:00
Emmanuel Kasper
beba93b147 Fix SafeDestroy when entering a numeric resource ID
In a previous commit, the inputField of SafeDestroy.js was converted
from a numberfield to a textfield to allow ceph pools names to be
entered.
This means the type of 'value' changed from number to string and
the strong equal test === was failing against a numeric id.
To solve this, we now always stringify the resource id before comparing.
2017-06-19 09:23:55 +02:00
Dietmar Maurer
ca31682687 update default aplinfo.dat 2017-06-19 06:52:52 +02:00
Thomas Lamprecht
9bd69cf8ce use 'any' for build architecture
allows to build this on all architectures without marking it as
architecture independent.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-14 15:33:39 +02:00
Dominik Csapak
de2022b85c use correct vmid for id when in vm replication panel
values.guest is only available when the field 'guest' is not a
displayfield (e.g. when in vm replication panel), so we have to
use the given vmid first and only when this is not available, fall back
to the value of the field

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-14 10:23:01 +02:00
Dominik Csapak
701acf208a fix #1414: use table layout instead of columns
columns with fixed widths do not resize correctly in chrome when
resizing or having a different dpi scaling

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-14 09:40:05 +02:00
Dominik Csapak
cb6df20c2e add replication grid to lxc/qemu/node
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-14 07:34:48 +02:00
Dominik Csapak
56297d42c5 add replication grid in datacenter
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-14 07:34:13 +02:00
Dominik Csapak
9058a478af add replication grid
this patch adds a replication grid, which shows the status/configuration
for the defined replication jobs, and allow them to be
added/edited/removed

in case the replication grid gets shown in the datacenter, we omit the
status fields, because we only have the configuration there

when opening the grid, we check if there are at least two nodes,
because currently we only allow replication in a cluster environment

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-14 07:33:46 +02:00
Dominik Csapak
56da921434 add calendarevent form field
this is a freely editable combobox, which shows five usable examples and
their syntax, allowing users to deduct how the syntax works without
reading documentation

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-14 07:32:59 +02:00
Dominik Csapak
1344537655 port button from proxmox-widget-toolkit
we want the new behaviour of the proxmox button also in pve, but
we do not want to change to proxmox-widget-toolkit yet

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-14 07:32:20 +02:00
Dominik Csapak
ddd26302d7 add render_duration
for replica interval

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-14 07:30:46 +02:00
Dominik Csapak
dc9bc76843 implement delete parameter for replicationconfig
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-14 07:30:05 +02:00
Emmanuel Kasper
c9a8015d95 Fix #1372: require manually entering the Ceph Pool id before destroying a pool 2017-06-13 05:41:43 +02:00
Emmanuel Kasper
2125c18a23 Adapt SafeDestroy component to be able to delete Ceph Pools 2017-06-13 05:40:08 +02:00
Dominik Csapak
a4dc8611e6 implement digest checking for ReplicationConfig update
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-12 16:02:53 +02:00
Dominik Csapak
d09c076a62 change to ReplicaState
this function moved, so the call to it has to move too

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-12 16:01:55 +02:00
Wolfgang Link
fdc8b76982 pvesr set_state 2017-06-12 11:40:15 +02:00
Wolfgang Bumiller
c4941d5bc4 ui: don't translate NDP 2017-06-12 10:56:01 +02:00
Thomas Lamprecht
09f5f4023c translate params in bulk migrate window
we have translated 'Target Node' already and I add a translation for
german and italian for 'Parallel Jobs' in the next translation update
patches.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-12 10:55:43 +02:00
Dominik Csapak
7f3b89a012 change to debian font-awesome
instead of having font-awesome copied into the repository,
depend on the debian package 'fonts-font-awesome', which provides all we
need

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-12 10:26:29 +02:00
Thomas Lamprecht
31cb3622cf mark node shutdown/reboot buttons as dangerous
this has the effect that a warning triangle instead of an "?" symbol
is displayed and that the default focus is on "No"

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
2017-06-12 10:24:36 +02:00