Commit Graph

3091 Commits

Author SHA1 Message Date
Dietmar Maurer
b4f31a66df replication: fix regression tests 2017-06-29 07:46:56 +02:00
Dietmar Maurer
a4beaa9422 PVE/API2/Replication.pm: cleanup - avoid modifying jobcfg
This is simply no longer necessary.
2017-06-29 07:45:57 +02:00
Thomas Lamprecht
1ab33d14d2 replication: adapt help buttons reference
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-28 18:43:19 +02:00
Emmanuel Kasper
0de33b54b2 Add Help Button for Backup Modal Windows
Modal Windows disable the Workspace behind them, so it was not possible
to get onlineHelp when starting a oneshot backup or configuring a backup job.
2017-06-28 18:43:19 +02:00
Wolfgang Bumiller
74f644b7df bump version to 5.0-18 2017-06-28 14:24:19 +02:00
Wolfgang Link
fa298bb000 Fix create replication job
Add node to load config. this is needed if you are on an other node then the guest.
2017-06-28 14:20:09 +02:00
Dietmar Maurer
e9ac350dd8 bump version to 5.0-17 2017-06-28 13:34:42 +02:00
Dietmar Maurer
85167e5edf replication GUI: add schedule now Button 2017-06-28 12:25:13 +02:00
Dietmar Maurer
88ea8e67d3 PVE/API2/Replication.pm: add schedule_now API 2017-06-28 12:14:22 +02:00
Wolfgang Bumiller
1ec226c31d gui: drop cirrus from the GUI
now only available from the CLI
2017-06-28 12:13:45 +02:00
Thomas Lamprecht
42b45f8fe8 replica: improve schedule format example
Add one more to show that also weekdays + intervals are possible

Further improve wording + reduce translation needs for others entries.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-28 11:31:39 +02:00
Thomas Lamprecht
aa5ce65a13 grid/replication: show textual description of default value
When a user sees this the first time and wants to add a job he
shouldn't be confused what the default value means, so display this
through the emptyText property, which does not get submitted to the
backend.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-28 09:57:38 +02:00
Emmanuel Kasper
cbe73a8981 Make sure checkboxes always appear under the ACL combobox for a bit of esthetic 2017-06-28 06:11:56 +02:00
Emmanuel Kasper
fc3a208bda Add a checkbox 'Skip replication' to filter out container mount points to replicate 2017-06-28 06:11:27 +02:00
Wolfgang Bumiller
12c206a5ab tests: mock PVE::Cluster::get_members and adapt fail test
Commit 3385399339c94 ("replication: keep retrying every 30 minutes in
error state") changed the retry behavior to not stop after the 3rd error
and then stick to half-hour intervals. This needs to be reflected in the
tests. The numbers here match. (1900 + 30*60 = 3700).

Commit fd844180a7efa ("replication: don't sync to offline targets on
error states) changed the retry behavior to check whether the target
node is online. If this is not the case we fail right away. This
introduced a dependency on PVE::Cluster::get_members which we now need
to mock. Tests currently use node names "node{1,2,3}", so I just mock
those 3.
2017-06-28 06:05:44 +02:00
Fabian Grünbichler
d197634b4b ceph: keys: add mgr allow * to client.admin
needed for data that now gets queried via the mgr instead of
via the mon.
2017-06-27 16:42:35 +02:00
Fabian Grünbichler
50239dba68 pveceph: createosd: allow to create bluestore OSDs 2017-06-27 16:15:44 +02:00
Fabian Grünbichler
207f493293 pveceph: init: add min_size, change default to 3/2
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-27 16:15:44 +02:00
Dietmar Maurer
5a26b00600 PVE/API2/Replication.pm: call purge_old_states in run_jobs
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-06-27 15:48:06 +02:00
Thomas Lamprecht
7f15c83c03 replication/ui: improve wording for job removal
Delete the strange sounding Note from the Removal dialog.
This was added to make sure that an user isn't confused that a Job is
still shown after 'removing' it. But it isn't needed as there is
already noted in the jobs status that it will get removed soon after
doing so, so the user sees that his action had the desired effect, no
extra note needed.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-06-27 15:29:40 +02:00
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