Azure / Azure/WALinuxAgent

[BUG] Need to check if 'ifconfig' is available or replace with 'ip add show'

Open
#1,712 10 comments 0 reactions 1 assignee Claimed by @longlimsft View on GitHub
RDMA triaged
Dominant language
Python
Stars
581
Forks
397
Avg merge
2d 15h
Merged PRs (30d)
9

Description

**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
1. Provision a new SLES 15
2. Check the waagent log

**Distro and WALinuxAgent details (please complete the following information):**
- Distro and Version: SLES 15 (4.12.14-5.30-azure)
- WALinuxAgent version: WALinuxAgent-2.2.36 running on sles 15
Python: 3.6.8
Goal state agent: 2.2.36

**Additional context**
NA

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.