Commit Graph

2735 Commits

Author SHA1 Message Date
Dominik Csapak
93cdb62689 add type column to storage content view
and move the grouping feature in the class definition while changing
the text to a generic one

this allows us to group by all columns and still have meaningful
grouping headers

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-10 15:42:12 +01:00
Dominik Csapak
7c3a011345 remove unnecessary emptyText
we already set it statically

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-10 15:39:15 +01:00
Dominik Csapak
f3f73cde3b check general health for ceph monitors, not only time
we did not check the healthservices array for the monitor widget,
this patch does that, and takes the worst health state

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-10 13:03:04 +01:00
Dominik Csapak
bd8950b0ea fix #1247: disregard timecheck for one monitor
if we only have one monitor, set the timecheck to HEALTH_OK
(since we get none)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-10 13:02:17 +01:00
Dominik Csapak
a49cdceebb fix jslint errors
since the value at the top is now directly a string,
we need the jslint confusion at the number and not for the
string at the bottom anymore

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-10 12:14:26 +01:00
Dominik Csapak
49e1990583 fix gettext strings
we expect a gettext on a single line and to not contain any
variable/logic, so we remove the long text from it altogether (since we
do not want to translate that at the moment), and we rearrange the code
so that gettext only contains strings

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-10 12:14:12 +01:00
Dominik Csapak
8f3600b629 disable submit button in migrate window when not valid
when the form is not valid (e.g. an offline or no host selected),
disable the submit button

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-10 08:21:30 +01:00
Dominik Csapak
eb882c6f04 show only relevant vms in bulk action window
this adds a default filter for bulk start and stop, so that only the
relevant vms are visible (stopped and started respectively)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-10 08:18:35 +01:00
Dominik Csapak
3373911503 make filtered columns in grid more prominent
this makes the column header not only italic but also bold, so that one
can more easily see that the column is filtered

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-10 08:14:41 +01:00
Emmanuel Kasper
e83e60bfa1 Reload the grid list of backups after the backup task completion
This allows visual feedback for first time users doing a backup.
2017-01-05 16:17:32 +01:00
Dominik Csapak
6a4edbd195 change Start/Stop/Migrate all to Bulk actions
this uses the new vmselector and the new vmid filter in the backend
to allow starting/stopping/migrating selected vms instead of all

by default all vms are selected to have the same default behaviour

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-05 15:59:44 +01:00
Dominik Csapak
42aff48802 add vmselector form field
this is a form field which is a grid for selecting vms

if nodename is given, it will filter the vms only to the given node

you can filter the grid with the column header, and only the selected
and visible items are in the value of the field

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-05 15:58:41 +01:00
Dominik Csapak
6ae2ec8126 add BulkAction window class
this is mostly copied from MigrateAll.js, but a more generic way,
to allow startall and stopall to also use it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-05 15:57:11 +01:00
Dominik Csapak
2a498506e0 add vmid filter to (start/stop/migrate)all
this is a simple filter which allows us to limit the actions to specific
vmids

this makes it much simpler to start/stop/migrate a range of vms

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-05 15:55:59 +01:00
Thomas Lamprecht
3e52f2ed01 ha: re-add node to service status
On the old HA status we saw where a service was located currently,
this information was lost when we merged the resource and the status
tab.
Add this information again.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-01-05 15:52:23 +01:00
Dominik Csapak
b625c828b7 remove not needed vnc code
since we access novnc always with the NoVncIndex.pm and never in extjs
itself, we can delete this code

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-01-04 10:50:38 +01:00
Dietmar Maurer
d88e0b4fc7 remove vznet.conf
leftover from openvz - not used anymore...
2017-01-04 10:43:15 +01:00
Emmanuel Kasper
6d1e586c3e Reload the Ceph OSDTree afer adding an OSD 2017-01-03 18:19:50 +01:00
Emmanuel Kasper
42edc4df77 Hide the Edit window when we start a background task
We closed the Edit window too early, so listeners set to
the 'close' event would reload the underlying grid before the action
successfully completed on the server side.
2017-01-03 18:19:25 +01:00
Fabian Grünbichler
4e31f56f0f fix #1230: add blocksize for ZFSPoolPlugin
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-01-03 12:56:33 +01:00
Dietmar Maurer
ff79a11669 Clone.js: add onlineHelp 2017-01-03 12:30:48 +01:00
Emmanuel Kasper
0a4651f09d HA: Add a warning/info message for HA setups < 3 votes fix: #1228 2017-01-03 11:10:06 +01:00
Emmanuel Kasper
8dfd00cd09 Fix a race conditon provoking the error no such file '/pve-storage-content'
(NB: the error was only displayed intermittently in the browser console)

The reload call could try a store reload before the store has
a defined url.
The call here is useless since the initial display of
the storage selector compoment will call setStorage() to pass an url
to the store and load it.

Also remove the test on me.store.proxy.url since it was not working
(ExtJS autodefined an URL based on the model name)
2017-01-03 11:00:19 +01:00
Emmanuel Kasper
b0a94fee7a Replace nested ternary operators with if/else statements 2017-01-03 10:19:25 +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
96bcc111fb bump version to 4.4-5 2016-12-27 11:29:45 +01:00
Dietmar Maurer
9cf2e84b93 add unpriviledged flag to container restore window. 2016-12-27 10:19:57 +01:00
Dietmar Maurer
a2cb8e52b4 bump version to 4.4 2016-12-22 12:28:28 +01:00
Wolfgang Link
ef3d095b55 Change remove partition order.
If we remove first the journal the data partition will automatically mounted
and can't destroy the partition.
This is trigger by the udev ceph rule.
2016-12-22 12:26:10 +01:00
Wolfgang Link
84aed461aa Fix parsing block device.
Get the partition num and block device from sysfs.
This ensure different block device types will work.
2016-12-22 12:25:45 +01:00
Dietmar Maurer
e754ce4644 bump version to 4.4-3 2016-12-22 12:02:41 +01:00
Wolfgang Link
19bada0c96 Enable service for ceph monitor.
We do not use the ceph.service what normally start ceph-mon,
so we have to ensure ceph-mon is enabled.
2016-12-22 11:57:50 +01:00
Fabian Grünbichler
ab1213cc50 replace SysV init script with our own service
for more information see http://tracker.ceph.com/issues/18305 .

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2016-12-22 11:53:52 +01:00
Wolfgang Link
3279b1d2d4 Set correct permission for ceph user.
We have to set the correct permission,
because ceph greater than infernalis use ceph as daemon user.
2016-12-22 11:51:19 +01:00
Wolfgang Link
f9305cc0a1 add jewel 2016-12-22 11:48:12 +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
d43f704212 do not hide ceph on dashboard if the api call fails
with this patch, we do not hide the ceph status anymore if the api call
fails (too slow, e.g.) as long as we showed it at least one time

also, we only stop the updates if we never successfully got the status

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-12-22 10:15:37 +01:00
Dominik Csapak
0d1c12678b add filter to dashboard storage graph
with this patch, the storage graph on the dashboard only counts the
storages which are selected in the settings window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-12-22 10:11:41 +01:00
Dominik Csapak
2488c226f1 add a storage selection in the settings window
this will be used to filter the dashboard storage graph to the selected
storages, so that one can choose which storages are relevant

e.g. if you have one nfs server with multiple exports (on the same filesystem),
you only want to count it once

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-12-22 10:11:13 +01:00
Dominik Csapak
4501139482 load the diffstore on init
if the rstore in the diffstore is already loaded at the time of
the instantiation, load the data instantly

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-12-22 09:44:24 +01:00
Dominik Csapak
45998f0d69 add an alias to the diffstore
to use it declarative like this:

store : {
    type: 'diff'
}

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-12-22 09:43:16 +01:00
Dietmar Maurer
673c70ffd1 bump version to 4.4-2 2016-12-21 12:27:01 +01:00
Dietmar Maurer
cbce367ddb rebalance_lxc_containers: make it work with old style lxc setups 2016-12-21 12:20:40 +01:00
Dietmar Maurer
b3f1adb200 rebalance_lxc_containers: avoid repeated warnings if rebalance fails
Only warn once.
2016-12-21 11:39:46 +01:00
Dietmar Maurer
0b959507c1 rebalance_lxc_containers: fix hotplug
factor out code to modify cpusets into $modify_cpuset->()
2016-12-21 11:13:16 +01:00
Dietmar Maurer
193146f8b0 rebalance_lxc_containers: make it work with new lxc/<ID>/ns subgroup 2016-12-21 11:04:33 +01:00
Dominik Csapak
7c4ef25f55 remove debug log statement
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-12-19 12:17:06 +01:00