sshClient: DEBUG: {Cmd: ssh -i /var/cloudstack/management/.ssh/id_rsa -ostricthostkeychecking=no -oUserKnownHostsFile=/dev/null -p 3922 10.0.38.18 /usr/local/cloud/systemvm/ssvm-check.sh |grep -e ERROR -e WARNING -e FAIL via Host: 10.0.35.224} {returns: ['Warning: Identity file /var/cloudstack/management/.ssh/id_rsa not accessible: No such file or directory.', "Warning: Permanently added '[10.0.38.18]:3922' (ECDSA) to the list of known hosts.", 'root@10.0.38.18: Permission denied (publickey).']}
on centos7 mgmt server, id_rsa is created in /var/cloudstack/management/.ssh/ (home of cloud user).
in marvin utils.py, it uses /var/cloudstack/management/.ssh/id_rsa to connect to VR
test_ssvm.py failed when mgmt server is ubuntu20 and hypervisor is vmware
http://sl-jenkins-master.sofia.shapeblue.com:8080/view/Trillian/job/Reference_Trillian/2428/ same issue
the error log show
sshClient: DEBUG: {Cmd: ssh -i /var/cloudstack/management/.ssh/id_rsa -ostricthostkeychecking=no -oUserKnownHostsFile=/dev/null -p 3922 10.0.38.18 /usr/local/cloud/systemvm/ssvm-check.sh |grep -e ERROR -e WARNING -e FAIL via Host: 10.0.35.224} {returns: ['Warning: Identity file /var/cloudstack/management/.ssh/id_rsa not accessible: No such file or directory.', "Warning: Permanently added '[10.0.38.18]:3922' (ECDSA) to the list of known hosts.", 'root@10.0.38.18: Permission denied (publickey).']}
on centos7 mgmt server,
id_rsa
is created in/var/cloudstack/management/.ssh/
(home ofcloud
user). in marvin utils.py, it uses/var/cloudstack/management/.ssh/id_rsa
to connect to VRhttps://github.com/apache/cloudstack/blob/97d6cd50a05e06c532ae970d3a2ab737664f8b5f/tools/marvin/marvin/lib/utils.py#L48-L50
However on ubuntu20 mgmt server, the home of
cloud
user is/var/lib/cloudstack/management/