Bug 1342447

Summary: Ifconfig command is not supported on p2v client
Product: Red Hat Enterprise Linux 7 Reporter: mxie <mxie>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 7.3CC: juzhou, mzhan, ptoscano, tzheng, xiaodwan
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: P2V
Fixed In Version: libguestfs-1.32.5-2.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-03 18:01:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot none

Description mxie@redhat.com 2016-06-03 09:47:58 UTC
Created attachment 1164413 [details]
screenshot

Description of problem:
Ifconfig command is not supported on p2v client


Version-Release number of selected component (if applicable):
virt-p2v-1.32.5-1.el7.iso


How reproducible:
100%

Steps to Reproduce:
1.Boot the source machine into p2v client via iso
2.Input the ip and password of conversion server
3.At the input conversion info interface, there are many networks listed in network interfaces
4.Exit the p2v GUI interface and enter into p2v console mode, input the command#ifconfig to check network info of machine but p2v shows not support ifconfig command
#ifconfig
ifconfig:command not found

5.Try to use command #ip a list which told by rjones, the network info could be showed normally, pls refer to screenshot

Actual results:
As above description

Expected results:
Although command #ip a list could show network info at p2v console mode, it is known by little people.The command #ifconfig is usually used by most of people for checking network info. so it is better if p2v console mode could support ifconfig command 
 

Additional info:

Comment 1 Richard W.M. Jones 2016-06-03 10:29:22 UTC
I have a trivial patch lined up in my queue for this (not posted).

Comment 3 zhoujunqin 2016-06-22 11:36:33 UTC
I can reproduce this issue with build:
virt-p2v-1.32.4-3.el7.iso

Then try to verify this bug with new build:
virt-p2v-1.32.5-5.el7.iso

Steps:
1. Boot the source machine into p2v client via iso 
2. After virt-p2v client launched, press "Ctrl+Alt+F1[3,4,5,6]" switch to p2v console mode.
3. Input the command: ifconfig

# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.100.187  netmask 255.255.255.0  broadcast 192.168.100.255
        inet6 fe80::5054:ff:febb:c424  prefixlen 64  scopeid 0x20<link>
        ether 52:54:00:bb:c4:24  txqueuelen 1000  (Ethernet)
        RX packets 863  bytes 50544 (49.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 40  bytes 6817 (6.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 4  bytes 352 (352.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4  bytes 352 (352.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Since command ifconfig is added and it works well, move this bug from ON_QA to VERIFIED.

Comment 5 errata-xmlrpc 2016-11-03 18:01:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-2576.html