Skip to content

[multi-asic] Enhanced the getMount() API and docker mount point check #5848

Merged
abdosi merged 1 commit intosonic-net:masterfrom
abdosi:docker_mountpoint
Nov 9, 2020
Merged

[multi-asic] Enhanced the getMount() API and docker mount point check #5848
abdosi merged 1 commit intosonic-net:masterfrom
abdosi:docker_mountpoint

Conversation

@abdosi
Copy link
Copy Markdown
Contributor

@abdosi abdosi commented Nov 6, 2020

Why I did:
API getMount() API was not updated to handle multi-asic platforms
because of which mount point comparison always return FALSE
and we were always creating new container image when doing config load_minigraph/reload/reboot.

How I did:
Updated API getMount() to return abspath() for Docker Mount Point
and use that one for mount point comparison

How I Verify:

  • Verify on Single ASIC platforms behavior is same as present

  • Verify on Multi-asic platforms we do not create new container when doing config load_minigraph/reload/reboot.

  • Also sonic-mgmt copp test were failing on Multi-asic platform
    since test case update copp.json in swss docker and restart docker but that
    change did not took impact since we were creating new container.
    After this changes test case is working fine

platforms.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
@abdosi
Copy link
Copy Markdown
Contributor Author

abdosi commented Nov 7, 2020

retest broadcom please

1 similar comment
@abdosi
Copy link
Copy Markdown
Contributor Author

abdosi commented Nov 9, 2020

retest broadcom please

Copy link
Copy Markdown
Contributor

@judyjoseph judyjoseph left a comment

Choose a reason for hiding this comment

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

LGTM

@abdosi
Copy link
Copy Markdown
Contributor Author

abdosi commented Nov 9, 2020

@SuvarnaMeenakshi Please review this.

@abdosi abdosi merged commit 4f82463 into sonic-net:master Nov 9, 2020
@abdosi abdosi deleted the docker_mountpoint branch November 9, 2020 21:03
abdosi added a commit that referenced this pull request Nov 9, 2020
API getMount() API was not updated to handle multi-asic platforms
Updated API getMount() to return abspath() for Docker Mount Point
and use that one for mount point comparison

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
…-net#5848)

API getMount() API was not updated to handle multi-asic platforms
Updated API getMount() to return abspath() for Docker Mount Point
and use that one for mount point comparison

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants