[root@localhost ~]# o2-flp-setup deploy --head localhost --flps localhost --debug
Could not copy SSH key. You will be prompted for the password for user root.
Running: ansible-playbook /root/.local/share/o2-flp-setup/system-configuration/ansible/flp-multinode.yml -i /tmp/ansible_flp_multinode_inventory999081640 -u root --ask-pass --skip-tags dev,post-installation,trigger,readout-autoconf
SSH password:
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
^C
[root@localhost ~]# [ERROR]: User interrupted execution
The process continues to get stuck at “Gathering Facts”.
I have tried to reboot the flp and run again, but I get the same issue(s).
I connect to it over SSH (yes it has a network connection).
E.g. flp@154.xxx.xxx.xxx
With “flp” being the username (i.e. not made up for representation).
We have had issues with the suite in the past. It was previously alluded that the hostname was giving issues (that we managed to resolve).
Would I be correct to assume that we should ideally alter the host name? We have tried to put this off has it may have far reaching repercussions on the rest of the testbench system.
Do you have any potential ideas for alternate solutions?
As Roberto suggested, using the IP address might solve the issue. But to name a machine localhost is looking for trouble. I would still recommend to rename the machine and redeploy.
@divia this FLP is for the ALICE-MID User Logic group
I managed to change the hostname, since we last spoke.
From ‘localhost’ to ‘flpmid’
[root@flpmid ~]# hostname
flpmid
Unfortunately I am still getting the same problem (the deployment not going past ‘gathering facts’).
[root@flpmid ~]# o2-flp-setup deploy --head flpmid --flps flpmid --debug
Could not copy SSH key. You will be prompted for the password for user root.
Running: ansible-playbook /root/.local/share/o2-flp-setup/system-configuration/ansible/flp-multinode.yml -i /tmp/ansible_flp_multinode_inventory780842597 -u root --ask-pass --skip-tags dev,post-installation,trigger,readout-autoconf
SSH password:
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
^C
[root@flpmid ~]# [ERROR]: User interrupted execution
Additionally, I re-cloned and installed the suite (but still getting stuck).
Is this potentially a ssh config (sshd_config) issue?
[root@flpmid ~]# ssh-keygen -t rsa -b 4096
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
/root/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:oixyejW958RLDaJGtHzj6f7VT1J/3sVyg1qvQI5A380 root@flpmid
The key's randomart image is:
+---[RSA 4096]----+
| |
| |
| . . |
| o .. . . o |
| +.=.S. o E. |
| oo=.*.o+. ..o |
|. o.=.o.+.ooooo.*|
| +.o ..o.o ++.+=|
|.. .o++ . .o.o|
+----[SHA256]-----+
I believe that there should no be no issues, but now I get
[root@flpmid ~]# o2-flp-setup deploy --head flpmid --flps flpmid --debug
2020/11/16 12:29:10 target flpmid is unreachable
Running: ansible-playbook /root/.local/share/o2-flp-setup/system-configuration/ansible/flp-multinode.yml -i /tmp/ansible_flp_multinode_inventory759807307 -u root --skip-tags dev,post-installation,trigger,readout-autoconf
PLAY [all] *********************************************************************
TASK [Gathering Facts] *********************************************************
[WARNING]: Unhandled error in Python interpreter discovery for host flpmid:
Failed to connect to the host via ssh: Permission denied (publickey,gssapi-
keyex,gssapi-with-mic,password).
fatal: [flpmid]: UNREACHABLE! => {
"changed": false,
"unreachable": true
}
MSG:
Data could not be sent to remote host "flpmid". Make sure this host can be reached over ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
PLAY RECAP *********************************************************************
flpmid : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0
Again: you are setting up a password-based RSA key. Try not to set a password…
When ssh-keygen says "Enter passphrase (empty for no passphrase): " just press return, do not give any text. You will not loose in security (after all you are just authorizing root to SSH at itself into the same machine, which is not a security threat at all).
If you really want to set a non-empty password, then we will have to use a trick. A password-less RSA key would be much easier.