question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Huawei vrpv8 commit fails to complete successfully

See original GitHub issue

script :

from netmiko import ConnectHandler
huawei = {'device_type': 'huawei_vrpv8', 'ip': 'x.x.x.x', 'username': 'guaziadmin', 'password': 'password'}
net_connect = ConnectHandler(**huawei)

commands = ['vlan 10']

output1 = net_connect.send_config_set(commands)
print(output1)

error:

Traceback (most recent call last):
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/paramiko/channel.py", line 683, in recv
    out = self.in_buffer.read(nbytes, self.timeout)
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/paramiko/buffered_pipe.py", line 160, in read
    raise PipeTimeout()
paramiko.buffered_pipe.PipeTimeout

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netmiko/base_connection.py", line 448, in _read_channel_expect
    new_data = self.remote_conn.recv(MAX_BUFFER)
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/paramiko/channel.py", line 685, in recv
    raise socket.timeout()
socket.timeout

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/sunshouwen/PycharmProjects/test1/netssh_test.py", line 7, in <module>
    output1 = net_connect.send_config_set(commands)
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netmiko/base_connection.py", line 1402, in send_config_set
    output += self.exit_config_mode()
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netmiko/huawei/huawei_ssh.py", line 26, in exit_config_mode
    return super(HuaweiSSH, self).exit_config_mode(exit_config=exit_config)
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netmiko/cisco_base_connection.py", line 47, in exit_config_mode
    pattern=pattern)
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netmiko/base_connection.py", line 1324, in exit_config_mode
    output = self.read_until_pattern(pattern=pattern)
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netmiko/base_connection.py", line 520, in read_until_pattern
    return self._read_channel_expect(*args, **kwargs)
  File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netmiko/base_connection.py", line 456, in _read_channel_expect
    raise NetMikoTimeoutException("Timed-out reading channel, data not available.")
netmiko.ssh_exception.NetMikoTimeoutException: Timed-out reading channel, data not available.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
smk4664commented, Sep 24, 2018

If you’re not on the develop branch already, I would suggest switching to it and testing your script. There was a recent commit to correct the send_config_set for huawei.

0reactions
nonthacommented, Apr 15, 2020

output1 = net_connect.send_config_set(commands, exit_config_mode=False)

This extended the number of times a loop run in my script. But didn’t solve the issue completely.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Do Command Configurations Fail to Take Effect?
After running a configuration command, you need to run the commit command to make the configuration take effect. Run the system-view immediately command...
Read more >
VRRP Troubleshooting - Huawei Support
Common Causes. This fault commonly results from one of the following causes: The VRRP backup group configurations on two devices do not match....
Read more >
VRRP Troubleshooting - NE20E-S Troubleshooting Guide
This fault commonly results from one of the following causes: The VRRP backup group configurations on two devices do not match.
Read more >
File Management Commands - CloudEngine 12800 ...
This command displays only the latest configuration difference file. Example. # # Display commands that fail to be replaced. <HUAWEI> system-view [~HUAWEI] ...
Read more >
VRRP Troubleshooting - Huawei Technical Support
The VRRP backup group configurations on two devices do not match. The link over which VRRP Advertisement messages are transmitted fails.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found