You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "Chandan Purushothama (JIRA)" <ji...@apache.org> on 2012/10/14 05:36:02 UTC
[jira] [Created] (CLOUDSTACK-342) Unable to add Ubuntu KVM Host -
Information on mgmt log mentions Cloud-setup-agent needs to be executed
with root permissions
Chandan Purushothama created CLOUDSTACK-342:
-----------------------------------------------
Summary: Unable to add Ubuntu KVM Host - Information on mgmt log mentions Cloud-setup-agent needs to be executed with root permissions
Key: CLOUDSTACK-342
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-342
Project: CloudStack
Issue Type: Bug
Components: Management Server
Affects Versions: pre-4.0.0
Reporter: Chandan Purushothama
Fix For: pre-4.0.0
I tried to add a Ubuntu 12.04 KVM Host to the CloudStack Setup with the login credentials of the User "asf":
User "asf" has the following sudo-access privileges on the Ubuntu KVM host:
asf@Rack3Host17:/opt/cloud$ sudo -l
[sudo] password for asf:
Matching Defaults entries for asf on this host:
env_reset, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin
User asf may run the following commands on this host:
(ALL : ALL) ALL
asf@Rack3Host17:/opt/cloud$
Management Server Log shows that cloud-setup-agent requires root permission for execution
2012-10-13 20:12:43,193 INFO [cloud.resource.ResourceManagerImpl] (catalina-exec-7:null) Trying to add a new host at http://10.223.59.2 in data center 1
2012-10-13 20:12:43,318 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-7:null) Executing cmd: lsmod|grep kvm
2012-10-13 20:12:44,617 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-7:null) lsmod|grep kvm output:kvm_intel 137721 0
kvm 415549 1 kvm_intel
2012-10-13 20:12:45,629 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-7:null) Executing cmd: cloud-setup-agent -m 10.223.58.66 -z 1 -p 1 -c 2 -g 6ec9661e-6a5e-3bf0-bcba-bb602fa5e9f4 -a --pubNic=asfbr0 --prvNic=asfbr0 --guestNic=asfbr0
2012-10-13 20:12:46,772 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-7:null) cloud-setup-agent -m 10.223.58.66 -z 1 -p 1 -c 2 -g 6ec9661e-6a5e-3bf0-bcba-bb602fa5e9f4 -a --pubNic=asfbr0 --prvNic=asfbr0 --guestNic=asfbr0 output:Starting to configure your system:
Need to execute with root permission
Kindly let me know if i missed any steps to be performed
========
Build Info:
========
This is the version information for the manifests in the JAR files.
Implementation_Version: 2.2.20121012230921
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (CLOUDSTACK-342) Unable to add Ubuntu KVM Host -
Information on mgmt log mentions Cloud-setup-agent needs to be executed
with root permissions
Posted by "edison su (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
edison su closed CLOUDSTACK-342.
--------------------------------
Resolution: Fixed
> Unable to add Ubuntu KVM Host - Information on mgmt log mentions Cloud-setup-agent needs to be executed with root permissions
> -----------------------------------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-342
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-342
> Project: CloudStack
> Issue Type: Bug
> Components: Management Server
> Affects Versions: pre-4.0.0
> Reporter: Chandan Purushothama
> Fix For: pre-4.0.0
>
>
> I tried to add a Ubuntu 12.04 KVM Host to the CloudStack Setup with the login credentials of the User "asf":
> User "asf" has the following sudo-access privileges on the Ubuntu KVM host:
>
> asf@Rack3Host17:/opt/cloud$ sudo -l
> [sudo] password for asf:
> Matching Defaults entries for asf on this host:
> env_reset, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin
> User asf may run the following commands on this host:
> (ALL : ALL) ALL
> asf@Rack3Host17:/opt/cloud$
> Management Server Log shows that cloud-setup-agent requires root permission for execution
> 2012-10-13 20:12:43,193 INFO [cloud.resource.ResourceManagerImpl] (catalina-exec-7:null) Trying to add a new host at http://10.223.59.2 in data center 1
> 2012-10-13 20:12:43,318 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-7:null) Executing cmd: lsmod|grep kvm
> 2012-10-13 20:12:44,617 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-7:null) lsmod|grep kvm output:kvm_intel 137721 0
> kvm 415549 1 kvm_intel
> 2012-10-13 20:12:45,629 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-7:null) Executing cmd: cloud-setup-agent -m 10.223.58.66 -z 1 -p 1 -c 2 -g 6ec9661e-6a5e-3bf0-bcba-bb602fa5e9f4 -a --pubNic=asfbr0 --prvNic=asfbr0 --guestNic=asfbr0
> 2012-10-13 20:12:46,772 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-7:null) cloud-setup-agent -m 10.223.58.66 -z 1 -p 1 -c 2 -g 6ec9661e-6a5e-3bf0-bcba-bb602fa5e9f4 -a --pubNic=asfbr0 --prvNic=asfbr0 --guestNic=asfbr0 output:Starting to configure your system:
> Need to execute with root permission
> Kindly let me know if i missed any steps to be performed
> ========
> Build Info:
> ========
> This is the version information for the manifests in the JAR files.
> Implementation_Version: 2.2.20121012230921
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CLOUDSTACK-342) Unable to add Ubuntu KVM Host -
Information on mgmt log mentions Cloud-setup-agent needs to be executed
with root permissions
Posted by "edison su (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13475771#comment-13475771 ]
edison su commented on CLOUDSTACK-342:
--------------------------------------
Use "root" instead of normal user.
There is another enhancement filed by David, to allow adding host with normal user.
> Unable to add Ubuntu KVM Host - Information on mgmt log mentions Cloud-setup-agent needs to be executed with root permissions
> -----------------------------------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-342
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-342
> Project: CloudStack
> Issue Type: Bug
> Components: Management Server
> Affects Versions: pre-4.0.0
> Reporter: Chandan Purushothama
> Fix For: pre-4.0.0
>
>
> I tried to add a Ubuntu 12.04 KVM Host to the CloudStack Setup with the login credentials of the User "asf":
> User "asf" has the following sudo-access privileges on the Ubuntu KVM host:
>
> asf@Rack3Host17:/opt/cloud$ sudo -l
> [sudo] password for asf:
> Matching Defaults entries for asf on this host:
> env_reset, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin
> User asf may run the following commands on this host:
> (ALL : ALL) ALL
> asf@Rack3Host17:/opt/cloud$
> Management Server Log shows that cloud-setup-agent requires root permission for execution
> 2012-10-13 20:12:43,193 INFO [cloud.resource.ResourceManagerImpl] (catalina-exec-7:null) Trying to add a new host at http://10.223.59.2 in data center 1
> 2012-10-13 20:12:43,318 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-7:null) Executing cmd: lsmod|grep kvm
> 2012-10-13 20:12:44,617 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-7:null) lsmod|grep kvm output:kvm_intel 137721 0
> kvm 415549 1 kvm_intel
> 2012-10-13 20:12:45,629 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-7:null) Executing cmd: cloud-setup-agent -m 10.223.58.66 -z 1 -p 1 -c 2 -g 6ec9661e-6a5e-3bf0-bcba-bb602fa5e9f4 -a --pubNic=asfbr0 --prvNic=asfbr0 --guestNic=asfbr0
> 2012-10-13 20:12:46,772 DEBUG [utils.ssh.SSHCmdHelper] (catalina-exec-7:null) cloud-setup-agent -m 10.223.58.66 -z 1 -p 1 -c 2 -g 6ec9661e-6a5e-3bf0-bcba-bb602fa5e9f4 -a --pubNic=asfbr0 --prvNic=asfbr0 --guestNic=asfbr0 output:Starting to configure your system:
> Need to execute with root permission
> Kindly let me know if i missed any steps to be performed
> ========
> Build Info:
> ========
> This is the version information for the manifests in the JAR files.
> Implementation_Version: 2.2.20121012230921
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira