Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Previously, the virtual machine's "mirror" and "mirrorPath" properties had a value of "None" rather than an empty string. This caused problems when restoring virtual machines from suspended states. The "mirror" and "mirrorPath" properties are now correctly set to empty strings, and this issue no longer causes the failure of virtual machines to restore from suspended states.
Description of problem:
I have the following case after restoring vm from suspend state where vdsClient list table or migration attempts failing with following trackback:
Dummy-50::DEBUG::2012-07-24 20:45:37,066::__init__::1164::Storage.Misc.excCmd::(_log) SUCCESS: <err> = '1+0 records in\n1+0 records out\n1024000 bytes (1.0 MB) copied, 0.0478024 s, 21.4 MB/s\n'; <rc> = 0
Thread-146::DEBUG::2012-07-24 20:45:38,907::BindingXMLRPC::864::vds::(wrapper) client [10.35.97.14]::call vmMigrate with ({'src': 'nott-vds1.qa.lab.tlv.redhat.com', 'dst': 'nott-vds2.qa.lab.tlv.redhat.com:54321', 'vmId': 'cfea0a0b-57f4-486e-85a2-7db2cacefc7d', 'method': 'online'},)
{} flowID [2adcd02f]
Thread-146::DEBUG::2012-07-24 20:45:38,908::API::421::vds::(migrate) {'src': 'nott-vds1.qa.lab.tlv.redhat.com', 'dst': 'nott-vds2.qa.lab.tlv.redhat.com:54321', 'vmId': 'cfea0a0b-57f4-486e-85a2-7db2cacefc7d', 'method': 'online'}
Thread-147::DEBUG::2012-07-24 20:45:38,910::vm::122::vm.Vm::(_setupVdsConnection) vmId=`cfea0a0b-57f4-486e-85a2-7db2cacefc7d`::Destination server is: nott-vds2.qa.lab.tlv.redhat.com:54321
Thread-146::DEBUG::2012-07-24 20:45:38,910::BindingXMLRPC::870::vds::(wrapper) return vmMigrate with {'status': {'message': 'Migration process starting', 'code': 0}}
Thread-147::DEBUG::2012-07-24 20:45:38,911::vm::124::vm.Vm::(_setupVdsConnection) vmId=`cfea0a0b-57f4-486e-85a2-7db2cacefc7d`::Initiating connection with destination
Thread-147::DEBUG::2012-07-24 20:45:38,979::libvirtvm::240::vm.Vm::(_getDiskStats) vmId=`cfea0a0b-57f4-486e-85a2-7db2cacefc7d`::Disk hdc stats not available
Dummy-50::DEBUG::2012-07-24 20:45:39,079::__init__::1164::Storage.Misc.excCmd::(_log) 'dd if=/rhev/data-center/4c4eef8f-5a80-4ca0-ba5a-0f810c89393d/mastersd/dom_md/inbox iflag=direct,fullblock count=1 bs=1024000' (cwd None)
Thread-147::DEBUG::2012-07-24 20:45:39,105::vm::170::vm.Vm::(_prepareGuest) vmId=`cfea0a0b-57f4-486e-85a2-7db2cacefc7d`::migration Process begins
Dummy-50::DEBUG::2012-07-24 20:45:39,188::__init__::1164::Storage.Misc.excCmd::(_log) SUCCESS: <err> = '1+0 records in\n1+0 records out\n1024000 bytes (1.0 MB) copied, 0.0585652 s, 17.5 MB/s\n'; <rc> = 0
Thread-147::DEBUG::2012-07-24 20:45:39,262::vm::217::vm.Vm::(run) vmId=`cfea0a0b-57f4-486e-85a2-7db2cacefc7d`::migration semaphore acquired
Thread-147::ERROR::2012-07-24 20:45:39,468::vm::176::vm.Vm::(_recover) vmId=`cfea0a0b-57f4-486e-85a2-7db2cacefc7d`::cannot marshal None unless allow_none is enabled
Thread-147::ERROR::2012-07-24 20:45:39,658::vm::240::vm.Vm::(run) vmId=`cfea0a0b-57f4-486e-85a2-7db2cacefc7d`::Failed to migrate
Traceback (most recent call last):
File "/usr/share/vdsm/vm.py", line 223, in run
self._startUnderlyingMigration()
File "/usr/share/vdsm/libvirtvm.py", line 417, in _startUnderlyingMigration
response = self.destServer.migrationCreate(self._machineParams)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1483, in __request
allow_none=self.__allow_none)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1132, in dumps
data = m.dumps(params)
File "/usr/lib64/python2.6/xmlrpclib.py", line 677, in dumps
dump(v, write)
File "/usr/lib64/python2.6/xmlrpclib.py", line 699, in __dump
f(self, value, write)
File "/usr/lib64/python2.6/xmlrpclib.py", line 780, in dump_struct
dump(v, write)
File "/usr/lib64/python2.6/xmlrpclib.py", line 699, in __dump
f(self, value, write)
File "/usr/lib64/python2.6/xmlrpclib.py", line 759, in dump_array
dump(v, write)
File "/usr/lib64/python2.6/xmlrpclib.py", line 699, in __dump
f(self, value, write)
File "/usr/lib64/python2.6/xmlrpclib.py", line 780, in dump_struct
dump(v, write)
File "/usr/lib64/python2.6/xmlrpclib.py", line 699, in __dump
f(self, value, write)
File "/usr/lib64/python2.6/xmlrpclib.py", line 703, in dump_nil
raise TypeError, "cannot marshal None unless allow_none is enabled"
TypeError: cannot marshal None unless allow_none is enabled
repro:
- run vm
- create live snapshot
- clone vm from snapshot
* suspend vm
- once suspended, restore
[root@nott-vds1 ~]# vdsClient -s 0 list
Traceback (most recent call last):
File "/usr/share/vdsm/vdsClient.py", line 2113, in <module>
code, message = commands[command][0](commandArgs)
File "/usr/share/vdsm/vdsClient.py", line 265, in do_list
response = self.s.list(True, vms)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request
return self._parse_response(h.getfile(), sock)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response
return u.close()
File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close
raise Fault(**self._stack[0])
Fault: <Fault 1: "<type 'exceptions.TypeError'>:cannot marshal None unless allow_none is enabled">
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHSA-2012-1508.html
Description of problem: I have the following case after restoring vm from suspend state where vdsClient list table or migration attempts failing with following trackback: Dummy-50::DEBUG::2012-07-24 20:45:37,066::__init__::1164::Storage.Misc.excCmd::(_log) SUCCESS: <err> = '1+0 records in\n1+0 records out\n1024000 bytes (1.0 MB) copied, 0.0478024 s, 21.4 MB/s\n'; <rc> = 0 Thread-146::DEBUG::2012-07-24 20:45:38,907::BindingXMLRPC::864::vds::(wrapper) client [10.35.97.14]::call vmMigrate with ({'src': 'nott-vds1.qa.lab.tlv.redhat.com', 'dst': 'nott-vds2.qa.lab.tlv.redhat.com:54321', 'vmId': 'cfea0a0b-57f4-486e-85a2-7db2cacefc7d', 'method': 'online'},) {} flowID [2adcd02f] Thread-146::DEBUG::2012-07-24 20:45:38,908::API::421::vds::(migrate) {'src': 'nott-vds1.qa.lab.tlv.redhat.com', 'dst': 'nott-vds2.qa.lab.tlv.redhat.com:54321', 'vmId': 'cfea0a0b-57f4-486e-85a2-7db2cacefc7d', 'method': 'online'} Thread-147::DEBUG::2012-07-24 20:45:38,910::vm::122::vm.Vm::(_setupVdsConnection) vmId=`cfea0a0b-57f4-486e-85a2-7db2cacefc7d`::Destination server is: nott-vds2.qa.lab.tlv.redhat.com:54321 Thread-146::DEBUG::2012-07-24 20:45:38,910::BindingXMLRPC::870::vds::(wrapper) return vmMigrate with {'status': {'message': 'Migration process starting', 'code': 0}} Thread-147::DEBUG::2012-07-24 20:45:38,911::vm::124::vm.Vm::(_setupVdsConnection) vmId=`cfea0a0b-57f4-486e-85a2-7db2cacefc7d`::Initiating connection with destination Thread-147::DEBUG::2012-07-24 20:45:38,979::libvirtvm::240::vm.Vm::(_getDiskStats) vmId=`cfea0a0b-57f4-486e-85a2-7db2cacefc7d`::Disk hdc stats not available Dummy-50::DEBUG::2012-07-24 20:45:39,079::__init__::1164::Storage.Misc.excCmd::(_log) 'dd if=/rhev/data-center/4c4eef8f-5a80-4ca0-ba5a-0f810c89393d/mastersd/dom_md/inbox iflag=direct,fullblock count=1 bs=1024000' (cwd None) Thread-147::DEBUG::2012-07-24 20:45:39,105::vm::170::vm.Vm::(_prepareGuest) vmId=`cfea0a0b-57f4-486e-85a2-7db2cacefc7d`::migration Process begins Dummy-50::DEBUG::2012-07-24 20:45:39,188::__init__::1164::Storage.Misc.excCmd::(_log) SUCCESS: <err> = '1+0 records in\n1+0 records out\n1024000 bytes (1.0 MB) copied, 0.0585652 s, 17.5 MB/s\n'; <rc> = 0 Thread-147::DEBUG::2012-07-24 20:45:39,262::vm::217::vm.Vm::(run) vmId=`cfea0a0b-57f4-486e-85a2-7db2cacefc7d`::migration semaphore acquired Thread-147::ERROR::2012-07-24 20:45:39,468::vm::176::vm.Vm::(_recover) vmId=`cfea0a0b-57f4-486e-85a2-7db2cacefc7d`::cannot marshal None unless allow_none is enabled Thread-147::ERROR::2012-07-24 20:45:39,658::vm::240::vm.Vm::(run) vmId=`cfea0a0b-57f4-486e-85a2-7db2cacefc7d`::Failed to migrate Traceback (most recent call last): File "/usr/share/vdsm/vm.py", line 223, in run self._startUnderlyingMigration() File "/usr/share/vdsm/libvirtvm.py", line 417, in _startUnderlyingMigration response = self.destServer.migrationCreate(self._machineParams) File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.6/xmlrpclib.py", line 1483, in __request allow_none=self.__allow_none) File "/usr/lib64/python2.6/xmlrpclib.py", line 1132, in dumps data = m.dumps(params) File "/usr/lib64/python2.6/xmlrpclib.py", line 677, in dumps dump(v, write) File "/usr/lib64/python2.6/xmlrpclib.py", line 699, in __dump f(self, value, write) File "/usr/lib64/python2.6/xmlrpclib.py", line 780, in dump_struct dump(v, write) File "/usr/lib64/python2.6/xmlrpclib.py", line 699, in __dump f(self, value, write) File "/usr/lib64/python2.6/xmlrpclib.py", line 759, in dump_array dump(v, write) File "/usr/lib64/python2.6/xmlrpclib.py", line 699, in __dump f(self, value, write) File "/usr/lib64/python2.6/xmlrpclib.py", line 780, in dump_struct dump(v, write) File "/usr/lib64/python2.6/xmlrpclib.py", line 699, in __dump f(self, value, write) File "/usr/lib64/python2.6/xmlrpclib.py", line 703, in dump_nil raise TypeError, "cannot marshal None unless allow_none is enabled" TypeError: cannot marshal None unless allow_none is enabled repro: - run vm - create live snapshot - clone vm from snapshot * suspend vm - once suspended, restore