Bug 628545
Summary: | virsh iface-start raise an error when first running after reboot the host | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | weizhang <weizhan> | |
Component: | libvirt | Assignee: | Laine Stump <laine> | |
Status: | CLOSED DUPLICATE | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | low | |||
Version: | 6.0 | CC: | dallan, eblake, jklimes, llim, xen-maint, yoyzhang | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 657453 (view as bug list) | Environment: | ||
Last Closed: | 2010-12-07 07:16:37 UTC | Type: | --- | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 657453 |
Description
weizhang
2010-08-30 11:01:52 UTC
I create the br0 with virt-manager and have the same problem after restart the host with NetworkManager started #vi virt-manager.log [Wed, 01 Sep 2010 15:56:35 virt-manager 3002] DEBUG (error:86) Uncaught Error: Error creating interface: 'Could not create interface: internal error failed to create (start) interface br0 (netcf: failed to execute external program - Running 'ifup br0' failed with exit code 1)' : Error creating interface: '<type 'exceptions.RuntimeError'> Could not create interface: internal error failed to create (start) interface br0 (netcf: failed to execute external program - Running 'ifup br0' failed with exit code 1) Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/createinterface.py", line 1156, in do_install self.interface.install(meter, create=activate) File "/usr/lib/python2.6/site-packages/virtinst/Interface.py", line 258, in install raise RuntimeError(errmsg) RuntimeError: Could not create interface: internal error failed to create (start) interface br0 (netcf: failed to execute external program - Running 'ifup br0' failed with exit code 1) (In reply to comment #0) > Description of problem: > I test with the following steps after reboot the host for getting clean > environment. After reboot the host and run iface-destroy and iface-start at > first time, it fails with an error. It is very strange that after I reboot the > NetworkManager, the iface-destroy and iface-start successfully, but after > iface-destroy the eth0 state in iface-list is still active, and in fact it is > already down. > > # setenforce 0 > # virsh iface-destroy eth0 > Interface eth0 destroyed > > # virsh iface-list > Name State MAC Address > -------------------------------------------- > lo active 00:00:00:00:00:00 > > # virsh iface-start eth0 > error: Failed to start interface eth0 > error: internal error failed to create (start) interface eth0 (netcf: failed to > execute external program - Running 'ifup eth0' failed with exit code 4) > > # ifup eth0 > Error: Connection activation failed: Device not managed by NetworkManager > It could be the same as bug 612934, 'ifdown eth0' puts the link down and thus it's not available to be successfully started with 'ifup eth0' later on. It would be nice if virsh returned the same error message as ifup ("Device not managed by NetworkManager" not just error code 4.). BTW, the error from NM is now "Device not managed by NetworkManager or unavailable", which is more exact. (In reply to comment #1) The error looks the same as in bug 612068. I agree 100% with Jirka's analysis in Comment 2. Closing this as a duplicate of Bug 612934. (BTW, please note that the combination of NetworkManager and netcf together is not currently supported, although it does work correctly much of the time). *** This bug has been marked as a duplicate of bug 612934 *** |