Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mellanox build master failure #5897

Closed
lguohan opened this issue Nov 11, 2020 · 3 comments
Closed

Mellanox build master failure #5897

lguohan opened this issue Nov 11, 2020 · 3 comments
Assignees
Labels

Comments

@lguohan
Copy link
Collaborator

lguohan commented Nov 11, 2020

Description

Steps to reproduce the issue:
https://sonic-jenkins.westus2.cloudapp.azure.com/job/mellanox/job/buildimage-mlnx-all/456/

23:11:17  ============================= test session starts ==============================
23:11:17  platform linux -- Python 3.7.3, pytest-3.10.1, py-1.7.0, pluggy-0.8.0
23:11:17  rootdir: /sonic/src/sonic-bgpcfgd, inifile: pytest.ini
23:11:17  plugins: cov-2.6.0
23:11:17  collected 76 items
23:11:17  
23:11:17  tests/test_allow_list.py ...............                                 [ 19%]
23:11:17  tests/test_bbr.py .......................                                [ 50%]
23:11:17  tests/test_ipv6_nexthop_global.py .                                      [ 51%]
23:11:17  tests/test_pfx_filter.py ...........                                     [ 65%]
23:11:17  tests/test_sonic-cfggen.py FFFFFFFFFFFFFFFFF                             [ 88%]
23:11:17  tests/test_templates.py .........                                        [100%]
23:11:17  
23:11:17  =================================== FAILURES ===================================

Describe the results you received:
mellanox build should pass.

it is unclear why only mellanox build is failing.

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):

**Output of `show version`:**

```
(paste your output here)
```

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```
@lguohan
Copy link
Collaborator Author

lguohan commented Nov 11, 2020

build 455 is ok, but starting from build 456 the build is failing.

it seems caused by bgpcfgd upgrade to python3.

@pavel-shirshov
Copy link
Contributor

That should be fixed by moving sonic-config-engine to python3. After that sonic-bgpcfgd will not run python2 interpreter from python3 interpreter.
And this PR will woek #5847

@pavel-shirshov
Copy link
Contributor

File "/sonic/src/sonic-config-engine/sonic-cfggen", line 33, in <module>\n    import netaddr\nImportError: No module named netaddr\n''

That means that sonic-config-engine was run by python3 interpreter, not python2 despite this https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-bgpcfgd/tests/test_sonic-cfggen.py#L17 and that everything works not in debug image.

@lguohan lguohan closed this as completed Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants