Conversation
|
@qiluo-msft, please review |
files/initramfs-tools/union-mount.j2
Outdated
There was a problem hiding this comment.
image-%%GIT_REVISION%% [](start = 33, length = 22)
image-%%GIT_REVISION%% [](start = 33, length = 22)
One suggestion: could you also explore the possibility to dynamically get the path? Ideally the image content should not have the knowledge of its own revision/version.
Some mechanism I can think of, but not limited to:
- kernel argument, provided by bootloader ONIE/Aboot/etc.
- parse /proc/cmdline
- parse a file with image version on the disk
Then we can remove the %GIT_REVISION% from build_debian.sh #Closed
There was a problem hiding this comment.
ok, I will rework all GIT_REVISION places after Marian pushes updated versioning
There was a problem hiding this comment.
files/image_config/platform/rc.local
Outdated
There was a problem hiding this comment.
GIT_REVISION [](start = 22, length = 12)
GIT_REVISION [](start = 22, length = 12)
The same. Is it possible to get it programmatically? #Closed
installer/x86_64/install.sh
Outdated
There was a problem hiding this comment.
demo_volume_revision_label [](start = 0, length = 26)
I am quite confused. Why not keep it unchanged and use $demo_volume_label? #Closed
installer/x86_64/install.sh
Outdated
There was a problem hiding this comment.
mkdir $demo_mnt/$sonic_dir [](start = 0, length = 26)
If the directory already exist, it is better to clean up and reinstall it. #Closed
installer/x86_64/install.sh
Outdated
There was a problem hiding this comment.
running_sonic_revision [](start = 4, length = 22)
Instead of finding the running revision, we can easily find the default entry in grub.cfg. So it is runnable both in ONIE and in sonic, you don't need if-condition. #Closed
There was a problem hiding this comment.
I'm checking for currently running version in order to keep it. It could happen currently running is not the default one #Closed
There was a problem hiding this comment.
installer/x86_64/install.sh
Outdated
There was a problem hiding this comment.
We don't care ONIE/sonic for the grub_cfg code here. We can just check if there is already sonic entry in grub.cfg or not.
There was a problem hiding this comment.
I wanted to keep ONIE menu entry at the bottom and it is much simple to append text to the grub.cfg than insert it to the middle.
There was a problem hiding this comment.
There was a problem hiding this comment.
grub.cfg is recreated on any installation ONIE or SONiC.
Here this "if" is needed to add ONIE submenu only in case of ONIE install or old menuitem+ONIE submenu in case of SONiC install. Also "ONIE submenu" source is different in both cases
installer/x86_64/install.sh
Outdated
There was a problem hiding this comment.
The same. Just check grub.cfg to determin if we need to remove extra images.
There was a problem hiding this comment.
I doubt the code will be simpler. Maybe I'm wrong - I'm not a real shell-script jedi...
And besides if we decide to change menu item format - guessing directory name to remove will require some legacy code
There was a problem hiding this comment.
Enumerating thru the directories is much simpler than thru the menuitems in grub.cfg
Also in this case we get the exact image directory name we need to remove.
slave.mk
Outdated
There was a problem hiding this comment.
Keep it as is? #Closed
installer/x86_64/install.sh
Outdated
There was a problem hiding this comment.
Before I added support for installation form SONiC there were two options ONIE and some Linux. I'm not aware about the installation from Linux (some other platforms?) so I tried to keep the old code under "if != sonic" and add new "under if = sonic".
There was a problem hiding this comment.
installer/x86_64/install.sh
Outdated
There was a problem hiding this comment.
sonic [](start = 17, length = 5)
Prefer say the environment as 'linux' #Closed
There was a problem hiding this comment.
onie is also linux, sonic is more precise, IMHO
files/initramfs-tools/union-mount.j2
Outdated
There was a problem hiding this comment.
I think this change is going to break the arista aboot image.
if you search DOCKERFS_DIR, it is also used in files/initramfs-tools/arista-convertfs.j2 and files/Aboot/boot0.j2
There was a problem hiding this comment.
I do not need this commit to support sonic-to-sonic on arista aboot platform, but it is better not to break the existing func.
installer/x86_64/install.sh
Outdated
There was a problem hiding this comment.
Running NOT in SONiC [](start = 10, length = 20)
-> Install SONiC in ONIE
installer/x86_64/install.sh
Outdated
There was a problem hiding this comment.
Running in SONiC [](start = 10, length = 16)
-> Installing SONiC in SONiC
installer/x86_64/install.sh
Outdated
There was a problem hiding this comment.
environment -> install_env
installer/x86_64/install.sh
Outdated
There was a problem hiding this comment.
sonic_dir [](start = 0, length = 9)
sonic_dir -> image_dir
installer/x86_64/install.sh
Outdated
There was a problem hiding this comment.
can we also check the var-log size since the new sonic image may increase or descreae the file size.
Can we compare the size, if they are not the same then try to create a new one with new size.
installer/x86_64/install.sh
Outdated
installer/x86_64/install.sh
Outdated
There was a problem hiding this comment.
rename grub_cfg to new_sonic_menuentry
installer/x86_64/install.sh
Outdated
There was a problem hiding this comment.
rename to old_sonic_menuentry
installer/x86_64/install.sh
Outdated
There was a problem hiding this comment.
I suggest to move this logic before we do the installation, it will save some space.
installer/x86_64/install.sh
Outdated
|
@andriymoroz-mlnx Could you resolve the conflicts? #Closed |
|
resolved conflicts |
25f0f78 to
5117cd0
Compare
|
Updated. Used version string instead of git hash Directories with sonic images: @lguohan, @qiluo-msft, @stcheng please review |
support multi-image installation on aboot
sonic-swss: [vnet]: Extend Bitmap VNET test with "remove" flows (sonic-net#900) [vxlanorch] Ambiguous return code for removeNextHopTunnel (sonic-net#880) Address review comment: remove data member m_entriesCreated, which is introduced for dependancy resolution purpose. (sonic-net#839) Set LAG mtu value based on kernel netlink msg (sonic-net#922) [orchagent]: Remove try/catch for correct coredump file (sonic-net#790) [aclorch] unittest by gtest (sonic-net#924) [orchagent]: Added support of PFC WD for BFN platform (sonic-net#823) [vnetorch]: Fix tunnel route removal flow for bitmap VNET (sonic-net#912) pkill -9 zebra for frr warm restart VS test fix (sonic-net#927) swss-orchagent: add new orch for vnet routes/tunnel routes tables in CONFIG_DB (sonic-net#907) [debian]: Do not build test when building with real SAI (sonic-net#932) sonic-swss-common: Add schema for dot1p to tc mapping config table (sonic-net#274) Fix MIRROR_SESSION table macro name (sonic-net#264) [schema] Add VNET Route tables in config_db (sonic-net#279) [debian] increment debian compatibility to 10 to enable parallel package build (sonic-net#280) White-list clear_stats op from orchagent to syncd (sonic-net#281) Correct comment (sonic-net#282) sonic-sairedis: [debian]: Change build order in target binary (sonic-net#452) [debian] increment debian compatibility to 10 to enable parallel package build (sonic-net#461) Full sleep wait flex counter polling thread when POLL_COUNTER_STATUS is disable (sonic-net#462) add support for SAI_ATTR_VALUE_TYPE_ACL_CAPABILITY (sonic-net#460) Check if port VID exists in db on flex counter query (sonic-net#464) Full sleep wait change for PFC watchdog (sonic-net#465) Add synchronous clear_stats operation path (sonic-net#463) Modify sai_create_port to breakout a port for virtual switch (sonic-net#454) Fix typo (sonic-net#467) Signed-off-by: Shu0T1an ChenG <[email protected]>
sonic-swss: [vnet]: Extend Bitmap VNET test with "remove" flows (#900) [vxlanorch] Ambiguous return code for removeNextHopTunnel (#880) Address review comment: remove data member m_entriesCreated, which is introduced for dependancy resolution purpose. (#839) Set LAG mtu value based on kernel netlink msg (#922) [orchagent]: Remove try/catch for correct coredump file (#790) [aclorch] unittest by gtest (#924) [orchagent]: Added support of PFC WD for BFN platform (#823) [vnetorch]: Fix tunnel route removal flow for bitmap VNET (#912) pkill -9 zebra for frr warm restart VS test fix (#927) swss-orchagent: add new orch for vnet routes/tunnel routes tables in CONFIG_DB (#907) [debian]: Do not build test when building with real SAI (#932) sonic-swss-common: Add schema for dot1p to tc mapping config table (#274) Fix MIRROR_SESSION table macro name (#264) [schema] Add VNET Route tables in config_db (#279) [debian] increment debian compatibility to 10 to enable parallel package build (#280) White-list clear_stats op from orchagent to syncd (#281) Correct comment (#282) sonic-sairedis: [debian]: Change build order in target binary (#452) [debian] increment debian compatibility to 10 to enable parallel package build (#461) Full sleep wait flex counter polling thread when POLL_COUNTER_STATUS is disable (#462) add support for SAI_ATTR_VALUE_TYPE_ACL_CAPABILITY (#460) Check if port VID exists in db on flex counter query (#464) Full sleep wait change for PFC watchdog (#465) Add synchronous clear_stats operation path (#463) Modify sai_create_port to breakout a port for virtual switch (#454) Fix typo (#467) Signed-off-by: Shu0T1an ChenG <[email protected]>
* Access DB directly to get the PSU status information * Add test case for psu CLI Signed-off-by: Kevin Wang <[email protected]>
* Update src/sonic-sairedis from branch 'broadcom_sonic'
to 9de2a0cd3371723c925341091c3ee9bc6df88527
- Merge 201904 branch to broadcom_sonic branch on Mon Jul 1 13:57:56 PDT 2019
Change-Id: Ibc8bd38f6819bda73ba52fff6358b794f7366d46
- Fix typo (sonic-net#467)
* Rename to fix typo
Signed-off-by: Wenda Ni <[email protected]>
* Correct shared_ptr creation parameters
Signed-off-by: Wenda Ni <[email protected]>
- Modify sai_create_port to breakout a port for virtual switch (sonic-net#454)
For breakout a port, it needs to support create port and remove port.
When create a port, it needs to init some attributes.
Signed-off-by: chiourung_huang <[email protected]>
- Add synchronous clear_stats operation path (sonic-net#463)
* Send clear_stats op from orchagent to syncd via Redis pipeline
Signed-off-by: Wenda Ni <[email protected]>
* Handle clear_stats op in syncd
Signed-off-by: Wenda Ni <[email protected]>
* Receive clear_stats op status response from sycnd in orchagent context
Signed-off-by: Wenda Ni <[email protected]>
* Shift clear_stats to get synchronous response from ASIC
Signed-off-by: Wenda Ni <[email protected]>
* Fix compilation error
Signed-off-by: Wenda Ni <[email protected]>
* Fix log message output
Signed-off-by: Wenda Ni <[email protected]>
* Remove debugging symbols
Signed-off-by: Wenda Ni <[email protected]>
* Remove debugging symbols
Signed-off-by: Wenda Ni <[email protected]>
* Change the validation order of KeyOpFieldsValuesTuple responded from
syncd
Signed-off-by: Wenda Ni <[email protected]>
* Expand status log utility to include op type as argument
Signed-off-by: Wenda Ni <[email protected]>
* Address comments: check if object id is present in local db
Signed-off-by: Wenda Ni <[email protected]>
* Leverage newly merged infrastructure to check if object id is present in
the local db
Signed-off-by: Wenda Ni <[email protected]>
* Fix compile error
Signed-off-by: Wenda Ni <[email protected]>
- Full sleep wait change for PFC watchdog (sonic-net#465)
* Sleep wait change for pfc watchdog, which still has plugins in place so
isEmpty() always returns true.
When issuing 'pfcwd stop' cli to stop PFC watchdog, it only clears the counter id list for physical ports under the hood, leaving lua script plugins still installed and ieEmpty() returns false.
So even when PFC watchdog is stopped, the flex counter thread would wake up every 200 ms.
Jun 4 17:58:51.273413 str-a7050-acs-1 ERR syncd#syncd: :- flexCounterThread: End of flex counter thread FC PFC_WD, took 33 ms
Jun 4 17:58:51.471288 str-a7050-acs-1 ERR syncd#syncd: :- flexCounterThread: End of flex counter thread FC PFC_WD, took 30 ms
Jun 4 17:58:51.672930 str-a7050-acs-1 ERR syncd#syncd: :- flexCounterThread: End of flex counter thread FC PFC_WD, took 31 ms
Jun 4 17:58:51.882972 str-a7050-acs-1 ERR syncd#syncd: :- flexCounterThread: End of flex counter thread FC PFC_WD, took 40 ms
Jun 4 17:58:52.074862 str-a7050-acs-1 ERR syncd#syncd: :- flexCounterThread: End of flex counter thread FC PFC_WD, took 31 ms
This PR is to address the above observation:
Fine granularize the isEmpty() to two functions---isIdsEmpty() and isPluginsEmpty(), and use the emptiness check of the counter id list, isIdsEmpty(), as the criteria for full sleep wait. This approach is generally valid because current flex counter use cases would have the presence of non-empty counter id list to be meaningful, followed by an optional execution of the Lua script plugins if they are installed.
Signed-off-by: Wenda Ni <[email protected]>
- Check if port VID exists in db on flex counter query (sonic-net#464)
- add support for SAI_ATTR_VALUE_TYPE_ACL_CAPABILITY (sonic-net#460)
Signed-off-by: Stepan Blyschak <[email protected]>
- Full sleep wait flex counter polling thread when POLL_COUNTER_STATUS is disable (sonic-net#462)
Signed-off-by: Wenda Ni <[email protected]>
- [debian] increment debian compatibility to 10 to enable parallel package build (sonic-net#461)
* fix parallel build
Signed-off-by: Stepan Blyschak <[email protected]>
* [debian] increment debian compatibility to 10 to enable parallel package
build
From debhelper man pages:
"If neither option is specified, debhelper currently defaults to
--parallel in compat 10 (or later) and --no-parallel otherwise."
Signed-off-by: Stepan Blyschak <[email protected]>
* make tests run serial
Signed-off-by: Stepan Blyschak <[email protected]>
- [debian]: Change build order in target binary (sonic-net#452)
Make binary-syncd the last target, so the non-rpc requisites will be available after the first build
It will allow doing incremental builds later on for the main binary type
- Add buffer pool stat to flex counter architecture (sonic-net#451)
- Watermark: test SAI clear api if the stats mode is READ_AND_CLEAR (sonic-net#427)
* Test SAI clear api if the stats mode is READ_AND_CLEAR
Signed-off-by: Wenda <[email protected]>
* Address compile error
…tilites submodules sonic-swss -[SFlowMgr] Sflow Crash on 200G ports handled (sonic-net#1683) -Stablize the test case (sonic-net#1679) -Remove PGs from an administratively down port. (sonic-net#1677) sonic-swss-common - fix getting hash from redis db (sonic-net#465) - [dbconnector] Initialize redisContext (sonic-net#464) sonic-utilities - route_check: Fix hanging & logging level (sonic-net#1520) - Add self timeout and crash if exceeded. (sonic-net#1502) - [reboot] User-friendly reboot cause message for kernel panic (sonic-net#1486) - [acl-loader]: do not add default deny rule for egress acl (sonic-net#1531) Signed-off-by: Danny Allen <[email protected]>
…tilites submodules (#7209) sonic-swss -[SFlowMgr] Sflow Crash on 200G ports handled (#1683) -Stablize the test case (#1679) -Remove PGs from an administratively down port. (#1677) sonic-swss-common - fix getting hash from redis db (#465) - [dbconnector] Initialize redisContext (#464) sonic-utilities - route_check: Fix hanging & logging level (#1520) - Add self timeout and crash if exceeded. (#1502) - [reboot] User-friendly reboot cause message for kernel panic (#1486) - [acl-loader]: do not add default deny rule for egress acl (#1531) Signed-off-by: Danny Allen <[email protected]>
- fix getting hash from redis db (sonic-net#465) - [dbconnector] Initialize redisContext (sonic-net#464)
- fix getting hash from redis db (sonic-net#465) - [dbconnector] Initialize redisContext (sonic-net#464)
…D automatically (#18652) #### Why I did it src/sonic-platform-daemons ``` * 4ed4fa8 - (HEAD -> 202311, origin/202311) [202311] Fix intermittent build failure for test_SfpStateUpdateTask_task_run_stop (#461) (#464) (8 hours ago) [mihirpat1] ``` #### How I did it #### How to verify it #### Description for the changelog
…tomatically (sonic-net#637) #### Why I did it src/sonic-linux-kernel ``` * 8c0b9cf - (HEAD -> 202412, origin/HEAD, origin/202412) [optoe] Reset page select byte to 0 before upper memory access on page 0h (sonic-net#464) (#11) (7 hours ago) [mssonicbld] * a68d9f2 - [optoe] Reset page select byte to 0 before upper memory access on page 0h (sonic-net#464) (#10) (31 hours ago) [mssonicbld] * f18e59c - [optoe] Reset page select byte to 0 before upper memory access on page 0h (sonic-net#464) (#9) (2 days ago) [mssonicbld] ``` #### How I did it #### How to verify it #### Description for the changelog
…tomatically (sonic-net#646) #### Why I did it src/sonic-linux-kernel ``` * b4829d4 - (HEAD -> 202412, origin/HEAD, origin/202412) [optoe] Reset page select byte to 0 before upper memory access on page 0h (sonic-net#464) (#12) (21 hours ago) [mssonicbld] ``` #### How I did it #### How to verify it #### Description for the changelog
…tomatically (sonic-net#661) #### Why I did it src/sonic-linux-kernel ``` * f5de695 - (HEAD -> 202412, origin/HEAD, origin/202412) [optoe] Reset page select byte to 0 before upper memory access on page 0h (sonic-net#464) (#13) (24 hours ago) [mssonicbld] ``` #### How I did it #### How to verify it #### Description for the changelog
…tomatically (sonic-net#674) #### Why I did it src/sonic-linux-kernel ``` * f65d55a - (HEAD -> 202412, origin/HEAD, origin/202412) [optoe] Reset page select byte to 0 before upper memory access on page 0h (sonic-net#464) (#14) (55 minutes ago) [mssonicbld] ``` #### How I did it #### How to verify it #### Description for the changelog
…tomatically (sonic-net#683) #### Why I did it src/sonic-linux-kernel ``` * 88b7f08 - (HEAD -> 202412, origin/HEAD, origin/202412) [optoe] Reset page select byte to 0 before upper memory access on page 0h (sonic-net#464) (#15) (21 hours ago) [mssonicbld] ``` #### How I did it #### How to verify it #### Description for the changelog
…tomatically (sonic-net#689) #### Why I did it src/sonic-linux-kernel ``` * 771ce48 - (HEAD -> 202412, origin/HEAD, origin/202412) [optoe] Reset page select byte to 0 before upper memory access on page 0h (sonic-net#464) (#16) (21 hours ago) [mssonicbld] ``` #### How I did it #### How to verify it #### Description for the changelog
…tomatically (sonic-net#695) #### Why I did it src/sonic-linux-kernel ``` * b2ed221 - (HEAD -> 202412, origin/HEAD, origin/202412) [optoe] Reset page select byte to 0 before upper memory access on page 0h (sonic-net#464) (#17) (21 hours ago) [mssonicbld] ``` #### How I did it #### How to verify it #### Description for the changelog
…tomatically (sonic-net#704) #### Why I did it src/sonic-linux-kernel ``` * 6877ae3 - (HEAD -> 202412, origin/HEAD, origin/202412) [optoe] Reset page select byte to 0 before upper memory access on page 0h (sonic-net#464) (#18) (21 hours ago) [mssonicbld] ``` #### How I did it #### How to verify it #### Description for the changelog
…tomatically (sonic-net#714) #### Why I did it src/sonic-linux-kernel ``` * b99624e - (HEAD -> 202412, origin/HEAD, origin/202412) [optoe] Reset page select byte to 0 before upper memory access on page 0h (sonic-net#464) (#19) (21 hours ago) [mssonicbld] ``` #### How I did it #### How to verify it #### Description for the changelog
…tomatically (sonic-net#918) #### Why I did it src/sonic-linux-kernel ``` * 1d1338c - (HEAD -> 202412, origin/HEAD, origin/202412) Merge pull request #41 from mssonicbld/sonicbld/202412-merge (11 hours ago) [mssonicbld] * 16b753b - Merge branch '202411' of https://github.com/sonic-net/sonic-linux-kernel into 202412 (13 hours ago) [Sonic Automation] * 8bd11c2 - Revert "[optoe] Reset page select byte to 0 before upper memory access on page 0h" (sonic-net#468) (3 weeks ago) [mssonicbld] * a5e9588 - [optoe] Reset page select byte to 0 before upper memory access on page 0h (sonic-net#464) (4 weeks ago) [mssonicbld] ``` #### How I did it #### How to verify it #### Description for the changelog
Usage: