nephio-project / nephio

Nephio is a Kubernetes-based automation platform for deploying and managing highly distributed, interconnected workloads such as 5G Network Functions, and the underlying infrastructure on which those workloads depend.
Apache License 2.0
93 stars 52 forks source link

"Missing sudo password" error while installing #749

Open yvzsrt opened 1 month ago

yvzsrt commented 1 month ago

Hi, I'm trying the installation from documentation. My vm is: Rocky Linux release 9.3 (Blue Onyx) command: wget -O - https://raw.githubusercontent.com/nephio-project/test-infra/v1.0.1/e2e/provision/init.sh | sudo NEPHIO_DEBUG=true NEPHIO_BRANCH=v1.0.1 NEPHIO_USER=fiveg bash

here is the debug log part:

TASK [Install kubernetes python package] *********************************************************************************************************************************************************************
task path: /home/fiveg/test-infra/e2e/provision/playbooks/cluster.yml:19
Friday 31 May 2024  15:58:08 +0300 (0:00:01.553)       0:00:01.573 ************
Friday 31 May 2024  15:58:08 +0300 (0:00:01.553)       0:00:01.569 ************
Using module file /usr/local/lib/python3.9/site-packages/ansible/modules/pip.py
Pipelining is enabled.
<127.0.0.1> ESTABLISH SSH CONNECTION FOR USER: None
<127.0.0.1> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/fiveg/.ansible/cp/21f0e6a9ae"' 127.0.0.1 '/bin/sh -c '"'"'sudo -H -S -n  -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-zynlicplwvobbwencynujuygjyjdnhsc ; /usr/bin/python3'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation requires password
<127.0.0.1> ssh_retry: attempt: 1, caught exception(Missing sudo password) from cmd ([b'ssh', b'-C', b'-o', b'ControlMaster=auto', b'-o', b'ControlPersist=60s', b'-o', b'StrictHostKeyChecking=no', b'-o', b'KbdInteractiveAuthentication=no', b'-o', b'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', b'-o', b'PasswordAuthentication=no', b'-o', b'ConnectTimeout=10', b'-o', b'ControlPath="/home/fiveg/.ansible/cp/21f0e6a9ae"', b'127.0.0.1', b'/bin/sh -c \'sudo -H -S -n  -u root /bin/sh -c \'"\'"\'echo BECOME-SUCCESS-zynlicplwvobbwencynujuygjyjdnhsc ; /usr/bin/python3\'"\'"\' && sleep 0\'']...), pausing for 0 seconds
<127.0.0.1> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/fiveg/.ansible/cp/21f0e6a9ae"' 127.0.0.1 '/bin/sh -c '"'"'sudo -H -S -n  -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-zynlicplwvobbwencynujuygjyjdnhsc ; /usr/bin/python3'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation requires password
<127.0.0.1> ssh_retry: attempt: 2, caught exception(Missing sudo password) from cmd ([b'ssh', b'-C', b'-o', b'ControlMaster=auto', b'-o', b'ControlPersist=60s', b'-o', b'StrictHostKeyChecking=no', b'-o', b'KbdInteractiveAuthentication=no', b'-o', b'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', b'-o', b'PasswordAuthentication=no', b'-o', b'ConnectTimeout=10', b'-o', b'ControlPath="/home/fiveg/.ansible/cp/21f0e6a9ae"', b'127.0.0.1', b'/bin/sh -c \'sudo -H -S -n  -u root /bin/sh -c \'"\'"\'echo BECOME-SUCCESS-zynlicplwvobbwencynujuygjyjdnhsc ; /usr/bin/python3\'"\'"\' && sleep 0\'']...), pausing for 1 seconds
<127.0.0.1> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/fiveg/.ansible/cp/21f0e6a9ae"' 127.0.0.1 '/bin/sh -c '"'"'sudo -H -S -n  -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-zynlicplwvobbwencynujuygjyjdnhsc ; /usr/bin/python3'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation requires password
fatal: [127.0.0.1]: FAILED! => {
    "msg": "Missing sudo password"
}

PLAY RECAP ***************************************************************************************************************************************************************************************************
127.0.0.1                  : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

fiveg user has passwordless sudo rights. this line may also important: <127.0.0.1> ESTABLISH SSH CONNECTION FOR USER: None

thanks,