Skip to content

[ansible] fix duplicate docker repository#4086

Merged
Xichen96 merged 1 commit intosonic-net:masterfrom
Xichen96:fix-docker-repo
Aug 25, 2021
Merged

[ansible] fix duplicate docker repository#4086
Xichen96 merged 1 commit intosonic-net:masterfrom
Xichen96:fix-docker-repo

Conversation

@Xichen96
Copy link
Contributor

  • fix problem where too many docker repo added

Signed-off-by: Xichen Lin xichenlin@microsoft.com

Description of PR

Summary:
In VsSetup, mgmt container will attempt to add docker repo, even though in this case a docker repo already exists, causing apt update failure.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911

Approach

What is the motivation for this PR?

Bug fix.

How did you do it?

Before installing new docker repo, ansible will check for files under /etc/apt/sources.list.d with name "docker" to avoid conflict.

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

* fix problem where too many docker repo added

Signed-off-by: Xichen Lin <xichenlin@microsoft.com>
@Xichen96 Xichen96 requested a review from a team as a code owner August 19, 2021 18:09
@Xichen96 Xichen96 changed the title ansible: fix duplicate docker repository [ansible]: fix duplicate docker repository Aug 20, 2021
@Xichen96 Xichen96 changed the title [ansible]: fix duplicate docker repository [ansible] fix duplicate docker repository Aug 20, 2021
@Xichen96 Xichen96 merged commit 1a200d1 into sonic-net:master Aug 25, 2021
vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
* fix problem where too many docker repo added

Signed-off-by: Xichen Lin <xichenlin@microsoft.com>

Co-authored-by: Xichen Lin <xichenlin@microsoft.com>
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.

2 participants