3068 Commits

Author SHA1 Message Date
Dietmar Maurer
efa075d9be bump version to 5.0-13 2017-06-22 12:28:24 +02:00
Dominik Csapak
85e09e1bb8 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
36d7084737 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
bbc2344dc7 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
ab06146b26 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
fed0bc897c 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
0102746095 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
5fa45b3343 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
a09735e0b5 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
0e07dd36ec Better Status description for jobs which are about to be run 2017-06-22 09:52:48 +02:00
Emmanuel Kasper
45573e5c31 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
b3837fd489 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 aaa89d0b880ea9ab97927872e64d4427bbe2232d
for VMs but Containers missed the fix.
2017-06-22 09:45:19 +02:00
Dietmar Maurer
74e1ebdbcd bump version to 5.0-12 2017-06-22 09:32:01 +02:00
Thomas Lamprecht
868059c971 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
0c6cf61d5d 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
784abe61a5 PVE/API2/Replication.pm: add $verbose parameter run_jobs() 2017-06-20 08:58:48 +02:00
Emmanuel Kasper
fb95592486 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
ee26ef4452 update default aplinfo.dat 2017-06-19 06:52:52 +02:00
Thomas Lamprecht
7774a27eb3 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
b0128db831 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
840339e4fa 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
d9d5d01444 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
eb37ef68a6 add replication grid in datacenter
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-14 07:34:13 +02:00
Dominik Csapak
08b8c25650 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
5d517deb0e 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
0b0e868516 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
2f5757746b 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
b4f3051571 implement delete parameter for replicationconfig
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-14 07:30:05 +02:00
Emmanuel Kasper
6d43ea9746 Fix #1372: require manually entering the Ceph Pool id before destroying a pool 2017-06-13 05:41:43 +02:00
Emmanuel Kasper
2459f51618 Adapt SafeDestroy component to be able to delete Ceph Pools 2017-06-13 05:40:08 +02:00
Dominik Csapak
60e89cef9d 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
348ffa46d1 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
53077d70a9 pvesr set_state 2017-06-12 11:40:15 +02:00
Wolfgang Bumiller
0496849b36 ui: don't translate NDP 2017-06-12 10:56:01 +02:00
Thomas Lamprecht
ee6e5b0991 german translation update
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-12 10:55:43 +02:00
Thomas Lamprecht
0ca024265b italian translation update
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
CC: Marco Menardi <mmenaz@mail.com>
2017-06-12 10:55:43 +02:00
Thomas Lamprecht
1561aa569c 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
e97c26015d 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
80b36fbbf9 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
Thomas Lamprecht
4dc6bd326a explicit set button focus respecting the 'dangerous' option
The line:
 > Ext.MessageBox.defaultButton = me.dangerous ? 2 : 1;
just set the button which should get triggered on an keyboard "Enter"
if no button is focused currently.

But often the 'Yes' buttons is focused so an enter press would
trigger it, even on a as 'dangerous' marked option.

Fix this, as else a to fast "Enter" press can cause more problems
than needed.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
2017-06-12 10:24:29 +02:00
Wolfgang Bumiller
614dfac402 buildsys: clean: remove .buildinfo and .changes 2017-06-12 10:20:21 +02:00
Fabian Grünbichler
5c7acf55ce build: whitespace cleanup 2017-06-12 09:34:10 +02:00
Fabian Grünbichler
f86235f12e build: fakeroot is default anyway 2017-06-12 09:27:23 +02:00
Fabian Grünbichler
338f7f62ce build: make control static 2017-06-12 09:26:57 +02:00
Fabian Grünbichler
22c3aa1b01 build: cleanup control.in 2017-06-12 09:26:22 +02:00
Dietmar Maurer
51e0615b6b removed PVE/Replication.pm (moved to pve-guest-common) 2017-06-12 07:04:51 +02:00
Dietmar Maurer
7519e92caa use new replication helpers from pve-guest-common 2017-06-12 06:59:21 +02:00
Dietmar Maurer
7feb60e968 PVE::Replication - remove dependency to PVE::LXC/PVE::QemuServer
So that we can move the whole class to package pve-guest-common.
2017-06-12 05:59:51 +02:00
Dietmar Maurer
6411310f09 PVE::Replication - pass guest_class to run_replication
So that we can (re)use methods from PVE::AbstractConfig.
2017-06-12 05:59:51 +02:00
Fabian Grünbichler
e0fc0a2edb debian: reformat depends in control 2017-06-09 14:32:36 +02:00