mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 05:45:00 +00:00
api: ceph: ensure calls get proxied to correct node
If calls aren't proxied to the selected node, which seems legit in some cases, this will cause some misleading errors while ceph is not installed on that node. Therefor the calls should now always get proxied. Signed-off-by: Tim Marx <t.marx@proxmox.com>
This commit is contained in:
parent
5c1c3a536c
commit
410f2cb0c6
@ -172,6 +172,7 @@ __PACKAGE__->register_method ({
|
|||||||
name => 'config',
|
name => 'config',
|
||||||
path => 'config',
|
path => 'config',
|
||||||
method => 'GET',
|
method => 'GET',
|
||||||
|
proxyto => 'node',
|
||||||
permissions => {
|
permissions => {
|
||||||
check => ['perm', '/', [ 'Sys.Audit', 'Datastore.Audit' ], any => 1],
|
check => ['perm', '/', [ 'Sys.Audit', 'Datastore.Audit' ], any => 1],
|
||||||
},
|
},
|
||||||
|
@ -19,6 +19,7 @@ __PACKAGE__->register_method ({
|
|||||||
name => 'index',
|
name => 'index',
|
||||||
path => '',
|
path => '',
|
||||||
method => 'GET',
|
method => 'GET',
|
||||||
|
proxyto => 'node',
|
||||||
description => "Directory index.",
|
description => "Directory index.",
|
||||||
permissions => {
|
permissions => {
|
||||||
check => ['perm', '/', [ 'Sys.Audit', 'Datastore.Audit' ], any => 1],
|
check => ['perm', '/', [ 'Sys.Audit', 'Datastore.Audit' ], any => 1],
|
||||||
|
@ -152,6 +152,10 @@ Ext.define('PVE.NodeCephFSPanel', {
|
|||||||
interval: 5 * 1000,
|
interval: 5 * 1000,
|
||||||
autoStart: true,
|
autoStart: true,
|
||||||
storeid: 'pve-ceph-fs',
|
storeid: 'pve-ceph-fs',
|
||||||
|
proxy: {
|
||||||
|
type: 'proxmox',
|
||||||
|
url: '/api2/json/nodes/' + view.nodename + '/ceph/fs'
|
||||||
|
},
|
||||||
model: 'pve-ceph-fs'
|
model: 'pve-ceph-fs'
|
||||||
});
|
});
|
||||||
view.setStore(Ext.create('Proxmox.data.DiffStore', {
|
view.setStore(Ext.create('Proxmox.data.DiffStore', {
|
||||||
@ -245,6 +249,10 @@ Ext.define('PVE.NodeCephFSPanel', {
|
|||||||
interval: 3 * 1000,
|
interval: 3 * 1000,
|
||||||
autoStart: true,
|
autoStart: true,
|
||||||
storeid: 'pve-ceph-mds',
|
storeid: 'pve-ceph-mds',
|
||||||
|
proxy: {
|
||||||
|
type: 'proxmox',
|
||||||
|
url: '/api2/json/nodes/'+ view.nodename +'/ceph/mds'
|
||||||
|
},
|
||||||
model: 'pve-ceph-mds'
|
model: 'pve-ceph-mds'
|
||||||
});
|
});
|
||||||
view.setStore(Ext.create('Proxmox.data.DiffStore', {
|
view.setStore(Ext.create('Proxmox.data.DiffStore', {
|
||||||
|
Loading…
Reference in New Issue
Block a user