Skip to content

[pytest] Fix unicode error in pfcwd#1993

Merged
neethajohn merged 1 commit intosonic-net:masterfrom
neethajohn:pfcwd_unicode_err
Aug 3, 2020
Merged

[pytest] Fix unicode error in pfcwd#1993
neethajohn merged 1 commit intosonic-net:masterfrom
neethajohn:pfcwd_unicode_err

Conversation

@neethajohn
Copy link
Copy Markdown
Contributor

Signed-off-by: Neetha John nejo@microsoft.com

Description of PR

Fixes the unicode error seen in pytest runs when selected port type is a 'portchannel'
E "stderr_lines": [
E "WARNING: No route found for IPv6 destination :: (no default route?)",
E "pfc_wd.PfcWdTest ... ERROR",
E "",
E "======================================================================",
E "ERROR: pfc_wd.PfcWdTest",
E "----------------------------------------------------------------------",
E "Traceback (most recent call last):",
E " File "ptftests/pfc_wd.py", line 56, in runTest",
E " while ip_src == ipaddress.IPv4Address(unicode(self.ip_dst,'utf-8')) or ip_src.is_multicast or ip_src.is_private or ip_src.is_global or ip_src.is_reserved:",
E "TypeError: decoding Unicode is not supported",
E "",
E "----------------------------------------------------------------------",
E "Ran 1 test in 0.003s",
E "",
E "FAILED (errors=1)"
E ],

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

How did you verify/test it?

set pfcwd seed to 0 which will pick up a portchannel interface for the test on the setup I validated.
Ran the test without the changes which resulted in the error above
Ran pytest and the ansible test with the fix and they passed

Signed-off-by: Neetha John <nejo@microsoft.com>
@neethajohn neethajohn requested a review from a team July 29, 2020 22:02
@neethajohn
Copy link
Copy Markdown
Contributor Author

retest this please

@neethajohn
Copy link
Copy Markdown
Contributor Author

retest this please

@neethajohn neethajohn merged commit 146b5ac into sonic-net:master Aug 3, 2020
@neethajohn neethajohn deleted the pfcwd_unicode_err branch August 3, 2020 17:43
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
Update submodule sonic-utilities that contains the following commits:

Revert "[202012] [generate_dump] allow to extend dump with plugin scripts (sonic-net#1945)" (sonic-net#1993)
[soft-reboot] Add support for platforms based on Device Tree (sonic-net#1963)
[Reclaiming buffer][202012] Database migrator for reclaiming buffer (sonic-net#1898)
[202012] [generate_dump] allow to extend dump with plugin scripts (sonic-net#1945)

Signed-off-by: dprital <drorp@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants