Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync to master #4

Merged
merged 83 commits into from
Oct 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
618b25f
Squash merge v1.0.3 branch onto master
qiluo-msft Aug 1, 2017
e13789c
Merge remote-tracking branch 'github/master' into v1.0.3
Aug 11, 2017
5cf37cb
[Broadcom]: Update Broadcom SAI/SDK version (#883)
Aug 10, 2017
c82868e
[quagga]: Update sonic-quagga submodule
Aug 11, 2017
e383a27
[mellanox]: Disable fsat boot mode for SX kernel
Aug 11, 2017
fa1ac0e
[swss-common]: Update sonic-swss-common submodule
Aug 11, 2017
df3436b
[utilities]: Update sonic-utilities submodule
Aug 11, 2017
338a83b
[mellanox]: Update Mellanox SAI version
Aug 11, 2017
674e2f9
Revert "[mellanox]: Update Mellanox SAI version"
Aug 15, 2017
adbc9d1
Merge remote-tracking branch 'github/master' into v1.0.3-backup
Aug 15, 2017
6603e0a
[Submodule update]: sonic-utilities (#888)
pavel-shirshov Aug 15, 2017
f0cc414
[SAI]: Remove the SAI submodule from buildimage repo (#893)
Aug 16, 2017
a95f062
Merge remote-tracking branch 'github/master' into v1.0.3-backup
Aug 23, 2017
521de84
Merge remote-tracking branch 'github/master' into v1.0.3-backup
Aug 29, 2017
3e7c3e6
[devices]: Bump sonic-platform-modules-arista submodule (#924)
Staphylo Aug 29, 2017
44502b2
Migrate DEVICE_METADATA to db (#919)
taoyl-ms Aug 29, 2017
e450252
Revert "Migrate DEVICE_METADATA to db (#919)" (#928)
taoyl-ms Aug 30, 2017
9c87eff
[devices]: Update Dell s6100/z9100 platform modules (#925)
padmanarayana Aug 30, 2017
1a4f039
[quagga] enable core dump for bgpd and zebra (#927)
yxieca Aug 30, 2017
127a73a
[quagga]: Disable ipv4 over ipv6 and enable ipv6 over ipv4 peer group…
sihuihan88 Aug 30, 2017
7f1991c
Update sfputil support for Ingrasys S9100 (#929)
wadelnn Aug 31, 2017
1b944db
Fix confusing comment (#931)
jleveque Sep 1, 2017
bb1a7b2
Replace CRLF line endings with LF (#932)
jleveque Sep 1, 2017
48f1a63
[sairedis]: revert deadlock fix in sonic-sairedis submodule (#934)
lguohan Sep 6, 2017
116ba4b
[baseimage]: allocate varlog disk in the initramfs stage (#936)
lguohan Sep 7, 2017
38cd1d5
[Broadcom]: Remove BRCM_OPENNSL library and upgrade BRCM_SAI to 3.0.3…
Sep 7, 2017
e418675
[rsyslog]: Use SONiC template in containers (#940)
marian-pritsak Sep 7, 2017
211689a
[slave.mk]: Apply series of patches to SONIC_PYTHON_STDEB_DEBS target…
jleveque Sep 7, 2017
5098d98
[dell]: remove nos_to_sonic_grub.cfg (#943)
lguohan Sep 8, 2017
8f1ac5d
[rsyslog]: Use timegenerated instead of timestamp (#944)
marian-pritsak Sep 9, 2017
2cd2f95
[github]: add templates for submitting issues and PR (#947)
lguohan Sep 9, 2017
d3997f4
[sonic-slave]: SLAVE_TAG should be for both Dockerfile and Dockerfile…
lguohan Sep 9, 2017
bc73082
[devices]: Add led plugin for Arista 7060CX-32S and 7260CX3-64 (#945)
Staphylo Sep 11, 2017
c9cc7ae
[configdb] Migrate minigraph configurations to DB (#942)
taoyl-ms Sep 12, 2017
686e227
[frr]: RR client support in minigraph for FRR (#923)
nikos-github Sep 12, 2017
e4cae4e
[Ingrasys] update port_config.ini and sfputil for ingrasys platforms …
cytsai0409 Sep 14, 2017
7241279
[mellanox]: Update Mellanox SAI version ansd SDK version
qiluo-msft Sep 14, 2017
2e3975d
[config] Fix an issue that bgp asn data type is not consistent (#953)
taoyl-ms Sep 14, 2017
56ae5ed
[service template] Starting new docker when HWSKU change is detected …
yxieca Sep 14, 2017
3cbc080
[sairedis]: update sairedis submodule head (#956)
yxieca Sep 15, 2017
48fd6fb
[swss]: Move swss/common/sairedis submodule to 201709 tag
Sep 14, 2017
5e9b0a1
Merge branch 'v1.0.3-backup' into github
Sep 15, 2017
034b47d
[Broadcom]: Update OpenNSL/SAI version (#959)
Sep 15, 2017
89f1af5
Merge remote-tracking branch 'github/v1.0.3-backup' into github
Sep 15, 2017
9d321fa
[syncd]: Comment out unused docker-ptf-brcm.mk
Sep 16, 2017
6935e00
[build/onie installer] Install grub for SONiC post migration from ano…
padmanarayana Sep 17, 2017
aa55b83
[Ingrasys] Update Ingrasys submodule for S8900-54XC (#954)
wadelnn Sep 17, 2017
aa549f2
[bgp]: Fix the deployment_id with DEVICE_METADATA (#962)
Sep 18, 2017
a376c86
[swss]: Fix the command to get HWSKU with sonic-cfggen (#964)
Sep 19, 2017
5ba6f53
Update sonic-utilities to be compatible with #942 (#965)
taoyl-ms Sep 19, 2017
9139c7f
Always start with Forwarding State flag set for bgpd (#963)
pavel-shirshov Sep 19, 2017
458093f
Framework to plugin Organization specific scripts during ONIE Image b…
ravijo2 Sep 19, 2017
72f5d6b
[interfaces]: Change MTU value to 9100 (#967)
prsunny Sep 20, 2017
0c6fba6
[utilities]: Update sonic-utilities (#968)
Sep 20, 2017
d117f09
[Broadcom]: Update OpenNSL modules (#970)
Sep 20, 2017
763205f
[config]: Fix management interface configuration (#966)
Sep 21, 2017
e0513d2
lacp runner will send lacp update right after it received SIGINT (#969)
pavel-shirshov Sep 21, 2017
0d978b5
[sairedis]: update sairedis submodule (#974)
lguohan Sep 21, 2017
69ff224
[device/accton]: Add a new supported device, AS7312-54X (#955)
pollyhsu2git Sep 21, 2017
7a9894a
[Broadcom]: Update libsai version to 3.0.3.2-2 (#973)
Sep 21, 2017
0f6c8c1
[teamd]: Remove deprecated blocking logic before starting teamd (#976)
Sep 21, 2017
bec99f2
Disable snmpd module disk_hw, so no syslog messages about unavailable…
qiluo-msft Sep 22, 2017
1ac10df
[snmp]: Update sonic-snmpagent submodule (#978)
Sep 22, 2017
b5eb0c2
[Makefile] Allowing interactive session with the slave docker-contain…
rodnymolina Sep 22, 2017
f570616
[Ingrasys]: Change hwmon kernel modules installation order (#980)
cytsai0409 Sep 22, 2017
948f3ad
[mellanox]: Update Mellanox SAI version (#979)
Sep 25, 2017
8143cb3
[Ingrasys]: Add Ingrasys S8900-64XC sfputil function and update submo…
wadelnn Sep 26, 2017
a4ceff7
[Broadcom]: Update SAI version to 3.0.3.2-4 (#983)
Sep 26, 2017
cce2a36
[snmp]: Update sonic-snmpagent submodule (#986)
Sep 26, 2017
0db8704
[Mellanox]: Remove FW upgrade procedure in docker (#989)
marian-pritsak Sep 26, 2017
9b249ce
Add time stamp suffix to the dirty images version string (#958)
andriymoroz-mlnx Sep 27, 2017
59c0308
[Mellanox]: Update outdated MSN2410 minigraph (#995)
keboliu Sep 28, 2017
6483919
[Broadcom]: Update SAI version to 3.0.3.2-5 (#997)
Sep 29, 2017
f7a38e1
[snmp]: Update py-swsssdk/snmpagent submodules (#996)
Sep 29, 2017
9efcc9c
[swss]: Update swss/common submodules (#988)
andriymoroz-mlnx Sep 29, 2017
bbf1d66
[docker-platform-monitor]: Remove stale fancontrol.pid file (if exist…
jleveque Sep 30, 2017
002aabe
Change all port_config.ini column headers from 'port' to 'index' (#1001)
jleveque Sep 30, 2017
486dfef
[swss]: Update the ipinip.j2 template to specify the IPv4 loopback ad…
Sep 30, 2017
b81f2f2
[snmpagent]: Update sonic-snmpagent submodule (#1004)
Oct 2, 2017
7c326e3
[utilities]: Update sonic-utilities submodule (#1006)
rodnymolina Oct 3, 2017
72e9476
[config-engine]: Fix bug multiple ports connecting to same neighbor (…
Oct 3, 2017
646e836
[swss]: Update swss-common/sairedis/swss submodules (#1008)
qiluo-msft Oct 4, 2017
554114c
Make swssconfig status FATAL when it fails (#1009)
qiluo-msft Oct 4, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!--
If you are reporting a new issue, make sure that we do not have any duplicates
already open. You can ensure this by searching the issue list for this
repository. If there is a duplicate, please close your issue and add a comment
to the existing issue instead.

If you suspect your issue is a bug, please edit your issue description to
include the BUG REPORT INFORMATION shown below. If you fail to provide this
information within 7 days, we cannot debug your issue and will close it. We
will, however, reopen it if you later provide the information.

For more information about reporting issues, see
https://github.com/Azure/SONiC/wiki#report-issues

---------------------------------------------------
GENERAL SUPPORT INFORMATION
---------------------------------------------------

The GitHub issue tracker is for bug reports and feature requests.
General support can be found at the following locations:

- SONiC Support Forums - https://groups.google.com/forum/#!forum/sonicproject

---------------------------------------------------
BUG REPORT INFORMATION
---------------------------------------------------
Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST
-->

**Description**

<!--
Briefly describe the problem you are having in a few paragraphs.
-->

**Steps to reproduce the issue:**
1.
2.
3.

**Describe the results you received:**


**Describe the results you expected:**


**Additional information you deem important (e.g. issue happens only occasionally):**

**Output of `show version`:**

```
(paste your output here)
```

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```
26 changes: 26 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!--
Please make sure you've read and understood our contributing guidelines;
https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

** Make sure all your commits include a signature generated with `git commit -s` **

If this is a bug fix, make sure your description includes "fixes #xxxx", or
"closes #xxxx"

Please provide the following information:
-->

**- What I did**

**- How I did it**

**- How to verify it**

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


**- A picture of a cute animal (not mandatory but encouraged)**
5 changes: 1 addition & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
[submodule "src/sonic-utilities"]
path = src/sonic-utilities
url = https://github.com/Azure/sonic-utilities
branch = v1.0.3
[submodule "platform/broadcom/sonic-platform-modules-s6000"]
path = platform/broadcom/sonic-platform-modules-s6000
url = https://github.com/Azure/sonic-platform-modules-s6000
Expand All @@ -56,10 +57,6 @@
[submodule "platform/broadcom/sonic-platform-modules-ingrasys"]
path = platform/broadcom/sonic-platform-modules-ingrasys
url = https://github.com/Ingrasys-sonic/sonic-platform-modules-ingrasys
[submodule "src/SAI"]
path = src/SAI
url = https://github.com/opencomputeproject/SAI
branch = v0.9.4
[submodule "src/sonic-platform-daemons"]
path = src/sonic-platform-daemons
url = https://github.com/Azure/sonic-platform-daemons
Expand Down
40 changes: 29 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
###############################################################################
## Wrapper for starting make inside sonic-slave container
#
# Supported parameters:
#
# * PLATFORM: Specific platform we wish to build images for.
# * BUILD_NUMBER: Desired version-number to pass to the building-system.
# * ENABLE_DHCP_GRAPH_SERVICE: Enables get-graph service to fetch minigraph files
# through http.
# * SHUTDOWN_BGP_ON_START: Sets admin-down state for all bgp peerings after restart.
# * SONIC_ENABLE_SYNCD_RPC: Enables rpc-based syncd builds.
# * USERNAME: Desired username -- default at rules/config
# * PASSWORD: Desired password -- default at rules/config
# * KEEP_SLAVE_ON: Keeps slave container up after building-process concludes.
#
###############################################################################

SHELL = /bin/bash
Expand All @@ -13,7 +26,7 @@ $(shell rm -f .screen)
MAKEFLAGS += -B

SLAVE_BASE_TAG = $(shell shasum sonic-slave/Dockerfile | awk '{print substr($$1,0,11);}')
SLAVE_TAG = $(shell shasum sonic-slave/Dockerfile.user | awk '{print substr($$1,0,11);}')
SLAVE_TAG = $(shell cat sonic-slave/Dockerfile.user sonic-slave/Dockerfile | shasum | awk '{print substr($$1,0,11);}')
SLAVE_BASE_IMAGE = sonic-slave-base
SLAVE_IMAGE = sonic-slave-$(USER)

Expand All @@ -37,6 +50,16 @@ DOCKER_BUILD = docker build --no-cache \
sonic-slave && \
docker tag $(SLAVE_IMAGE):latest $(SLAVE_IMAGE):$(SLAVE_TAG)

SONIC_BUILD_INSTRUCTION := make \
-f slave.mk \
PLATFORM=$(PLATFORM) \
BUILD_NUMBER=$(BUILD_NUMBER) \
ENABLE_DHCP_GRAPH_SERVICE=$(ENABLE_DHCP_GRAPH_SERVICE) \
SHUTDOWN_BGP_ON_START=$(SHUTDOWN_BGP_ON_START) \
SONIC_ENABLE_SYNCD_RPC=$(ENABLE_SYNCD_RPC) \
PASSWORD=$(PASSWORD) \
USERNAME=$(USERNAME)

.PHONY: sonic-slave-build sonic-slave-bash

.DEFAULT_GOAL := all
Expand All @@ -48,16 +71,11 @@ DOCKER_BUILD = docker build --no-cache \
@docker inspect --type image $(SLAVE_IMAGE):$(SLAVE_TAG) &> /dev/null || \
{ echo Image $(SLAVE_IMAGE):$(SLAVE_TAG) not found. Building... ; \
$(DOCKER_BUILD) ; }
@$(DOCKER_RUN) $(SLAVE_IMAGE):$(SLAVE_TAG) make \
-f slave.mk \
PLATFORM=$(PLATFORM) \
BUILD_NUMBER=$(BUILD_NUMBER) \
ENABLE_DHCP_GRAPH_SERVICE=$(ENABLE_DHCP_GRAPH_SERVICE) \
SHUTDOWN_BGP_ON_START=$(SHUTDOWN_BGP_ON_START) \
SONIC_ENABLE_SYNCD_RPC=$(ENABLE_SYNCD_RPC) \
PASSWORD=$(PASSWORD) \
USERNAME=$(USERNAME) \
$@
ifeq "$(KEEP_SLAVE_ON)" "yes"
@$(DOCKER_RUN) $(SLAVE_IMAGE):$(SLAVE_TAG) bash -c "$(SONIC_BUILD_INSTRUCTION) $@; /bin/bash"
else
@$(DOCKER_RUN) $(SLAVE_IMAGE):$(SLAVE_TAG) $(SONIC_BUILD_INSTRUCTION) $@
endif

sonic-slave-build :
$(DOCKER_BASE_BUILD)
Expand Down
22 changes: 20 additions & 2 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ if [[ -d $FILESYSTEM_ROOT ]]; then
fi
mkdir -p $FILESYSTEM_ROOT
mkdir -p $FILESYSTEM_ROOT/$PLATFORM_DIR
mkdir -p $FILESYSTEM_ROOT/$PLATFORM_DIR/x86_64-grub
touch $FILESYSTEM_ROOT/$PLATFORM_DIR/firsttime

## Build a basic Debian system by debootstrap
Expand Down Expand Up @@ -132,6 +133,8 @@ sudo chmod +x $FILESYSTEM_ROOT/etc/initramfs-tools/scripts/init-premount/arista-
## 2. Bind-mount docker working directory (docker aufs cannot work over aufs rootfs)
sudo cp files/initramfs-tools/union-mount $FILESYSTEM_ROOT/etc/initramfs-tools/scripts/init-bottom/union-mount
sudo chmod +x $FILESYSTEM_ROOT/etc/initramfs-tools/scripts/init-bottom/union-mount
sudo cp files/initramfs-tools/varlog $FILESYSTEM_ROOT/etc/initramfs-tools/scripts/init-bottom/varlog
sudo chmod +x $FILESYSTEM_ROOT/etc/initramfs-tools/scripts/init-bottom/varlog
sudo cp files/initramfs-tools/union-fsck $FILESYSTEM_ROOT/etc/initramfs-tools/hooks/union-fsck
sudo chmod +x $FILESYSTEM_ROOT/etc/initramfs-tools/hooks/union-fsck
sudo chroot $FILESYSTEM_ROOT update-initramfs -u
Expand Down Expand Up @@ -203,7 +206,13 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
curl \
kexec-tools \
less \
unzip
unzip \
gdisk

sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y download \
grub-pc-bin

sudo mv $FILESYSTEM_ROOT/grub-pc-bin*.deb $FILESYSTEM_ROOT/$PLATFORM_DIR/x86_64-grub

## Disable kexec supported reboot which was installed by default
sudo sed -i 's/LOAD_KEXEC=true/LOAD_KEXEC=false/' $FILESYSTEM_ROOT/etc/default/kexec
Expand Down Expand Up @@ -239,10 +248,11 @@ EOF
## Config sysctl
sudo mkdir -p $FILESYSTEM_ROOT/var/core
sudo augtool --autosave "
set /files/etc/sysctl.conf/kernel.core_pattern '|/usr/bin/coredump-compress %e %p'
set /files/etc/sysctl.conf/kernel.core_pattern '|/usr/bin/coredump-compress %e %t %p'

set /files/etc/sysctl.conf/kernel.softlockup_panic 1
set /files/etc/sysctl.conf/kernel.panic 10
set /files/etc/sysctl.conf/fs.suid_dumpable 2

set /files/etc/sysctl.conf/net.ipv4.conf.default.forwarding 1
set /files/etc/sysctl.conf/net.ipv4.conf.all.forwarding 1
Expand Down Expand Up @@ -312,6 +322,14 @@ if [ -f sonic_debian_extension.sh ]; then
./sonic_debian_extension.sh $FILESYSTEM_ROOT $PLATFORM_DIR
fi

## Organization specific extensions such as Configuration & Scripts for features like AAA, ZTP...
if [ "${enable_organization_extensions}" = "y" ]; then
if [ -f files/build_templates/organization_extensions.sh ]; then
sudo chmod 755 files/build_templates/organization_extensions.sh
./files/build_templates/organization_extensions.sh -f $FILESYSTEM_ROOT -h $HOSTNAME
fi
fi

## Clean up apt
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get autoremove
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get autoclean
Expand Down
4 changes: 0 additions & 4 deletions build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ generate_onie_installer_image()
cp ./device/$VENDOR/$PLATFORM/installer.conf ./installer/x86_64/platforms/$PLATFORM
fi

if [ "$IMAGE_TYPE" = "raw" ] && [ -f ./device/$VENDOR/$PLATFORM/nos_to_sonic_grub.cfg ]; then
sed -i -e "s/%%IMAGE_VERSION%%/$IMAGE_VERSION/g" ./device/$VENDOR/$PLATFORM/nos_to_sonic_grub.cfg
echo "IMAGE_VERSION is $IMAGE_VERSION"
fi
done
done

Expand Down
Loading