RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 967720 - ncftool list/virsh iface-list met error when filename have a comma(,) or the exclamation mark(!) suffix in /etc/sysconfig/network-scripts/
Summary: ncftool list/virsh iface-list met error when filename have a comma(,) or the ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: netcf
Version: 7.0
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Laine Stump
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 967722
TreeView+ depends on / blocked
 
Reported: 2013-05-28 06:51 UTC by Hu Jianwei
Modified: 2013-07-02 14:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 967722 (view as bug list)
Environment:
Last Closed: 2013-07-02 14:59:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Hu Jianwei 2013-05-28 06:51:27 UTC
Description of problem:
virsh iface-list met error when filename have a comma(,) or the exclamation mark(!) suffix in /etc/sysconfig/network-scripts path

Version-Release number of selected component (if applicable):
libvirt-1.0.5-2.el7.x86_64
qemu-kvm-1.4.0-4.el7.x86_64
kernel-3.9.0-0.55.el7.x86_64
netcf-0.2.3-4.bz961184.el7.x86_64

How reproducible:
100%

Steps:
1. List all ifcfg-* scripts in /etc/sysconfig/network-scripts.

[root@SRIOV2 network-scripts]# ls | grep ifcfg-
ifcfg-eth1
ifcfg-eth1.bak
ifcfg-eth2
ifcfg-eth3
ifcfg-eth3.bak
ifcfg-eth4
ifcfg-eth5
ifcfg-lo
[root@SRIOV2 network-scripts]# virsh iface-list --all
Name                 State      MAC Address
--------------------------------------------
eth1                 active     b4:b5:2f:af:a1:01
eth3                 active     00:1b:21:55:b3:b9
lo                   active     00:00:00:00:00:00

2. Add file with , and !, like below:
ifcfg-eth1,
ifcfg-eth1!

3. Run virsh iface-list agagin.
[root@SRIOV2 network-scripts]# ls | grep ifcfg-
ifcfg-eth1
ifcfg-eth1,   <======== new file
ifcfg-eth1.bak
ifcfg-eth2
ifcfg-eth3
ifcfg-eth3.bak
ifcfg-eth4
ifcfg-eth5
ifcfg-lo
[root@SRIOV2 network-scripts]# virsh iface-list --all
error: Failed to list interfaces
error: internal error failed to get number of host interfaces: unspecified error - errors in loading some config files

[root@SRIOV2 network-scripts]# touch ifcfg-eth1!
[root@SRIOV2 network-scripts]# ls | grep ifcfg-
ifcfg-eth1
ifcfg-eth1!   <========new file
ifcfg-eth1.bak
ifcfg-eth2
ifcfg-eth3
ifcfg-eth3.bak
ifcfg-eth4
ifcfg-eth5
ifcfg-lo
[root@SRIOV2 network-scripts]# virsh iface-list --all
error: Failed to list interfaces
error: internal error failed to get number of host interfaces: unspecified error - errors in loading some config files

Using ncftool command line:
[root@hujianweitest network-scripts]#  --all
error: unspecified error
error: errors in loading some config files


Actual results:
The command met above error.

Expected results:
The iface-list should filter the invalid netwok-scripts for it or can deal with this abnormal status. For these chars are good for iface-list, such as @ * $ % ^ ~ ; : ? 

Netcf should check those two chars.

Comment 2 Laine Stump 2013-07-02 14:59:16 UTC
While odd, this isn't something that would occur in normal usage, and there are currently no resources to work on it.


Note You need to log in before you can comment on or make changes to this bug.