Skip to content

[interfaces-config] "main exception: cannot find interfaces: eth0" error log avoided #10463

Merged
liat-grozovik merged 1 commit intosonic-net:masterfrom
vivekrnv:error_log
Apr 6, 2022
Merged

[interfaces-config] "main exception: cannot find interfaces: eth0" error log avoided #10463
liat-grozovik merged 1 commit intosonic-net:masterfrom
vivekrnv:error_log

Conversation

@vivekrnv
Copy link
Contributor

@vivekrnv vivekrnv commented Apr 4, 2022

Signed-off-by: Vivek Reddy Karri vkarri@nvidia.com

Why I did it

Fixes #9628

During bootup, this error log is seen

Dec 22 04:26:29 sonic interfaces-config.sh[2546]: error: main exception: cannot find interfaces: eth0 (interface was probably never up ?)

This is of non-functional nature and doesn't affect the flow.

How I did it

How to verify it

Verified during reboot. Log did not appear and IP was acquired on eth0 as expected

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
@vivekrnv vivekrnv requested a review from lguohan as a code owner April 4, 2022 19:55
@dprital dprital added the Request for 202111 Branch For PRs being requested for 202111 branch label Apr 4, 2022
@liat-grozovik liat-grozovik merged commit ed14eb5 into sonic-net:master Apr 6, 2022
judyjoseph pushed a commit that referenced this pull request Apr 11, 2022
…ror log avoided (#10463)

- Why I did it
Fixes #9628
During bootup, this error log is seen

Dec 22 04:26:29 sonic interfaces-config.sh[2546]: error: main exception: cannot find interfaces: eth0 (interface was probably never up ?)
This is of non-functional nature and doesn't affect the flow.

- How I did it
Dont take the ifdown if not needed

- How to verify it
Verified during reboot. Log did not appear and IP was acquired on eth0 as expected

Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Included in 202111 Branch Request for 202111 Branch For PRs being requested for 202111 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[logs][interfaces-config] Logs show "main exception: cannot find interfaces: eth0"

5 participants