Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
1357d10
[install.sh] Fixed the sed pattern to match the current image revisio…
vadymhlushko-mlnx Feb 4, 2022
0629e5b
[yang] Fix for sonic-scheduler.yang name pattern (#9873)
AshokDaparthi Feb 5, 2022
7a4c58f
[sonic-linkmgrd][master] submodule update (#9904)
zjswhhh Feb 5, 2022
e5ee501
Remove redundant breakout mode for SN3800 (#9912)
alexrallen Feb 6, 2022
0ae2906
[Mellanox] Update mellanox hw-mgmt submodule and versions to V.7.0020…
alexrallen Feb 6, 2022
cd77efa
[submodule] Update sonic-utilities submodule (#9871)
dprital Feb 7, 2022
9c5f38b
[AS7726-32X] Add to support mulit PSU SN in PDDF (#8164)
jostar-yang Feb 7, 2022
ddfe87a
[BRCMSAI 6.0.0.13-1] Fix Cancun file directory at new location causin…
gechiang Feb 7, 2022
eff80f7
[swss]: Reduce tunnel_packet_handler memory usage (#9762)
theasianpianist Feb 7, 2022
4f480ec
[build] Add more dependencies to sonic-config-engine (#9894)
liushilongbuaa Feb 8, 2022
09b3efc
[BFN] Updated SDK to 20220127_sai_1.9.1 (#9870)
Feb 8, 2022
49382d7
[SAIServerV2] Build SAI Serverv2 docker (#9509)
richardyu-ms Feb 8, 2022
e44a40c
Updated Internal BGP Templates for chassis packet (#9674)
abdosi Feb 8, 2022
d136a39
[Nokia][platform] Modified Nokia device data to support midplane (#9914)
saksarav-nokia Feb 8, 2022
4361224
[Mellanox] Add platform.json file into sn4800 SIMx environment (#9931)
dprital Feb 9, 2022
05cc8f9
[Mellanox] Fix issue: SN4600C has 4 CPU core temperature sensors (#9930)
Junchao-Mellanox Feb 9, 2022
25a0ce5
[asan] Add address sanitizer support. (#9857)
oleksandrivantsiv Feb 9, 2022
914a8a1
[sonic-config-engine]: Update minigraph parser to support enable DHCP…
Blueve Feb 10, 2022
f9a29ef
[AS4630-54PE] Add to support PDDF (#8014)
jostar-yang Feb 10, 2022
519dcde
[AS7712-32X] Add to support PDDF (#8040)
jostar-yang Feb 10, 2022
62934ad
updated jinja template for snmp contact python2 vs python3 issue (#9949)
tsvanduyn Feb 10, 2022
09b0cc2
DellEMC: Fix Z9332f thermalctld warning logs (#9943)
aravindmani-1 Feb 10, 2022
b621daf
[yang] Adding not-provisioned to type field in DEVICE_METADATA table …
dgsudharsan Feb 10, 2022
486e9b0
Fix issue: module id got from get_change_event is wrong (#9961)
stephenxs Feb 13, 2022
dd87b94
[Mellanox][vxlan] remove old static config for VXLAN src port range f…
ayurkiv-nvda Feb 13, 2022
129e9d1
fix MSN4410 chassis name in platform_components.json (#9939)
keboliu Feb 13, 2022
7af5fcf
update sonic-snmpagent submodule (#9935)
keboliu Feb 13, 2022
675bceb
[submodule] Update linux-kernel submodule pointer (#9937)
alexrallen Feb 13, 2022
4d203fb
[Build]: Fix hundreds of thousands lines of logs printed in marvell-a…
xumia Feb 13, 2022
aad2761
Update Nokia sonic-platform submodule (#9963)
mlok-nokia Feb 14, 2022
7e89fad
[AS4630-54TE] Fixes to sfp.py for sfputil usage (#8985)
seanwu-ec Feb 14, 2022
155220b
Support multi-asic on macsec container (#9921)
byu343 Feb 14, 2022
cf1bc8d
[Mellanox] Upgrade ASIC FW tool to 4.18.1-16 (#9981)
dprital Feb 14, 2022
0b59f0b
[yang]YANG model for policer table (#9948)
dgsudharsan Feb 14, 2022
1223a7b
Update template pull_request_template.md (#9888)
dgsudharsan Feb 14, 2022
9677401
[pmon] Fix chassis_db_init exit not being expected (#9858)
alexrallen Feb 15, 2022
125fe99
Bump Thrift version from 0.13.0 to 0.14.1 (#9881)
Feb 16, 2022
b023c29
[redis] Upgrade redis version (#9757)
xjasonlyu Feb 16, 2022
b7ae4f2
Dell S6100: Addition of 10G ports (#9988)
aravindmani-1 Feb 16, 2022
f136c53
[radv] Support multiple ipv6 prefixes per vlan interface (#9934)
kellyyeh Feb 16, 2022
fb752a4
[rsyslog.j2] fix typo in VAR_LOG_SIZE_KB (#9954)
stepanblyschak Feb 17, 2022
5ce75ac
[nvgre] Added YANG model and tests (#9136)
vadymhlushko-mlnx Feb 17, 2022
d540492
caclmgrd: remove permit source port 179 (#9827)
bluecmd Feb 17, 2022
bec3526
[BFN] syncd-rpc build with thrift 0.14.1 (#9884)
Feb 18, 2022
2210c82
[PTF-SAIv2]Add ptf docker for sai-ptf (saiv2) (#9729)
richardyu-ms Feb 18, 2022
d2f6fe7
Add support for Accton wedge100bf_32qs platform to SONiC master (#9257)
alvinkaiwei Feb 18, 2022
a7f6130
[submodule] swss-common and py-swssdk updates (#9777)
TACappleman Feb 18, 2022
f65a071
[Build]: Fix marvell sai package version parsing issue
xumia Feb 19, 2022
f21a45b
[build] fix build exception and revert #9136 (#10037)
ghooo Feb 21, 2022
3bbe562
[build] Increase vs platform kvm disk size (#10001)
liushilongbuaa Feb 22, 2022
55e7a14
[submodule]: Advance sonic-utilities. (#10058)
nazariig Feb 22, 2022
4a2a0df
[submodule]: Update sonic-swss (#9978)
Pterosaur Feb 23, 2022
2489727
Generate sai.profile from j2 tempalte when saiserver start (#10022)
richardyu-ms Feb 23, 2022
9fe128c
Fix issue of parsing syseeprom value with whitespace in middle (#10021)
wangxin Feb 23, 2022
937ffbd
[submodule]: Update sonic-sairedis (#10061)
Pterosaur Feb 23, 2022
bc1dfea
Updated traffic scheduler settings for HWSKUs : DellEMC-Z9332f-O32 a…
vmittal-msft Feb 24, 2022
72477bc
[submodule] Update submodule for sonic-swss-common (#10012)
Junchao-Mellanox Feb 24, 2022
2d0b063
Update container_checker for multi-asic devices when state is 'always…
wenyiz2021 Feb 24, 2022
4402872
Split kvmtest t0 job into two jobs and run in parallel (#10044)
ZhaohuiS Feb 24, 2022
d82eafd
[system-health] Fix file handle leak (#10059)
Junchao-Mellanox Feb 24, 2022
fe59e0f
[Mellanox] Fix issue: thermal zone threshold value 0 causes fan speed…
Junchao-Mellanox Feb 24, 2022
2bfad16
Fix Headroom value for 7260C64 SKU (#10075)
abdosi Feb 24, 2022
fd22635
[chassis][bgp] create v4 and v6 peer group for VoQ internal neighbors…
arlakshm Feb 24, 2022
a50d1f1
[write_standby]: Increase timeout to 60s (#10065)
theasianpianist Feb 24, 2022
b101b02
[Security]: Upgrade urllib3 to fix CVE-2021-33503
xumia Feb 25, 2022
c9cf4d9
sonic-slave-buster pins the versions of Jinja2 and MarkupSafe in py3 …
qiluo-msft Feb 25, 2022
9120487
[swss]: Wait for vlan intf to start ndppd (#10036)
theasianpianist Feb 25, 2022
8dc00ef
[mellanox] Fix DPB supported breakout modes (#10072)
alexrallen Feb 25, 2022
5e1acf0
[Nokia][platform]Modify BCM config & platform_reboot for Nokia-IXR725…
saksarav-nokia Feb 26, 2022
47870ce
Stop PMON before swss during warm reboot (#10046)
Junchao-Mellanox Feb 27, 2022
b8fa5e0
install xmlrunner python3 version (#10086)
RyoYang Feb 28, 2022
5daf482
[Marevell] Fix armhf build failure (#9875)
rajkumar38 Feb 28, 2022
7c4fbf0
[Mellanox] Add patch to hw-mgmt to prevent loading of non-existent ke…
alexrallen Feb 28, 2022
afa18e2
[build_debian.sh]: Fix /var/log having 0750 permissions instead of 07…
saiarcot895 Feb 28, 2022
6c31fc6
Dell: S6100 fix xcvrd crash (#10062)
aravindmani-1 Feb 28, 2022
47d9b26
Revert "[swss]: Wait for vlan intf to start ndppd (#10036)" (#10085)
theasianpianist Feb 28, 2022
b617ffd
[AS9716-32d] Modify check eeprom via pre_pddf sh (#7827)
jostar-yang Mar 1, 2022
74e790c
[as7816-64x]Modify to check specific DUT (#7826)
jostar-yang Mar 1, 2022
76363cf
[AS7326-5X] Fix code bug for led drv (#8555)
jostar-yang Mar 1, 2022
3bb87c0
[yang]: Add yang models for BGP_PEER_RANGE table (#10082)
ganglyu Mar 2, 2022
7891760
[yang-models] Add chassis fields to device_metadata (#10006)
mlorrillere Mar 2, 2022
1740beb
[sonic-cfggen]: Fix sonic-cfggen build failures for armhf (#10132)
aravindmani-1 Mar 2, 2022
4d2a55d
[swss]: Wait for vlan intf to start ndppd (#10119)
theasianpianist Mar 3, 2022
14de0a1
[containerd]Fixing container commands when mode is local and state is…
dgsudharsan Mar 3, 2022
e104247
[nvgre] Added YANG model and tests (#10095)
vadymhlushko-mlnx Mar 3, 2022
582ea7c
[Unit Test]: Fix sonic config engine test not stable issue(#10147)
xumia Mar 3, 2022
34a4817
[AS7712/PDDF] Add idle_state=-2 for pca954x deselect (#10079)
jostar-yang Mar 3, 2022
482ff1c
[pddf]: Support for idle_state device parameter is required for muxes…
FuzailBrcm Mar 3, 2022
a3c1051
[as7326-56x] Modify to check eeprom by pre_pddf_init.sh (#7841)
jostar-yang Mar 3, 2022
b400a64
[Marvell] Update armhf driver/sai deb version (#10126)
rajkumar38 Mar 4, 2022
622962a
[linkmgrd]: update linkmgrd submodule (#10117)
zjswhhh Mar 4, 2022
d0ff8b5
[pmon] Clean up supervisord chassis_db_init entry and fix startsecs (…
alexrallen Mar 4, 2022
c40f04f
[chassis][supervisor]monit container-checker failed due to unexpected…
mlok-nokia Mar 4, 2022
55a0722
support BGP_ALLOWED_PREFIXES (#10142)
StormLiangMS Mar 5, 2022
85976cb
[AS5835-54X] Fix I2C bus order (#9146)
jostar-yang Mar 5, 2022
d959c4a
[AS4630-54PE] Fix led drv and i2c bus order (#9170)
jostar-yang Mar 5, 2022
b2409be
DellEMC: N3248TE Platform API 2.0 changes (#9735)
arunlk-dell Mar 5, 2022
2ef9d65
[yang]: AAA login pattern (#9805)
ganglyu Mar 7, 2022
eec49a2
[yang] support acl MIRROR_ACTION (#10100)
wen587 Mar 7, 2022
78e867a
[YANG]: Update port Yang models to support multi-asic platform (#10113)
ganglyu Mar 7, 2022
fe0a769
[smartmontools] Install smartmontools with apt-get and upgrade it to …
keboliu Mar 7, 2022
d9a61b0
send log to /var/log/syslog; Add user info the message (#10033)
renukamanavalan Mar 7, 2022
14921e3
[Build][Ci]: Support to use the cisco sai packages built by azp (#10102)
xumia Mar 8, 2022
29f6b01
[sonic-cfggen]: Fix generated deployment_id (#10154)
ganglyu Mar 8, 2022
f1d6d7c
[Build]: Fix the bin image generated from raw image issue (#10083)
xumia Mar 8, 2022
d112e7c
[submodule] Update sonic-utilities (#10163)
wen587 Mar 8, 2022
bf5f9c2
[BFN] Update configuration files (#9913)
KostiantynYarovyiBf Mar 9, 2022
3fa18d1
Add necessary changes for python3 virtual environment of sonic-mgmt d…
OleksandrKozodoi Mar 9, 2022
0179844
[Chassis][QoS template] Skip configuring buffer and QoS config on rec…
ysmanman Mar 10, 2022
8601709
[bgpcfgd] to support removal part of configuration of bgp allowed pre…
StormLiangMS Mar 10, 2022
c8db7a2
[Mellanox][SAISERVER] Support Mellanox saiserverv1 and saiserverv2 do…
RyoYang Mar 10, 2022
a89f294
[BFN] Implementation API for platform component (#10180)
Mar 10, 2022
861ea26
[yang]: Update DEVICE_METADATA yang models to support 'sub_role' (#10…
wen587 Mar 10, 2022
560c0d9
Adding libubootenv-tool into bullseye image (#10146)
pavannaregundi Mar 10, 2022
f34b5e6
[Submodule]: Update submodule for sonic-telemetry (#10124)
xumia Mar 11, 2022
9cdf812
[Build]: Fix /proc not mounted issue (#10164)
xumia Mar 11, 2022
759172d
[BFN] Regenerated pltfm_mgr_rpc.py to the latest version (#10180) (#1…
Mar 11, 2022
a29ba9c
Correct thrift 0141 typo fix (#10199)
RyoYang Mar 11, 2022
8d419ca
[Arista] Remove arista.log from rsyslog default logrotate (#9731)
Staphylo Mar 11, 2022
092b0b2
[Build]: fix some version info missing in version control files issue…
xumia Mar 12, 2022
ebe2d19
[Build]: Clean up pip cache (#10143)
xumia Mar 12, 2022
b73da48
Install the allure-pytest package globally in sonic-mgmt docker (#10216)
xwjiang-ms Mar 12, 2022
7178c66
[Build]: Fix installing dpkg packages in parallel issue (#10175)
xumia Mar 14, 2022
eea3cc7
[Build]: only install grpc in amd64 (#10212)
xumia Mar 14, 2022
3fa627f
Add a config variable to override default container registry instead …
liushilongbuaa Mar 14, 2022
2919b48
[hostcfgd] record feature state in STATE DB (#9842)
stepanblyschak Mar 14, 2022
330eb8d
update submodule sonic-py-swsssdk (#10220)
ysmanman Mar 14, 2022
d7c3ce0
Specify the filesystem type when mounting to /host (#10169)
saiarcot895 Mar 14, 2022
0243ed9
[build]: Fix marvell-armhf build hung issue (#10156) (#10229)
xumia Mar 15, 2022
286ff28
[sonic-config-engine] Add failure details in sonic-config-engine unit…
liushilongbuaa Mar 15, 2022
18d00df
[teamd.sh] kill teamd docker on warm shutdown for faster shutdown (#1…
stepanblyschak Mar 15, 2022
d08add5
[submodule] Update sonic-swss submodule pointer (#10209)
stephenxs Mar 15, 2022
5a531f4
[Nokia][VoQ] The role of the Inband port should be "Inb" and recycle …
mlok-nokia Mar 15, 2022
28f6a51
[doc] Moving Configuration.md from swss to sonic-yang-models folder (…
dgsudharsan Mar 15, 2022
004dc69
[BRCM SAI 6.0.0.13-3] Fix Warmreboot issue (#10225)
gechiang Mar 15, 2022
98cfec2
Using SFP refactoring framework in PDDF sfp class (#10047)
FuzailBrcm Mar 16, 2022
5617b1a
Image disk space reduction (#10172)
saiarcot895 Mar 16, 2022
c5849c9
Add scapy support for python3 virtual environment in the sonic-mgmt d…
OleksandrKozodoi Mar 16, 2022
5c7aa50
DellEMC: Z9332f - Component API Fixes (#10187)
ArunSaravananBalachandran Mar 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 30 additions & 0 deletions .azure-pipelines/official-build-cisco-8000.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,19 @@ resources:
name: Cisco-8000-sonic/platform-cisco-8000
endpoint: cisco-connection

variables:
- group: SONIC-AKV-STROAGE-1
- name: StorageSASKey
value: $(sonicstorage-SasToken)

stages:
- stage: Build
pool: sonic
variables:
CACHE_MODE: wcache
SKIP_CHECKOUT: true
TERM: ''
PACKAGE_URL: "https://sonicstorage.blob.core.windows.net/packages"

jobs:
- template: azure-pipelines-build.yml
Expand Down Expand Up @@ -60,5 +66,29 @@ stages:
make PLATFORM=cisco-8000 platform/cisco-8000
tar xfz $(System.ArtifactsDirectory)/artifactory-*.tar.gz -C platform/cisco-8000
displayName: 'Setup cisco artifacts'
- script: |
set -ex
filename=$(find platform/cisco-8000/artifactory/sonic -name cisco-* -type f | head -n 1)
if [ -z "$filename" ]; then
echo "Cisco sai package not found" 1>&2
exit 1
fi
cd $(dirname $filename)
echo "PWD=$(pwd)"
ls -l *.deb
while read -r package; do
# Cisco version format: <VERSION>-sai-<sai-ver>-<distribution>-<COMMIT HASH>
# The <sai-ver> may contain several values in one build, the part is skipped when publishing to storage
# See https://github.com/Cisco-8000-sonic/sdk/blob/master/azure-pipelines.yml
# The $PACKAGE_URL is only accessible for AZP
version=$(echo $package | awk -F_ '{print $(NF-1)}' | cut -d- -f1,2,4,5)
package_url="$PACKAGE_URL/sai/ciscosai/master/$version/$package"
echo "Override package $package from $package_url"
wget "$package_url$StorageSASKey" -O "$package"
done < <(ls *.deb)
env:
StorageSASKey: $(StorageSASKey)
condition: ne(variables['Build.Reason'], 'PullRequest')
displayName: "Override cisco sai packages"
jobGroups:
- name: cisco-8000
11 changes: 7 additions & 4 deletions .azure-pipelines/run-test-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ parameters:
type: string
- name: ptf_name
type: string
- name: section
type: string
default: ''
- name: image
type: string
default: sonic-vs.img.gz
Expand Down Expand Up @@ -43,7 +46,7 @@ steps:

- script: |
rm -rf $(Build.ArtifactStagingDirectory)/*
docker exec sonic-mgmt bash -c "/data/sonic-mgmt/tests/kvmtest.sh -en -T ${{ parameters.tbtype }} ${{ parameters.tbname }} ${{ parameters.dut }}"
docker exec sonic-mgmt bash -c "/data/sonic-mgmt/tests/kvmtest.sh -en -T ${{ parameters.tbtype }} ${{ parameters.tbname }} ${{ parameters.dut }} ${{ parameters.section }}"
displayName: "Run tests"

- script: |
Expand Down Expand Up @@ -75,17 +78,17 @@ steps:
condition: succeededOrFailed()

- publish: $(Build.ArtifactStagingDirectory)/kvmdump
artifact: sonic-buildimage.kvmtest.${{ parameters.tbtype}}.memdump@$(System.JobAttempt)
artifact: sonic-buildimage.kvmtest.${{ parameters.tbtype}}${{ parameters.section }}.memdump@$(System.JobAttempt)
displayName: "Archive sonic kvm memdump"
condition: failed()

- publish: $(Build.ArtifactStagingDirectory)/logs
artifact: sonic-buildimage.kvmtest.${{ parameters.tbtype }}.log@$(System.JobAttempt)
artifact: sonic-buildimage.kvmtest.${{ parameters.tbtype }}${{ parameters.section }}.log@$(System.JobAttempt)
displayName: "Archive sonic kvm logs"
condition: succeededOrFailed()

- task: PublishTestResults@2
inputs:
testResultsFiles: '$(Build.ArtifactStagingDirectory)/logs/**/*.xml'
testRunTitle: kvmtest.${{ parameters.tbtype }}
testRunTitle: kvmtest.${{ parameters.tbtype }}${{ parameters.section }}
condition: succeededOrFailed()
7 changes: 7 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,20 @@
- [ ] 202006
- [ ] 202012
- [ ] 202106
- [ ] 202111

#### Description for the changelog
<!--
Write a short (one line) summary that describes the changes in this
pull request for inclusion in the changelog:
-->

#### Link to config_db schema for YANG module changes
<!--
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.
-->

#### A picture of a cute animal (not mandatory but encouraged)

5 changes: 4 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,7 @@
url = https://github.com/Azure/sonic-linkmgrd.git
[submodule "src/sonic-p4rt/sonic-pins"]
path = src/sonic-p4rt/sonic-pins
url = https://github.com/Azure/sonic-pins.git
url = https://github.com/Azure/sonic-pins.git
[submodule "src/thrift_0_14_1/thrift"]
path = src/thrift_0_14_1/thrift
url = https://github.com/apache/thrift.git
11 changes: 9 additions & 2 deletions Makefile.work
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ rules/config.user:
include rules/config
-include rules/config.user

ifneq ($(DEFAULT_CONTAINER_REGISTRY),)
override DEFAULT_CONTAINER_REGISTRY := $(DEFAULT_CONTAINER_REGISTRY)/
endif

ifeq ($(ENABLE_DOCKER_BASE_PULL),)
override ENABLE_DOCKER_BASE_PULL = n
endif
Expand All @@ -139,9 +143,9 @@ $(shell SONIC_VERSION_CONTROL_COMPONENTS=$(SONIC_VERSION_CONTROL_COMPONENTS) \
scripts/generate_buildinfo_config.sh)

# Generate the slave Dockerfile, and prepare build info for it
$(shell CONFIGURED_ARCH=$(CONFIGURED_ARCH) MULTIARCH_QEMU_ENVIRON=$(MULTIARCH_QEMU_ENVIRON) DOCKER_EXTRA_OPTS=$(DOCKER_EXTRA_OPTS) j2 $(SLAVE_DIR)/Dockerfile.j2 > $(SLAVE_DIR)/Dockerfile)
$(shell CONFIGURED_ARCH=$(CONFIGURED_ARCH) MULTIARCH_QEMU_ENVIRON=$(MULTIARCH_QEMU_ENVIRON) DOCKER_EXTRA_OPTS=$(DOCKER_EXTRA_OPTS) DEFAULT_CONTAINER_REGISTRY=$(DEFAULT_CONTAINER_REGISTRY) j2 $(SLAVE_DIR)/Dockerfile.j2 > $(SLAVE_DIR)/Dockerfile)
$(shell CONFIGURED_ARCH=$(CONFIGURED_ARCH) MULTIARCH_QEMU_ENVIRON=$(MULTIARCH_QEMU_ENVIRON) j2 $(SLAVE_DIR)/Dockerfile.user.j2 > $(SLAVE_DIR)/Dockerfile.user)
$(shell BUILD_SLAVE=y scripts/prepare_docker_buildinfo.sh $(SLAVE_BASE_IMAGE) $(SLAVE_DIR)/Dockerfile $(CONFIGURED_ARCH) "" $(BLDENV))
$(shell BUILD_SLAVE=y DEFAULT_CONTAINER_REGISTRY=$(DEFAULT_CONTAINER_REGISTRY) scripts/prepare_docker_buildinfo.sh $(SLAVE_BASE_IMAGE) $(SLAVE_DIR)/Dockerfile $(CONFIGURED_ARCH) "" $(BLDENV))

# Add the versions in the tag, if the version change, need to rebuild the slave
SLAVE_BASE_TAG = $(shell cat $(SLAVE_DIR)/Dockerfile $(SLAVE_DIR)/buildinfo/versions/versions-* src/sonic-build-hooks/hooks/* | sha1sum | awk '{print substr($$1,0,11);}')
Expand Down Expand Up @@ -270,6 +274,7 @@ SONIC_BUILD_INSTRUCTION := make \
SONIC_ENABLE_PFCWD_ON_START=$(ENABLE_PFCWD_ON_START) \
SONIC_ENABLE_SYNCD_RPC=$(ENABLE_SYNCD_RPC) \
SONIC_INSTALL_DEBUG_TOOLS=$(INSTALL_DEBUG_TOOLS) \
SONIC_SAITHRIFT_V2=$(SAITHRIFT_V2) \
MDEBUG=$(MDEBUG) \
PASSWORD=$(PASSWORD) \
USERNAME=$(USERNAME) \
Expand All @@ -290,10 +295,12 @@ SONIC_BUILD_INSTRUCTION := make \
EXTRA_DOCKER_TARGETS=$(EXTRA_DOCKER_TARGETS) \
BUILD_LOG_TIMESTAMP=$(BUILD_LOG_TIMESTAMP) \
SONIC_ENABLE_IMAGE_SIGNATURE=$(ENABLE_IMAGE_SIGNATURE) \
SONIC_DEFAULT_CONTAINER_REGISTRY=$(DEFAULT_CONTAINER_REGISTRY) \
ENABLE_HOST_SERVICE_ON_START=$(ENABLE_HOST_SERVICE_ON_START) \
SLAVE_DIR=$(SLAVE_DIR) \
ENABLE_AUTO_TECH_SUPPORT=$(ENABLE_AUTO_TECH_SUPPORT) \
BUILD_MULTIASIC_KVM=$(BUILD_MULTIASIC_KVM) \
ENABLE_ASAN=$(ENABLE_ASAN) \
$(SONIC_OVERRIDE_BUILD_VARS)

.PHONY: sonic-slave-build sonic-slave-bash init reset
Expand Down
41 changes: 39 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ stages:
testResultsFiles: '**/tr.xml'
testRunTitle: vstest

- job:
- job: t0_part1
pool: sonictest
displayName: "kvmtest-t0"
displayName: "kvmtest-t0-part1"
timeoutInMinutes: 360

steps:
Expand All @@ -116,6 +116,43 @@ stages:
tbname: vms-kvm-t0
ptf_name: ptf_vms6-1
tbtype: t0
section: part-1

- job: t0_part2
pool: sonictest
displayName: "kvmtest-t0-part2"
timeoutInMinutes: 360

steps:
- template: .azure-pipelines/run-test-template.yml
parameters:
dut: vlab-01
tbname: vms-kvm-t0
ptf_name: ptf_vms6-1
tbtype: t0
section: part-2

- job:
pool: sonictest
displayName: "kvmtest-t0"
timeoutInMinutes: 360
dependsOn:
- t0_part1
- t0_part2
condition: always()
variables:
resultOfPart1: $[ dependencies.t0_part1.result ]
resultOfPart2: $[ dependencies.t0_part2.result ]

steps:
- script: |
if [ $(resultOfPart1) == "Succeeded" ] && [ $(resultOfPart2) == "Succeeded" ]; then
echo "Both job kvmtest-t0-part1 and kvmtest-t0-part2 are passed."
exit 0
else
echo "Either job kvmtest-t0-part1 or job kvmtest-t0-part2 failed! Please check the detailed information."
exit 1
fi

- job:
pool: sonictest-t1-lag
Expand Down
21 changes: 17 additions & 4 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ mkdir -p $FILESYSTEM_ROOT/$PLATFORM_DIR
mkdir -p $FILESYSTEM_ROOT/$PLATFORM_DIR/x86_64-grub
touch $FILESYSTEM_ROOT/$PLATFORM_DIR/firsttime

## ensure proc is mounted
sudo mount proc /proc -t proc || true

## make / as a mountpoint in chroot env, needed by dockerd
pushd $FILESYSTEM_ROOT
sudo mount --bind . .
Expand Down Expand Up @@ -190,7 +193,7 @@ if [ -f platform/$CONFIGURED_PLATFORM/modules ]; then
fi

## Add mtd and uboot firmware tools package
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y install u-boot-tools mtd-utils device-tree-compiler
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y install u-boot-tools libubootenv-tool mtd-utils device-tree-compiler

## Install docker
echo '[INFO] Install docker'
Expand Down Expand Up @@ -328,8 +331,13 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
jq \
auditd

# Change auditd log file path to fix auditd can't startup issue.
sudo LANG=C chroot $FILESYSTEM_ROOT /bin/bash -c "sudo sed -i 's/^\s*log_file\s*=.*/log_file = \/var\/log\/audit.log/g' /etc/audit/auditd.conf"
# Have systemd create the auditd log directory
sudo mkdir -p ${FILESYSTEM_ROOT}/etc/systemd/system/auditd.service.d
sudo tee ${FILESYSTEM_ROOT}/etc/systemd/system/auditd.service.d/log-directory.conf >/dev/null <<EOF
[Service]
LogsDirectory=audit
LogsDirectoryMode=0750
EOF

if [[ $CONFIGURED_ARCH == amd64 ]]; then
## Pre-install the fundamental packages for amd64 (x86)
Expand Down Expand Up @@ -554,6 +562,9 @@ if [[ $CONFIGURED_ARCH == armhf || $CONFIGURED_ARCH == arm64 ]]; then
fi
fi

# Collect host image version files before cleanup
scripts/collect_host_image_version_files.sh $TARGET_PATH $FILESYSTEM_ROOT

# Remove GCC
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y remove gcc

Expand All @@ -566,6 +577,9 @@ sudo LANG=C chroot $FILESYSTEM_ROOT bash -c 'rm -rf /usr/share/doc/* /usr/share/
## Clean up proxy
[ -n "$http_proxy" ] && sudo rm -f $FILESYSTEM_ROOT/etc/apt/apt.conf.d/01proxy

## Clean up pip cache
sudo LANG=C chroot $FILESYSTEM_ROOT pip3 cache purge

## Umount all
echo '[INFO] Umount all'
## Display all process details access /proc
Expand All @@ -585,7 +599,6 @@ sudo rm -f $ONIE_INSTALLER_PAYLOAD $FILESYSTEM_SQUASHFS
## Note: -x to skip directories on different file systems, such as /proc
sudo du -hsx $FILESYSTEM_ROOT
sudo mkdir -p $FILESYSTEM_ROOT/var/lib/docker
scripts/collect_host_image_version_files.sh $TARGET_PATH $FILESYSTEM_ROOT
sudo mksquashfs $FILESYSTEM_ROOT $FILESYSTEM_SQUASHFS -comp zstd -b 1M -e boot -e var/lib/docker -e $PLATFORM_DIR

# Ensure admin gid is 1000
Expand Down
12 changes: 8 additions & 4 deletions build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ generate_kvm_image()

generate_onie_installer_image()
{
output_file=$OUTPUT_ONIE_IMAGE
[ -n "$1" ] && output_file=$1
# Copy platform-specific ONIE installer config files where onie-mk-demo.sh expects them
rm -rf ./installer/x86_64/platforms/
mkdir -p ./installer/x86_64/platforms/
Expand All @@ -83,7 +85,7 @@ generate_onie_installer_image()
## Generate an ONIE installer image
## Note: Don't leave blank between lines. It is single line command.
./onie-mk-demo.sh $TARGET_PLATFORM $TARGET_MACHINE $TARGET_PLATFORM-$TARGET_MACHINE-$ONIEIMAGE_VERSION \
installer platform/$TARGET_MACHINE/platform.conf $OUTPUT_ONIE_IMAGE OS $IMAGE_VERSION $ONIE_IMAGE_PART_SIZE \
installer platform/$TARGET_MACHINE/platform.conf $output_file OS $IMAGE_VERSION $ONIE_IMAGE_PART_SIZE \
$ONIE_INSTALLER_PAYLOAD
}

Expand Down Expand Up @@ -119,12 +121,13 @@ if [ "$IMAGE_TYPE" = "onie" ]; then
elif [ "$IMAGE_TYPE" = "raw" ]; then

echo "Build RAW image"
tmp_output_onie_image=${OUTPUT_ONIE_IMAGE}.tmp
mkdir -p `dirname $OUTPUT_RAW_IMAGE`
sudo rm -f $OUTPUT_RAW_IMAGE

generate_device_list "./installer/$TARGET_PLATFORM/platforms_asic"

generate_onie_installer_image
generate_onie_installer_image "$tmp_output_onie_image"

echo "Creating SONiC raw partition : $OUTPUT_RAW_IMAGE of size $RAW_IMAGE_DISK_SIZE MB"
fallocate -l "$RAW_IMAGE_DISK_SIZE"M $OUTPUT_RAW_IMAGE
Expand All @@ -135,8 +138,9 @@ elif [ "$IMAGE_TYPE" = "raw" ]; then
## Generate a partition dump that can be used to 'dd' in-lieu of using the onie-nos-installer
## Run the installer
## The 'build' install mode of the installer is used to generate this dump.
sudo chmod a+x $OUTPUT_ONIE_IMAGE
sudo ./$OUTPUT_ONIE_IMAGE
sudo chmod a+x $tmp_output_onie_image
sudo ./$tmp_output_onie_image
rm $tmp_output_onie_image

[ -r $OUTPUT_RAW_IMAGE ] || {
echo "Error : $OUTPUT_RAW_IMAGE not generated!"
Expand Down
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as4630_54pe-r0/installer.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONSOLE_PORT=0x3f8
CONSOLE_DEV=0
CONSOLE_SPEED=115200
ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="intel_iommu=off modprobe.blacklist=i2c-ismt,i2c_ismt,i2c-i801,i2c_i801"
Loading