Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

device TimeoutError #45

Closed
ixjx opened this issue Aug 27, 2020 · 1 comment · Fixed by #48
Closed

device TimeoutError #45

ixjx opened this issue Aug 27, 2020 · 1 comment · Fixed by #48

Comments

@ixjx
Copy link
Contributor

ixjx commented Aug 27, 2020

Hello,
here is the logs:

INFO:netdev:Host 192.168.47.6: Trying to connect to the device
INFO:netdev:Host 192.168.47.6: Establishing connection to port 22
INFO:asyncssh:Opening SSH connection to 192.168.47.6, port 22
INFO:asyncssh:[conn=0] Connection to 192.168.47.6, port 22 succeeded
INFO:asyncssh:[conn=0]   Local address: 192.168.175.160, port 28247
INFO:asyncssh:[conn=0] Beginning auth for user xxxx
INFO:asyncssh:[conn=0] Auth for user xxxx succeeded
INFO:asyncssh:[conn=0, chan=0] Requesting new SSH session
INFO:asyncssh:[conn=0, chan=0]   Interactive shell requested
INFO:netdev:Host 192.168.47.6: Connection is established
INFO:netdev:Host 192.168.47.6: Reading until pattern
DEBUG:netdev:Host 192.168.47.6: Reading pattern: \>|\]
DEBUG:netdev:Host 192.168.47.6: Reading pattern '\>|\]' was found: "\r\n*************************************************************************\r\n*                         Copyright (C) 2007-2017                       *\r\n*                     Huawei Technologies Co., Ltd.                     *\r\n*                           All rights reserved.                        *\r\n*               Without the owner's prior written consent,              *\r\n*        no decompiling or reverse-engineering shall be allowed.        *\r\n*************************************************************************\r\n\r\n\r\nInfo: The max number of VTY users is 10, and the number\r\n      of current VTY users on line is 3.\r\n      The current login time is 2020-09-13 12:16:56+00:00.\r\nHRP_M<WLWZW-ST-B31-E13-E8000E-C01>"
DEBUG:netdev:Host 192.168.47.6: Establish Connection Output: "\r\n*************************************************************************\r\n*                         Copyright (C) 2007-2017                       *\r\n*                     Huawei Technologies Co., Ltd.                     *\r\n*                           All rights reserved.                        *\r\n*               Without the owner's prior written consent,              *\r\n*        no decompiling or reverse-engineering shall be allowed.        *\r\n*************************************************************************\r\n\r\n\r\nInfo: The max number of VTY users is 10, and the number\r\n      of current VTY users on line is 3.\r\n      The current login time is 2020-09-13 12:16:56+00:00.\r\nHRP_M<WLWZW-ST-B31-E13-E8000E-C01>"
INFO:netdev:Host 192.168.47.6: Setting base prompt
INFO:netdev:Host 192.168.47.6: Finding prompt
INFO:netdev:Host 192.168.47.6: Reading until pattern
DEBUG:netdev:Host 192.168.47.6: Reading pattern: \>|\]
DEBUG:netdev:Host 192.168.47.6: Reading pattern '\>|\]' was found: '\r\nHRP_M<WLWZW-ST-B31-E13-E8000E-C01>'
DEBUG:netdev:Host 192.168.47.6: Found Prompt: 'HRP_M<WLWZW-ST-B31-E13-E8000E-C01>'
DEBUG:netdev:Host 192.168.47.6: Base Prompt: RP_M<WLWZW-ST-B31-E13-E8000E-C01
DEBUG:netdev:Host 192.168.47.6: Base Pattern: [\<|\[]RP_M\<WLWZW\-S[\-\w]*[\>|\]]
INFO:netdev:Host 192.168.47.6: Trying to disable paging
DEBUG:netdev:Host 192.168.47.6: Disable paging command: 'screen-length disable\n'
INFO:netdev:Host 192.168.47.6: Reading until pattern
DEBUG:netdev:Host 192.168.47.6: Reading pattern: [\<|\[]RP_M\<WLWZW\-S[\-\w]*[\>|\]]
ERROR:asyncio:Task exception was never retrieved
future: <Task finished coro=<task() done, defined at yibu.py:5> exception=TimeoutError('Host 192.168.47.6 Timeout Error',)>
Traceback (most recent call last):
  File "/root/cli/dev/lib/python3.6/site-packages/netdev/vendors/base.py", line 359, in _read_until_pattern
    output += await asyncio.wait_for(fut, self._timeout)
  File "/usr/lib/python3.6/asyncio/tasks.py", line 362, in wait_for
    raise futures.TimeoutError()
concurrent.futures._base.TimeoutError

I think that the problem might be my hostname begins with "HRP_M" befor "<" , because of the HRP hot standby. I just don`t know how to fix it

@ixjx ixjx changed the title Support for huawei device TimeoutError Sep 13, 2020
@ixjx
Copy link
Contributor Author

ixjx commented Sep 13, 2020

fixed

@ixjx ixjx closed this as completed Sep 13, 2020
@ixjx ixjx mentioned this issue Sep 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant