Mark Wu has posted comments on this change.

Change subject: Fix crash on vm start with netdevs w/out some info
......................................................................


Patch Set 3: I would prefer that you didn't submit this

(1 inline comment)

I am also fine if you would like to fix the statistics problem in another patch.

....................................................
File vdsm/libvirtvm.py
Line 2968:             devType = x.getAttribute('type')
Line 2969:             mac = 
x.getElementsByTagName('mac')[0].getAttribute('address')
Line 2970:             alias = 
x.getElementsByTagName('alias')[0].getAttribute('name')
Line 2971:             if devType == 'hostdev':
Line 2972:                 name = alias
virDomainInterfaceStats uses the interface name (like vnet0, vnet1, etc.) to 
find the interface. 'alias' doesn't work.  And the more important thing is that 
libvirt can't get the statistics of the interface which has been detached from 
host via parsing '/proc/net/dev'. It's the way to get statistics for tap 
interface.  I think it's ok to use alias for its name, but you  
need filter out the passthrough interface in the net sampling code as Dan 
concerned about.
Line 2973:                 model = 'passthrough'
Line 2974:             else:
Line 2975:                 name = 
x.getElementsByTagName('target')[0].getAttribute('dev')
Line 2976:                 model = 
x.getElementsByTagName('model')[0].getAttribute('type')


--
To view, visit http://gerrit.ovirt.org/13540
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I5a90fba21075ab2c7ecb0cb75f14ca07f090829e
Gerrit-PatchSet: 3
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Antoni Segura Puimedon <[email protected]>
Gerrit-Reviewer: Antoni Segura Puimedon <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Dan Yasny <[email protected]>
Gerrit-Reviewer: Mark Wu <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to