563 Commits

Author SHA1 Message Date
Emmanuel Kasper
62c41d5d38 requires manual entering VM id before enabling the delete Button for VMs
suggested by a user in https://bugzilla.proxmox.com/show_bug.cgi?id=360#c7
similar to the way github handles the deleting of a repository

fixes: #360
2016-03-21 10:45:49 +01:00
Dominik Csapak
08a1ee3f84 ext6migrate: add LvmThinEdit.js to html site
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-03-10 17:22:26 +01:00
Dietmar Maurer
d71272700e ext6migrate: use crisp theme instead of triton
This theme works without to many css changes.
2016-03-10 17:17:01 +01:00
Fabian Grünbichler
413bd520c8 Allow non-self-signed override certificate for API
if the files pveproxy-ssl.pem and pveproxy-ssl.key are
available for a node (i.e., in /etc/pve/<node>/), they will
be used as TLS certificate and private key for the web
interface and API of this node.

Note: the Spice and non-websocket VNC connections are still
using the self-signed certificate and key in pve-ssl.pem
and pve-ssl.key.
2016-03-09 14:37:55 +01:00
Fabian Grünbichler
65b2ff76cd Use methods from PVE::QemuConfig
use config_file and load_config from PVE::QemuConfig
2016-03-08 11:53:33 +01:00
Dietmar Maurer
9cde95b9c9 pveam: add 'available' command to list available templates 2016-03-05 15:35:40 +01:00
Wolfgang Bumiller
d6b8bffa3d vzdump: fix default values
Not all document default values matched their actual
default, fix this by not maintaining two separate lists of
default values.

Note that this changes:
 - the default compression from none to the documented LZO
 - the documented default mode from stop to snapshot
2016-03-04 09:04:06 +01:00
Jean-Francois Dagenais
4edfa36bee vzdump: make sure only DOT pid files excluded
and not files like "acpid"

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
2016-03-04 09:02:29 +01:00
Wolfgang Bumiller
be909236a9 doc: The quotes around the glob are actually required... 2016-03-03 11:04:03 +01:00
Wolfgang Bumiller
54dd20acc9 doc: update vzdump stdexclude documentation 2016-03-03 11:00:11 +01:00
Wolfgang Bumiller
e34ccc1dde vzdump: revert /var/run stdexclude entry to its original
It used to be /var/run/.+pid when we used regular
expressions so now it should be /var/run/?*pid
2016-03-03 10:59:52 +01:00
Fabian Grünbichler
703da11fa7 LXC refactoring
call load_config in PVE::LXC::Config instead of PVE::LXC
2016-03-03 10:44:02 +01:00
Wolfgang Bumiller
251a439e4a vzdump: don't double exclude-paths from the config
The exclude list is built from both the command line
parameters and the config. If no excludes are passed on the
command line we previously copied the defaults to it,
effectively passing them twice.
2016-03-03 09:54:11 +01:00
Wolfgang Bumiller
783dd9886f vzdump: make exclude-path from config file work again
Call split_args() on the 'exclude-path' option read from
/etc/vzdump.conf

With the move to the generic JSONSchema::parse_config() in
commit 16145cba the call to split_args() for 'exclude-path'
was dropped breaking the 'exclude-path' option.
2016-03-03 09:51:05 +01:00
Wolfgang Bumiller
bba67bc117 doc: consistent vzdump --exclude-path documentation
The schema's documentation was already updated to reflect
the change from regular expressions to shell globs, but the
pod entry in CLI/vzdump.pm wasn't.

Also C<> is not interpreted in verbatim (space-prefixed)
lines so it showed up as literal text.
2016-03-03 09:46:41 +01:00
Thomas Lamprecht
1b4fad23d1 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
9c2b4ffd22 PVE::API2::Nodes::Nodeinfo: import raise_param_exc 2016-03-01 09:22:39 +01:00
Wolfgang Link
c9aaba9d5a add remove function to pveam
now it is possible to erase templates with pveam
2016-02-26 11:51:35 +01:00
Wolfgang Link
b6691b7034 add list to pveam
This function list all the templates off a specified storage.
It also gives the size of the template.
2016-02-26 11:39:25 +01:00
Wolfgang Link
e2b1fe71a4 add pveam download
With this function you can download templates from the repositories.
2016-02-26 11:37:11 +01:00
Dietmar Maurer
0f9ec66ebf remove debugging code 2016-02-26 11:36:48 +01:00
Wolfgang Link
9c5c9b623e refactor pveam to use it with our CLI Handler. 2016-02-26 11:34:52 +01:00
Wolfgang Link
d2b867735a change turnkey URL to https version to permit a redirection. 2016-02-26 11:30:06 +01:00
Dietmar Maurer
4e2e2d515f do not use Net::SSL
seems IO::Socket::SSL can now connect to proxy
2016-02-26 11:29:00 +01:00
Wolfgang Link
0b29c1e89b Fix problems with turnkey repository.
To prevent that one time Net:SSL and an outer time IO::Socket::SSL is loaded,
ensure that always use the same socket class.

We load the the Net:SSL in AccessControl.pm if we call pveupdate,
but if we call pveam update this module is not loaded an so the default is used (IO::Socket::SSL).
2016-02-18 06:34:41 +01:00
Emmanuel Kasper
8b03c01720 Fix warning in Browser console due to missing meta entry
We're not going to support mobile devices via the standard gui,
but ExtJS 6 themes need this
2016-02-17 11:58:16 +01:00
Thomas Lamprecht
8375727c79 ext6/triton: add some visual changes and fixes
They are mostly intended to save space as the "new theme", if it
gets applied, takes up space like it's worth pure gold.

Paddings get made smaller on buttons, tabs and grids.
Also let the main tree receive a sane space padding.

Further fix the height of the top info panel (the one with the logo,
PVE version, login button ...).

Also the "start/stop/more/..." buttons from the tool bar above the
navigation tab bar gets fixed.

Login panel got also some small fixes together with all input
fields.

We use simple CSS overrides to achieve this all.
Working with the scss (sass) files and rebuilding the theme would
be nicer, but as I have no intend to start working with senchas
"build system" and we self have no sane way for compiling the sass
stuff also, this is the preferred way for now.

We add a new css stylesheet so that the current manager remains
untouched by this changes.
2016-02-12 10:46:51 +01:00
Thomas Lamprecht
ad3c4730cb 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
Wolfgang Bumiller
2ef37c7b05 Close #822: show the nodename in the page title 2016-02-11 12:05:08 +01:00
Thomas Lamprecht
b18a710eaf 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
903108b61d 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
Fabian Grünbichler
d6f3df4562 Add DHPARAMS option in /etc/default/pveproxy
If set, Diffie-Hellman parameters in PEM format are loaded
from the given path. Otherwise, the built-in 'skip2048'
group is used.

Also fix some typos in the man page.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2016-01-26 16:44:17 +01:00
Fabian Grünbichler
8e0e6561c5 Enable TLS 1.1 and 1.2, change default DH params
AnyEvent uses a built-in DH group defined as 'schmorp1539'
by default, which seems to trigger the bug in [1] for every
attempt of accessing the web GUI using IE11 and TLS1.2. By
switching to a bigger default DH group ('skip2048'), the
bug seems to be gone (or trigger sufficiently rarely).

1: http://engineering.imvu.com/2015/01/27/the-case-of-the-page-cant-be-displayed-intermittent-selenium-test/
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2016-01-26 16:42:53 +01:00
Emmanuel Kasper
bcd1fd98cf When running with extjs=1, construct the includes lists based on manager6 dir content
This way, we don't have to manage manually the list files and let the FS do it.
For development purpose only.
2016-01-26 10:52:53 +01:00
Wolfgang Bumiller
ff13507669 fix #871: netstat: include veth devices
Include container's veth devices in /nodes/{node}/netstat
2016-01-25 10:59:48 +01:00
Dietmar Maurer
a723b00231 fix Makefiles (add 'all' target) 2016-01-22 11:24:26 +01:00
Wolfgang Bumiller
5f34e76b9b ceph: make config parser less greedy
Options such as:
  osd mount options xfs = -i size=2048 -n size=16k
were parsed as:
  key: 'osd mount options xfs = -i size=2048 -n size'
  value: '16k'

This is due to the greedy .* in the beginning. Making it
non-greedy fixes this.

Fixes #851
2016-01-22 11:24:25 +01:00
Wolfgang Bumiller
c9c6aeb46b APLInfo: support proxying http traffic
As requested in ticket #838, to support running `pveam
update` from within a proxied environment.

Closes #838
2016-01-22 11:24:23 +01:00
Wolfgang Bumiller
4d307b7af1 fix bug #821: add systemd-timesyncd to service list. 2016-01-22 11:24:21 +01:00
Alexandre Derumier
2ce302d0e5 influxdb : use multi values measurement
influxdb (> 0.9.5) now support fastly multiple values by mesuerement,
through a new column store engine.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2016-01-22 11:24:19 +01:00
Dietmar Maurer
92a8efa5f1 improve log messages at sytem shutdown 2016-01-22 11:24:17 +01:00
Alexandre Derumier
f3b2834841 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
Dietmar Maurer
4bb0f337e8 fix bug #575: fork at shutdown, so that partent starts new worker 2016-01-22 11:24:12 +01:00
Emmanuel Kasper
cad206bfa2 Switch to triton theme as default theme in ExtJS6 2016-01-22 11:24:12 +01:00
Emmanuel Kasper
85cd68aae5 Add mime type for woff2 fonts, also update mime type for ttf fonts
application/font-woff2 is still in discussion but works in main three browsers
This is needed for ExtJS6, which includes some woff2 fonts

ttf font mime type is taken from the official IANA assignment, and works as
well in main three browsers
2016-01-22 11:24:11 +01:00
Dietmar Maurer
84c992f741 remove old extJS5 files 2016-01-22 11:24:11 +01:00
Emmanuel Kasper
316e523568 update build infrastucture to be able to develop with Ext6 2015-11-13 07:08:04 +01:00
Thomas Lamprecht
5736ec9f76 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
867dc7f3c2 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
d2fcf44772 report: change return type to string 2015-11-03 18:14:51 +01:00