[ovirt-users] VM samba4 is down. Exit message: 'int' object has no attribute 'replace'.

René Koch rkoch at linuxland.at
Mon Apr 14 11:56:10 UTC 2014


Hi,

I configured Network QoS in my oVirt 3.4 setup, but can't start vms.

Here are the steps I did:
- Create QoS in Data Centers - Network QoS tab (Name: testing, limits: 
10/10/100, 10/10/100)
- Add QoS to vNIC Profile using Networks - vNIC Profile - edit

When I try to start a vm the following error is shown in vdsm.log:

Thread-837844::ERROR::2014-04-14 
12:45:51,822::vm::2289::vm.Vm::(_startUnderlyingVm) 
vmId=`d7034850-c274-48f7-ac0f-b3d4cc57c255`::The vm start process failed
Traceback (most recent call last):
   File "/usr/share/vdsm/vm.py", line 2249, in _startUnderlyingVm
     self._run()
   File "/usr/share/vdsm/vm.py", line 3135, in _run
     domxml = hooks.before_vm_start(self._buildCmdLine(), self.conf)
   File "/usr/share/vdsm/vm.py", line 2965, in _buildCmdLine
     self._appendDevices(domxml)
   File "/usr/share/vdsm/vm.py", line 2922, in _appendDevices
     deviceXML = dev.getXML().toxml(encoding='utf-8')
   File "/usr/lib64/python2.6/xml/dom/minidom.py", line 45, in toxml
     return self.toprettyxml("", "", encoding)
   File "/usr/lib64/python2.6/xml/dom/minidom.py", line 59, in toprettyxml
     self.writexml(writer, "", indent, newl)
   File "/usr/share/vdsm/vm.py", line 5268, in __hacked_writexml
     node.writexml(writer, indent + addindent, addindent, newl)
   File "/usr/share/vdsm/vm.py", line 5268, in __hacked_writexml
     node.writexml(writer, indent + addindent, addindent, newl)
   File "/usr/share/vdsm/vm.py", line 5256, in __hacked_writexml
     xml.dom.minidom._write_data(writer, attrs[a_name].value)
   File "/usr/lib64/python2.6/xml/dom/minidom.py", line 301, in _write_data
     data = data.replace("&", "&amp;").replace("<", "&lt;")
AttributeError: 'int' object has no attribute 'replace'
Thread-837844::DEBUG::2014-04-14 
12:45:51,826::vm::2731::vm.Vm::(setDownStatus) 
vmId=`d7034850-c274-48f7-ac0f-b3d4cc57c255`::Changed state to Down: 
'int' object has no attribute 'replace'


When removing the QoS (or better say put it to unlimited) my vm is 
starting fine.

My host is running CentOS 6.5 with latest updates.


-- 
Best Regards

René Koch
Senior Solution Architect

============================================
LIS-Linuxland GmbH
Brünner Straße 163, A-1210 Vienna

Phone:   +43 1 236 91 60
Mobile:  +43 660 / 512 21 31
E-Mail:  rkoch at linuxland.at
============================================




More information about the Users mailing list