Commit Graph

5919 Commits

Author SHA1 Message Date
mssonicbld
17d9e21e76
[ci/build]: Upgrade SONiC package versions (#12548) 2022-10-29 02:39:20 +08:00
judyjoseph
ba3326088c
Update sonic-swss submodule with (#12521)
7f24448 [202111] cherrypick ACL fixes (#2298) and (#2351) (#2497)
2022-10-28 08:37:30 -07:00
mssonicbld
c500f5d476
[action] Use github code scan instead of LGTM. (#12402) (#12506) 2022-10-27 00:53:49 +08:00
xumia
01f8c0185b
[202111] Change submodule path from Azure to sonic-net (#12309)
Why I did it
Change the path of sonic submodules that point to "Azure" to point to "sonic-net"

How I did it
Replace "Azure" with "sonic-net" on all relevant paths of sonic submodules
2022-10-26 16:29:12 +08:00
Liu Shilong
28751cec56 [ci] Fix bug involved by PR 11810 which affect official build pipeline (#11891)
Why I did it
Fix the official build not triggered correctly issue, caused by the azp template path not existing.

How I did it
Change the azp template path.
2022-10-26 08:22:31 +08:00
Liu Shilong
fc9dee41a2 [ci] Update reproducible build related pipeline. (#11810) 2022-10-26 08:22:31 +08:00
Liu Shilong
acfb23653e [ci] Disable reproducible build in master branch official build (#11452) 2022-10-26 08:22:31 +08:00
Liu Shilong
cb4ac4285d [ci] Update azp template variable for reproducible build. (#11419) 2022-10-26 08:22:31 +08:00
mssonicbld
45b403d71d
[ci/build]: Upgrade SONiC package versions (#12422) 2022-10-18 13:57:10 +08:00
mssonicbld
ac6c4870f2
Fix dhcp option buffer issue (#12033) (#12385)
Why I did it
Current isc-dhcp uses below code to remove DHCP option:
memmove(sp, op, op[1] + 2);
sp += op[1] + 2;

sp points to the option to be stripped, we can call it as option S.
op points to the option after options S, we can call it as option O.
DHCP option is a typical type-length-value structure, the first byte is type, the second byte is length, and remain parts are value.
In this case, option O length is bigger than option S, and more than 2 bytes, after the memmove, we will get this result:

Now Option S and Option O are overwritten, op[1] was the length of Option O, and it's modified after memmove.
But current implementation is still using op[1] as length to update sp (sp+=op[1]+2), so we get the wrong sp.

How I did it
Create patch from https://github.com/isc-projects/dhcp
The new impelementation use mlen to store the length of Option O before memmove, that's how it fixed the bug.
size_t mlen = op[1] + 2;
memmove(sp, op, mlen);
sp += mlen;

How to verify it
I have a PR for sonic-mgmt to cover this issue:
sonic-net/sonic-mgmt#6330

Signed-off-by: Gang Lv ganglv@microsoft.com

Signed-off-by: Gang Lv ganglv@microsoft.com
Co-authored-by: ganglv <88995770+ganglyu@users.noreply.github.com>
2022-10-16 11:18:37 +08:00
mssonicbld
1555ec30ee
[ci/build]: Upgrade SONiC package versions (#12390) 2022-10-14 16:08:25 +08:00
mssonicbld
63ed7b75cf
[Build][Bug] Fix apt-get remove version not lock issue (#12193) (#12352)
Why I did it
Fix apt-get remove/purge version not locked issue when the apt-get options not specified.

How I did it
Add a space character before and after the command line parameters.

Co-authored-by: xumia <59720581+xumia@users.noreply.github.com>
2022-10-13 10:09:19 +08:00
mssonicbld
66fa1920bb
[ci/build]: Upgrade SONiC package versions (#12283)
Upgrade SONiC Versions
2022-10-11 07:52:14 +08:00
mssonicbld
4d9788573c
[actions] Add auto cherry-pick actions to release branch (#11496) (#12337)
* [actions] Add github actions to auto cherry-pick prs to release branches

* Add README, fix workflow

Co-authored-by: Liu Shilong <shilongliu@microsoft.com>
2022-10-10 17:24:23 +08:00
mssonicbld
ec691aa9f4
[ci/build]: Upgrade SONiC package versions (#12247) 2022-10-03 03:59:36 +08:00
mssonicbld
92780af0ce
[ci/build]: Upgrade SONiC package versions (#12194) 2022-09-28 06:40:24 +08:00
xumia
f47872446b
Fix dbus-run-session command not found issue when install dbus-python (#12009) (#12054)
Why I did it
Cherry-pick #12009, and fix code conflict.
Fix the dbus-pyhon installation failure when building docker-sonic-vs, caused by the command dbus-run-session not found.
The command "dbus-run-session" should be the new dependency introduced in dbus-python 1.3.2, the old version 1.2.18 does not have the issue.

How I did it
Install the dbus debian package which contains the command dbus-run-session.
It is not a blocking issue on release branches. The release branches with reproducible build feature can avoid such issue in official builds and PR builds, it only block the version upgrade (trying to upgrade from 1.2.18 to 1.3.2).

How to verify it
2022-09-26 20:42:51 +08:00
mssonicbld
fc04f74dc9
[ci/build]: Upgrade SONiC package versions (#11971) 2022-09-06 03:36:22 +08:00
mssonicbld
aa6a7c3f4a
[ci/build]: Upgrade SONiC package versions (#11963) 2022-09-05 04:16:35 +08:00
mssonicbld
94ebd5cfbf
[ci/build]: Upgrade SONiC package versions (#11916) 2022-09-03 04:09:38 +08:00
Kebo Liu
949b426a2a
update Mellanox SDK/FW to 4.5.2318 2010.2318 (#11774)
- Why I did it
Update SDK/FW version - 4.5.2318/2010_2318 to pick up new fixes:
1. Cr space timeout on Hold and Release GW - at warm boot
2. SPC-1 Port in stuck PHY_UP after peer side rebooted
3. memory leak in sx_api_router_ecmp_update_set

- How I did it
update the make file with the new version number
update submodule Switch-SDK-drivers pointer

- How to verify it
run sonic regression

Signed-off-by: Kebo Liu <kebol@nvidia.com>
2022-08-29 11:08:22 +03:00
mssonicbld
0356a20a61
[ci/build]: Upgrade SONiC package versions (#11856) 2022-08-29 14:08:18 +08:00
RogerX87
ad7395323f
Add Wistron SW-TO3200K and 6512-32R platform support (#11818)
Signed-off-by: RogerX87 <RogerX87@gmail.com>

Signed-off-by: RogerX87 <RogerX87@gmail.com>
2022-08-26 09:19:13 -07:00
Kebo Liu
b8dc515185
[snmpd]: Update to 5.9+dfsg-4+deb11u1 to match Debian version (#11763) (#11844)
* [snmpd]: Update to 5.9+dfsg-4+deb11u1 to match Debian version

This brings in some security fixes.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
Co-authored-by: Saikrishna Arcot <sarcot@microsoft.com>
2022-08-25 09:01:43 -07:00
mssonicbld
003c8dfdef
[ci/build]: Upgrade SONiC package versions (#11719) 2022-08-15 05:47:39 +00:00
mssonicbld
1d3243221b
[ci/build]: Upgrade SONiC package versions (#11697) 2022-08-11 23:19:59 +00:00
Vivek
d14f1a63ca
[Mellanox] [202111] Add arch folder to SDK binary location (#11278) (#11598)
- Why I did it
This is for the eventual support of multiple architectures for the mellanox platform.

- How I did it
Change the location of the binaries in Switch-SDK-drivers so that the path specifies the target architecture in addition to the target distribution that the debians are built for.

This is the most straightforward way to separate binaries built against different architectures and selectively target them for installation in the mellanox SONiC image.

- How to verify it
Build SONiC for mellanox and verify it compiles successfully.
2022-08-11 08:28:49 +03:00
Liu Shilong
5506f1be8f
[actions] Fix automerge actions don't work issue. (#11675) 2022-08-10 15:50:33 +08:00
mssonicbld
d750fad2e9
[ci/build]: Upgrade SONiC package versions (#11440) 2022-08-07 16:52:48 +00:00
Liu Shilong
9d1ef336ff
[ci] Update azp reference to support transfering organization from Azure to sonic-net (#11603) 2022-08-02 16:15:33 +08:00
Liu Shilong
ffd289b1c1
[ci] Transfer organization from Azure to sonic-net for sonic-mgmt (#11559) (#11561)
Why I did it
Transfer organization from Azure to sonic-net for sonic-mgmt
2022-07-28 15:31:20 +08:00
xumia
6c9ace84ec
[Build] Fix the missing debian package for reproducible build issue (#11338)
Why I did it
Fix the missing debian package for reproducible build issue.

The gnupg2 should be added into the version file.
https://dev.azure.com/mssonic/build/_build/results?buildId=118139&view=logs&j=88ce9a53-729c-5fa9-7b6e-3d98f2488e3f&t=8d99be27-49d0-54d0-99b1-cfc0d47f0318

The following packages have unmet dependencies:
 gnupg2 : Depends: gnupg (>= 2.2.27-2+deb11u2) but 2.2.27-2+deb11u1 is to be installed
E: Unable to correct problems, you have held broken packages.

The issue was caused by the gnupg2 removed, and not detected.
sonic-buildimage/build_debian.sh

Line 250 in 4fb6cf0

 sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y remove software-properties-common gnupg2 python3-gi
2022-07-14 13:39:25 +08:00
mssonicbld
632d89a218
[ci/build]: Upgrade SONiC package versions (#11423)
Upgrade SONiC Versions
2022-07-13 07:09:27 +08:00
xumia
33c9d324a4
Upgrade openssh to 8.4p1-5+deb11u1 (#11409)
Why I did it
Fix the openssh build issue, upgrade from 8.4p1-5 to 8.4p1-5+deb11u1.

https://dev.azure.com/mssonic/build/_build/results?buildId=120209&view=logs&j=88ce9a53-729c-5fa9-7b6e-3d98f2488e3f&t=8d99be27-49d0-54d0-99b1-cfc0d47f0318

+ sudo dpkg --root=./fsroot-broadcom -i target/debs/bullseye/openssh-server_8.4p1-5_amd64.deb
dpkg: warning: downgrading openssh-server from 1:8.4p1-5+deb11u1 to 1:8.4p1-5
(Reading database ... 44818 files and directories currently installed.)
Preparing to unpack .../openssh-server_8.4p1-5_amd64.deb ...
Unpacking openssh-server (1:8.4p1-5) over (1:8.4p1-5+deb11u1) ...
dpkg: dependency problems prevent configuration of openssh-server:
 openssh-server depends on openssh-client (= 1:8.4p1-5); however:
  Version of openssh-client on system is 1:8.4p1-5+deb11u1.

dpkg: error processing package openssh-server (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 openssh-server
+ clean_sys

How I did it
Upgrade openssh from 8.4p1-5 to 8.4p1-5+deb11u1.

How to verify it
2022-07-11 22:32:16 +08:00
Liu Shilong
a8cdb62fc3
[ci] Fix test stage dependency issue. (#11386) (#11393)
Why I did it
When any of the test job failed in the test stage, the rerun will not work, the test stage will be skipped automaticall, so we do not have chance to rerun the test stage again, and the checks of the test will be always in failed status, block the PR to merge forever.

It should be caused by the condition in the Test stage, we should specify the status of the BuildVS stage.

How I did it
Fix stage dependency logic.
2022-07-11 19:03:05 +08:00
mssonicbld
2339907cf1
[ci/build]: Upgrade SONiC package versions (#11339) 2022-07-06 04:43:34 +00:00
mssonicbld
51327e6125
[ci/build]: Upgrade SONiC package versions (#11258)
Upgrade SONiC Versions
2022-07-04 20:18:21 +08:00
xumia
ae99f374fa
[Build] Add the missing debian security mirrors in slave images (#11305) (#11313)
Why I did it
Cherry-pick from #11305

The build below was broken, it was caused by one of the required debian mirror missing.
https://dev.azure.com/mssonic/build/_build/results?buildId=116719&view=logs&j=88ce9a53-729c-5fa9-7b6e-3d98f2488e3f&t=88f376cf-c35d-5783-0a48-9ad83a873284

 libpci-dev : Depends: libudev-dev (>= 196) but it is not going to be installed
 libsystemd-dev : Depends: libsystemd0 (= 232-25+deb9u14) but 232-25+deb9u13 is to be installed
How I did it
Add the missing mirrors for buster and stretch.
2022-07-04 12:57:21 +08:00
Kebo Liu
27839792d1
[202111] [Mellanox] Add retry when SFP object is not initialized correctly due to eeprom read failure (#11265)
- Why I did it
During platform API SFP object initialization, there are two steps, one is to read the xSFP type from EEPROM, and another is to parse the xSFP DOM support capability. There is the possibility that the xSFP EEPROM is not ready when it started to read, which will result in the SFP object does not have type and DOM capability correctly initialized, which will cause further issues. So need to add a mechanism to retry in this case.

- How I did it
Add flags to indicate whether the SFP object has been correctly initialized or not, set the flag when an error happened and after all relevant bytes from EEPROM are correctly read out and parsed, clear the flag.
Leverage the Python decorator to decorate the related functions, each time when the related function is called the decorator will check whether the SFP object has been correctly initialized or not, if not it will read the EEPROM and parse again.

- How to verify it
Run SFP-related platform tests to make sure no new issue is introduced.

Signed-off-by: Kebo Liu <kebol@nvidia.com>
2022-07-03 15:59:51 +03:00
Tony Titus
6ab339482f
[innovium] Update 202111 Innovium platforms (#10760)
Co-authored-by: Tony Titus <ttitus@innovium.com>

Why I did it
Update 202111 Innovium platform support

How to verify it
Build and PTF test
2022-06-30 15:12:38 -07:00
Liu Shilong
70e9fc3166
[build] Fix libssl version issue in bullseye. (#11286)
The following packages have unmet dependencies:
 libssl-dev : Depends: libssl1.1 (= 1.1.1n-0+deb11u3) but 1.1.1n-0+deb11u2 is to be installed
E: Unable to correct problems, you have held broken packages.
2022-06-30 23:52:38 +08:00
Hua Liu
9b4387ace9
[swsscommon] Add c++ version sonic-db-cli from sonic-swss-common (#10825) (#11262)
Fix sonic-db-cli high CPU usage on SONiC startup issue: https://github.com/Azure/sonic-buildimage/issues/10218
    ETA of this issue will be 2022/05/31

    Re-write sonic-cli with c++ in sonic-swss-common: https://github.com/Azure/sonic-swss-common/pull/607
    Modify swss-common rules and slave.mk to install c++ version sonic-db-cli.

    Pass all E2E test scenario.

<!--
- Note we only backport fixes to a release branch, *not* features!
- Please also provide a reason for the backporting below.
- e.g.
- [x] 202006
-->

- [ ] 201811
- [ ] 201911
- [ ] 202006
- [ ] 202012
- [ ] 202106
- [ ] 202111

    Build and install c++ version sonic-db-cli from swss-common.

<!--
Provide a link to config_db schema for the table for which YANG model
is defined
Link should point to correct section on https://github.com/Azure/SONiC/wiki/Configuration.
-->
2022-06-30 09:34:13 +08:00
Vivek R
e8daeacd3d
[202111] [submodule] Advance sonic-utilities pointer (#11239)
update sonic-utilities submodule

8ac2810 [202111] [generate dump] Move the Core/Log collection to the End of process Execution and removed default timeout  (#2225)
77891de [202111] Fix UT failed cause by change pycommon to use swsscommon (#2085) (#2231)
2022-06-24 05:40:59 -07:00
Sudharsan Dhamal Gopalarathnam
4a278fa881
[202111][submodule] Advance sonic-swss submodule (#11231)
Advance sonic-submodule to get the following fixes: 

ebdc242 Fix fbdorch to properly handle syncd FDB FLUSH Notif
8fd44da [ci] Don't publish gcov artifact when test failed
dcf6429 [ci] Change artifact reference pipeline to common lib pipeline.
387ed60 [ci] Use correct branch when downloading artifact.
169f597 [ci] Improve azp trigger settings to automaticlly support new release branch
2022-06-23 16:59:32 -07:00
Dror Prital
d3f007045c
[202111] [Mellanox] update SAI with a new fix for sonic 202111 (#11199)
- Why I did it

Update SAI pointer to include the following fix:
Fix size descriptor pool for rx/tx

- How I did it
Update SAI pointer to point on the new commit

- How to verify it
Run regression tests
2022-06-23 13:15:51 -07:00
Lior Avramov
fd67b535be Change severity of log messages for cases where docker container was stopped during service checker operation (#11188)
#### Why I did it
There might be a case where service checker periodic operation determined that specific container is running but when it tries to perform an operation on it, it was already closed by the user. This is a valid flow and we should not log an error message, informative warning is enough. 

#### How I did it
I reduce log severity.

#### How to verify it
I verified it manually.
2022-06-22 19:50:07 -07:00
Sudharsan Dhamal Gopalarathnam
5188fdee0c [lldp]Fix lldp spawned after reboot when disabled (#11080)
- Why I did it
When LLDP is disabled through feature command, it gets spawned after reboot.

- How I did it
In syncd.sh check if the service is enabled before spawning automatically during cold reboot.

- How to verify it
Disable lldp feature. Perform cold reboot and verify its not spawned.
2022-06-22 19:50:03 -07:00
mssonicbld
8d72c484f8
[ci/build]: Upgrade SONiC package versions (#11114)
Co-authored-by: mssonicbld <vsts@fv-az131-194.obwncbgs1wzu1bhwgvhcl5zkeg.jx.internal.cloudapp.net>
2022-06-21 13:55:06 +08:00
Shilong Liu
95a3cd56eb
Cherry-pick two PRs (#11194)
* [ci] Support to skip vstest using include/exclude config file. (#11086)
* [build] Add version files to docker image dependencies (#11179)
2022-06-21 13:27:16 +08:00
Judy Joseph
02d17834c8 Update submodules
sonic-swss

25fe915 [crmorch] Prevent exceededLogCounter from resetting when low and high values are equal (#2327)
1c3c5e0 [BFD]Retry create BFD with different source UDP port on failure (#2225)
d5775b1 Skip consistent fail tests (#2269)

sonicutilities

5800b73 Fix header for the output table following 'show ipv6 interface' command (#2219)
2022-06-20 08:25:58 -07:00