[
https://issues.apache.org/jira/browse/CLOUDSTACK-8339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14557828#comment-14557828
]
ASF GitHub Bot commented on CLOUDSTACK-8339:
--------------------------------------------
Github user rsafonseca commented on the pull request:
https://github.com/apache/cloudstack/pull/288#issuecomment-105056903
Hi @remibergsma
If you're running into the no tty issue, that will likely happen also for
the other commands the management server tries to run.
I'm using this file in /etc/sudoers.d in all environments:
{code}
Cmnd_Alias CLOUDSTACK = /bin/mkdir, /bin/mount, /bin/umount, /bin/cp,
/bin/chmod, /usr/bin/keytool, /bin/keytool
Defaults:cloud !requiretty
cloud ALL=(root) NOPASSWD:CLOUDSTACK
{code}
I believe this is the best way to resolve it for all distros/configs, as
long as we depend on sudo
> Allow non-root credentials for adding KVM hypervisor
> ----------------------------------------------------
>
> Key: CLOUDSTACK-8339
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8339
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: KVM
> Affects Versions: 4.5.0
> Reporter: Marcus Sorensen
> Assignee: Marcus Sorensen
> Fix For: 4.6.0
>
>
> Users prefer to not provide root ssh just to run the hypervisor add from the
> UI. Testing a fix.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)