Commit Graph

5784 Commits

Author SHA1 Message Date
mssonicbld
eee839fddf
[ci/build]: Upgrade SONiC package versions (#12547) 2022-10-28 21:24:57 +08:00
Vivek
24ee3dd1e1
[202012] [submodule] Advance sonic-utilities pointer (#12513)
7272bf37 Revert "Revert "[DHCPv6] [202012] Update the dhcpv6_relay config/show cli (#2271)" (#2336)" (#2459)
Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
2022-10-27 08:45:55 +03:00
Ye Jianquan
95b979dfc1
[202012][TestbedV2]Migrate t0 and t1-lag to TestbedV2 (#12383) (#12454)
* [TestbedV2]Migrate t0 and t1-lag to TestbedV2 (#12383)

signed-off-by: jianquanye@microsoft.com

Migrate the t0 and t1-lag test jobs in buildimage repo to TestbedV2.

Why I did it
Migrate the t0 and t1-lag test jobs in buildimage repo to TestbedV2.

How I did it
Migrate the t0 and t1-lag test jobs in buildimage repo to TestbedV2.

Remove ceos type setting

Use 202012 branch as sonic-mgmt branch

* Modify template to use 202012 branch
2022-10-27 08:13:13 +08:00
Dror Prital
4bbfcf0bb6
[202012][submodule] Advance sonic-swss pointer (#12358)
Update sonic-swss submodule pointer to include the following:
* 08711a8 [orchdaemon]: Fixed sairedis record file rotation ([#2481](https://github.com/sonic-net/sonic-swss/pull/2481))

Signed-off-by: dprital <drorp@nvidia.com>
2022-10-26 15:08:57 +03:00
mssonicbld
713747dc05
[ci/build]: Upgrade SONiC package versions (#12507) 2022-10-26 19:58:39 +08:00
Devesh Pathak
d45fe19576 Fix to improve hostname handling (#12064)
* Fix to improve hostname handling
If config_db.json is missing hostname entry, hostname-config.sh ends
up deleting existing entry too and hostname changes to default 'localhost'

* default hostname to 'sonic` if missing in config file
2022-10-26 05:48:16 +00:00
Liu Shilong
2532be43bd [action] Use github code scan instead of LGTM. (#12402)
* [action] Add code scan for python
2022-10-26 05:48:11 +00:00
kellyyeh
5d8efe9470 Add dhcp6relay dualtor option (#12459) 2022-10-26 05:48:05 +00:00
Lawrence Lee
888f6ec157 [tunnel_pkt_handler]: Skip nonexistent intfs (#12424)
- Skip the interface status check if the interface does not exist. In the future, when the interface is created/comes up this check will be triggered again.

Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
2022-10-26 05:47:59 +00:00
Marty Y. Lok
80870439af [armhf][sonic-installer] Fix the sonic-installer install images on armhf platform issue (#12284)
Signed-off-by: mlok <marty.lok@nokia.com>

Signed-off-by: mlok <marty.lok@nokia.com>
2022-10-26 05:47:51 +00:00
Zhaohui Sun
f9578d92d0
[202012][LLDPD] fix to port remove and immediately create problem (#12467)
Why I did it
Cherry pick #9519.

when we remove a port and add it back immediately - lldp is keep failing
warning message keeps appearing:
[WARN/lldp] unable to send packet on real device for Ethernet4: No such device or address

How I did it
on delete link events it will immediately execute delete without using aggregate events mechanism.

How to verify it
Run autorestart/test_container_autorestart.py in sonic-mgmt repo
Or manual test steps:
sudo config feature autorestart swss disabled
docker exec swss supervisorctl status
docker exec swss kill -SIGKILL 111(orchagent)
docker inspect -f {{.State.Running}} swss => make sure swss is running
docker exec swss supervisorctl start orchagent

Signed-off-by: Zhaohui Sun <zhaohuisun@microsoft.com>
2022-10-26 11:13:48 +08:00
zitingguo-ms
bafbfb5a26
Pickup fix and make up BRCM SAI version to 4.3.7.1-6 (#12486)
Signed-off-by: zitingguo-ms <zitingguo@microsoft.com>

Signed-off-by: zitingguo-ms <zitingguo@microsoft.com>
2022-10-26 09:52:48 +08:00
jhli-cisco
23c274a225
Update cisco-8000 submodule to v0.120 (#12470) 2022-10-25 18:09:16 +08:00
xumia
8ea6ee7215
[sonic-slave]: Add gmock for sonic-swss-common tests (#8950) (#12461)
Why I did it
Cherry-pick from #8950

Sonic-swss-common requires gmock for staged unit tests

How I did it
Installed dependency in sonic-buster-build docker file

How to verify it
rebuild the build container
2022-10-25 15:45:28 +08:00
Liu Shilong
fb06d3a70c
[build] Add dependencies for sonic-config-engine to block bad PR. (#10770) (#10794)
Add dependencies device/*
2022-10-25 15:45:09 +08:00
mssonicbld
d2d25ac5f5
[ci/build]: Upgrade SONiC package versions (#12449) 2022-10-21 21:48:16 +08:00
Jing Zhang
d8d0436ed2
[202012][sonic-linkmgrd] update submodule (#12415)
commit aa8fe6deff466909909430f00598d2dba9490904 (HEAD -> 202012, origin/202012)
Author: Jing Zhang zhangjing@microsoft.com
Date: Tue Oct 11 10:22:02 2022 -0700

[Active-Standby] avoid posting mux metrics event when receiving unsolicited mux state notification  (#142)

Description of PR
Summary:
Fixes # (issue)

This PR is to fix incorrect mux metrics timestamps caused by unsolicited mux state notification.

Sign-off: Jing Zhang zhangjing@microsoft.com
sign-off: Jing Zhang zhangjing@microsoft.com
2022-10-20 13:45:41 -07:00
Ye Jianquan
8e7a491f3b Enable to cancel pipeline jobs during checkout code and tests (#12436)
co-authorized by: jianquanye@microsoft.com

Why I did it
Now, checkout code step and KVM test job can't be cancelled even though the whole build is cancelled.
That's because by using Azure Pipeline Conditions, we customized the running condition, and we need to react to the Cancel action explicitly by asserting 'succeeded'
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/expressions?view=azure-devops#succeeded
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/conditions?view=azure-devops&tabs=yaml#ive-got-a-conditional-step-that-runs-even-when-a-job-is-canceled-how-do-i-manage-to-cancel-all-jobs-at-once

How I did it
Assert 'succeeded' condition explicitly.

How to verify it
Verified by cancelling and rerunning the azure pipeline.
2022-10-19 18:53:40 +00:00
kellyyeh
1999d9a2e1
Advance dhcprelay submodule (#12215) 2022-10-19 10:04:38 -07:00
zitingguo-ms
08d1d60ccb
Pick up fixes and make up BRCM SAI version to 4.3.7.1-3 (#12439)
Signed-off-by: zitingguo-ms <zitingguo@microsoft.com>

Signed-off-by: zitingguo-ms <zitingguo@microsoft.com>
2022-10-19 12:18:48 +08:00
Liu Shilong
a00773a6ec
[ci] Update docker sonic slave pipeline to build slave base docker (#11908) (#12405)
* [ci] Update docker sonic slave pipeline to build slave base docker
2022-10-18 13:53:43 +08:00
mssonicbld
678edcb90f
[ci/build]: Upgrade SONiC package versions (#12417) 2022-10-16 21:21:35 +08:00
mssonicbld
bb2d0986e2
[ci/build]: Upgrade SONiC package versions (#12407) 2022-10-14 22:02:13 +08:00
Jing Zhang
479e6eabde
[202012][sonic-linkmgrd] submodule update (#12212)
[202012][sonic-linkmgrd] submodule update

commit efee4d5b807887bae14c16a8a297756739fcc17e (HEAD -> 202012, upstream/202012)
Author: Jing Zhang <zhangjing@microsoft.com>
Date:   Mon Oct 3 09:40:55 2022 -0700

    [Active-Standby] fix syslog flood caused by `unkown -> standby` switchovers  (#137)
    
    Description of PR
    Summary:
    Fixes # (issue)
    
    This is to fix the syslog flood issue caused by repeated switchovers from unknown to standby. The scenario trigged the issue was when xcvrd timed out toggles requests but was able to probe:
    Linkmgrd toggles to standby
    -> toggles fails, xcvrd writes unknown
    -> linkmgrd probes mux state
    -> xcvrd writes standby
    -> linkmgrd toggles to standby (previous mux state was unknown, switching to match)
    -> toggles fails, xcvrd writes unknown
    -> ... ...
    
    sign-off: Jing Zhang zhangjing@microsoft.com

commit d4de3d31db6512b045c050533cd9e11a92522916
Author: Jing Zhang <zhangjing@microsoft.com>
Date:   Tue Sep 27 10:36:59 2022 -0700

    [202012][Cherry-pick] Post switchover reasons to STATE DB (#138)

    Description of PR
    Summary:
    Fixes # (issue)

    Cherry-pick conflict:
    ea68e8c Jing Zhang Wed Sep 21 10:52:18 2022 -0700 Post switchover reasons to STATE DB (#131)
    a5a9f90 Hua Liu Fri Sep 16 09:54:32 2022 +0800 Install libyang to azure pipeline (#132)

    sign-off: Jing Zhang zhangjing@microsoft.com
2022-10-13 11:18:30 -07:00
xumia
2955a8dc72
[202012] Change submodule path from Azure to sonic-net (#12312)
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-13 23:30:37 +08:00
Vivek
458f583e3b
[202012] [Mellanox] [SKU] Mellanox-SN4700-V48C32 SKU added (#12150)
New SKU for MSN-4700 Platform i.e. Mellanox-SN4700-C128

Requirements:
* Breakout: Port 1-32: 4x100G
* Downlinks: 120 (1-30)
* Uplinks: 8 (31-32)
* Shared Headroom: Enabled
* Over Subscribe Ratio: 1:8
* Default Topology: T2
* Default Cable Length for T2: 1500m
* QoS params: The default ones defined in qos_config.j2 will be applied
* Small Packet Percentage: Used 50% for traditional buffer model Note: For dynamic model, the value defined in LOSSLESS_TRAFFIC_PATTERN|AZURE|small_packet_percentage is used

Additional Details:
Switch Type has to be programmed as SpineRouter through config_db.json in DEVICE_METADATA|localhost|type field for the buffer values & cable lengths defined in the buffers_defaults_t2.j2 to apply on the device
Cable Lengths Used for generating buffer_defaults_{t0,t1,t2}.j2 

Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
2022-10-13 16:52:59 +03:00
Vivek
d14e6f69d5
[202012] [Mellanox] [SKU] Mellanox-SN4700-A96C8V8 SKU added (#12151)
A new SKU for MSN4700 Platform i.e. Mellanox-SN4700-A96C8V8

Requirements:

Breakout:
Port 1-24: 4x25G(4)[10G,1G]
Port 25-28: 2x100G[200G,50G,40G,25G,10G,1G]
Port 29-32: 2x200G[100G,50G,40G,25G,10G,1G]
Downlinks: 96 (1-24) + 4 (25-28)
Uplinks: 4 (29-32)
Shared Headroom: Enabled
Over Subscribe Ratio: 1:4
Default Topology: T0
Default Cable Length for T1: 5m
VxLAN source port range set: No
Static Policy Based Hashing Supported: No

Additional Details:
QoS params: The default ones defined in qos_config.j2 will be applied
Small Packet Percentage: Used 50% for traditional buffer model Note: For dynamic model, the value defined in LOSSLESS_TRAFFIC_PATTERN|AZURE|small_packet_percentage is used
SKU was drafted under the assumption that the downlink ports uses xcvr's that will only support the first 4 lanes of the physical port they are connected to. Hence for the ports 1-24, the last four lanes are not used
Cable Lengths used for generating buffer_defaults_{t0,t1}.j2 D

Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
2022-10-13 16:51:17 +03:00
mssonicbld
db63f642e2
[build] Fix dpkg front lock issue with apt-get (#12332) (#12348)
Co-authored-by: Liu Shilong <shilongliu@microsoft.com>
2022-10-13 15:35:51 +08:00
mssonicbld
dd1db72c1f
[ci/build]: Upgrade SONiC package versions (#12368) 2022-10-13 15:35:28 +08:00
Vivek
0de604baa6 [DHCP_RELAY] Updated wait_for_intf.sh to wait for ipv6 global and link local addr (#12273)
- Why I did it
Fixes #11431

- How I did it
dhcp6relay binds to ipv6 addresses configured on these vlan interfaces
Thus check if they are ready before launching dhcp6relay

- How to verify it
Unit Tests
Tested on a live device

Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
2022-10-12 23:27:03 +00:00
Liu Shilong
75581e1580 [build] Fix dpkg front lock issue with apt-get (#12332) 2022-10-12 23:27:00 +00:00
xumia
09f2d40c79 [Build][Bug] Fix apt-get remove version not lock issue (#12193)
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.
2022-10-12 23:26:54 +00:00
Dror Prital
208107f2f9
[202012][submodule] Advance sonic-utilities pointer (#12359)
Update sonic-utilities submodule pointer to include the following:

94a3436 [show] vnet endpoint [ip/ipv6] command (2342) (#2421)
84a0712 [VxLAN]Fix Vxlan delete command to throw error when there are references (#2404)
1341f58 [202012] [generate_dump]: Enhance show techsupport for cisco-8000 platform (#2395)

Signed-off-by: dprital <drorp@nvidia.com>
2022-10-12 11:47:45 +03:00
Liu Shilong
7b848ab147
[Build] Fix the build unstalbe issue caused by the kvm not ready (#12180) (#12354)
Why I did it
Fix the build unstable issue caused by the kvm 9000 port is not ready to use in 2 seconds.

2022-09-02T10:57:30.8122304Z + /usr/bin/kvm -m 8192 -name onie -boot order=cd,once=d -cdrom target/files/bullseye/onie-recovery-x86_64-kvm_x86_64_4_asic-r0.iso -device e1000,netdev=onienet -netdev user,id=onienet,hostfwd=:0.0.0.0:3041-:22 -vnc 0.0.0.0:0 -vga std -drive file=target/sonic-6asic-vs.img,media=disk,if=virtio,index=0 -drive file=./sonic-installer.img,if=virtio,index=1 -serial telnet:127.0.0.1:9000,server
2022-09-02T10:57:30.8123378Z + sleep 2.0
2022-09-02T10:57:30.8123889Z + '[' -d /proc/284923 ']'
2022-09-02T10:57:30.8124528Z + echo 'to kill kvm:  sudo kill 284923'
2022-09-02T10:57:30.8124994Z to kill kvm:  sudo kill 284923
2022-09-02T10:57:30.8125362Z + ./install_sonic.py
2022-09-02T10:57:30.8125720Z Trying 127.0.0.1...
2022-09-02T10:57:30.8126041Z telnet: Unable to connect to remote host: Connection refused

How I did it
Waiting more time until the tcp port 9000 is ready, waiting for 60 seconds in maximum.

Co-authored-by: xumia <59720581+xumia@users.noreply.github.com>
2022-10-12 15:54:06 +08:00
mssonicbld
54b0b8b557
[ci/build]: Upgrade SONiC package versions (#12355) 2022-10-11 21:45:13 +08:00
Neetha John
1b99c605a6
[202012] [minigraph] Remove SLB and bgp monitor peers for storage backend (#12262)
Why I did it
This is to backport #12251 to 202012

Signed-off-by: Neetha John <nejo@microsoft.com>
2022-10-10 14:29:41 -07:00
mssonicbld
3d8fbf4bca
[actions] Add auto cherry-pick actions to release branch (#11496) (#12336)
* [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:22:13 +08:00
mssonicbld
30adf36ce3
[ci/build]: Upgrade SONiC package versions (#12302) 2022-10-09 18:25:20 +08:00
Prince Sunny
5f4c4e5b5d
[Submodule] update sonic-restapi (#12288)
Update sonic-restapi submodule for the following commits:

86543d0 - 2022-10-05 : Updates to route PATCH API (#129) [Sumukha Tumkur Vani]
a1af82c - 2022-09-21 : Install libyang to azure pipeline (#128) [Hua Liu]
2007c4c - 2022-09-09 : Increase coverage threshold (#126) [Sumukha Tumkur Vani]
2022-10-08 10:53:01 -07:00
gechiang
1e6d63a412
[202012][BRCMSAI] 4.3.7.1-2 to back out a change that broke 4.3.7.1-1 (#12298)
This is basically the same as previous PR: (#12275)
With backing out a change that was breaking the build. Copying the same info from that PR here.
2022-10-06 21:25:34 -07:00
vdahiya12
a0f1e14c31
[202012][sonic-platform-daemons] submodule update (#12266)
Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>

git log --oneline 99d2528..202012
aacb772 (HEAD -> 202012, origin/202012) [ycabled] fix naming error for
error condition for CLI handling (#302)
f2201ab [ycabled] add some exception catching logic to some vendor
specific API's (#301)
2022-10-05 15:52:58 -07:00
gechiang
9c9d902ede
[202012]BRCM SAI 4.3.7.1-1 pick up fix CS00012263713 (mirrored packet with extra VLAN Tag) (#12275)
Pick up fix for CS00012263713 (mirrored packet with extra VLAN Tag) BRCM SAI 4.3.7.1-1

Preliminary tests look fine. BGP neighbors were all up with proper routes programmed
interfaces are all up
Manually ran the following test cases on 7050CX3 (TD3) T0 DUT and all passed:

     fib/test_fib.py
     acl/test_acl.py
     arp/test_neighbor_mac_noptf.py
     fdb/test_fdb.py
     decap/test_decap.py
     pc/test_lag_2.py
     pc/test_po_cleanup.py
     pc/test_po_update.py
     everflow/test_everflow_ipv6.py
     everflow/test_everflow_testbed.py
     route/test_default_route.py
     ipfwd/test_dip_sip.py
     copp/test_copp.py
     crm/test_crm.py
2022-10-05 09:40:55 -07:00
mssonicbld
37a189b3f3
[ci/build]: Upgrade SONiC package versions (#12277) 2022-10-05 20:57:41 +08:00
Qi Luo
c7e0d50c74
[ci]: Fix the wrong branch in build step "Download sonic-buildimage.vs artifact" (#12272) 2022-10-04 14:16:56 -07:00
mssonicbld
7474a1bcd8
[ci/build]: Upgrade SONiC package versions (#12267) 2022-10-04 21:20:48 +08:00
Xichen96
a16843a67c Enable swap for haliburton device. (#11746)
Signed-off-by: Xichen Lin <lukelin0907@gmail.com>

Signed-off-by: Xichen Lin <lukelin0907@gmail.com>
2022-10-03 22:31:00 +00:00
Ying Xie
64ce6696bb [mux] skip mux operations during warm shutdown (#11937)
* [mux] skip mux operations during warm shutdown

- Enhance write_standby.py script to skip actions during warm shutdown.
- Expand the support to BGP service.
- MuX support was added by a previous PR.
- don't skip action during warm recovery

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2022-10-03 22:30:55 +00:00
Longxiang Lyu
893391f76e [mux] Exit to write standby state to active-active ports (#11821)
[mux] Exit to write standby state to `active-active` ports

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
2022-10-03 19:52:51 +00:00
mssonicbld
a05d86a047
[ci/build]: Upgrade SONiC package versions (#12252) 2022-10-02 18:38:46 +08:00
mssonicbld
f61c84b09e
[ci/build]: Upgrade SONiC package versions (#12243) 2022-09-30 21:36:39 +08:00