"an error has occurred" in home -> storage
-
Hi,
I have a selfcompiled version of XCP. I just upgraded it to b100a (latest git master, just did "git pull"), but this error still is there.The situation is the following. I have a user that has self-service rights, and I have three hosts and several storage systems.
When the user goes to the storage window, the user sees this:
This is the developers console. It seems like the action requires admin rights, which the normal user obviously doesn't have. It would be great to show something there anyways, if somehow possible, or to hide the storage tab if it's not possible, so the user never gets error messages.
This is what shows in the logs after calling the page as testuser:
This is the log content (they all are the same, only one as an example):
proxy.getAll {} { "code": 2, "data": { "permission": "admin", "object": {} }, "message": "not enough permissions", "name": "XoError", "stack": "XoError: not enough permissions at Module.unauthorized (/root/xen-orchestra-2/packages/xo-common/api-errors.js:26:11) at Xo.call (file:///root/xen-orchestra-2/packages/xo-server/src/xo-mixins/api.mjs:88:18) at Api.#callApiMethod (file:///root/xen-orchestra-2/packages/xo-server/src/xo-mixins/api.mjs:368:29)" }
Is there anything I can do to fix this? Or is it considered a bug?
-
Hi!
Can you reproduce it with XOA?
-
@olivierlambert I must admit that I am not entirely sure of how each component of XCP is named, and what differentiates Xen from XOA and so on.
The .git/config tells me it was pulled from https://github.com/vatesfr/xen-orchestra (in a VM on my XCP cluster).
What steps may I do to check what you requested me to check? I'd be glad to help, and sorry for the inconvience of me not knowing all the details of this great product.
-
XOA is the turnkey appliance you can deploy from there: https://xen-orchestra.com/#!/xoa (it's a Debian VM with Xen Orchestra pre-installed and pro support included)
You can import your config from your source version to XOA and use the trial to see if it works there
-
@olivierlambert Well, sadly, I cannot replicate it then, because my system is behind strict firewalls that do not allow contact to registration servers, and sadly, I cannot change that.
Nothing works on the XOA subpage because of that.
-
You can't login to our servers with your source version (from Git), you must download the virtual appliance.
If you can't access https://xen-orchestra.com internally, then, indeed, you won't be able to register it in the end.
But if you managed to clone it from Github, you have some access to outside