[ICN-603] Fresh 'sudo make install' fails at SSH step Created: 12/Jul/21  Updated: 12/Jul/21

Status: To Do
Project: Integrated Cloud Native NFV
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: Geoffroy Van Cutsem Assignee: Kuralamudhan Ramakrishnan
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:
  • Ubuntu 18.04.5 LTS
  • ICN: e9e8a6d (HEAD -> master, origin/master, origin/HEAD) Bump version to remove dependency on stale module


 Description   

 When running `sudo make install` on a fresh Ubuntu 18.04 installation, it fails at the following step:

{{Monday 12 July 2021 10:34:53 -0700 (0:00:00.261) 0:00:03.430 *********** }}
{{=============================================================================== }}
download mitogen release --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.29s
/opt/kubespray-2.14.1/mitogen.yml:21 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
extract archive ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.93s
/opt/kubespray-2.14.1/mitogen.yml:27 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Create mitogen plugin dir -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.49s
/opt/kubespray-2.14.1/mitogen.yml:12 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
copy plugin ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.36s
/opt/kubespray-2.14.1/mitogen.yml:32 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
add strategy to ansible.cfg ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.26s
/opt/kubespray-2.14.1/mitogen.yml:37 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Check ansible version >=2.8.0 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.05s
/opt/kubespray-2.14.1/ansible_version.yml:9 --------------------------------------------------------------------------------------------------------------------------------------------------------------
make[1]: Leaving directory '/opt/kubespray-2.14.1'
/opt/icn/multicloud-k8s/kud/hosting_providers/vagrant
kube_log_level: 2
kubeadm_enabled: truePLAY [Install python2] ************************************************************************************************************************************************************************************
{{Monday 12 July 2021 10:34:54 -0700 (0:00:00.020) 0:00:00.020 *********** }}
[WARNING]: Unhandled error in Python interpreter discovery for host sse-tme-wf-04: Failed to connect to the host via ssh: Warning: Permanently added '192.168.0.16' (ECDSA) to the list of known hosts.
root@192.168.0.16: Permission denied (publickey,password).TASK [Gathering Facts] ************************************************************************************************************************************************************************************
fatal: [sse-tme-wf-04]: UNREACHABLE! => {"changed": false, "msg": "Data could not be sent to remote host \"192.168.0.16\". Make sure this host can be reached over ssh: Warning: Permanently added '192.168.0.16' (ECDSA) to the list of known hosts.\r\nroot@192.168.0.16: Permission denied (publickey,password).\r\n", "unreachable": true}PLAY RECAP ************************************************************************************************************************************************************************************************
sse-tme-wf-04 : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0{{Monday 12 July 2021 10:34:54 -0700 (0:00:00.409) 0:00:00.429 *********** }}
{{=============================================================================== }}
Gathering Facts ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.41s
Makefile:69: recipe for target 'kud_bm_deploy_mini' failed
make: *** [kud_bm_deploy_mini] Error 4

 

The SSH keys are set-up via https://github.com/akraino-edge-stack/icn/blob/master/deploy/kud/kud_bm_launch.sh#L24-L35, that sets them up in $HOME/.ssh. But the problem is that Ansible later tries to connect as `root@IPaddress` but instead of picking the SSH keys from the user's home ($HOME), it looks for them in /root (and fails because it cannot find them).

 

Workaround: "sudo cp -r ~/.ssh/* /root/" and then rerun "sudo make install"

 


Generated at Sat Feb 10 06:01:18 UTC 2024 using Jira 9.4.5#940005-sha1:e3094934eac4fd8653cf39da58f39364fb9cc7c1.