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

RPC syncd docker image does not start RPC server automatically #2694

Closed
stepanblyschak opened this issue Mar 22, 2019 · 0 comments
Closed

RPC syncd docker image does not start RPC server automatically #2694

stepanblyschak opened this issue Mar 22, 2019 · 0 comments
Assignees

Comments

@stepanblyschak
Copy link
Collaborator

Description

RPC syncd docker image does not start RPC server automatically;
In the resulting docker syncd rpc image /usr/bin/syncd_init_common.sh has the following line:

ENABLE_SAITHRIFT=0

However, expected is

ENABLE_SAITHRIFT=1

At the same time syncd binary in docker image has RPC support, so changing "ENABLE_SAITHRIFT=0" to "ENABLE_SAITHRIFT=1" starts saithrift server.

After some investigation it looks like the modification time of syncd_init_common.sh from syncd_1.0.0_amd64.deb and syncd-rpc_1.0.0_amd64.deb has the same modifiaction time and size:

root@r-boxer-sw01:/# stat /usr/bin/syncd_init_common.sh
  File: '/usr/bin/syncd_init_common.sh'
  Size: 5438            Blocks: 16         IO Block: 4096   regular file
Device: 803h/2051d      Inode: 269035      Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2019-03-22 09:49:31.000000000 +0000
Modify: 2017-04-12 20:00:00.000000000 +0000
Change: 2019-03-22 09:49:31.718423112 +0000
 Birth: -
root@r-boxer-sw01:/# dpkg -P syncd
(Reading database ... 11224 files and directories currently installed.)
Removing syncd (1.0.0) ...
invoke-rc.d: policy-rc.d denied execution of stop.
Purging configuration files for syncd (1.0.0) ...
root@r-boxer-sw01:/# dpkg -i syncd-rpc_1.0.0_amd64.deb
Selecting previously unselected package syncd-rpc.
(Reading database ... 11214 files and directories currently installed.)
Preparing to unpack syncd-rpc_1.0.0_amd64.deb ...
Unpacking syncd-rpc (1.0.0) ...
Setting up syncd-rpc (1.0.0) ...
invoke-rc.d: policy-rc.d denied execution of start.
Processing triggers for systemd (215-17+deb8u10) ...
root@r-boxer-sw01:/# stat /usr/bin/syncd_init_common.sh
  File: '/usr/bin/syncd_init_common.sh'
  Size: 5438            Blocks: 16         IO Block: 4096   regular file
Device: 803h/2051d      Inode: 269035      Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2019-03-22 09:49:54.000000000 +0000
Modify: 2017-04-12 20:00:00.000000000 +0000
Change: 2019-03-22 09:49:54.226227761 +0000

Since we build docker image with option "--squash" from docker syncd base image, and overwride syncd_init_common.sh by installing syncd-rpc_1.0.0_amd64.deb it looks like squashing process doesn't see a difference and resulting image has old syncd_init_common.sh from base image. See issue : moby/moby#38072

Steps to reproduce the issue:

  1. build rpc image
  2. run on DUT
  3. observe that RPC server is not started

Describe the results you received:
RPC server does not start

Describe the results you expected:
RPC server starts

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

**Output of `show version`:**

```
master 5cfd97a65f70685b1d7c6055a6e7182868d3815a
```

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

```
(paste your output here)
```
pavel-shirshov added a commit to pavel-shirshov/sonic-sairedis that referenced this issue Apr 3, 2019
Fixing sonic-net/sonic-buildimage#2694
Which was caused by moby/moby#38072
Fixing by changing file size. Previously the change from 0 to 1
didn't change the file size, and docker squish optimized the change
out.
pavel-shirshov added a commit to sonic-net/sonic-sairedis that referenced this issue Apr 18, 2019
* Add a comment to fix the docker issue

Fixing sonic-net/sonic-buildimage#2694
Which was caused by moby/moby#38072
Fixing by changing file size. Previously the change from 0 to 1
didn't change the file size, and docker squish optimized the change
out.
pettershao-ragilenetworks pushed a commit to pettershao-ragilenetworks/sonic-sairedis that referenced this issue Nov 18, 2022
* Add a comment to fix the docker issue

Fixing sonic-net/sonic-buildimage#2694
Which was caused by moby/moby#38072
Fixing by changing file size. Previously the change from 0 to 1
didn't change the file size, and docker squish optimized the change
out.
StormLiangMS added a commit that referenced this issue Mar 1, 2023
b8173428 - [GCU] Add Sample Unit Test for RDMA Headroom Pool Size Tuning ([device/celestica] blacklist gpio_ich kernel module on haliburton #2692) (5 hours ago) [isabelmsft]
6f84aae7 - Add begin logs to config reload/config minigraph/warm-reboot/fast-reboot (RPC syncd docker image does not start RPC server automatically #2694) (27 hours ago) [Junchao-Mellanox]
e98011f8 - Revert "Secure upgrade ([sonic-cfggen] Multi-key should be in form of (a,b) instead of 'a|b' #2337)" (Add Broadcom XLR/GTS ((BCM9COMX2XMC) support for Tomahawk switch (BCM956960K) #2675) (34 hours ago) [StormLiangMS]
eda4e91b - [show][muxcable] add some new commands health, reset-cause, queue_info support for muxcable (DUT takes more than 7 seconds to finish update ip v6 neighbor #2414) (4 days ago) [vdahiya12]
54e26359 - Replace pickle by json (Add autoneg to 7170-Q59S20 #2636) (4 days ago) [Mai Bui]
xumia pushed a commit to xumia/sonic-buildimage-1 that referenced this issue Mar 10, 2023
b8173428 - [GCU] Add Sample Unit Test for RDMA Headroom Pool Size Tuning ([device/celestica] blacklist gpio_ich kernel module on haliburton sonic-net#2692) (5 hours ago) [isabelmsft]
6f84aae7 - Add begin logs to config reload/config minigraph/warm-reboot/fast-reboot (RPC syncd docker image does not start RPC server automatically sonic-net#2694) (27 hours ago) [Junchao-Mellanox]
e98011f8 - Revert "Secure upgrade ([sonic-cfggen] Multi-key should be in form of (a,b) instead of 'a|b' sonic-net#2337)" (Add Broadcom XLR/GTS ((BCM9COMX2XMC) support for Tomahawk switch (BCM956960K) sonic-net#2675) (34 hours ago) [StormLiangMS]
eda4e91b - [show][muxcable] add some new commands health, reset-cause, queue_info support for muxcable (DUT takes more than 7 seconds to finish update ip v6 neighbor sonic-net#2414) (4 days ago) [vdahiya12]
54e26359 - Replace pickle by json (Add autoneg to 7170-Q59S20 sonic-net#2636) (4 days ago) [Mai Bui]
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

No branches or pull requests

2 participants