Workaround python2 bug on strptime with threading#911
Merged
qiluo-msft merged 1 commit intosonic-net:masterfrom May 11, 2019
Merged
Workaround python2 bug on strptime with threading#911qiluo-msft merged 1 commit intosonic-net:masterfrom
qiluo-msft merged 1 commit intosonic-net:masterfrom
Conversation
Contributor
qiluo-msft
commented
May 11, 2019
```
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "ptftests/advanced-reboot.py", line 769, in peer_state_check
self.fails[ip], self.info[ip], self.cli_info[ip], self.logs_info[ip] = ssh.run()
File "ptftests/arista.py", line 157, in run
log_data = self.parse_logs(log_lines)
File "ptftests/arista.py", line 218, in parse_logs
result_bgp, initial_time_bgp = self.extract_from_logs(bgp_r, data)
File "ptftests/arista.py", line 205, in extract_from_logs
raw_data.append((datetime.datetime.strptime(m.group(1), "%b %d %X"), m.group(2), m.group(3)))
AttributeError: 'module' object has no attribute '_strptime'
```
yxieca
approved these changes
May 11, 2019
yxieca
pushed a commit
that referenced
this pull request
May 14, 2019
```
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "ptftests/advanced-reboot.py", line 769, in peer_state_check
self.fails[ip], self.info[ip], self.cli_info[ip], self.logs_info[ip] = ssh.run()
File "ptftests/arista.py", line 157, in run
log_data = self.parse_logs(log_lines)
File "ptftests/arista.py", line 218, in parse_logs
result_bgp, initial_time_bgp = self.extract_from_logs(bgp_r, data)
File "ptftests/arista.py", line 205, in extract_from_logs
raw_data.append((datetime.datetime.strptime(m.group(1), "%b %d %X"), m.group(2), m.group(3)))
AttributeError: 'module' object has no attribute '_strptime'
```
auspham
pushed a commit
to auspham/sonic-mgmt
that referenced
this pull request
Feb 3, 2026
…#911) <!-- Please make sure you've read and understood our contributing guidelines; https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md Please provide following information to help code review process a bit easier: --> ### Description of PR <!-- - Please include a summary of the change and which issue is fixed. - Please also include relevant motivation and context. Where should reviewer start? background context? - List any dependencies that are required for this change. --> Summary: Fixes IDF isolation test failures on LT2 Fixes # (issue) ### Type of change <!-- - Fill x for your type of change. - e.g. - [x] Bug fix --> - [x] Bug fix - [ ] Testbed and Framework(new/improvement) - [ ] New Test case - [ ] Skipped for non-supported platforms - [ ] Test case improvement ### Back port request - [ ] 202205 - [ ] 202305 - [ ] 202311 - [ ] 202405 - [ ] 202411 - [ ] 202505 - [ ] 202511 ### Approach #### What is the motivation for this PR? test_seq_idf_isolation.py fails on LT2 #### How did you do it? Since IDF isolation script only applies to T1 neighbors, filter only T1 neighbors before prefix/community validation on neighbors #### How did you verify/test it? Ran test_seq_idf_isolation.py on LT2 #### Any platform specific information? #### Supported testbed topology if it's a new test case? ### Documentation <!-- (If it's a new feature, new test case) Did you update documentation/Wiki relevant to your implementation? Link to the wiki page? -->
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
[201911][show] Fix abbreviations for 'show ip bgp ...' commands (sonic-net#909) Changes to support acl-loader and mirror-session config commands for multi-npu platforms. (sonic-net#908) Changes to commands config reload/load-minigraph (sonic-net#919) Stop/Start restapi server upon config reload (sonic-net#911) [config] Add 'interface transceiver' subgroup with 'lpmode' and 'reset' subcommands (sonic-net#904)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.