forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request sonic-net#64 from mssonicbld/sonicbld/202205-merge
[code sync] Merge code from sonic-net/sonic-buildimage:202205 to 202205
- Loading branch information
Showing
12 changed files
with
60 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
3 changes: 2 additions & 1 deletion
3
files/build/versions/build/build-sonic-slave-bullseye/versions-py3-all-arm64
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
bitarray==1.5.3 | ||
click==7.0 | ||
requests==2.31.0 | ||
requests==2.31.0 | ||
zipp==1.2.0 |
This file contains 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
This file contains 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
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==20230708T000223Z | ||
debian-security==20230708T000216Z | ||
debian==20230711T000205Z | ||
debian-security==20230711T000122Z | ||
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_20230708T000216Z_dists_bullseye-security==2023-07-07T18:55:09Z | ||
packages.trafficmanager.net_snapshot_debian-security_20230708T000216Z_dists_buster_updates==2023-07-07T18:55:09Z | ||
packages.trafficmanager.net_snapshot_debian_20230708T000223Z_dists_bullseye==2023-06-10T08:52:21Z | ||
packages.trafficmanager.net_snapshot_debian_20230708T000223Z_dists_bullseye-backports==2023-07-07T20:52:01Z | ||
packages.trafficmanager.net_snapshot_debian_20230708T000223Z_dists_bullseye-updates==2023-07-07T20:52:01Z | ||
packages.trafficmanager.net_snapshot_debian_20230708T000223Z_dists_buster==2023-06-10T08:53:33Z | ||
packages.trafficmanager.net_snapshot_debian_20230708T000223Z_dists_buster-backports==2023-07-07T20:52:01Z | ||
packages.trafficmanager.net_snapshot_debian_20230708T000223Z_dists_buster-updates==2023-06-10T08:55:10Z | ||
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 |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[module] | ||
repo=git@github.com:Cisco-8000-sonic/platform-cisco-8000.git | ||
ref=202205.2.2.7 | ||
ref=202205.2.2.8 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
# This script is used by k8s to check the readiness of containers | ||
# Check if the container is readiness or not, exit code 0 means readiness, others mean not readiness | ||
|
||
#### exit code contract, k8s only cares zero or not none-zero, but we want to use none-zero code to indicate different error | ||
# 0: readiness | ||
# 1: if the hook script is python code, the default crash exit code is 1 | ||
# 2: supervisor start service doesn't exit normally | ||
# other exit code: returned by post_check_script, define in the post_check_script, should not include 1,2 | ||
|
||
# check if the start service exists | ||
# if the start service doesn't exist, do nothing | ||
# if the start service exists, check if it exits normally | ||
# if the start service doesn't exit normally, exit with code 2 | ||
pre_check_service_name="start" | ||
no_process_string="ERROR (no such process)" | ||
service_status=$(supervisorctl status $pre_check_service_name) | ||
if [[ $service_status != *"$no_process_string"* ]] && [[ $(echo $service_status |awk '{print $2}') != 'EXITED' ]]; then | ||
exit 2 | ||
fi | ||
|
||
# feature owner can add their own readiness check script | ||
# check if the post_check_script exists | ||
# if the post_check_script exists, run it | ||
# if the post_check_script exits with non-zero code, exit with the code | ||
post_check_script="/usr/bin/readiness_probe_hook" | ||
if [ -x $post_check_script ]; then | ||
$post_check_script | ||
post_check_result=$? | ||
if [ $post_check_result != 0 ]; then | ||
exit $post_check_result | ||
fi | ||
fi | ||
|
||
exit 0 |