-
Notifications
You must be signed in to change notification settings - Fork 376
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
[BUG] Need to check if 'ifconfig' is available or replace with 'ip add show' #1712
Comments
@juhlee-microsoft - thanks for reporting this, could you attach the entire waagent.log? |
@juhlee-microsoft Thanks. We'll follow up. |
@longlimsft - could you take a look at this issue? we are using ifconfig during RDMA provisioning. |
waagent 2.2.36 still shows below error and failed to initialize ib0 device interface. This blocks the SLES 15 RDMA tests. 2020/01/08 19:47:49.736059 INFO Daemon RDMA: waiting for any Infiniband device at directory=/sys/class/infiniband timeout=120s |
@juhlee-microsoft , can you install ifconfig on sles15 to see if it fixes your problem: apt install net-tools-deprecated |
This is not a good advice: net-tools with ifconfig are only available in the legacy module of SLES15. The legacy module has shorter support lifecycle than the SLES15 itself. Better fix Line 665 in 11d0881
and you may allow arbitary network interface names instead of hardcoded eth at that function. See #1877 (comment) as well. |
@juhlee-microsoft @jpbuecken
|
Addtional ideas:
|
Describe the bug
'ifconfig' got deprecated and soon we won't see it in many distro. I still see below error message in today's SLES 15. Can you check if waagent can substitutes 'ip address show' when no ifconfig command available in the system?
Error in waagent.log : 2019/11/18 19:58:00.744410 ERROR Daemon Command: [ifconfig -a], return code: [127], result: [/bin/sh: ifconfig: command not found]
Note: Please add some context which would help us understand the problem better
Distro and WALinuxAgent details (please complete the following information):
Python: 3.6.8
Goal state agent: 2.2.36
Additional context
NA
The text was updated successfully, but these errors were encountered: