Skip to content

Commit

Permalink
Merge pull request sonic-net#67 from mssonicbld/sonicbld/202205-merge
Browse files Browse the repository at this point in the history
[code sync] Merge code from sonic-net/sonic-buildimage:202205 to 202205
  • Loading branch information
mssonicbld committed Jul 20, 2023
2 parents c7a9233 + e16bf8b commit 1b844f3
Show file tree
Hide file tree
Showing 19 changed files with 168 additions and 30 deletions.
3 changes: 3 additions & 0 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,9 @@ sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'docke
# Install scapy
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'scapy==2.4.4'

# The option --no-build-isolation can be removed when upgrading PyYAML to 6.0.1
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install 'PyYAML==5.4.1' --no-build-isolation

## Note: keep pip installed for maintainance purpose

# Install GCC, needed for building/installing some Python packages
Expand Down
4 changes: 4 additions & 0 deletions dockers/docker-config-engine-bullseye/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ RUN apt-get install -y \
RUN pip3 install pyangbind==0.8.1
RUN pip3 uninstall -y enum34

# Fix armhf build failure
# The option --no-build-isolation can be removed when upgrading PyYAML to 6.0.1
RUN pip3 install PyYAML==5.4.1 --no-build-isolation

{% if docker_config_engine_bullseye_debs.strip() %}
# Copy locally-built Debian package dependencies
{{ copy_files("debs/", docker_config_engine_bullseye_debs.split(' '), "/debs/") }}
Expand Down
4 changes: 4 additions & 0 deletions dockers/docker-config-engine-buster/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ RUN apt-get install -y \
RUN pip3 install pyangbind==0.8.1
RUN pip3 uninstall -y enum34

# Fix armhf build failure
# The option --no-build-isolation can be removed when upgrading PyYAML to 6.0.1
RUN pip3 install PyYAML==5.4.1 --no-build-isolation

{% if docker_config_engine_buster_debs.strip() %}
# Copy locally-built Debian package dependencies
{{ copy_files("debs/", docker_config_engine_buster_debs.split(' '), "/debs/") }}
Expand Down
2 changes: 1 addition & 1 deletion dockers/docker-dhcp-relay/dhcpv6-relay.agents.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[program:dhcp6relay]
command=/usr/sbin/dhcp6relay
{#- Dual ToR Option #}
{% if 'subtype' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['subtype'] == 'DualToR' %} -d{% endif %}
{% if 'subtype' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['subtype'] == 'DualToR' %} -u Loopback0 {% endif %}

priority=3
autostart=false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ libnl-genl-3-dev==3.5.0-1
libnl-nf-3-200==3.5.0-1
libnl-nf-3-dev==3.5.0-1
libnl-route-3-dev==3.5.0-1
libsaibcm==7.1.36.4
libsaibcm-dev==7.1.36.4
libsaibcm==7.1.54.4
libsaibcm-dev==7.1.54.4
libsaimetadata==1.0.0
libsaimetadata-dev==1.0.0
libsairedis==1.0.0
Expand Down
8 changes: 4 additions & 4 deletions files/build/versions/default/versions-git
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
https://chromium.googlesource.com/chromium/tools/depot_tools.git==e5277508c83c3dd1596504daf64b6ea8fe7d2dd1
https://chromium.googlesource.com/chromium/tools/depot_tools.git==b389d031a263181c816b6609333a30bdecf4194b
https://github.com/aristanetworks/swi-tools.git==b5f087e4774168bf536360d43c9c509c8f14ad9f
https://github.com/CESNET/libyang.git==ea94c8b9f513f8a6ddc6ce1540fa41eaf4c8922a
https://github.com/daveolson53/audisp-tacplus.git==559c9f22edd4f2dea0ecedffb3ad9502b12a75b6
https://github.com/daveolson53/libnss-tacplus.git==19008ab68d9d504aa58eb34d5f564755a1613b8b
https://github.com/dyninc/OpenBFDD.git==e35f43ad8d2b3f084e96a84c392528a90d05a287
https://github.com/flashrom/flashrom.git==b66f4766b5d7dc614ad609f27dd2794e06b5e2a4
https://github.com/FreeRADIUS/freeradius-server.git==b3b62feb5eb01ab0182b5962265b26b7715019e4
https://github.com/flashrom/flashrom.git==ea54723cf86b8c2f670371e93d66593acea0749e
https://github.com/FreeRADIUS/freeradius-server.git==93654401bbd801f7c4fcb5e30036f14419bb1789
https://github.com/FreeRADIUS/pam_radius.git==8d373539bb9f13b0abfe8bcae0095a930a00fad0
https://github.com/jeroennijhof/pam_tacplus.git==4284d9016e64def2bb81d5f50f96dc3b59bfdc39
https://github.com/jpirko/libteam.git==7cb5de8b01be132bd4150eff460bfd83296414b6
https://github.com/lguohan/gnxi.git==b85e4ab565df4472fdcfcded2a53e6bf57aa493f
https://github.com/Marvell-switching/mrvl-prestera.git==179c08b0544db0b3a95a843e31266e00a68fb4b0
https://github.com/Mellanox/libpsample.git==62bb27d9a49424e45191eee81df7ce0d8c74e774
https://github.com/opencomputeproject/SAI.git==c48d0b8e04077b55f6f50eb262f3bd9455ec3c17
https://github.com/opencomputeproject/SAI.git==ef4b8b4176f2e213dcdd524e7951f08a0b2cef23
https://github.com/p4lang/scapy-vxlan.git==85ffe83da156568ee47a0750f638227e6e1d7479
https://github.com/sflow/host-sflow==4dc68a95fa57758119d76e42965b32493ffd7094
https://github.com/sflow/sflowtool==4ce1223bb4c2cd0cbb1dd688dc0914561fcbb6c4
Expand Down
20 changes: 10 additions & 10 deletions files/build/versions/default/versions-mirror
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
deb.nodesource.com_node%5f14.x_dists_bullseye==2023-02-17T00:35:28Z
deb.nodesource.com_node%5f14.x_dists_buster==2023-02-17T00:35:28Z
debian==20230711T000205Z
debian-security==20230711T000122Z
debian==20230716T000128Z
debian-security==20230716T000215Z
download.docker.com_linux_debian_dists_bullseye==2023-07-07T20:10:57Z
download.docker.com_linux_debian_dists_buster==2023-07-07T20:10:57Z
packages.microsoft.com_repos_sonic-dev_dists_jessie==2022-10-31T19:34:29Z
packages.trafficmanager.net_snapshot_debian-security_20230711T000122Z_dists_bullseye-security==2023-07-10T21:32:37Z
packages.trafficmanager.net_snapshot_debian-security_20230711T000122Z_dists_buster_updates==2023-07-10T21:32:36Z
packages.trafficmanager.net_snapshot_debian_20230711T000205Z_dists_bullseye==2023-06-10T08:52:21Z
packages.trafficmanager.net_snapshot_debian_20230711T000205Z_dists_bullseye-backports==2023-07-10T20:15:45Z
packages.trafficmanager.net_snapshot_debian_20230711T000205Z_dists_bullseye-updates==2023-07-10T20:15:45Z
packages.trafficmanager.net_snapshot_debian_20230711T000205Z_dists_buster==2023-06-10T08:53:33Z
packages.trafficmanager.net_snapshot_debian_20230711T000205Z_dists_buster-backports==2023-07-10T20:15:45Z
packages.trafficmanager.net_snapshot_debian_20230711T000205Z_dists_buster-updates==2023-06-10T08:55:10Z
packages.trafficmanager.net_snapshot_debian-security_20230716T000215Z_dists_bullseye-security==2023-07-14T23:42:45Z
packages.trafficmanager.net_snapshot_debian-security_20230716T000215Z_dists_buster_updates==2023-07-14T23:42:45Z
packages.trafficmanager.net_snapshot_debian_20230716T000128Z_dists_bullseye==2023-06-10T08:52:21Z
packages.trafficmanager.net_snapshot_debian_20230716T000128Z_dists_bullseye-backports==2023-07-15T20:35:32Z
packages.trafficmanager.net_snapshot_debian_20230716T000128Z_dists_bullseye-updates==2023-07-15T20:35:32Z
packages.trafficmanager.net_snapshot_debian_20230716T000128Z_dists_buster==2023-06-10T08:53:33Z
packages.trafficmanager.net_snapshot_debian_20230716T000128Z_dists_buster-backports==2023-07-15T20:35:32Z
packages.trafficmanager.net_snapshot_debian_20230716T000128Z_dists_buster-updates==2023-06-10T08:55:10Z
6 changes: 3 additions & 3 deletions files/build/versions/default/versions-web
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ https://sonicstorage.blob.core.windows.net/public/fips/bullseye/0.8/arm64/python
https://sonicstorage.blob.core.windows.net/public/fips/bullseye/0.8/arm64/python3.9_3.9.2-1+fips_arm64.deb==4d6307dabcd3060235d6188cfa0346b8
https://sonicstorage.blob.core.windows.net/public/fips/bullseye/0.8/arm64/symcrypt-openssl_0.8_arm64.deb==0ab2a6b1c621508eb5b39da92fd69060
https://sonicstorage.blob.core.windows.net/public/sai/bcmpai/REL_3.8/3.8/libsaibroncos_3.8_amd64.deb==f7c3f0ed8c97c2572e3c2e59faaae4a8
https://sonicstorage.blob.core.windows.net/public/sai/bcmsai/REL_7.0_202205/7.1.36.4/libsaibcm-dev_7.1.36.4_amd64.deb==9bc69f9e35c2ff72e681af4d0b7d2606
https://sonicstorage.blob.core.windows.net/public/sai/bcmsai/REL_7.0_202205/7.1.36.4/libsaibcm_7.1.36.4_amd64.deb==cb86b76aa2fa44fcfc37a64c1b93f2ad
https://sonicstorage.blob.core.windows.net/public/sai/bcmsai/REL_7.0_202205/7.1.42.4/libsaibcm_dnx_7.1.42.4_amd64.deb==bd8126337938bfd96befbb72838f8d8f
https://sonicstorage.blob.core.windows.net/public/sai/bcmsai/REL_7.0_202205/7.1.54.4/libsaibcm-dev_7.1.54.4_amd64.deb==70abafbf587583e1958dbbeb2dfcb058
https://sonicstorage.blob.core.windows.net/public/sai/bcmsai/REL_7.0_202205/7.1.54.4/libsaibcm_7.1.54.4_amd64.deb==1233b457ee5fff63a552dab88dbe59b1
https://sonicstorage.blob.core.windows.net/public/sai/bcmsai/REL_7.0_202205/7.1.54.4/libsaibcm_dnx_7.1.54.4_amd64.deb==fd1df3f08d48e8dd7c68dddfbe828fac
https://storage.googleapis.com/golang/go1.14.2.linux-amd64.tar.gz==856d248e3ea8a287d13e5f6afd086282
https://storage.googleapis.com/golang/go1.14.2.linux-arm64.tar.gz==e5f79b403701e00f20d13f0ea561b064
https://storage.googleapis.com/golang/go1.14.2.linux-armv6l.tar.gz==04467414e783b18de4278e9f24baf4be
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ libicu67==67.1-7
libipt2==2.0.3-1
libkmod2==28-1
libmpfr6==4.1.0-3
libsaibcm==7.1.36.4
libsaibcm==7.1.54.4
libsaithrift-dev==0.9.4
libsource-highlight-common==3.1.9-3
libsource-highlight4v5==3.1.9-3+b1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ libicu67==67.1-7
libipt2==2.0.3-1
libkmod2==28-1
libmpfr6==4.1.0-3
libsaibcm==7.1.42.4
libsaibcm==7.1.54.4
libsaimetadata==1.0.0
libsaimetadata-dbg==1.0.0
libsairedis==1.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ libicu67==67.1-7
libipt2==2.0.3-1
libkmod2==28-1
libmpfr6==4.1.0-3
libsaibcm==7.1.36.4
libsaibcm==7.1.54.4
libsaimetadata==1.0.0
libsaimetadata-dbg==1.0.0
libsairedis==1.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ libxxf86vm-dev==1:1.1.4-1+b2
libxxf86vm1==1:1.1.4-1+b2
libxxhash0==0.6.5-2
libxz-java==1.8-2
libyajl2==2.1.0-3+deb10u1
libyajl2==2.1.0-3+deb10u2
libyaml-0-2==0.2.1-1
libyaml-dev==0.2.1-1
libyaml-libyaml-perl==0.76+repack-1
Expand Down
4 changes: 3 additions & 1 deletion sonic-slave-bullseye/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,9 @@ RUN pip3 uninstall -y enum34
RUN pip3 install j2cli==0.3.10

# For sonic-mgmt-framework
RUN pip3 install "PyYAML==5.4.1"
# The option --no-build-isolation can be removed when upgrading PyYAML to 6.0.1
RUN pip3 install "PyYAML==5.4.1" --no-build-isolation

RUN pip3 install "lxml==4.9.1"

# For sonic-platform-common testing
Expand Down
6 changes: 4 additions & 2 deletions sonic-slave-buster/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,10 @@ RUN pip3 install MarkupSafe==2.0.1
RUN pip3 install Jinja2==3.0.3
# For sonic-mgmt-framework
RUN pip2 install "PyYAML==5.4.1"
RUN pip3 install "PyYAML==5.4.1"
# The option --no-build-isolation can be removed when upgrading PyYAML to 6.0.1
RUN pip2 install "PyYAML==5.4.1" --no-build-isolation
RUN pip3 install "PyYAML==5.4.1" --no-build-isolation
RUN pip2 install "lxml==4.9.1"
RUN pip3 install "lxml==4.9.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
From c423bce4db804c1d07d65ce3d06a9e62c4eceb2b Mon Sep 17 00:00:00 2001
From: stormliang <stormliang@microsoft.com>
Date: Mon, 19 Jun 2023 13:57:01 +0000
Subject: [PATCH] change log level for graceful restart events

---
bgpd/bgp_fsm.c | 44 ++++++++++++++++++++------------------------
bgpd/bgpd.c | 12 +++++-------
2 files changed, 25 insertions(+), 31 deletions(-)

diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c
index 672fa4512..e392cd6e1 100644
--- a/bgpd/bgp_fsm.c
+++ b/bgpd/bgp_fsm.c
@@ -786,9 +786,9 @@ static int bgp_graceful_restart_timer_expire(struct thread *thread)

peer = THREAD_ARG(thread);

- if (bgp_debug_neighbor_events(peer)) {
- zlog_debug("%s graceful restart timer expired", peer->host);
- zlog_debug("%s graceful restart stalepath timer stopped",
+ if (peer) {
+ zlog_info("%s graceful restart timer expired", peer->host);
+ zlog_info("%s graceful restart stalepath timer stopped",
peer->host);
}

@@ -852,8 +852,8 @@ static int bgp_graceful_stale_timer_expire(struct thread *thread)

peer = THREAD_ARG(thread);

- if (bgp_debug_neighbor_events(peer))
- zlog_debug("%s graceful restart stalepath timer expired",
+ if (peer)
+ zlog_info("%s graceful restart stalepath timer expired",
peer->host);

/* NSF delete stale route */
@@ -1427,20 +1427,18 @@ int bgp_stop(struct peer *peer)
/* graceful restart */
if (peer->t_gr_stale) {
BGP_TIMER_OFF(peer->t_gr_stale);
- if (bgp_debug_neighbor_events(peer))
- zlog_debug(
- "%s graceful restart stalepath timer stopped",
- peer->host);
+ zlog_info(
+ "%s graceful restart stalepath timer stopped",
+ peer->host);
}
if (CHECK_FLAG(peer->sflags, PEER_STATUS_NSF_WAIT)) {
- if (bgp_debug_neighbor_events(peer)) {
- zlog_debug(
- "%s graceful restart timer started for %d sec",
- peer->host, peer->v_gr_restart);
- zlog_debug(
- "%s graceful restart stalepath timer started for %d sec",
- peer->host, peer->bgp->stalepath_time);
- }
+ zlog_info(
+ "%s graceful restart timer started for %d sec",
+ peer->host, peer->v_gr_restart);
+ zlog_info(
+ "%s graceful restart stalepath timer started for %d sec",
+ peer->host, peer->bgp->stalepath_time);
+
BGP_TIMER_ON(peer->t_gr_restart,
bgp_graceful_restart_timer_expire,
peer->v_gr_restart);
@@ -2205,18 +2203,16 @@ static int bgp_establish(struct peer *peer)
UNSET_FLAG(peer->sflags, PEER_STATUS_NSF_MODE);
if (peer->t_gr_stale) {
BGP_TIMER_OFF(peer->t_gr_stale);
- if (bgp_debug_neighbor_events(peer))
- zlog_debug(
- "%s graceful restart stalepath timer stopped",
- peer->host);
+ zlog_info(
+ "%s graceful restart stalepath timer stopped",
+ peer->host);
}
}

if (peer->t_gr_restart) {
BGP_TIMER_OFF(peer->t_gr_restart);
- if (bgp_debug_neighbor_events(peer))
- zlog_debug("%s graceful restart timer stopped",
- peer->host);
+ zlog_info("%s graceful restart timer stopped",
+ peer->host);
}

/* Reset uptime, turn on keepalives, send current table. */
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index 7e528b219..2fc471555 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -2346,16 +2346,14 @@ void peer_nsf_stop(struct peer *peer)

if (peer->t_gr_restart) {
BGP_TIMER_OFF(peer->t_gr_restart);
- if (bgp_debug_neighbor_events(peer))
- zlog_debug("%s graceful restart timer stopped",
- peer->host);
+ zlog_info("%s graceful restart timer stopped",
+ peer->host);
}
if (peer->t_gr_stale) {
BGP_TIMER_OFF(peer->t_gr_stale);
- if (bgp_debug_neighbor_events(peer))
- zlog_debug(
- "%s graceful restart stalepath timer stopped",
- peer->host);
+ zlog_info(
+ "%s graceful restart stalepath timer stopped",
+ peer->host);
}
bgp_clear_route_all(peer);
}
--
2.25.1

1 change: 1 addition & 0 deletions src/sonic-frr/patch/series
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ Disable-ipv6-src-address-test-in-pceplib.patch
0012-Ensure-ospf_apiclient_lsa_originate-cannot-accidently-write-into-stack.patch
0027-bgpd-Ensure-FRR-has-enough-data-to-read-in-peek_for_as4_capability-and-bgp_open_option_parse.patch
0028-bgpd-Ensure-that-bgp-open-message-stream-has-enough-data-to-read.patch
0029-bgpd-Change-log-level-for-graceful-restart-events.patch
2 changes: 1 addition & 1 deletion src/sonic-swss

0 comments on commit 1b844f3

Please sign in to comment.