[kimchi-devel][RFC] Snapshot mockmodel tests fail for RHEL7 and fedora20

Latest added snapshots mockmodel tests fails at RHEL7 and fedora20 because libvirt test model lacks of related support: ====================================================================== ERROR: test_vm_lifecycle (test_rest.RestTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_rest.py", line 92, in setUp model.reset() File "/home/royce/kimchi-2/kimchi/src/kimchi/mockmodel.py", line 133, in reset getattr(self, '%s_delete' % res[:-1])(i) File "/home/royce/kimchi-2/kimchi/src/kimchi/model/vms.py", line 847, in delete snapshot_names = self.vmsnapshots.get_list(name) File "/home/royce/kimchi-2/kimchi/src/kimchi/model/vmsnapshots.py", line 117, in get_list {'vm': vm_name, 'err': e.message}) OperationFailed: KCHSNAP0005E: Unable to list snapshots on virtual machine 'kimchi-test'. Details: this function is not supported by the connection driver: virDomainListAllSnapshots I suggest probe the libvirt version or add feature probe as we do for qemu stream to make sure tests run well on these systems.

+1 On Tue Jan 27 2015 at 5:04:47 AM Royce Lv <lvroyce@linux.vnet.ibm.com> wrote:
Latest added snapshots mockmodel tests fails at RHEL7 and fedora20 because libvirt test model lacks of related support: ====================================================================== ERROR: test_vm_lifecycle (test_rest.RestTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_rest.py", line 92, in setUp model.reset() File "/home/royce/kimchi-2/kimchi/src/kimchi/mockmodel.py", line 133, in reset getattr(self, '%s_delete' % res[:-1])(i) File "/home/royce/kimchi-2/kimchi/src/kimchi/model/vms.py", line 847, in delete snapshot_names = self.vmsnapshots.get_list(name) File "/home/royce/kimchi-2/kimchi/src/kimchi/model/vmsnapshots.py", line 117, in get_list {'vm': vm_name, 'err': e.message}) OperationFailed: KCHSNAP0005E: Unable to list snapshots on virtual machine 'kimchi-test'. Details: this function is not supported by the connection driver: virDomainListAllSnapshots
I suggest probe the libvirt version or add feature probe as we do for qemu stream to make sure tests run well on these systems.
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel

Royce, could you confirm if reverting the commit fe38d2383db7bb3c1ae6283a5931f8984dda0d8c solves the problem? On 27/01/2015 02:04, Royce Lv wrote:
Latest added snapshots mockmodel tests fails at RHEL7 and fedora20 because libvirt test model lacks of related support: ====================================================================== ERROR: test_vm_lifecycle (test_rest.RestTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_rest.py", line 92, in setUp model.reset() File "/home/royce/kimchi-2/kimchi/src/kimchi/mockmodel.py", line 133, in reset getattr(self, '%s_delete' % res[:-1])(i) File "/home/royce/kimchi-2/kimchi/src/kimchi/model/vms.py", line 847, in delete snapshot_names = self.vmsnapshots.get_list(name) File "/home/royce/kimchi-2/kimchi/src/kimchi/model/vmsnapshots.py", line 117, in get_list {'vm': vm_name, 'err': e.message}) OperationFailed: KCHSNAP0005E: Unable to list snapshots on virtual machine 'kimchi-test'. Details: this function is not supported by the connection driver: virDomainListAllSnapshots
I suggest probe the libvirt version or add feature probe as we do for qemu stream to make sure tests run well on these systems.
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel

On 01/27/2015 07:17 AM, Aline Manera wrote:
Royce, could you confirm if reverting the commit fe38d2383db7bb3c1ae6283a5931f8984dda0d8c solves the problem?
It can solve this problem.
On 27/01/2015 02:04, Royce Lv wrote:
Latest added snapshots mockmodel tests fails at RHEL7 and fedora20 because libvirt test model lacks of related support: ====================================================================== ERROR: test_vm_lifecycle (test_rest.RestTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_rest.py", line 92, in setUp model.reset() File "/home/royce/kimchi-2/kimchi/src/kimchi/mockmodel.py", line 133, in reset getattr(self, '%s_delete' % res[:-1])(i) File "/home/royce/kimchi-2/kimchi/src/kimchi/model/vms.py", line 847, in delete snapshot_names = self.vmsnapshots.get_list(name) File "/home/royce/kimchi-2/kimchi/src/kimchi/model/vmsnapshots.py", line 117, in get_list {'vm': vm_name, 'err': e.message}) OperationFailed: KCHSNAP0005E: Unable to list snapshots on virtual machine 'kimchi-test'. Details: this function is not supported by the connection driver: virDomainListAllSnapshots
I suggest probe the libvirt version or add feature probe as we do for qemu stream to make sure tests run well on these systems.
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel

On 02/02/2015 06:19, Royce Lv wrote:
On 01/27/2015 07:17 AM, Aline Manera wrote:
Royce, could you confirm if reverting the commit fe38d2383db7bb3c1ae6283a5931f8984dda0d8c solves the problem?
It can solve this problem.
Great! I will revert it.
On 27/01/2015 02:04, Royce Lv wrote:
Latest added snapshots mockmodel tests fails at RHEL7 and fedora20 because libvirt test model lacks of related support: ====================================================================== ERROR: test_vm_lifecycle (test_rest.RestTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_rest.py", line 92, in setUp model.reset() File "/home/royce/kimchi-2/kimchi/src/kimchi/mockmodel.py", line 133, in reset getattr(self, '%s_delete' % res[:-1])(i) File "/home/royce/kimchi-2/kimchi/src/kimchi/model/vms.py", line 847, in delete snapshot_names = self.vmsnapshots.get_list(name) File "/home/royce/kimchi-2/kimchi/src/kimchi/model/vmsnapshots.py", line 117, in get_list {'vm': vm_name, 'err': e.message}) OperationFailed: KCHSNAP0005E: Unable to list snapshots on virtual machine 'kimchi-test'. Details: this function is not supported by the connection driver: virDomainListAllSnapshots
I suggest probe the libvirt version or add feature probe as we do for qemu stream to make sure tests run well on these systems.
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel

I'm not sure if this is directly related or not yet, but I'm seeing new errors now on F20 on an x86_64 system: libvirt: Test Driver error : Domain not found libvirt: Domain Config error : internal error: No guest options available for arch 'x86_64' [04/Feb/2015:10:40:01] ENGINE Error in 'start' listener <bound method CapabilitiesModel._set_capabilities of <kimchi.model.config.CapabilitiesModel object at 0x1ad1990>> Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/cherrypy/process/wspbus.py", line 197, in publish output.append(listener(*args, **kwargs)) File "/home/christy/git/kimchi-upstream/src/kimchi/model/config.py", line 71, in _set_capabilities self.metadata_support = FeatureTests.has_metadata_support(conn) File "/home/christy/git/kimchi-upstream/src/kimchi/model/featuretests.py", line 200, in has_metadata_support 'arch': arch}) File "/home/christy/git/kimchi-upstream/src/kimchi/model/libvirtconnection.py", line 66, in wrapper ret = f(*args, **kwargs) File "/home/christy/git/kimchi-upstream/src/kimchi/mockmodel.py", line 164, in domainDefineXML return MockModel._defineXML(conn, xml) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2935, in defineXML if ret is None:raise libvirtError('virDomainDefineXML() failed', conn=self) libvirtError: internal error: No guest options available for arch 'x86_64' [04/Feb/2015:10:40:01] ENGINE Shutting down due to error in start listener: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/cherrypy/process/wspbus.py", line 235, in start self.publish('start') File "/usr/lib/python2.7/site-packages/cherrypy/process/wspbus.py", line 215, in publish raise exc ChannelFailures: libvirtError("internal error: No guest options available for arch 'x86_64'",) On 02/02/2015 07:14 AM, Aline Manera wrote:
On 02/02/2015 06:19, Royce Lv wrote:
On 01/27/2015 07:17 AM, Aline Manera wrote:
Royce, could you confirm if reverting the commit fe38d2383db7bb3c1ae6283a5931f8984dda0d8c solves the problem?
It can solve this problem.
Great! I will revert it.
On 27/01/2015 02:04, Royce Lv wrote:
Latest added snapshots mockmodel tests fails at RHEL7 and fedora20 because libvirt test model lacks of related support: ====================================================================== ERROR: test_vm_lifecycle (test_rest.RestTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_rest.py", line 92, in setUp model.reset() File "/home/royce/kimchi-2/kimchi/src/kimchi/mockmodel.py", line 133, in reset getattr(self, '%s_delete' % res[:-1])(i) File "/home/royce/kimchi-2/kimchi/src/kimchi/model/vms.py", line 847, in delete snapshot_names = self.vmsnapshots.get_list(name) File "/home/royce/kimchi-2/kimchi/src/kimchi/model/vmsnapshots.py", line 117, in get_list {'vm': vm_name, 'err': e.message}) OperationFailed: KCHSNAP0005E: Unable to list snapshots on virtual machine 'kimchi-test'. Details: this function is not supported by the connection driver: virDomainListAllSnapshots
I suggest probe the libvirt version or add feature probe as we do for qemu stream to make sure tests run well on these systems.
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel

Hello, That was introduced with my patch "On Ubuntu, current libvirt library requires <os><type arch= specification does it mean that on F20 and RHEL the arch='x86_64' is not valid ? I checked that on x86_64 with Ubuntu it is. Could you a test ? cat << EOF > xml <domain type='kvm'> <name>A_SIMPLE_VM</name> <memory unit='KiB'>10240</memory> <os> <type arch='x86_64'>hvm</type> <boot dev='hd'/> </os> </domain> EOF and see if : virsh define xml works or not if not can you send the output of virsh capabilities Thanks On 02/04/2015 05:45 PM, Christy Perez wrote:
I'm not sure if this is directly related or not yet, but I'm seeing new errors now on F20 on an x86_64 system:
libvirt: Test Driver error : Domain not found libvirt: Domain Config error : internal error: No guest options available for arch 'x86_64' [04/Feb/2015:10:40:01] ENGINE Error in 'start' listener <bound method CapabilitiesModel._set_capabilities of <kimchi.model.config.CapabilitiesModel object at 0x1ad1990>> Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/cherrypy/process/wspbus.py", line 197, in publish output.append(listener(*args, **kwargs)) File "/home/christy/git/kimchi-upstream/src/kimchi/model/config.py", line 71, in _set_capabilities self.metadata_support = FeatureTests.has_metadata_support(conn) File "/home/christy/git/kimchi-upstream/src/kimchi/model/featuretests.py", line 200, in has_metadata_support 'arch': arch}) File "/home/christy/git/kimchi-upstream/src/kimchi/model/libvirtconnection.py", line 66, in wrapper ret = f(*args, **kwargs) File "/home/christy/git/kimchi-upstream/src/kimchi/mockmodel.py", line 164, in domainDefineXML return MockModel._defineXML(conn, xml) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2935, in defineXML if ret is None:raise libvirtError('virDomainDefineXML() failed', conn=self) libvirtError: internal error: No guest options available for arch 'x86_64'
[04/Feb/2015:10:40:01] ENGINE Shutting down due to error in start listener: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/cherrypy/process/wspbus.py", line 235, in start self.publish('start') File "/usr/lib/python2.7/site-packages/cherrypy/process/wspbus.py", line 215, in publish raise exc ChannelFailures: libvirtError("internal error: No guest options available for arch 'x86_64'",)
On 02/02/2015 07:14 AM, Aline Manera wrote:
On 02/02/2015 06:19, Royce Lv wrote:
On 01/27/2015 07:17 AM, Aline Manera wrote:
Royce, could you confirm if reverting the commit fe38d2383db7bb3c1ae6283a5931f8984dda0d8c solves the problem? It can solve this problem. Great! I will revert it.
On 27/01/2015 02:04, Royce Lv wrote:
Latest added snapshots mockmodel tests fails at RHEL7 and fedora20 because libvirt test model lacks of related support: ====================================================================== ERROR: test_vm_lifecycle (test_rest.RestTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_rest.py", line 92, in setUp model.reset() File "/home/royce/kimchi-2/kimchi/src/kimchi/mockmodel.py", line 133, in reset getattr(self, '%s_delete' % res[:-1])(i) File "/home/royce/kimchi-2/kimchi/src/kimchi/model/vms.py", line 847, in delete snapshot_names = self.vmsnapshots.get_list(name) File "/home/royce/kimchi-2/kimchi/src/kimchi/model/vmsnapshots.py", line 117, in get_list {'vm': vm_name, 'err': e.message}) OperationFailed: KCHSNAP0005E: Unable to list snapshots on virtual machine 'kimchi-test'. Details: this function is not supported by the connection driver: virDomainListAllSnapshots
I suggest probe the libvirt version or add feature probe as we do for qemu stream to make sure tests run well on these systems.
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
-- Thierry Fauck @ linux.vnet.ibm

Reverting commit 640b257175d119c71f756ba08cdae599310e26e8 takes care of that issue. On 02/04/2015 10:45 AM, Christy Perez wrote:
I'm not sure if this is directly related or not yet, but I'm seeing new errors now on F20 on an x86_64 system:
libvirt: Test Driver error : Domain not found libvirt: Domain Config error : internal error: No guest options available for arch 'x86_64' [04/Feb/2015:10:40:01] ENGINE Error in 'start' listener <bound method CapabilitiesModel._set_capabilities of <kimchi.model.config.CapabilitiesModel object at 0x1ad1990>> Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/cherrypy/process/wspbus.py", line 197, in publish output.append(listener(*args, **kwargs)) File "/home/christy/git/kimchi-upstream/src/kimchi/model/config.py", line 71, in _set_capabilities self.metadata_support = FeatureTests.has_metadata_support(conn) File "/home/christy/git/kimchi-upstream/src/kimchi/model/featuretests.py", line 200, in has_metadata_support 'arch': arch}) File "/home/christy/git/kimchi-upstream/src/kimchi/model/libvirtconnection.py", line 66, in wrapper ret = f(*args, **kwargs) File "/home/christy/git/kimchi-upstream/src/kimchi/mockmodel.py", line 164, in domainDefineXML return MockModel._defineXML(conn, xml) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2935, in defineXML if ret is None:raise libvirtError('virDomainDefineXML() failed', conn=self) libvirtError: internal error: No guest options available for arch 'x86_64'
[04/Feb/2015:10:40:01] ENGINE Shutting down due to error in start listener: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/cherrypy/process/wspbus.py", line 235, in start self.publish('start') File "/usr/lib/python2.7/site-packages/cherrypy/process/wspbus.py", line 215, in publish raise exc ChannelFailures: libvirtError("internal error: No guest options available for arch 'x86_64'",)
On 02/02/2015 07:14 AM, Aline Manera wrote:
On 02/02/2015 06:19, Royce Lv wrote:
On 01/27/2015 07:17 AM, Aline Manera wrote:
Royce, could you confirm if reverting the commit fe38d2383db7bb3c1ae6283a5931f8984dda0d8c solves the problem?
It can solve this problem.
Great! I will revert it.
On 27/01/2015 02:04, Royce Lv wrote:
Latest added snapshots mockmodel tests fails at RHEL7 and fedora20 because libvirt test model lacks of related support: ====================================================================== ERROR: test_vm_lifecycle (test_rest.RestTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_rest.py", line 92, in setUp model.reset() File "/home/royce/kimchi-2/kimchi/src/kimchi/mockmodel.py", line 133, in reset getattr(self, '%s_delete' % res[:-1])(i) File "/home/royce/kimchi-2/kimchi/src/kimchi/model/vms.py", line 847, in delete snapshot_names = self.vmsnapshots.get_list(name) File "/home/royce/kimchi-2/kimchi/src/kimchi/model/vmsnapshots.py", line 117, in get_list {'vm': vm_name, 'err': e.message}) OperationFailed: KCHSNAP0005E: Unable to list snapshots on virtual machine 'kimchi-test'. Details: this function is not supported by the connection driver: virDomainListAllSnapshots
I suggest probe the libvirt version or add feature probe as we do for qemu stream to make sure tests run well on these systems.
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
participants (5)
-
Aline Manera
-
Christy Perez
-
Paulo Ricardo Paz Vital
-
Royce Lv
-
Thierry Fauck@linux.vnet.ibm.com