Skip to content

Single image implementation#215

Merged
lguohan merged 6 commits intosonic-net:masterfrom
oleksandrivantsiv:master
Jan 29, 2017
Merged

Single image implementation#215
lguohan merged 6 commits intosonic-net:masterfrom
oleksandrivantsiv:master

Conversation

@oleksandrivantsiv
Copy link
Collaborator

  • generic image is fully backward compatible.
  • generic platform for now is default platform (make configure is not required for this platform).
  • add infrastructure required to build single image.
  • add single image for Mellanox platform only. "sonic-mellanox.bin" is default target.
  • add all required config files to single image.
  • add configuration files templates and generation of config file during startup.

@oleksandrivantsiv
Copy link
Collaborator Author

Single image templates implementation for Broadcom and Cavium platforms will be added as separated commits.

@lguohan
Copy link
Collaborator

lguohan commented Jan 26, 2017

can you check the build break?

  • sudo cp files/image_config/environment/environment ./fsroot/etc/
  • sudo cp files/image_config/environment/motd ./fsroot/etc/
  • sudo cp files/image_config/minigraph/minigraph_.xml ./fsroot/etc/sonic/minigraph.xml
    cp: cannot stat 'files/image_config/minigraph/minigraph_.xml': No such file or directory

@oleksandrivantsiv
Copy link
Collaborator Author

Build failures reason is the following:

  • Cavium and Broadcom platform are not read yet. Will add changes soon.
  • Mellanox platform: Additional "SKU" parameter should be "make configure" command (example: make configure PLATFORM=mellanox SKU=ACS-MSN2700). Jenkins job should be changed.
  • Base image job is executed under Broadcom platform:
[buildimage-baseimage-pr] $ /bin/bash /tmp/hudson3572960011129076848.sh
platform/broadcom/rules.mk:1: /rules.mk: No such file or directory

Now it can be compiled under generic platform. Generic platform is default and "make configure" is not required for it any more. To compile image the following command should be executed:

make target/sonic-generic.bin

Jenkins job should be changed.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not ansible anymore
Maybe change to sonic-config engine?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hw-management?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add comment to describe what this mainly is doing?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe simply saying load docker images and configurations


In reply to: 98135052 [](ancestors = 98135052)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

taoyu, can you take a look at this to make sure we are generate the correct sonic version here.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you know how long it takes to run other than the start?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approximately same time. Will do a measurement.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docker run:

root@sonic:/home/admin# /usr/bin/swss.sh start
Run docker swss: time in miliseconds 1485530349782
Inside docker swss: time in miliseconds 1485530349961
1485530349961 - 1485530349782 = 179 miliseconds

Docker start:

root@sonic:/home/admin# /usr/bin/swss.sh start
Start docker swss: time in miliseconds 1485529942168
Inside docker swss: time in miliseconds 1485529942294
1485529942294 - 1485529942168 = 126 miliseconds

@lguohan
Copy link
Collaborator

lguohan commented Jan 27, 2017

since docker-base is not updated, you can remove it from the changeset

@svc-acs
Copy link
Collaborator

svc-acs commented Jan 27, 2017

No test results found.

@lguohan lguohan merged commit 34ea913 into sonic-net:master Jan 29, 2017
## Install latest intel igb driver
sudo cp target/debs/igb.ko $FILESYSTEM_ROOT/lib/modules/3.16.0-4-amd64/kernel/drivers/net/ethernet/intel/igb/igb.ko

## Install package without starting service
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove this block?

@@ -0,0 +1,63 @@
###############################################################################
# Managed by Ansible
# file: ansible/roles/acs/templates/ntp.conf.j2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove all the 'ansible' comments?

madhanmellanox pushed a commit to madhanmellanox/sonic-buildimage that referenced this pull request Mar 23, 2020
- Fix issue with session update observed when more than one
  session exist with destination IP address from the same subnet.

- Fix issue with deletion of ACL rules attached to everflow session
  in inactive state.
xumia pushed a commit to xumia/sonic-buildimage-1 that referenced this pull request Feb 16, 2021
qiluo-msft pushed a commit that referenced this pull request Jul 13, 2021
Update sonic-snmpagent submodule to pick up new commits:

21d7d97 2021-07-12 Fix: SonicV2Connector behavior change: get_all will return empty dict if (#226)
0813b42 2021-07-12 Entries under .1.3.6.1.2.1.31.1.1.1.18 OID should return the "description" field of PORT_TABLE entries in APPL_DB or CONFIG_DB. (#224)
7a78703 2021-07-08 Install dotnet core to fix python gcov warning for code covery color bar showing (#215)
e0f36a5 2021-06-30 [multi-asic]: Udpate to use SonicDBConfig from swsscommon (#219)
266bd15 2021-06-10 Restored snmp vlan support per RFC1213 and added the missing support for RFC2863 (#218)
lguohan pushed a commit that referenced this pull request Jul 15, 2021
14a4212 [Marvell] CPU1 failure on continuous reboot  (#228)
53e75e5 hwmon: (pmbus_core) Do not enable PEC if adapter doesn't (#215)

Signed-off-by: Rajkumar Pennadam Ramamoorthy <rpennadamram@marvell.com>
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
Update sonic-snmpagent submodule to pick up new commits:

21d7d97 2021-07-12 Fix: SonicV2Connector behavior change: get_all will return empty dict if (sonic-net#226)
0813b42 2021-07-12 Entries under .1.3.6.1.2.1.31.1.1.1.18 OID should return the "description" field of PORT_TABLE entries in APPL_DB or CONFIG_DB. (sonic-net#224)
7a78703 2021-07-08 Install dotnet core to fix python gcov warning for code covery color bar showing (sonic-net#215)
e0f36a5 2021-06-30 [multi-asic]: Udpate to use SonicDBConfig from swsscommon (sonic-net#219)
266bd15 2021-06-10 Restored snmp vlan support per RFC1213 and added the missing support for RFC2863 (sonic-net#218)
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
14a4212 [Marvell] CPU1 failure on continuous reboot  (sonic-net#228)
53e75e5 hwmon: (pmbus_core) Do not enable PEC if adapter doesn't (sonic-net#215)

Signed-off-by: Rajkumar Pennadam Ramamoorthy <rpennadamram@marvell.com>
lguohan pushed a commit that referenced this pull request Oct 24, 2021
8bb9c5a (HEAD -> master, origin/master, origin/HEAD) Add retry reading/setting mux status to simulated y-cable driver (#221)
2ebd786 [sfp-refactor] Add initial support for SFF-8636 in sonic_xcvr (#218)
221fb8a Fix QSFP-DD power class mask (#212)
4598d40 [Y-Cable][Broadcom] upgrade to support Broadcom Y-Cable API to release 1.2 (#217)
0fdd198 [sfp-refactor] Add initial support for SFF-8436 in sonic_xcvr (#215)
a09f5a3 [sfp-refactor] Add new sonic_xcvr package for common transceiver logic (#201)
7ca4f51 Update SFP index definition (#214)

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
mlok-nokia pushed a commit to mlok-nokia/sonic-buildimage that referenced this pull request Jan 24, 2022
Due to rare timing issue test_sfp_insert_events failure can fail. Out of 100 iterations, the test failed on 82nd iteration.

Signed-off-by: Prince George <prgeor@microsoft.com>
SuvarnaMeenakshi pushed a commit to SuvarnaMeenakshi/sonic-buildimage that referenced this pull request Mar 16, 2022
…bar showing (sonic-net#215)

**- What I did**
fix python gcov warning "Please install dotnet core to enable automatic generation of Html report"
**- How I did it**
install dotnet core
snider-nokia pushed a commit to snider-nokia/sonic-buildimage that referenced this pull request Apr 6, 2023
vivekrnv pushed a commit to vivekrnv/sonic-buildimage that referenced this pull request Apr 28, 2023
Currently, for Packet Error Checking (PEC) only the controller
is checked for support. This causes problems on the cisco-8000
platform where a SMBUS transaction errors are observed. This is
because PEC has to be enabled only if both controller and
adapter supports it.

Added code to check PEC capability for adapter and enable it
only if both controller and adapter supports PEC.

Signed-off-by: Madhava Reddy Siddareddygari <msiddare@cisco.com>
mssonicbld added a commit that referenced this pull request Jul 28, 2023
#15952)

#### Why I did it
src/linkmgrd
```
* aa902a3 - (HEAD -> master, origin/master, origin/HEAD) [link prober] Increase pause/restart probe log verbosity (#213) (3 days ago) [Longxiang Lyu]
* 736cdda - [active-standby] Write `unhealthy` is default route `N/A` (#214) (3 days ago) [Longxiang Lyu]
* e923e15 - Add ADO to the PR template (#215) (4 days ago) [Longxiang Lyu]
```
#### How I did it
#### How to verify it
#### Description for the changelog
yxieca pushed a commit that referenced this pull request Aug 11, 2023
#16105)

src/linkmgrd

* 6ce71ba - (HEAD -> 202205, origin/202205) Add ADO to the PR template (#215) (4 hours ago) [Longxiang Lyu]
* 1010d93 - [active-standby] Write `unhealthy` is default route `N/A` (#214) (4 hours ago) [Longxiang Lyu]
* 15e9ca2 - [link prober] Increase pause/restart probe log verbosity (#213) (4 hours ago) [Longxiang Lyu]
mssonicbld added a commit that referenced this pull request Aug 16, 2023
#16152)

#### Why I did it
src/linkmgrd
```
* 40113fd - (HEAD -> 202305, origin/202305) [active-standby] Fix extra toggle observed in `config reload` (#216) (2 days ago) [Longxiang Lyu]
* b6d40fc - Add ADO to the PR template (#215) (2 days ago) [Longxiang Lyu]
* fe41ad2 - [active-standby] Write `unhealthy` is default route `N/A` (#214) (2 days ago) [Longxiang Lyu]
* 8ff265c - [link prober] Increase pause/restart probe log verbosity (#213) (2 days ago) [Longxiang Lyu]
```
#### How I did it
#### How to verify it
#### Description for the changelog
sonic-otn pushed a commit to sonic-otn/sonic-buildimage that referenced this pull request Sep 20, 2023
sonic-net#15952)

#### Why I did it
src/linkmgrd
```
* aa902a3 - (HEAD -> master, origin/master, origin/HEAD) [link prober] Increase pause/restart probe log verbosity (sonic-net#213) (3 days ago) [Longxiang Lyu]
* 736cdda - [active-standby] Write `unhealthy` is default route `N/A` (sonic-net#214) (3 days ago) [Longxiang Lyu]
* e923e15 - Add ADO to the PR template (sonic-net#215) (4 days ago) [Longxiang Lyu]
```
#### How I did it
#### How to verify it
#### Description for the changelog
vivekrnv pushed a commit to vivekrnv/sonic-buildimage that referenced this pull request Mar 18, 2024
Why I did it
To integrate ZMQ to GNMI and Orchagent, need update sonic-swss submodule to latest code.

How I did it
How to verify it
mlok-nokia pushed a commit to mlok-nokia/sonic-buildimage that referenced this pull request Jun 5, 2024
Cherry-pick 17483 and 17378 from public master to msft/202205
mssonicbld added a commit that referenced this pull request Feb 18, 2025
…utomatically (#21565)

#### Why I did it
src/sonic-host-services
```
* 69788c2 - (HEAD -> master, origin/master, origin/HEAD) Fix: Set default values for kdump enhancement (#217) (3 days ago) [Muhammad Ali Hussnain]
* d7e8021 - [chassis] make multi_asic_ns_to_host_fwd False for EXTERNAL_CLIENT acl service (#218) (4 days ago) [Arvindsrinivasan Lakshmi Narasimhan]
* d925457 - Fix sudo command failed because root user password expired by password hardening feature issue (#215) (4 days ago) [Hua Liu]
* 7e1b280 - reverted ssh_key to ssh_string (#216) (6 days ago) [Muhammad Ali Hussnain]
* 741a9df - Handle NotImplementedError in determine-reboot-cause that will be thrown on VS Chassis platform (#211) (7 days ago) [Changrong Wu]
* 47f6feb - check sonic-installer message and return proper error code for when image doesn't exist. (#210) (7 days ago) [Dawei Huang]
* 1fe9a76 - Updated Key and Path (#209) (7 days ago) [Muhammad Ali Hussnain]
* bb0a31c - Adding support for persistent storage and retrieval of DPU reboot-cause (#169) (8 days ago) [rameshraghupathy]
* 5e08927 - [hostcfgd] Fix the state machine during eth0 default route check failure (#196) (2 weeks ago) [Vivek]
* d2cc1a8 - Add ImageService.set_next_boot for GNOI Activate OS. (#207) (3 weeks ago) [Dawei Huang]
* 9c49913 - register image_service and docker_service. (#208) (3 weeks ago) [Dawei Huang]
* d88d8d0 - Implementation for ImageService.List (#206) (4 weeks ago) [Dawei Huang]
* d7e4df5 - Enabled configuring the default number of kdumps in Linux. (#202) (4 weeks ago) [Mridul Bajpai]
* ca9d329 - kdump-remote feature in hostcfgd (#166) (4 weeks ago) [Muhammad Ali Hussnain]
```
#### How I did it
#### How to verify it
#### Description for the changelog
vmittal-msft pushed a commit to vmittal-msft/sonic-buildimage that referenced this pull request Oct 20, 2025
…AD automatically (sonic-net#1465)

#### Why I did it
src/sonic-utilities
```
* fa5691ad - (HEAD -> 202503, origin/202503) Merge pull request sonic-net#217 from mssonicbld/sonicbld/202503-merge (23 hours ago) [mssonicbld]
* c128e744 - Merge branch '202412' of https://github.com/Azure/sonic-utilities.msft into 202503 (23 hours ago) [Sonic Automation]
* ce35cdd8 - (origin/202412) [202412] Code sync sonic-net/sonic-utilities:202411 => 202412 (sonic-net#215) (2 days ago) [Riff]
* 0e09fd01 - Merge remote-tracking branch 'base/202411' into code-sync-202412 (3 days ago) [r12f]
* ac66b67e - [202411] fix show bgp cli on multiple asic device (sonic-net#3980) (3 weeks ago) [Liping Xu]
* f092e916 - Add GCU Support for SKU Mellanox-SN4280-C48/O8C40/O8V40 (sonic-net#3968) (3 weeks ago) [Sai Rama Mohan Reddy S]
```
#### How I did it
#### How to verify it
#### Description for the changelog
jianyuewu pushed a commit to jianyuewu/sonic-buildimage that referenced this pull request Feb 10, 2026
…rd hardening feature issue (sonic-net#215)

Fix sudo command failed because root user password expired by password hardening feature issue.

Why I did it
some sudo command failed after enable password hardening feature:

admin@vlab-01:~$ sudo config reload -y
sudo: Account or password is expired, reset your password and try again
Changing password for root.
Current password:

This is because:

root user password change time is image build time.
password hardening feature will set expiration time smaller than 1 year, in sonic-mgmt test it's 100 days.
some SONiC command will run another commands, those sub-commands will run with root user.
any command run by 'root' user will be blocked and ask update password.
SONiC diabled the 'root' user, this user not have password, also can't login with SSH/Console, which means when ask change password by the sudo command, there is no way to provide the 'current' password user will be blocked there.
The only solution is to run 'sudo passwd root' command, this command will not ask current password, so user can set a new root password.

How I did it
Remove the 'root' user expiration code.

How to verify it
Manually verified.
Pass all test case.

Description for the changelog
Fix hostcfgd modify_single_file method generates empty file issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants