3036 Commits

Author SHA1 Message Date
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
Dominik Csapak
dd147b56fa change from dpkg-deb to dpkg-buildpackage
for better building pve-manager

this moves the copyright file to debian/
the debian/changelog.Debian to debian/changelog

we do not need the debian/conffiles anymore (gets autogenerated from
files in ./etc/)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-09 14:00:32 +02:00
Dominik Csapak
64364852e1 do not let www-data own the static js/html files
this is neither necessary, nor useful
those files are meant to be read only anyway, so there is no gain in
them being owned by www-data

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-09 14:00:30 +02:00
Dominik Csapak
b0aec7d532 make language js files consistent
else every package we build has different orderings for the translated
strings

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-09 14:00:27 +02:00
Dominik Csapak
e18edb0efc fix wrong variable syntax
{$PACKAGE} expands to '{ACKAGE}', meaning we shipped a dir:
/usr/share/doc/{ACKAGE}/examples

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-09 14:00:21 +02:00
Dominik Csapak
593cd5550d add SOURCE_DATE_EPOCH to Makefile
to get consistent timestamps for most files in the package

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-09 14:00:14 +02:00
Wolfgang Bumiller
b1bfcfc30a tests: override GuestHelper's lockdir
Otherwise the user running the tests may either create (and
end up being the ownderof) the system wide
/var/lock/pve-manager/* files, or the tests will fail (or
loop endlessly) if the user doesn't have access to them.
2017-06-09 12:06:30 +02:00
Dietmar Maurer
c7abca7e09 PVE::API2::ReplicationConfig->delete - use raise_param_exc 2017-06-09 06:12:02 +02:00
Wolfgang Link
1164d9e1a4 Add force parameter for delete replica job.
This parameter is helpful if an unsolvable situation occurs or the vmconfig was delete manually.
2017-06-09 06:00:18 +02:00
Fabian Grünbichler
d55989340b fix #1389: vzdump: handle storage failure in new()
otherwise the mail notification is not triggered

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-08 16:20:03 +02:00
Dominik Csapak
1c25aaaddd show hostpci devices in gui
so one can see which pci devices are assigned to which vm

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-08 16:06:16 +02:00
Dominik Csapak
c5b0e496f1 add pci icon/css class
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-08 16:06:16 +02:00
Dominik Csapak
31a2deb8b0 use usbedit window to add/edit usb devices
the usb device button gets disabled when there are
already 5 usb devices

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-08 16:05:27 +02:00
Dominik Csapak
7a995680a2 add usbselector and usb edit window for qemu
the edit window has 3 radiobuttons (spice,device,port)

and a checkbox for usb3 (which gets disabled and checked
if you choose a usb3 device)

also it makes use of the help feature

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-08 15:57:56 +02:00
Dominik Csapak
50b2a835a2 show usb devices in qemu hardware view
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-08 15:57:56 +02:00
Dominik Csapak
68fb2e570a add css and image for usb devices
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-08 15:57:56 +02:00
Dominik Csapak
d3999165b7 fix #1385: display no rbd user by default
when having an rbd storage with no user, we displayed 'admin' by default,
this patch sets '' and will be overwritten from the backend if a value is set

when creating a rbd storage, the textfield still has 'admin' in
there by default

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-08 15:13:38 +02:00
Fabian Grünbichler
939b71ab48 use physical NIC regexp
because in >= Stretch, most systems don't have ethX devices any more.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-08 15:00:59 +02:00
Fabian Grünbichler
c109a32583 pvesr: prepare_local_job: fixup
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-08 11:53:30 +02:00
Fabian Grünbichler
0433b86df6 pvesr: prepare_local_job: use PVE::replication::prepare
to reduce code duplication. this slightly changes behaviour
compared to the previous version:

only disks with the correct prefix are cleaned up, not all
disks with __replication* snapshots.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-08 11:13:47 +02:00
Fabian Grünbichler
c20a8a75dd Replication::prepare: track cleaned up volumes
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-06-08 10:45:09 +02:00
Wolfgang Link
ada0438f0c Fix: list_images returns now a array of hashes so adopt the code. 2017-06-08 10:29:11 +02:00
Wolfgang Link
0342d40048 Permit set parent_snapname if it is not set. 2017-06-08 10:27:09 +02:00
Dietmar Maurer
8fde1fb9af PVE/API2/ReplicationConfig.pm: add job creation checks
Check if the target and guest exists to avoid creation of faulty jobs.
2017-06-08 10:01:45 +02:00
Dietmar Maurer
2b134ff10f pvesr: add a message that job removal will take some time 2017-06-08 09:42:12 +02:00
Dietmar Maurer
ddf9146fc5 PVE::Replication::replicate - Set $running to 0 if undef. 2017-06-08 09:31:09 +02:00
Dietmar Maurer
0243416a54 PVE::API2::Tasks - remove dead code 2017-06-08 08:52:22 +02:00
Dietmar Maurer
d03462058a PVE::API2::Tasks - use PVE::Tools::dump_logfile 2017-06-08 07:36:33 +02:00
Dietmar Maurer
b3986ead7e PVE::API2::Replication: rework replication status API
/nodes/<node>/replication => list status of all jobs

/nodes/<node>/replication/<id>/status => individual job status

/nodes/<node>/replication/<id>/log => job log
2017-06-08 07:16:39 +02:00
Dietmar Maurer
bb5cb56104 replication: add replication log files 2017-06-07 17:27:00 +02:00
Dietmar Maurer
b94223b028 replication: improve stale volume detection, allow sync from parent snapshot
We pass a list of storage to scan for stale volumes to prepare_local_job().
So we make sure that we only activate/scan related storages.

Snapshot rollback may remove local replication shapshots. In that case
we still have the $conf->{parent} snapshot on both sides, so we
can use that as base snapshot.
2017-06-07 17:26:56 +02:00
Dietmar Maurer
545e9cb0a7 Remove $vmid form ssh prepare and finalize command. 2017-06-07 17:25:41 +02:00
Dominik Csapak
32a231f754 mobilegui: fix title with perl template
we forgot to change the title from a perl variable to use the
Perl::Template syntax

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-07 17:23:37 +02:00