Skip to content

Pass pid of process as seen in host to coredump_compress script#5301

Merged
renukamanavalan merged 1 commit intosonic-net:masterfrom
renukamanavalan:core_with_ns
Sep 3, 2020
Merged

Pass pid of process as seen in host to coredump_compress script#5301
renukamanavalan merged 1 commit intosonic-net:masterfrom
renukamanavalan:core_with_ns

Conversation

@renukamanavalan
Copy link
Contributor

@renukamanavalan renukamanavalan commented Sep 2, 2020

This would enable the coredump_compress script to retrieve additional info regarding the crashing process.

- Why I did it
To facilitate coredump_compress script. Currently there is a need to identify the namespace of a crashing process.

- How I did it
By passing %P as part of core-pattern, which translates to " %P PID of dumped process, as seen in the initial PID namespace"

- How to verify it
You can use the last parameter to be able look into /proc// folder for crashing process from the coredump_compress script.

- Which release branch to backport (provide reason below if selected)

  • 201911
  • 202006

Backport to all branches that support multi-asic.

@renukamanavalan
Copy link
Contributor Author

retest vsimage please

1 similar comment
@renukamanavalan
Copy link
Contributor Author

retest vsimage please

@renukamanavalan renukamanavalan merged commit 47a925c into sonic-net:master Sep 3, 2020
abdosi pushed a commit that referenced this pull request Sep 6, 2020
…mespace, which is host. (#5301)

This would enable the coredump_compress script to retrieve additional info regarding the crashing process.
@lguohan
Copy link
Collaborator

lguohan commented Sep 8, 2020

@renukamanavalan , have you updated the sonic-utilities submodule? I think this pr depends on the other pr you have in sonic-utilities.

@renukamanavalan
Copy link
Contributor Author

@renukamanavalan , have you updated the sonic-utilities submodule? I think this pr depends on the other pr you have in sonic-utilities.

Ooops! Right now ...

abdosi added a commit that referenced this pull request Sep 8, 2020
…itial namespace, which is host. (#5301)"

This reverts commit 96956a6.
@abdosi
Copy link
Contributor

abdosi commented Oct 6, 2020

@renukamanavalan Can you point me to sonic-util PR's . Want to make sure those are there in 201911 sonic-util

@renukamanavalan
Copy link
Contributor Author

@renukamanavalan Can you point me to sonic-util PR's . Want to make sure those are there in 201911 sonic-util

PR #1091

abdosi pushed a commit that referenced this pull request Oct 6, 2020
…mespace, which is host. (#5301)

This would enable the coredump_compress script to retrieve additional info regarding the crashing process.
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
…mespace, which is host. (sonic-net#5301)

This would enable the coredump_compress script to retrieve additional info regarding the crashing process.
@renukamanavalan renukamanavalan deleted the core_with_ns branch April 17, 2022 22:09
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.

4 participants