Commit Graph

301 Commits

Author SHA1 Message Date
Caspar Smit
d6c493923a Fixed a small typo
Signed-off-by: Caspar Smit <casparsmit@supernas.eu>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-03-31 10:56:49 +02:00
Caspar Smit
92c11ee1ca Allow migrate-all button on HA enabled VMs
Signed-off-by: Caspar Smit <casparsmit@supernas.eu>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-03-31 10:56:22 +02:00
Caspar Smit
6677f6402e Skip templates when using the start all VMs button
Refactored and now using PVE::QemuConfig and PVE::LXC::Config
Moved the next if.. statements into the corresponding branches

Signed-off-by: Caspar Smit <casparsmit@supernas.eu>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-03-31 10:51:11 +02:00
Caspar Smit
17e3b3b27f Allow non-root to use start/stop/migrate all buttons
Signed-off-by: Caspar Smit <casparsmit@supernas.eu>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-03-31 10:50:34 +02:00
Fabian Grünbichler
bbcfdc08cc use PVE::Storage::config(), not cfs_read_file() 2016-03-30 10:35:58 +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
Fabian Grünbichler
e93408d600 LXC refactoring
call load_config in PVE::LXC::Config instead of PVE::LXC
2016-03-03 10:44:02 +01:00
Thomas Lamprecht
01b753b6b1 syslog: allow since/until parameters
allow the since/until parameters which journalctl understands
We use a really simple regex to check a valit date (time) stamp.

This can be done as this API call gets mainly used by the GUI where
we have full controll over what we send and additional journalctl
has already a good timestamp parser which can handle that.
2016-03-02 06:24:55 +01:00
Dietmar Maurer
05b252dc5c PVE::API2::Nodes::Nodeinfo: import raise_param_exc 2016-03-01 09:22:39 +01:00
Wolfgang Link
82282acf4f add pveam download
With this function you can download templates from the repositories.
2016-02-26 11:37:11 +01:00
Dietmar Maurer
f494187fb6 do not use Net::SSL
seems IO::Socket::SSL can now connect to proxy
2016-02-26 11:29:00 +01:00
Thomas Lamprecht
90c75580b6 add permissions to allow non root ceph configuration
Do not only allow root@pam to admin ceph server as some user do not
want to allow root logins and users with the Sys.Modify permission
should be able to modify ceph related stuff.

We use basically the following permissions:
 Sys.Modify:
    for any delete, add, modify action (POST, PUT, DELETE)
 Sys.Audit and Datastore.Audit:
    for any status/information view action (GET)
 Sys.Log:
    for viewing the Ceph log (was already implemented)

We have two exceptions creating and destroying osds. Those may only
be done by 'root@pam' for security reasons.

Also show users with any of those capabilities the ceph tab in the
web GUI.

Addresses bug#818
2016-02-12 08:22:16 +01:00
Thomas Lamprecht
89ceb8026a use max_workers from datacenter.cfg for stopall/migrateall
If set limit the maximal worker count to the new datacenter.cfg
setting 'max_workers'.

For stopall we prefer this over the cpu count if it's set.

For migrateall we prefer the parameter but allow now to ommit
the parameter and then we use the new setting if set.
if both are not set we throw an error.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-02-11 11:13:55 +01:00
Thomas Lamprecht
10a9a736ed fix PVE::HA use clause so HA resources get registered
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-01-27 17:11:21 +01:00
Wolfgang Bumiller
675946f221 fix #871: netstat: include veth devices
Include container's veth devices in /nodes/{node}/netstat
2016-01-25 10:59:48 +01:00
Wolfgang Bumiller
28b699bc7b fix bug #821: add systemd-timesyncd to service list. 2016-01-22 11:24:21 +01:00
Dietmar Maurer
37bec89547 improve log messages at sytem shutdown 2016-01-22 11:24:17 +01:00
Alexandre Derumier
fc78c972ef ceph.conf : remove auth_supported
It's not used since ceph 0.50,
replaced by the 3 others auth config options

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2016-01-22 11:24:15 +01:00
Thomas Lamprecht
efedd8c36f make startall wait up to 60 seconds for quorum
Previously we waited 10 seconds, in PVE 4 system sometimes need more
time to initialize all services so the didn't execute the startall
command even if a few seconds later cfs quorum was etablished.
This is a background process started from the pve-manager init
script, thus waiting doesn't interferes with other processes, so
wait long enough.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-11-10 07:48:20 +01:00
Emmanuel Kasper
6bbdf981d1 Use protected mode to be able to execute root system commands
Signed-off-by: Emmanuel Kasper <e.kasper@proxmox.com>
2015-11-06 10:06:11 +01:00
Dietmar Maurer
cdb5a20942 report: change return type to string 2015-11-03 18:14:51 +01:00
Emmanuel Kasper
34ada77a13 Add REST endpoint for /report call 2015-11-03 18:10:44 +01:00
Thomas Lamprecht
3625a09137 Fix check if vm is ha managed in get_start_stop_list
The check used was completely wrong and so the startall and stopall
API calls touched HA managed service, which they shouldn't.

Using the vm_is_ha_managed call from the HA stack fixes that.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-10-20 09:50:00 +02:00
Thomas Lamprecht
04b2004b36 fix lxc config key in get_start_stop_list sub
When adding the new LXC config format we forgot to adapt the
get_start_stop_list and do s/pve.startup/onboot/

This fixes that qemu VMs were started always before LXC CTs,
irregardless of the defined order.

This also let's us simplify the surrounding code and reduce code
reuse.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-10-20 09:46:16 +02:00
Wolfgang Bumiller
7a9486a7e1 DNS ui/api: ipv6 support 2015-10-05 12:33:42 +02:00
Alexandre Derumier
3f0d1a4bfd NetworkEdit : add support for vlan interfaces.
Edit only for now, create will come soon in another patch

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2015-09-25 07:06:48 +02:00
Alexandre Derumier
a1604d7046 add bridge vlan aware checkbox
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2015-09-16 11:02:43 +02:00
Wolfgang Link
6f9ea1c199 fix output percent_used in rbd pools
This fix is essential of cause json field changes in the ceph api.
They change the field size in pool to max_avail
and the field total_size in stats to total_max_avail
2015-09-09 06:41:54 +02:00
Emmanuel Kasper
eb5d01365b Rename onboot and startup parameters to follow vm.conf synthax
This fixes the problem of containers not autostarting with onboot=1
2015-09-08 11:13:32 +02:00
Dietmar Maurer
b38516ebec add use clause for PVE::API2::LXC::Status 2015-09-07 11:01:03 +02:00
Emmanuel Kasper
1b5e56f283 Fix package path to startup and shutdown subroutines 2015-09-07 10:58:12 +02:00
Wolfgang Link
67469842a0 complete optional packet list for pveversion 2015-08-25 09:39:14 +02:00
Wolfgang Bumiller
957a59b308 Ceph: fix old interfaces access in find_node_ip
Fixes #681
2015-08-12 09:43:03 +02:00
Dietmar Maurer
eafe236e8a pveversion: add criu package 2015-08-10 09:55:00 +02:00
Wolfgang Link
241c6f94c5 Add extra optional list to pveversion
if the packet on the opt list is not installed, it will not shown.
2015-08-10 09:53:18 +02:00
Wolfgang Bumiller
5301228562 fix a remote_node_ip calling context
Using remote_node_ip to build a hash needs to explicitly
request a scalar context.
2015-07-30 08:58:04 +02:00
Thomas Lamprecht
c2dbc5e32d fix bug #662: wrong subroutine for parsing startup order
Changed from old, now missing, subroutine parse_startup() to new
pve_parse_startup_order()

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-07-28 09:31:09 +02:00
Thomas Lamprecht
4341db1d2f Added functionality do disable temporary a backup job
Added an option to disable a backup job while preserving its
settings. When a job is disabled a '#' is added in front of the vzdump
command in the vzdump.cron file. So the cron job still fires,
but only a comment gets executed. If we would comment out the cron job
a bit more changes to the parser would be needed.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-07-27 09:15:09 +02:00
Alen Grizonic
d6ca60267f lxc added to read_pool
Signed-off-by: Alen Grizonic <a.grizonic@proxmox.com>
2015-07-22 13:30:23 +02:00
Dietmar Maurer
761a2b311c allow to download templates with type lxc 2015-07-02 11:25:08 +02:00
Dietmar Maurer
502a69ef9e fix bug #648: forward call to correct node 2015-06-30 07:04:25 +02:00
Wolfgang Bumiller
3ed15e6c11 PVE::API2::Network: network_interfaces update + ipv6 2015-06-26 08:54:17 +02:00
Wolfgang Bumiller
905c2f5176 PVE::API2::Ceph: network_interfaces update + ipv6 2015-06-26 08:53:09 +02:00
Dietmar Maurer
c9ea843b1b pveversion: also remove clvm 2015-06-19 12:40:18 +02:00
Dietmar Maurer
21ccef4fb4 pveversion: also list lxcfs and cgmanager 2015-06-19 12:31:09 +02:00
Dietmar Maurer
97f6e02926 pveversion: fix package list for pve 4.0 2015-06-19 12:24:58 +02:00
Dietmar Maurer
04fb6e38e5 GUI: add ksmtuned service 2015-06-11 09:29:27 +02:00
Dietmar Maurer
317146196c API change: remove bootlog API, use new dump_journal helper for syslog
The systemd journal contains boot log entries.
2015-06-09 12:18:30 +02:00
Dietmar Maurer
50d4dc1749 implement service API using systemctl 2015-06-05 15:32:14 +02:00
Dietmar Maurer
74e3975e12 remove UBC GUI 2015-06-02 11:53:19 +02:00