cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1205
Views
10
Helpful
9
Replies

Developer is not in the sudoers file.

nyukers
Level 1
Level 1

As I know, I need paramiko installation for take my Lab in DevBox: pip install -r requirements.txt
But I haven't sudo access.

 

Help for solution.

9 Replies 9

@nyukers are you following a learning lab, if so which one? A lot of content was updated for the user to instal all requirements on their local machine, where this is not possible (such as streaming telemetry) all the requirements should be installed on the default or within a venv.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Of course, You are right.

But I can't do learning labs DevNet about Ansible IOS native modules:
Traceback (most recent call last):
File "/usr/bin/ansible-playbook", line 32, in
from ansible import context
ImportError: cannot import name context.

 

And I haven't  anything to repair(update or reinstall) it in DevBox.((

@nyukers are you following a learning lab, if so which one, please? If you are running this on your local machine try the following

 

$ sudo -H pip uninstall ansible

 

$ sudo yum remove ansible -y 

Then install through pip:


$ sudo -H pip install ansible
Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Ok,  I try it from my VM.

And I have another msg from Ansible playbook:

fatal: [ios-xe-mgmt.cisco.com]: FAILED! => {"changed": false, "msg": "timed out"}

@nyukers the sandbox with URL [ios-xe-mgmt.cisco.com] should be replaced with either 

 

sandbox-iosxe-latest-1.cisco.com
sandbox-iosxe-recomm-1.cisco.com

Username: developer@sandbox-iosxe-latest-1.cisco.com
Password: C1sco12345
Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Ansible port is 8181 ?

@nyukers Ansible is depending on having ssh access to the device, Ansible’s most used connection plugin is the ssh plugin, which will make changes to the destination host over a standard SSH connection. By default, TCP port 22 will be used to initiate an ssh connection to the IOS host. If you need to change the port you can add them to your Ansible inventory by adding the port number after the hostname with a colon.

 

For example.

 

ansible_connection : local
ansible_python_interpreter : /usr/bin/python3
host_key_checking : False
ansible_ssh_user : developer
ansible_ssh_pass : ***
ansible_port: 8181

Hope this helps.

 
Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Reserved and try again DevBox:

for any sudo execution "Developer is not in the sudoers file. This incident will be reported."

Paramiko is not installed:...

 

I can't understand what`s the DevBox so limited edition help me. It's not useable!

@nyukers there is no sudo/internet access on the devbox for security posture.

 

Hope this helps.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io