[Libvirt-cim] [PATCH] Hang a default VSSD off of the VSMC to mirror the AC RASD behavior

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Thu Apr 17 17:31:17 UTC 2008


Dan Smith wrote:
> KR> You don't set the InstanceID.  I'm having trouble thinking of a
> KR> scenario where you need the InstanceID in the case.  However,
> KR> since it's a key value, it doesn't feel right omitting it.
> 
> Yeah, you know, I did that on purpose.  However, after some pondering
> and a little consultation, I think you're right.  I'd propose that we
> set InstanceID to something like "TEMPORARY".  This will be both (a)
> invalid for use in any other VSSD capacity, and (b) will indicate to a
> human looking at it that it's a transient placeholder.  Perhaps we
> should go a step further and add some randomness to the end to make it
> unique, per the rules.  The template RASDs should probably be updated
> with the same behavior.
> 
> Thoughts?

Adding randomness to the name is a good one.  Someone could create a 
guest with the name TEMPORARY, but if you through some randomness in for 
good measure, it's unlikely that the InstanceID will collide with the 
name of a guest.

-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list