[docker-syncd]: Fix mount point for machine.conf#991
[docker-syncd]: Fix mount point for machine.conf#991marian-pritsak wants to merge 1 commit intomasterfrom
Conversation
machine.conf must be mounted under /host directory in each container so that config engine can find and parse it Signed-off-by: marian-pritsak <marianp@mellanox.com>
|
@marian-pritsak: Where is sonic-cfggen being called in the syncd dockers that reference machine.conf? |
|
It's not called, but machine.conf is only mounted for that reason. So we can either fix it or remove it at all. |
|
It's only mounted in the syncd dockers, but not in any others. Maybe we should just remove the lines altogether. However, if removed, does this cause different behavior between sonic-cfggen in dockers vs. sonic-cfggen in the base image? If so, I think we should ensure sonic-cfggen behaves the same in both dockers and the base image. @taoyl-ms: Should we remove these mounts from the syncd dockers, or keep this commit and add them to all dockers? |
|
It's also mounted and used in swss container But there destination path is correct |
|
I do not know about other platforms, but brcm sai is relying on /etc/machine.conf, we need to keep /etc/machine.conf at least for broadcom syncd docker. are we using sonic-cfggen in syncd docker, it looks like we do not. if we want to ensure the same behavior for sonic-cfggen, then we need to add /host/machine.conf:/host/machine.conf and still keep /host/machine.conf:/etc/machine.conf |
lguohan
left a comment
There was a problem hiding this comment.
need to keep /host/machine.conf:/etc/machine.conf for brcm platform.
For other platform, we need to confirmation from others.
| $(DOCKER_SYNCD_MLNX_RPC)_CONTAINER_NAME = syncd | ||
| $(DOCKER_SYNCD_MLNX_RPC)_RUN_OPT += --net=host --privileged -t | ||
| $(DOCKER_SYNCD_MLNX_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf | ||
| $(DOCKER_SYNCD_MLNX_RPC)_RUN_OPT += -v /host/machine.conf:/host/machine.conf |
There was a problem hiding this comment.
@marian-pritsak , if you are sure you do not use /etc/machine.conf on your platform, you can remove it.
* src/sonic-swss 63afbd5...5be3963 (11): > Remove the platform check for remove/add port action at init phase. (sonic-net#1006) > [test]: Add Class object in each test script file (sonic-net#992) > [vstest]: add --imgname option to specify vs image to test (sonic-net#996) > [qosorch]: Add cir and pir parameters for scheduler (sonic-net#991) > [vstest]: report error when team kernel module is not available (sonic-net#994) > Support per buffer pool watermark polling mode (sonic-net#973) > [test]: Update test_vlan to use dvs functions (sonic-net#986) > Add synchronous switch to orch agent (sonic-net#987) > ARM32 bit fixes, for 64bit printf format specifier (sonic-net#989) > [portsorch]: Rename function isPortReady() to allPortsReady() (sonic-net#990) > [routeorch]: Fix observer detaching procedure for next hop observers (sonic-net#985) Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
… platform (#3240) * Utilize the same sai.profile and config.bcm file Signed-off-by: Zhenggen Xu <zxu@linkedin.com> * Fix the index issues for HWSKU: Seastone-DX010-25-50 and Seastone-DX010-50-40 Signed-off-by: Zhenggen Xu <zxu@linkedin.com> * Update sonic-swss submodule * src/sonic-swss 63afbd5...5be3963 (11): > Remove the platform check for remove/add port action at init phase. (#1006) > [test]: Add Class object in each test script file (#992) > [vstest]: add --imgname option to specify vs image to test (#996) > [qosorch]: Add cir and pir parameters for scheduler (#991) > [vstest]: report error when team kernel module is not available (#994) > Support per buffer pool watermark polling mode (#973) > [test]: Update test_vlan to use dvs functions (#986) > Add synchronous switch to orch agent (#987) > ARM32 bit fixes, for 64bit printf format specifier (#989) > [portsorch]: Rename function isPortReady() to allPortsReady() (#990) > [routeorch]: Fix observer detaching procedure for next hop observers (#985) Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
Signed-off-by: tengfei <tengfei@asterfusion.com>
Fix is_mgmt_vrf_enabled when MGMT_VRF_CONFIG is not present the config (sonic-net#885) Changes to support acl-loader command for multi-npu platforms. (sonic-net#908) Stop/Start restapi server upon config reload (sonic-net#911) [fanshow] Add column drawer name and led status to output of show platform(sonic-net#991) [MultiDB] use sonic-db-cli instead of redis-cli in new added codes (sonic-net#907) [show] Add `ntpstat` output to `show ntp` (sonic-net#861) [config] Log invocation of config commands to syslog (sonic-net#259) Remove dependency on click-default-group package (sonic-net#903) [config] Add 'interface transceiver' subgroup with 'lpmode' and 'rese…' (sonic-net#904) [show] Add 'errors' and 'rates' subcommands to 'show interfaces count…(sonic-net#900) [config] Support load_minigraph command for multi NPU platform (sonic-net#896) [Vnet] Fix NameError for 'swsssdk' and align output (sonic-net#902)
Fix is_mgmt_vrf_enabled when MGMT_VRF_CONFIG is not present the config (#885) Changes to support acl-loader command for multi-npu platforms. (#908) Stop/Start restapi server upon config reload (#911) [fanshow] Add column drawer name and led status to output of show platform(#991) [MultiDB] use sonic-db-cli instead of redis-cli in new added codes (#907) [show] Add `ntpstat` output to `show ntp` (#861) [config] Log invocation of config commands to syslog (#259) Remove dependency on click-default-group package (#903) [config] Add 'interface transceiver' subgroup with 'lpmode' and 'rese…' (#904) [show] Add 'errors' and 'rates' subcommands to 'show interfaces count…(#900) [config] Support load_minigraph command for multi NPU platform (#896) [Vnet] Fix NameError for 'swsssdk' and align output (#902)
* src/sonic-utilities a23479e...82dfe50 (3): > [sonic-installer] Update group name for 'verify-next-image' subcommand (#/995) > [acl_loader] Fix bugs in acl_loader (#991) > [show] Add support for QSFP-DD cables on 'show' command (#989) This submodule update resolves sonic-net/sonic-utilities#997 by including PR sonic-net/sonic-utilities#995
- Support protocol number == 0 - Emit warning if --table_name not found in Config DB Signed-off-by: Danny Allen <daall@microsoft.com>
…AD automatically (sonic-net#991) #### Why I did it src/sonic-utilities ``` * cd1be5b8 - (HEAD -> 202412, origin/202412) Merge pull request sonic-net#163 from mssonicbld/sonicbld/202412-merge (21 hours ago) [mssonicbld] * 38f299c0 - Merge branch '202411' of https://github.com/sonic-net/sonic-utilities into 202412 (21 hours ago) [Sonic Automation] * a6fcf564 - [show][interfaces] Add proposal for show interfaces flap (sonic-net#3627) (sonic-net#3823) (11 days ago) [vdahiya12] ``` #### How I did it #### How to verify it #### Description for the changelog
machine.conf must be mounted under /host directory in each container so
that config engine can find and parse it
Signed-off-by: marian-pritsak marianp@mellanox.com