[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13577742#comment-13577742
 ] 

ASF subversion and git services commented on CLOUDSTACK-710:
------------------------------------------------------------

Commit 0f317567d2f3fe7767a6bb05cc6cac725a0eee37 in branch refs/heads/4.1 from 
[~bhaisaab]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;h=0f31756 ]

CLOUDSTACK-710: CitrixResourceBase, if dest dir is not found, mkdir -m 700 -p

This is a security failsafe, so even if destination does not exist we mkdir the 
path
with 0700 permission. If path exists mkdir -m 700 -p won't do anything.

Signed-off-by: Rohit Yadav <bhais...@apache.org>
(cherry picked from commit 3a0c99b0a430b12a492f2b93dec8d110603b43b4)

Signed-off-by: Rohit Yadav <bhais...@apache.org>

                
> Host addition fails if /root/.ssh does not exist
> ------------------------------------------------
>
>                 Key: CLOUDSTACK-710
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-710
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Management Server
>    Affects Versions: 4.0.0
>         Environment: Ubuntu 12.04.1 + xen-hypervisor 4.1.2-2ubuntu2
> cloud-client   1:4.0.0 Ubuntu Pkg
>            Reporter: Shanker Balan
>            Assignee: Rohit Yadav
>            Priority: Trivial
>
> While adding a new Xen host to my test cloudstack 4.0 setup, I ran into this 
> failure:
> 2012-12-26 14:19:13,483 DEBUG [xen.resource.CitrixResourceBase] 
> (DirectAgent-1:null) Copying 
> /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../systemvm/id_rsa.cloud
>  to /root/.ssh on 192.168.55.42 with permission 0600
> 2012-12-26 14:19:13,497 WARN  [agent.manager.DirectAgentAttache] 
> (DirectAgent-1:null) Seq 1-2072969217: Exception Caught while executing 
> command
> It is easily fixed with a mkdir /root/.ssh && chmod 700 /root/.ssh/.

--
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

Reply via email to