]> git.proxmox.com Git - pve-manager.git/log
pve-manager.git
7 years agoceph: end ceph.list with a newline
Wolfgang Bumiller [Mon, 3 Jul 2017 09:10:01 +0000 (11:10 +0200)]
ceph: end ceph.list with a newline

7 years agobump version to 5.0-24
Wolfgang Bumiller [Wed, 19 Jul 2017 10:49:31 +0000 (12:49 +0200)]
bump version to 5.0-24

7 years agoUse emptyText to inform the user of the value that will set be when the field is...
Emmanuel Kasper [Mon, 26 Jun 2017 12:18:05 +0000 (14:18 +0200)]
Use emptyText to inform the user of the value that will set be when the field is empty

emptyText is not submitted, because it does not count as value when getSubmitValue() is
called on it in PVE.panel.InputPanel.getValues()

7 years agoFix pveceph createosd
Wolfgang Link [Tue, 18 Jul 2017 09:07:12 +0000 (11:07 +0200)]
Fix pveceph createosd

The --filestore flag is now required see doc of ceph.

If the --bluestore argument is given, a bluestore objectstore will be
created.  If --filestore is provided, a legacy FileStore objectstore
will be created.  If neither is specified, we default to BlueStore.

7 years agoRevert "trust StartCom_Certification_Authority_2.crt"
Wolfgang Bumiller [Wed, 19 Jul 2017 07:27:30 +0000 (09:27 +0200)]
Revert "trust StartCom_Certification_Authority_2.crt"

This reverts commit 12fe9183cb82c3ea148ac31990c67b518c50aabf.

Revert "add missing file"

This reverts commit c11885e0a0da0ad0c944a48e645d829553c6705d.

We've switched to Let's Encrypt.

postinst configure: run update-ca-certificates if the
  previous version is <= 5.0-23.

7 years agobuildsys: use CC, CPPFLAGS and CFLAGS
Wolfgang Bumiller [Wed, 19 Jul 2017 06:49:58 +0000 (08:49 +0200)]
buildsys: use CC, CPPFLAGS and CFLAGS

pvemailforward is a tiny oneliner, but for the sake of best
practices, let's use the build tools from the environment.
For example, with dpkg-buildpackage this will make us use
-D_FORTIFY_SOURCE=2 etc.

7 years agoFix #1450 : restore setgid bit on pvemailforward binary
Emmanuel Kasper [Tue, 18 Jul 2017 15:37:27 +0000 (17:37 +0200)]
Fix #1450 : restore setgid bit on pvemailforward binary

When calling chown on a setuid/setgid executable, the
setuid/setgid bits are reset to 0. So ordering matters
here. See chown(2).

7 years agocheck if storage is in the selector
Dominik Csapak [Tue, 11 Jul 2017 12:39:20 +0000 (14:39 +0200)]
check if storage is in the selector

when having an lxc mountpoint/rootfs on a storage which does not
allow the 'rootfs' content (e.g. somebody disabled it after creating
a container there), trying to edit the mp/rootfs broke the gui

now we check if the record exists

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix breaking gui when trying to edit a bindmount rootfs
Dominik Csapak [Tue, 11 Jul 2017 12:39:19 +0000 (14:39 +0200)]
fix breaking gui when trying to edit a bindmount rootfs

when having a simple directory as rootfs,
trying to edit it in the gui broke it, because
we tried to disable the backup checkbox which did not exists

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agofix wrong osd calculation in ceph dashboard
Dominik Csapak [Tue, 11 Jul 2017 12:39:18 +0000 (14:39 +0200)]
fix wrong osd calculation in ceph dashboard

in luminous, the error message is not
'x/y in osds are down' anymore, but
'x osds down'

so we need to adapt the parsing, and it means we cannot check
the number of in osds there anymore (was never really needed, so
we can simply omit it)

when an osd is down but marked as out, those errors disappear

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoSelect OS Type after selecting the Installation Media
Emmanuel Kasper [Mon, 10 Jul 2017 14:35:04 +0000 (16:35 +0200)]
Select OS Type after selecting the Installation Media

This prepares for the future, in case we want to infer the
OS Type from the installation media name or content.

7 years agoUse a View Controller for making components react to each other
Emmanuel Kasper [Mon, 10 Jul 2017 14:35:03 +0000 (16:35 +0200)]
Use a View Controller for making components react to each other

This allow to declare all the components inside the same items
array, and separate behaviour from view better.

No functional changes.

7 years agoUse camel case for InputPanels aliases
Emmanuel Kasper [Mon, 10 Jul 2017 14:35:02 +0000 (16:35 +0200)]
Use camel case for InputPanels aliases

Camel Case names for component alias follow Ext recommended practises
and are used otherwise everyelse in the code base.

No functionnal changes, aliases for these components were not used
anyway.

7 years agoadd missing file
Dietmar Maurer [Tue, 4 Jul 2017 09:57:07 +0000 (11:57 +0200)]
add missing file

7 years agobump version to 5.0-23
Dietmar Maurer [Tue, 4 Jul 2017 09:51:00 +0000 (11:51 +0200)]
bump version to 5.0-23

7 years agotrust StartCom_Certification_Authority_2.crt
Dietmar Maurer [Tue, 4 Jul 2017 09:48:52 +0000 (11:48 +0200)]
trust StartCom_Certification_Authority_2.crt

7 years agoReplication.js: translate 'Error'
Dietmar Maurer [Tue, 4 Jul 2017 07:06:25 +0000 (09:06 +0200)]
Replication.js: translate 'Error'

7 years agoavoid extra gettext string
Dietmar Maurer [Tue, 4 Jul 2017 07:02:24 +0000 (09:02 +0200)]
avoid extra gettext string

7 years agobump version to 5.0-22
Dietmar Maurer [Tue, 4 Jul 2017 06:18:55 +0000 (08:18 +0200)]
bump version to 5.0-22

7 years agoupdate aplinfo.dat
Dietmar Maurer [Tue, 4 Jul 2017 06:17:45 +0000 (08:17 +0200)]
update aplinfo.dat

7 years agobump version to 5.0-21
Dietmar Maurer [Mon, 3 Jul 2017 14:09:03 +0000 (16:09 +0200)]
bump version to 5.0-21

7 years agoupdate aplinfo.dat
Dietmar Maurer [Mon, 3 Jul 2017 14:06:49 +0000 (16:06 +0200)]
update aplinfo.dat

7 years agobump version to 5.0-20
Dietmar Maurer [Fri, 30 Jun 2017 09:19:10 +0000 (11:19 +0200)]
bump version to 5.0-20

7 years agoreplication: reuse fitting translations
Thomas Lamprecht [Thu, 29 Jun 2017 14:37:32 +0000 (16:37 +0200)]
replication: reuse fitting translations

while it does not makes sense do over-reuse translations for the sake
of translating less, imo, here we can safely reuse already existing
ones and pull out the unit 'MB/s' from the gettext.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agopvesr: allow schedule now from CLI
Thomas Lamprecht [Thu, 29 Jun 2017 10:08:59 +0000 (12:08 +0200)]
pvesr: allow schedule now from CLI

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agobump version to 5.0-19
Dietmar Maurer [Thu, 29 Jun 2017 10:02:14 +0000 (12:02 +0200)]
bump version to 5.0-19

7 years agopvesr status: handle disabled jobs
Thomas Lamprecht [Thu, 29 Jun 2017 09:35:02 +0000 (11:35 +0200)]
pvesr status: handle disabled jobs

As the nodes replication status call also returns disabled jobs now,
we need to handle them here too.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoreplication; merge status and status text and add to dc mode
Thomas Lamprecht [Thu, 29 Jun 2017 09:22:53 +0000 (11:22 +0200)]
replication; merge status and status text and add to dc mode

It was a bit strange to have two separate status columns, which do
effectively the same thing. So merge them together to save a bit
space and have less columns.

We do not need to translate 'Status Text' as a nice side effect.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoreplication: show disabled jobs and allow enabling/disabling
Thomas Lamprecht [Thu, 29 Jun 2017 08:08:29 +0000 (10:08 +0200)]
replication: show disabled jobs and allow enabling/disabling

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoPVE/APLInfo.pm - use correct version for user agent
Dietmar Maurer [Thu, 29 Jun 2017 06:07:11 +0000 (08:07 +0200)]
PVE/APLInfo.pm - use correct version for user agent

7 years agoRevert "add beta text with link to bugtracker"
Dietmar Maurer [Thu, 29 Jun 2017 05:58:37 +0000 (07:58 +0200)]
Revert "add beta text with link to bugtracker"

This reverts commit 6531861e690bbe2c077dd0388689e565cf28df5a.

Prepare for final 5.0 release.

7 years agoreplication: fix regression tests
Dietmar Maurer [Thu, 29 Jun 2017 05:46:56 +0000 (07:46 +0200)]
replication: fix regression tests

7 years agoPVE/API2/Replication.pm: cleanup - avoid modifying jobcfg
Dietmar Maurer [Thu, 29 Jun 2017 05:45:57 +0000 (07:45 +0200)]
PVE/API2/Replication.pm: cleanup - avoid modifying jobcfg

This is simply no longer necessary.

7 years agoreplication: adapt help buttons reference
Thomas Lamprecht [Wed, 28 Jun 2017 16:11:49 +0000 (18:11 +0200)]
replication: adapt help buttons reference

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 years agoAdd Help Button for Backup Modal Windows
Emmanuel Kasper [Wed, 28 Jun 2017 13:26:03 +0000 (15:26 +0200)]
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.

7 years agobump version to 5.0-18
Wolfgang Bumiller [Wed, 28 Jun 2017 12:24:19 +0000 (14:24 +0200)]
bump version to 5.0-18

7 years agoFix create replication job
Wolfgang Link [Wed, 28 Jun 2017 11:50:29 +0000 (13:50 +0200)]
Fix create replication job

Add node to load config. this is needed if you are on an other node then the guest.

7 years agobump version to 5.0-17
Dietmar Maurer [Wed, 28 Jun 2017 11:34:42 +0000 (13:34 +0200)]
bump version to 5.0-17

7 years agoreplication GUI: add schedule now Button
Dietmar Maurer [Wed, 28 Jun 2017 06:35:02 +0000 (08:35 +0200)]
replication GUI: add schedule now Button

7 years agoPVE/API2/Replication.pm: add schedule_now API
Dietmar Maurer [Wed, 28 Jun 2017 04:55:16 +0000 (06:55 +0200)]
PVE/API2/Replication.pm: add schedule_now API

7 years agogui: drop cirrus from the GUI
Wolfgang Bumiller [Wed, 28 Jun 2017 09:39:33 +0000 (11:39 +0200)]
gui: drop cirrus from the GUI

now only available from the CLI

7 years agoreplica: improve schedule format example
Thomas Lamprecht [Wed, 28 Jun 2017 08:24:39 +0000 (10:24 +0200)]
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>
7 years agogrid/replication: show textual description of default value
Thomas Lamprecht [Wed, 28 Jun 2017 07:19:49 +0000 (09:19 +0200)]
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>
7 years agoMake sure checkboxes always appear under the ACL combobox for a bit of esthetic
Emmanuel Kasper [Tue, 27 Jun 2017 15:07:09 +0000 (17:07 +0200)]
Make sure checkboxes always appear under the ACL combobox for a bit of esthetic

7 years agoAdd a checkbox 'Skip replication' to filter out container mount points to replicate
Emmanuel Kasper [Tue, 27 Jun 2017 15:07:08 +0000 (17:07 +0200)]
Add a checkbox 'Skip replication' to filter out container mount points to replicate

7 years agotests: mock PVE::Cluster::get_members and adapt fail test
Wolfgang Bumiller [Tue, 27 Jun 2017 13:47:24 +0000 (15:47 +0200)]
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.

7 years agoceph: keys: add mgr allow * to client.admin
Fabian Grünbichler [Tue, 27 Jun 2017 14:42:16 +0000 (16:42 +0200)]
ceph: keys: add mgr allow * to client.admin

needed for data that now gets queried via the mgr instead of
via the mon.

7 years agopveceph: createosd: allow to create bluestore OSDs
Fabian Grünbichler [Tue, 27 Jun 2017 14:12:13 +0000 (16:12 +0200)]
pveceph: createosd: allow to create bluestore OSDs

7 years agopveceph: init: add min_size, change default to 3/2
Fabian Grünbichler [Mon, 22 May 2017 07:54:30 +0000 (09:54 +0200)]
pveceph: init: add min_size, change default to 3/2

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 years agoPVE/API2/Replication.pm: call purge_old_states in run_jobs
Dietmar Maurer [Tue, 27 Jun 2017 09:03:06 +0000 (11:03 +0200)]
PVE/API2/Replication.pm: call purge_old_states in run_jobs

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
7 years agoreplication/ui: improve wording for job removal
Thomas Lamprecht [Tue, 27 Jun 2017 13:01:26 +0000 (15:01 +0200)]
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>
7 years agoreplication: refuse to create jobs with nothing to do
Wolfgang Bumiller [Tue, 27 Jun 2017 12:55:45 +0000 (14:55 +0200)]
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.

7 years agotests: update pvesr_lock_path variable location
Wolfgang Bumiller [Tue, 27 Jun 2017 12:55:44 +0000 (14:55 +0200)]
tests: update pvesr_lock_path variable location

7 years agoceph: init: allow pool deletion by default
Fabian Grünbichler [Wed, 3 May 2017 09:45:12 +0000 (11:45 +0200)]
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>
7 years agoAdd a Skip replication option on Disk Panel
Emmanuel Kasper [Tue, 27 Jun 2017 07:52:39 +0000 (09:52 +0200)]
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.

7 years agorefuse to create replication jobs for unreplicatable VMs
Wolfgang Bumiller [Mon, 26 Jun 2017 14:34:33 +0000 (16:34 +0200)]
refuse to create replication jobs for unreplicatable VMs

7 years agobump version to 5.0-16
Dietmar Maurer [Fri, 23 Jun 2017 11:03:32 +0000 (13:03 +0200)]
bump version to 5.0-16

7 years agofix lxc hostname input window
Dominik Csapak [Fri, 23 Jun 2017 09:36:37 +0000 (11:36 +0200)]
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>
7 years agofix reselection on vm/ct migrate in gui
Dominik Csapak [Fri, 23 Jun 2017 09:00:58 +0000 (11:00 +0200)]
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>
7 years agobump version to 5.0-15
Dietmar Maurer [Fri, 23 Jun 2017 09:43:58 +0000 (11:43 +0200)]
bump version to 5.0-15

7 years agopvesr.timer: set AccuracySec=1
Dietmar Maurer [Fri, 23 Jun 2017 09:41:37 +0000 (11:41 +0200)]
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.

7 years agobump version to 5.0-14
Dietmar Maurer [Fri, 23 Jun 2017 08:48:59 +0000 (10:48 +0200)]
bump version to 5.0-14

7 years agopvesr.service: add ConditionPathExists=/usr/bin/pvesr
Dietmar Maurer [Fri, 23 Jun 2017 08:44:54 +0000 (10:44 +0200)]
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'.

7 years agoadd systemd timer unit to trigger pvesr run
Wolfgang Link [Fri, 2 Jun 2017 09:21:46 +0000 (11:21 +0200)]
add systemd timer unit to trigger pvesr run

7 years agobump version to 5.0-13
Dietmar Maurer [Thu, 22 Jun 2017 10:28:24 +0000 (12:28 +0200)]
bump version to 5.0-13

7 years agofix regression in gui when migrating guests
Dominik Csapak [Thu, 22 Jun 2017 09:24:35 +0000 (11:24 +0200)]
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>
7 years agoshow resume button when qmpstatus is 'suspended'
Dominik Csapak [Thu, 22 Jun 2017 09:24:34 +0000 (11:24 +0200)]
show resume button when qmpstatus is 'suspended'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd initramfs conf snippet disabling RESUME
Fabian Grünbichler [Thu, 22 Jun 2017 09:29:14 +0000 (11:29 +0200)]
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>
7 years agobetter default column sizes for replication grid
Dominik Csapak [Mon, 19 Jun 2017 14:25:50 +0000 (16:25 +0200)]
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>
7 years agochange default replication status text to 'OK'
Dominik Csapak [Mon, 19 Jun 2017 14:25:49 +0000 (16:25 +0200)]
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>
7 years agochange short duration format to x.y
Dominik Csapak [Mon, 19 Jun 2017 14:25:48 +0000 (16:25 +0200)]
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>
7 years agoadd replication to stateprovider dictionary
Dominik Csapak [Mon, 19 Jun 2017 12:34:34 +0000 (14:34 +0200)]
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>
7 years agouse git rev-parse for repoid
Dominik Csapak [Wed, 14 Jun 2017 10:22:28 +0000 (12:22 +0200)]
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>
7 years agoBetter Status description for jobs which are about to be run
Emmanuel Kasper [Tue, 20 Jun 2017 14:42:54 +0000 (16:42 +0200)]
Better Status description for jobs which are about to be run

7 years agoUse also a 150 pix width for Date in LXC Snapshot Tree
Emmanuel Kasper [Mon, 19 Jun 2017 15:00:04 +0000 (17:00 +0200)]
Use also a 150 pix width for Date in LXC Snapshot Tree

Otherwise the date is truncated by default

7 years agoFix LXC Snapshots Edit Window timestamps
Emmanuel Kasper [Mon, 19 Jun 2017 14:59:50 +0000 (16:59 +0200)]
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 4092576b1b2da715eb79f3adf733f4165e9d74d4
for VMs but Containers missed the fix.

7 years agobump version to 5.0-12
Dietmar Maurer [Thu, 22 Jun 2017 07:32:01 +0000 (09:32 +0200)]
bump version to 5.0-12

7 years agoOSD: rename 'remove' to 'destroy'
Thomas Lamprecht [Wed, 17 May 2017 10:40:27 +0000 (12:40 +0200)]
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>
7 years agopvereport: improve output and add timeouts to commands
Thomas Lamprecht [Fri, 9 Jun 2017 10:06:12 +0000 (12:06 +0200)]
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>
7 years agoPVE/API2/Replication.pm: add $verbose parameter run_jobs()
Dietmar Maurer [Tue, 20 Jun 2017 06:57:40 +0000 (08:57 +0200)]
PVE/API2/Replication.pm: add $verbose parameter run_jobs()

7 years agoFix SafeDestroy when entering a numeric resource ID
Emmanuel Kasper [Wed, 14 Jun 2017 09:22:20 +0000 (11:22 +0200)]
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.

7 years agoupdate default aplinfo.dat
Dietmar Maurer [Mon, 19 Jun 2017 04:52:52 +0000 (06:52 +0200)]
update default aplinfo.dat

7 years agouse 'any' for build architecture
Thomas Lamprecht [Wed, 14 Jun 2017 12:11:41 +0000 (14:11 +0200)]
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>
7 years agouse correct vmid for id when in vm replication panel
Dominik Csapak [Wed, 14 Jun 2017 06:52:59 +0000 (08:52 +0200)]
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>
7 years agofix #1414: use table layout instead of columns
Dominik Csapak [Wed, 14 Jun 2017 07:22:23 +0000 (09:22 +0200)]
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>
7 years agoadd replication grid to lxc/qemu/node
Dominik Csapak [Tue, 13 Jun 2017 12:56:06 +0000 (14:56 +0200)]
add replication grid to lxc/qemu/node

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd replication grid in datacenter
Dominik Csapak [Tue, 13 Jun 2017 12:56:05 +0000 (14:56 +0200)]
add replication grid in datacenter

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoadd replication grid
Dominik Csapak [Tue, 13 Jun 2017 12:56:04 +0000 (14:56 +0200)]
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>
7 years agoadd calendarevent form field
Dominik Csapak [Tue, 13 Jun 2017 12:56:03 +0000 (14:56 +0200)]
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>
7 years agoport button from proxmox-widget-toolkit
Dominik Csapak [Tue, 13 Jun 2017 12:56:02 +0000 (14:56 +0200)]
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>
7 years agoadd render_duration
Dominik Csapak [Tue, 13 Jun 2017 12:56:01 +0000 (14:56 +0200)]
add render_duration

for replica interval

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoimplement delete parameter for replicationconfig
Dominik Csapak [Tue, 13 Jun 2017 12:56:00 +0000 (14:56 +0200)]
implement delete parameter for replicationconfig

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agoFix #1372: require manually entering the Ceph Pool id before destroying a pool
Emmanuel Kasper [Mon, 12 Jun 2017 14:18:09 +0000 (16:18 +0200)]
Fix #1372: require manually entering the Ceph Pool id before destroying a pool

7 years agoAdapt SafeDestroy component to be able to delete Ceph Pools
Emmanuel Kasper [Mon, 12 Jun 2017 14:18:08 +0000 (16:18 +0200)]
Adapt SafeDestroy component to be able to delete Ceph Pools

7 years agoimplement digest checking for ReplicationConfig update
Dominik Csapak [Mon, 12 Jun 2017 13:01:14 +0000 (15:01 +0200)]
implement digest checking for ReplicationConfig update

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agochange to ReplicaState
Dominik Csapak [Mon, 12 Jun 2017 13:01:13 +0000 (15:01 +0200)]
change to ReplicaState

this function moved, so the call to it has to move too

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
7 years agopvesr set_state
Wolfgang Link [Fri, 9 Jun 2017 06:19:49 +0000 (08:19 +0200)]
pvesr set_state

7 years agoui: don't translate NDP
Wolfgang Bumiller [Mon, 12 Jun 2017 08:52:10 +0000 (10:52 +0200)]
ui: don't translate NDP

7 years agotranslate params in bulk migrate window
Thomas Lamprecht [Wed, 7 Jun 2017 08:37:46 +0000 (10:37 +0200)]
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>
7 years agochange to debian font-awesome
Dominik Csapak [Mon, 12 Jun 2017 08:13:24 +0000 (10:13 +0200)]
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>