uvt-kvm wait & ssh command do not work with use --bridge during create

Bug #1408596 reported by Athir Nuaimi on 2015-01-08
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
UVTools
Undecided
Unassigned

Bug Description

If you create your VM with the --bridge option, then the wait and ssh commands no long work and report the following error:

uvt-kvm: error: libvirt domain 'firsttest' has no NIC MACs available.

This is because of a bug in uvtool/libvirt/__init__.py. In the method get_domain_macs, the xpath only looks for the 'network' section of the domain XML. But if a bridge is used, then the 'network' section is replaced with a 'bridge' section. The xpath should be updated to look for either

Here is the updated code...

    for mac in xml.xpath(
            "/domain/devices/interface[@type='network' or @type='bridge']/mac[@address]"):
        yield mac.get('address')

Athir Nuaimi (athir-g) wrote :

I should add that this is with trusty (14.04)

Andrew (ajvant) wrote :

This appears to still be an issue in 16.04.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers