From deeptik at linux.vnet.ibm.com Mon Apr 26 07:40:58 2010 From: deeptik at linux.vnet.ibm.com (Deepti B. Kalakeri) Date: Mon, 26 Apr 2010 00:40:58 -0700 Subject: [Libvirt-cim] [PATCH] [TEST] Fixing RPCS/10*py to work for libvirt_cim changes < 1032 revision Message-ID: <3d5bb69edc67ab8097a6.1272267658@elm3b151.beaverton.ibm.com> # HG changeset patch # User Deepti B. Kalakeri # Date 1272267529 25200 # Node ID 3d5bb69edc67ab8097a61cff09927fdf4c5d3f4b # Parent 456106b86cf4572684877cc923f3af991b4b65bb [TEST] Fixing RPCS/10*py to work for libvirt_cim changes < 1032 revision The test has been verified with KVM and libvirt-cim rpm for rev<1032 Signed-off-by: Deepti B. Kalakeri diff -r 456106b86cf4 -r 3d5bb69edc67 suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/10_create_storagevolume.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/10_create_storagevolume.py Mon Mar 15 09:16:15 2010 -0400 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/10_create_storagevolume.py Mon Apr 26 00:38:49 2010 -0700 @@ -45,6 +45,7 @@ pool_attr = { 'Path' : _image_dir } vol_name = "cimtest-vol.img" +libvirt_stovol_instance_id=1032 def get_template_rasd_from_sdc(virt, server, dp_inst_id): rasd = None @@ -231,7 +232,8 @@ if res[0] != PASS: raise Exception("Failed to create the Vol %s" % vol_name) - if res[1]['Resource']['InstanceID'] != exp_vol_path: + if res[1]['Resource']['InstanceID'] != exp_vol_path and \ + cim_rev >= libvirt_stovol_instance_id: raise Exception("Incorrect InstanceID") else: status = PASS @@ -252,6 +254,8 @@ except Exception, details: logger.error("Exception details: %s", details) + cleanup_pool_vol(server, virt, pool_name, + clean_pool, exp_vol_path) status = FAIL return status From snmishra at us.ibm.com Mon Apr 26 22:55:49 2010 From: snmishra at us.ibm.com (Sharad Mishra) Date: Mon, 26 Apr 2010 15:55:49 -0700 Subject: [Libvirt-cim] [PATCH] [TEST] Fixing RPCS/10*py to work for libvirt_cim changes < 1032 revision In-Reply-To: <3d5bb69edc67ab8097a6.1272267658@elm3b151.beaverton.ibm.com> References: <3d5bb69edc67ab8097a6.1272267658@elm3b151.beaverton.ibm.com> Message-ID: Deepti, This test is failing on rev 1032. Have you been able to find out why? Thanks Sharad Mishra Open Virtualization Linux Technology Center IBM "Deepti B. Kalakeri" libvirt-cim at redhat.com Sent by: cc libvirt-cim-bounc es at redhat.com Subject [Libvirt-cim] [PATCH] [TEST] Fixing RPCS/10*py to work for libvirt_cim 04/26/2010 12:40 changes < 1032 revision AM Please respond to List for discussion and development of libvirt CIM # HG changeset patch # User Deepti B. Kalakeri # Date 1272267529 25200 # Node ID 3d5bb69edc67ab8097a61cff09927fdf4c5d3f4b # Parent 456106b86cf4572684877cc923f3af991b4b65bb [TEST] Fixing RPCS/10*py to work for libvirt_cim changes < 1032 revision The test has been verified with KVM and libvirt-cim rpm for rev<1032 Signed-off-by: Deepti B. Kalakeri diff -r 456106b86cf4 -r 3d5bb69edc67 suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/10_create_storagevolume.py --- a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/10_create_storagevolume.py Mon Mar 15 09:16:15 2010 -0400 +++ b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/10_create_storagevolume.py Mon Apr 26 00:38:49 2010 -0700 @@ -45,6 +45,7 @@ pool_attr = { 'Path' : _image_dir } vol_name = "cimtest-vol.img" +libvirt_stovol_instance_id=1032 def get_template_rasd_from_sdc(virt, server, dp_inst_id): rasd = None @@ -231,7 +232,8 @@ if res[0] != PASS: raise Exception("Failed to create the Vol %s" % vol_name) - if res[1]['Resource']['InstanceID'] != exp_vol_path: + if res[1]['Resource']['InstanceID'] != exp_vol_path and \ + cim_rev >= libvirt_stovol_instance_id: raise Exception("Incorrect InstanceID") else: status = PASS @@ -252,6 +254,8 @@ except Exception, details: logger.error("Exception details: %s", details) + cleanup_pool_vol(server, virt, pool_name, + clean_pool, exp_vol_path) status = FAIL return status _______________________________________________ Libvirt-cim mailing list Libvirt-cim at redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: graycol.gif Type: image/gif Size: 105 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pic03417.gif Type: image/gif Size: 1255 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ecblank.gif Type: image/gif Size: 45 bytes Desc: not available URL: From deeptik at linux.vnet.ibm.com Fri Apr 30 10:07:23 2010 From: deeptik at linux.vnet.ibm.com (Deepti B Kalakeri) Date: Fri, 30 Apr 2010 15:37:23 +0530 Subject: [Libvirt-cim] [PATCH] [TEST] Fixing RPCS/10*py to work for libvirt_cim changes < 1032 revision In-Reply-To: References: <3d5bb69edc67ab8097a6.1272267658@elm3b151.beaverton.ibm.com> Message-ID: <4BDAABDB.3080602@linux.vnet.ibm.com> Sharad Mishra wrote: > > Deepti, > > This test is failing on rev 1032. Have you been able to find out why? > The test passed for me with the changes in this patch for Libvirt-CIM 1032 as well. What error did you see ? > > > Thanks > Sharad Mishra > Open Virtualization > Linux Technology Center > IBM > > Inactive hide details for "Deepti B. Kalakeri" ---04/26/2010 12:44:02 > AM---# HG changeset patch"Deepti B. Kalakeri" ---04/26/2010 12:44:02 > AM---# HG changeset patch > > *"Deepti B. Kalakeri" > * > Sent by: libvirt-cim-bounces at redhat.com > > 04/26/2010 12:40 AM > Please respond to > List for discussion and development of libvirt > CIM > > > > To > > libvirt-cim at redhat.com > > cc > > > Subject > > [Libvirt-cim] [PATCH] [TEST] Fixing RPCS/10*py to work for libvirt_cim > changes < 1032 revision > > > > > # HG changeset patch > # User Deepti B. Kalakeri > # Date 1272267529 25200 > # Node ID 3d5bb69edc67ab8097a61cff09927fdf4c5d3f4b > # Parent 456106b86cf4572684877cc923f3af991b4b65bb > [TEST] Fixing RPCS/10*py to work for libvirt_cim changes < 1032 revision > > > The test has been verified with KVM and libvirt-cim rpm for rev<1032 > Signed-off-by: Deepti B. Kalakeri > > diff -r 456106b86cf4 -r 3d5bb69edc67 > suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/10_create_storagevolume.py > --- > a/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/10_create_storagevolume.py > Mon Mar 15 09:16:15 2010 -0400 > +++ > b/suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/10_create_storagevolume.py > Mon Apr 26 00:38:49 2010 -0700 > @@ -45,6 +45,7 @@ > > pool_attr = { 'Path' : _image_dir } > vol_name = "cimtest-vol.img" > +libvirt_stovol_instance_id=1032 > > def get_template_rasd_from_sdc(virt, server, dp_inst_id): > rasd = None > @@ -231,7 +232,8 @@ > if res[0] != PASS: > raise Exception("Failed to create the Vol %s" % vol_name) > > - if res[1]['Resource']['InstanceID'] != exp_vol_path: > + if res[1]['Resource']['InstanceID'] != exp_vol_path and \ > + cim_rev >= libvirt_stovol_instance_id: > raise Exception("Incorrect InstanceID") > else: > status = PASS > @@ -252,6 +254,8 @@ > > except Exception, details: > logger.error("Exception details: %s", details) > + cleanup_pool_vol(server, virt, pool_name, > + clean_pool, exp_vol_path) > status = FAIL > > return status > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim > > ------------------------------------------------------------------------ > > _______________________________________________ > Libvirt-cim mailing list > Libvirt-cim at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-cim -- Thanks and Regards, Deepti B. Kalakeri IBM Linux Technology Center deeptik at linux.vnet.ibm.com From snmishra at us.ibm.com Fri Apr 30 23:40:54 2010 From: snmishra at us.ibm.com (Sharad Mishra) Date: Fri, 30 Apr 2010 16:40:54 -0700 Subject: [Libvirt-cim] [PATCH] Generating Deleted indication after Modified indication. Message-ID: # HG changeset patch # User Sharad Mishra # Date 1269035366 25200 # Node ID 9147baed9cf8a7bf32a8076d7f98931a940eb59f # Parent 4ee7c4354bc550780bc02ef1f69fbda387b3fe13 Generating Deleted indication after Modified indication. This patch moves migration job deleted indication after migration job modified (job completed) indication. Signed-off-by: Sharad Mishra diff -r 4ee7c4354bc5 -r 9147baed9cf8 src/Virt_VSMigrationService.c --- a/src/Virt_VSMigrationService.c Tue Mar 02 15:23:45 2010 -0800 +++ b/src/Virt_VSMigrationService.c Fri Mar 19 14:49:26 2010 -0700 @@ -1235,7 +1235,6 @@ } out: clear_infstore_migration_flag(dom); - raise_deleted_ind(job); free(uri); free(xml); @@ -1266,6 +1265,7 @@ CIM_JOBSTATE_COMPLETE, "Completed"); + raise_deleted_ind(job); virConnectClose(job->conn); free(job->domain); free(job->ref_cn); -------------- next part -------------- An HTML attachment was scrubbed... URL: