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

[sonic-installer] use host docker startup arguments when running dockerd in chroot #2179

Merged
merged 4 commits into from
May 27, 2022

Conversation

stepanblyschak
Copy link
Contributor

@stepanblyschak stepanblyschak commented May 20, 2022

What I did

I attempted to fix an issue that happens on multi-asic devices after new SONiC image installation. The issue is caused by overriding docker0 bridge configuration as well as installing iptables rules by dockerd started in chroot environment.

Fixes sonic-net/sonic-buildimage#10135

How I did it

I start dockerd in chroot using same parameters the host dockerd is started with.

How to verify it

  • Run VS multi-asic device.
  • Install a new image on it.
  • Verify "show version", "show interface status"

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@liat-grozovik
Copy link
Collaborator

@abdosi appreciate if you can also take further look at the coverage report.
there was no infra for unit testing sonic-installer and now that it is avaialble and expected to cover only changed code not sure why this mentioned as a failure. if needed please involve the build team on that.

Signed-off-by: Stepan Blyschak <[email protected]>
@gechiang
Copy link
Contributor

@gechiang please help take a look why this is not taken in 202205 branch yet.

@gechiang
Copy link
Contributor

gechiang commented Sep 14, 2022

@stepanblyschak , this PR cannot be cleanly cherry-picked into 202205 branch. Can you please raise a new PR in 202205 branch and port this over? On the new PR please tag me and @abdosi for review.
Thanks!

@yxieca
Copy link
Contributor

yxieca commented Sep 21, 2022

@stepanblyschak this change cannot be cherry-picked cleanly to 202205, please raise separate PR.

liat-grozovik pushed a commit that referenced this pull request Oct 3, 2022
…erd in chroot (#2179) (#2407)

Backport of #2179

- Why I did it
I attempted to fix an issue that happens on multi-asic devices after new SONiC image installation. The issue is caused by overriding docker0 bridge configuration as well as installing iptables rules by dockerd started in chroot environment.

Fixes sonic-net/sonic-buildimage#10135

- How I did it
I start dockerd in chroot using same parameters the host dockerd is started with.

- How to verify it
Run VS multi-asic device.
Install a new image on it.
Verify "show version", "show interface status"

Signed-off-by: Stepan Blyschak <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants