Proxmox only root user works
-
Hi, what I'm doing wrong when I'm unable to connect proxmox on another user then root. On root everything works fine but when I created anoter user for Storware I have below exception on inventory sync. I added /usr/sbin to Storware user profile PATH, when I'm using that user to connect with ssh brctl command is found but for some reason it's not working from Storware.
eu.storware.vprotect.engine.remote.ssh.exception.SshExecException: Failed to execute remote command: [LC_ALL=C brctl show], return code: 127, error: [bash: line 1: brctl: command not found ] at eu.storware.vprotect.engine.remote.ssh.connector.DefaultSshConnector.exec(DefaultSshConnector.java:318) ~[engine.jar:?] at eu.storware.vprotect.engine.remote.ssh.connector.DefaultSshConnector.exec(DefaultSshConnector.java:263) ~[engine.jar:?] at eu.storware.vprotect.engine.remote.ssh.connector.DefaultSshConnector.exec(DefaultSshConnector.java:248) ~[engine.jar:?] at eu.storware.vprotect.engine.hypervisor.proxmox.ProxmoxHypervisor.listNetworks(ProxmoxHypervisor.java:149) ~[engine.jar:?] at eu.storware.vprotect.engine.task.InventorySyncTask.lambda$getNetworks$14(InventorySyncTask.java:488) ~[engine.jar:?] at java.util.Optional.orElseGet(Optional.java:364) ~[?:?] at eu.storware.vprotect.engine.task.InventorySyncTask.getNetworks(InventorySyncTask.java:488) ~[engine.jar:?] at eu.storware.vprotect.engine.task.InventorySyncTask.syncAndUpdateProgress(InventorySyncTask.java:258) ~[engine.jar:?] at eu.storware.vprotect.engine.task.InventorySyncTask.lambda$updateProgress$1(InventorySyncTask.java:253) ~[engine.jar:?] at java.util.stream.ReduceOps$1ReducingSink.accept(ReduceOps.java:80) ~[?:?] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] at java.util.stream.ReferencePipeline.reduce(ReferencePipeline.java:667) ~[?:?] at eu.storware.vprotect.engine.task.InventorySyncTask.updateProgress(InventorySyncTask.java:253) ~[engine.jar:?] at eu.storware.vprotect.engine.task.InventorySyncTask.syncHypervisor(InventorySyncTask.java:200) ~[engine.jar:?] at eu.storware.vprotect.engine.task.InventorySyncTask.run(InventorySyncTask.java:107) [engine.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?] at java.lang.Thread.run(Thread.java:840) [?:?]
-
Hi, Proxmox usually requires the use of a root account (most of the command line tools are currently root only). Therefore, we also recommend using a root account to connect with Storware.
As a workaround, you can try to add this user to the sudo group, but we do not guarantee that all functions will work properly. Such a scenario was never tested and is not supported. -
thanks for response, so maybe it will be good to add that to documentation? also would be nice to add comment in UI where it's field for user, could be nice to have warning that only root is fully tested and with other users something could goes wrong.
-
Thank you for your suggestion. I will submit a request to update the documentation accordingly.