302 Commits

Author SHA1 Message Date
Dietmar Maurer
df16be460c bin/test/Makefile: run all replication tests 2017-05-31 08:23:47 +02:00
Dietmar Maurer
7f6ff9dd39 PVE::Replication::replicate - implement replicate
The actual volume replication is done in replicate_volume(), which is just
a stub for now.

I also added a regression test replication_test5.pl to verify basic
functions.
2017-05-31 08:23:47 +02:00
Dietmar Maurer
331025d954 ReplicationTestEnv.pm: mock get_ssh_info and ssh_info_to_command 2017-05-31 08:23:47 +02:00
Dietmar Maurer
4550bb78c3 ReplicationTestEnv.pm: mock storage content methods 2017-05-31 08:23:46 +02:00
Dietmar Maurer
f70997ea80 pvesr run: add --verbose flag
We can now pass a $logfunc parameter to replicate() to
produce more verbose logs/output. This is especially useful
for regression testing.
2017-05-31 08:23:46 +02:00
Dietmar Maurer
6e572d46ef replication_test4.pl: Test replication job failure 2017-05-31 08:23:46 +02:00
Dietmar Maurer
c5014e65b2 ReplicationTestEnv.pm: add job tracking log
To generate persistent logs with job state/config changes.
2017-05-31 08:23:46 +02:00
Dietmar Maurer
6269a49c64 replication_test3.pl: regression test for replication to same node 2017-05-31 08:23:46 +02:00
Dietmar Maurer
816c01f85b replication_test2.pl: test replication scheduler 2017-05-31 08:23:46 +02:00
Dietmar Maurer
d0920c29e6 add regression test environment for replication 2017-05-31 08:23:46 +02:00
Dietmar Maurer
892821fd87 pvesr: add pve storage replication tool
Just added code to configure jobs. Replication itself is not
implemented.
2017-05-31 08:23:46 +02:00
Wolfgang Link
c6723ee58b Make a new systemd target.
This will ensure all storages are up before pveproxy is running.
2017-05-03 11:50:53 +02:00
Fabian Grünbichler
2bde88fb3f fix ceph.service for Ceph Jewel >= 10.2.6
having our ceph.service pulled in by ceph.target does not
work anymore, because "systemctl start ceph.target" hangs
forever on ceph-common upgrades. multi-user.target seems to
work as well, and we are ordered after pve-cluster anyway.

only replace the old ceph.service if it is an exact match.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-03-13 14:20:14 +01:00
Wolfgang Bumiller
16a264ce0c remove space in service file 2017-03-13 14:18:21 +01:00
Thomas Lamprecht
3a2402368f pveperf: remove outated POD replaced by pve-docs
Remove the POD content and the overwriting makefile rule
'pveperf.1.pod' so that the rule from pve-doc-generator.mk matches

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-02-15 11:10:27 +01:00
Wolfgang Bumiller
804e97f9ec spiceproxy: import PVE::SafeSyslog 2017-01-26 12:59:57 +01:00
Dietmar Maurer
be613dfcbc bin/Makefile: export PERLLIB=.. so that doc generator works correctly
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2017-01-12 11:53:19 +01:00
Dietmar Maurer
26dccfdb49 perftest2.pl: use -k (keepalive) to show max performance 2016-12-28 12:06:27 +01:00
Dietmar Maurer
90655f29b5 remove PVE::API2Client class and related examples
We now have all API client code in an extra package:

https://git.proxmox.com/?p=pve-apiclient.git;a=summary
2016-12-28 11:45:47 +01:00
Dietmar Maurer
90d226ab5d code cleanup 2016-12-28 11:34:01 +01:00
Dietmar Maurer
cf41f67abf rename pve.conf to ceph-after-pve-cluster.conf 2016-12-22 11:47:13 +01:00
Wolfgang Link
b8fb9fb028 add systemd replacement for ceph init script
the old sys V init script does a lot of stuff, most of which
is already replaced with the system units since jewel,
except for the OSD activation which is still done by either
udev or the old init script.

include systemd service as drop in replacement for the init
script when using jewel. the service is not enabled by
default (as this would break hammer), but needs to be copied
to /etc/systemd/system on upgrade to (manual) or install of
jewel (automatic).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2016-12-22 11:42:32 +01:00
Dominik Csapak
8d365d994f fix #1212: allow options for delete in pvesh
we did not allow to use parameters in the delete handler in pvesh,
but we make use of them (e.g. force on snapshot deleting)

as the get/set and delete handler do the same, refactor the if/else
paths of them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-11-25 15:24:22 +01:00
Fabian Grünbichler
e6e4c4576d add sheepdog and gluster to pveproxy.service
this ensures proper ordering for starting on boot and
stopping on shutdown.
2016-11-15 12:10:14 +01:00
Dietmar Maurer
780fbb4b2a pvestatd: log warnings to syslog 2016-10-26 15:58:23 +02:00
Thomas Lamprecht
8f46103543 Makefile: fix distclean target
As some Makefiles in sub directories do not implement the distclean
target, namely:
PVE/Service/Makefile
PVE/CLI/Makefile

This target is broken.

As all other implementations just redirect to the 'clean' target I
do not implement the missing ones but rather remove all such
targets. Keep it just in the top level directory, for consistence
sake with other pve repos, and redirect it there directly to the
clean target.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-09-28 08:21:48 +02:00
Dominik Csapak
613ac9486b don't save password and double lines in pvesh history
we assumed that Term::ReadLine does not put
input into the history automatically, but it does this

so if this feature is enabled, we do not have to add
the inputs manually, and we have to delete the password
from the history

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-08-03 12:23:01 +02:00
Dietmar Maurer
567a0d892c use pve-doc-generator, bump version to 4.1-25 2016-04-10 15:54:35 +02:00
Dietmar Maurer
05c82ad5c3 remove old openvz make targets 2016-04-10 14:49:37 +02:00
Fabian Grünbichler
7141ae254a Use methods from PVE::QemuConfig
use config_file and load_config from PVE::QemuConfig
2016-03-08 11:53:33 +01:00
Wolfgang Link
108b722948 refactor pveam to use it with our CLI Handler. 2016-02-26 11:34:52 +01:00
Wolfgang Link
c8969ecb19 fix initlog name 2016-02-26 11:30:17 +01:00
Dietmar Maurer
194076348f pveupdate: use warnings instead of -w 2016-02-12 10:42:23 +01:00
Dietmar Maurer
623c4a1079 pveproxy.service: start after remote-fs and ceph 2016-01-22 11:24:20 +01:00
Dietmar Maurer
dd903b5fe5 pve-manager.service: start after pve-ha-crm.service and pve-ha-lrm.service
To priorize HA VMs.
2016-01-22 11:24:19 +01:00
Dietmar Maurer
ef6260a659 pve-manager.service: start after spiceproxy 2016-01-22 11:24:18 +01:00
Dietmar Maurer
df17e52e39 pveproxy.service: add Wants=ssh.service
and make sure sshd is running while pveproxy is active
2016-01-22 11:24:18 +01:00
Dietmar Maurer
1767881b4a pve-manager.service: do not invoke old init.d script
redirect stdout/stderr to null, because we already log to pve task log.
2016-01-22 11:24:18 +01:00
Dietmar Maurer
1d9f1e8dbc pvesh: use PVE::SafeSyslog 2016-01-22 11:24:17 +01:00
Dietmar Maurer
ae8b09bdf6 pvestatd: use 'priv' environment for service 2016-01-22 11:24:17 +01:00
Dietmar Maurer
69174606e4 remove unused var 2016-01-22 11:24:16 +01:00
Dietmar Maurer
e78e0cd733 pvedaemon.service: Wants=corosync.service to fix shutdown order
To make sure /etc/pve/ is functional while pvedaemon is running.
2016-01-22 11:24:16 +01:00
Dietmar Maurer
02a1322de4 pve-manager.service: add dependencies to fix shutdown order 2016-01-22 11:24:15 +01:00
Emmanuel Kasper
2f7faeed28 Move pvereport functionality into a separate PVE package 2015-11-03 18:10:22 +01:00
Emmanuel Kasper
f0afcf35fe Pretty format the output of multiple files in a directory
Also, don't "cat" non existing files
2015-10-30 07:11:36 +01:00
Wolfgang Link
ceebc5fc7c add bios report to pvereport 2015-10-28 11:51:25 +01:00
Alexandre Derumier
fc049c7e4f pve-manager service : start after open-iscsi
Currently,if we have vms on lvm on top of iscsi,

pve-manager service start them too early at host boot,
before open-iscsi daemon, and vm don't start.

Reported-by: Philippe Guy <ph.guy@decidem.fr>
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2015-10-28 09:24:33 +01:00
Emmanuel Kasper
e03a790042 Add new pvereport command 2015-10-27 07:31:57 +01:00
Dietmar Maurer
092fa1b0de cleanup: use new run_cli_handler() method 2015-10-02 11:28:01 +02:00
Emmanuel Kasper
f6b62dd260 pvesh man page 2015-09-10 12:22:09 +02:00