<html><body>
<p><tt>libvirt-cim-bounces@redhat.com wrote on 2008-01-31 18:55:30:<br>
<br>
> Guo Lian Yun wrote:<br>
> ><br>
> > libvirt-cim-bounces@redhat.com wrote on 2008-01-30 21:48:16:<br>
> ><br>
> > > Guo Lian Yun wrote:<br>
> > > ><br>
> > > > Hi,<br>
> > > ><br>
> > > > The key name of instanceid is not case sensitive in ein or gi <br>
> > operation.<br>
> > > > Generally, it's written by "InstanceID" in querying result, but<br>
> > > > Virt_MigrationJob<br>
> > > > instance is different, the ein output as following:<br>
> > > > ...<br>
> > > > localhost:5988/root/virt:Virt_MigrationJob.instanceid="48814722-<br>
> > > f6d7-4ba5-b2db-6bf3242bd281"<br>
> > > > localhost:5988/root/virt:Virt_MigrationJob.<br>
> > > instanceid="36529c45-8aed-425e-ad57-7f411b79d898"<br>
> > > > ...<br>
> > > ><br>
> > > > I know it's a small problem, do you think we need to make it identify<br>
> > > > with other instances?<br>
> > > ><br>
> > > ><br>
> > > > Best,<br>
> > > > Regards<br>
> > > ><br>
> > > > Daisy Guo Lian Yun<br>
> > > > E-mail: yunguol@cn.ibm.com<br>
> > > > IBM China Development Lab, Shanghai, China<br>
> > > > TEL: (86)-21-61008057<br>
> > > ><br>
> > > >  <br>
> > > Looking through the code I can't find anywhere where we set InstanceID<br>
> > > using all lowercase like that.  Could you provide the exact steps you<br>
> > > did to get this so I can reproduce it?<br>
> > ><br>
> > ><br>
> ><br>
> > I get it by migration test. The steps are as followings:<br>
> ><br>
> > 1) Create and start a domain<br>
> > 2) Call MigrateVirtualSystemToHost<br>
> ><br>
> >   ret = service.MigrateVirtualSystemToHost(ComputerSystem=cs_ref,<br>
> >                                            DestinationHost=options.ip)<br>
> ><br>
> > 3) Once the migration started, you can get Virt_MigrationJob instance.<br>
> >    Get the Job ID from the result of MigrateVirtualSystemToHost,<br>
> >    and then monitor the Xen_MigrationJob instance to see when it <br>
> > finishes,<br>
> >    which can be got on the other console by ein and gi.<br>
> >    <br>
> ><br>
> > wbemcli ein <a href="http://root:password@localhost/root/virt:Virt_MigrationJob">http://root:password@localhost/root/virt:Virt_MigrationJob</a><br>
> > localhost:5988/root/virt:Virt_MigrationJob.<br>
> instanceid="2eb7e2ca-6197-4e50-9590-7cd05064d242"<br>
> ><br>
> > wbemcli gi <br>
> > <a href="http://root:password@localhost/root/virt:Virt_MigrationJob.instanceid=">http://root:password@localhost/root/virt:Virt_MigrationJob.instanceid=</a><br>
> "2eb7e2ca-6197-4e50-9590-7cd05064d242"<br>
> > localhost:5988/root/virt:Virt_MigrationJob.<br>
> instanceid="2eb7e2ca-6197-4e50-9590-7cd05064d242" <br>
> >           <br>
> > OtherRecoveryAction,RecoveryAction,ErrorDescription,ErrorCode,<br>
> DeleteOnCompletion=TRUE,PercentComplete,Priority,Owner,Notify,<br>
> UntilTime,LocalOrUtcTime,RunStartInterval,RunDayOfWeek,RunDay,<br>
> RunMonth,JobRunTimes=1,ElapsedTime,StartTime=20080131123445.<br>
> 522288+480,ScheduledStartTime,TimeSubmitted,JobStatus,<br>
> CommunicationStatus,OperatingStatus,DetailedStatus,PrimaryStatus,<br>
> HealthState,Status="Migration <br>
> > Failed",StatusDescriptions,OperationalStatus,InstallDate,Caption,<br>
> Description,ElementName,<br>
> InstanceID="2eb7e2ca-6197-4e50-9590-7cd05064d242",Name="Migration",<br>
> JobState=7,TimeOfLastStateChange,TimeBeforeRemoval=00000000000500.000000:000<br>
> >    <br>
> ><br>
> Well, the background is that the instance provider for Virt_MigrationJob <br>
> is none of our providers. I found no implementation nor a registration <br>
> of one provider for Virt_MigrationJob (as Jay already mentioned). But <br>
> within the code you can find calls back to the CIMOM, that do <br>
> createInstance(), modifyInstance() and deleteInstance() on the <br>
> Virt_MigrationJob instances. This can only mean, that the instance(s) of <br>
> Virt_MigrationJob are stored in the CIMOM's repository (where also the <br>
> schema is located) and are handled by Pegasus' internal provider. And <br>
> this internal provider is responsible for setting the "instanceid". So <br>
> now I can only suppose ... the provider is setting "instanceid" instead <br>
> of "InstanceID" for ein calls. One interesting test case would be doing <br>
> the gi with the uppercase notation. Please can you provide me this <br>
> result ? Thanks.<br>
> <br>
> wbemcli gi <br>
> <a href="http://root:password@localhost/root/virt:Virt_MigrationJob.InstanceID=">http://root:password@localhost/root/virt:Virt_MigrationJob.InstanceID=</a> <br>
> <<a href="http://root:password@localhost/root/virt:Virt_MigrationJob.instanceid=">http://root:password@localhost/root/virt:Virt_MigrationJob.instanceid=</a><br>
> >"2eb7e2ca-6197-4e50-9590-7cd05064d242"<br>
> </tt><br>
<tt>  </tt><br>
<tt>Below are the outputs of ein and gi with the uppercase notation.</tt><br>
<tt>  </tt><br>
<tt>wbemcli ein <a href="http://root:password@localhost/root/virt:Virt_MigrationJob">http://root:password@localhost/root/virt:Virt_MigrationJob</a></tt><br>
<tt>localhost:5988/root/virt:Virt_MigrationJob.</tt><tt><font color="#FF0000">instanceid</font></tt><tt>="066259d5-4c5a-4b1f-991f-0d839f105a68"</tt><br>
<br>
<tt>wbemcli gi <a href="http://root:password@localhost/root/virt:Virt_MigrationJob">http://root:password@localhost/root/virt:Virt_MigrationJob</a>.</tt><tt><font color="#FF0000">InstanceID</font></tt><tt>="066259d5-4c5a-4b1f-991f-0d839f105a68"</tt><br>
<tt>localhost:5988/root/virt:Virt_MigrationJob.</tt><tt><font color="#FF0000">InstanceID</font></tt><tt>="066259d5-4c5a-4b1f-991f-0d839f105a68" OtherRecoveryAction,RecoveryAction,ErrorDescription,ErrorCode,DeleteOnCompletion=TRUE,PercentComplete,Priority,Owner,Notify,UntilTime,LocalOrUtcTime,RunStartInterval,RunDayOfWeek,RunDay,RunMonth,JobRunTimes=1,ElapsedTime,StartTime=20080201081420.535009+480,ScheduledStartTime,TimeSubmitted,JobStatus,CommunicationStatus,OperatingStatus,DetailedStatus,PrimaryStatus,HealthState,Status="Running",StatusDescriptions,OperationalStatus,InstallDate,Caption,Description,ElementName,InstanceID="066259d5-4c5a-4b1f-991f-0d839f105a68",Name="Migration",JobState=4,TimeOfLastStateChange,TimeBeforeRemoval=00000000000500.000000:000</tt><br>
<br>
<tt>Also, the output of gi with the lowercase notation as follows:</tt><br>
<tt>wbemcli gi <a href="http://root:password@localhost/root/virt:Virt_MigrationJob">http://root:password@localhost/root/virt:Virt_MigrationJob</a>.</tt><tt><font color="#FF0000">instanceid</font></tt><tt>="066259d5-4c5a-4b1f-991f-0d839f105a68"</tt><br>
<tt>localhost:5988/root/virt:Virt_MigrationJob.</tt><tt><font color="#FF0000">instanceid</font></tt><tt>="066259d5-4c5a-4b1f-991f-0d839f105a68" OtherRecoveryAction,RecoveryAction,ErrorDescription,ErrorCode,DeleteOnCompletion=TRUE,PercentComplete,Priority,Owner,Notify,UntilTime,LocalOrUtcTime,RunStartInterval,RunDayOfWeek,RunDay,RunMonth,JobRunTimes=1,ElapsedTime,StartTime=20080201081420.535009+480,ScheduledStartTime,TimeSubmitted,JobStatus,CommunicationStatus,OperatingStatus,DetailedStatus,PrimaryStatus,HealthState,Status="Running",StatusDescriptions,OperationalStatus,InstallDate,Caption,Description,ElementName,InstanceID="066259d5-4c5a-4b1f-991f-0d839f105a68",Name="Migration",JobState=4,TimeOfLastStateChange,TimeBeforeRemoval=00000000000500.000000:000</tt><br>
<tt><br>
> -- <br>
> Regards<br>
> <br>
> Heidi Eckhart<br>
> Software Engineer<br>
> IBM Linux Technology Center - Open Hypervisor<br>
> <br>
> _______________________________________________<br>
> Libvirt-cim mailing list<br>
> Libvirt-cim@redhat.com<br>
> <a href="https://www.redhat.com/mailman/listinfo/libvirt-cim">https://www.redhat.com/mailman/listinfo/libvirt-cim</a><br>
</tt></body></html>