virt-manager shows no network devices when bonding interfaces exist

Bug #302733 reported by Jack Coulter
2
Affects Status Importance Assigned to Milestone
virt-manager (Ubuntu)
Invalid
Undecided
Jack Coulter

Bug Description

Release: Intrepid
Package: virt-manager - 0.5.4-2ubuntu1

Expected:
When adding a network device to a guest, a list of installed devices is displayed under "Shared Physical Device"

Actual:
List is empty

Cause:

in /usr/share/virt-manager/virtManager/connection.py in net_get_bonding_masters, the last character of what /sys/class/net/bonding_masters is stripped for some reason, this results in the result of the function simply being "bond" instead of "bond0" or whatever number should be at the end. This is what causes this bug, and the traceback is included in an attachment.

Fix:
See attached patch

Revision history for this message
Jack Coulter (jscinoz) wrote :
Revision history for this message
Jack Coulter (jscinoz) wrote :

Patch, this appears to fix it, simply removing the part that strips the last character, I am not sure if this would cause other problems though.

Apply this to /usr/share/virt-manager/virtManager/connection.py

Jack Coulter (jscinoz)
Changed in virt-manager:
assignee: nobody → jscinoz
Revision history for this message
Robstarusa (rob-naseca) wrote :

Not completely fixed.

My "brpxe" bridge bridged to eth3 shows up
My "br0" bridge bridged to bond0.13 shows as "non-bridged"

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Thanks for reporting this issue.

Are you still able to reproduce this issue with a more recent version of virt-manager, such as the one in Karmic or Lucid?

Changed in virt-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to 'New'. Thanks again!

Changed in virt-manager (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.