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

[hostcfgd] Error while creating management VRF via CLI #187

Open
samaity opened this issue Nov 19, 2024 · 1 comment
Open

[hostcfgd] Error while creating management VRF via CLI #187

samaity opened this issue Nov 19, 2024 · 1 comment

Comments

@samaity
Copy link

samaity commented Nov 19, 2024

Description:
When attempting to create a management VRF using the command sudo config vrf add mgmt, the following error is encountered:

Nov 19 16:04:51.026785 sonic ERR hostcfgd: ['grep', '-E', 'eth0\\s+00000000\\s+[0-9A-Z]+\\s+[0-9]+\\s+[0-9]+\\s+[0-9]+\\s+202'] - failed: return code - 1, output:#012<_io.TextIOWrapper name=9 encoding='UTF-8'>
Nov 19 16:04:51.026966 sonic ERR hostcfgd: MgmtIfaceCfg: Could not delete eth0 route

Even though the route table shows the following entries for eth0:

admin@sonic:~$ cat /proc/net/route | grep eth0
eth0    00000000    0184F90A    0003    0    0    0    00000000    0    0    0
eth0    0084F90A    00000000    0001    0    0    0    C0FFFFFF    0    0    0

Steps to Reproduce:

  1. Run the following command:
sudo config vrf add mgmt
  1. Observe the system logs using:
sudo journalctl -u hostcfgd

Expected Behavior:
The hostcfgd service should successfully manage the routes associated with eth0 and complete the VRF creation process without errors.

Observed Behavior:
The route manipulation for eth0 fails with an error, indicating that the command
grep -E 'eth0\s+00000000\s+[0-9A-Z]+\s+[0-9]+...' did not find the expected entry.

@samaity
Copy link
Author

samaity commented Nov 19, 2024

@qiluo-msft, Do you happen to know why this error occurs? If not, could you kindly point me to the right person or resource to troubleshoot this?

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

No branches or pull requests

1 participant