[Libvirt-cim] [PATCH 1 of 5] [TEST] Add destroy_diskpool()

Deepti B Kalakeri deeptik at linux.vnet.ibm.com
Wed Sep 10 05:00:29 UTC 2008



Kaitlin Rupert wrote:
>>>> If the diskpool cinmtest-diskpool already exist on the machine then 
>>>> the tc execution wont proceed unless we delete manually and then 
>>>> re-run the tc.
>>>> I think we should not pass FAIL as status value, instead supply 
>>>> PASS as the status value.
>>>> The same comment applies for network pool also.
>>>
>>> I'm not sure I understand why we should return PASS if the diskpool 
>>> already exists?
>>>
>>> The purpose of this function is to create a diskpool with a specific 
>>> XML.  If a diskpool with the same name already exists on the system, 
>>> we cannot guarantee that it was created with the same XML.  That is, 
>>> the pool might have the same name, but it might be entirely 
>>> different from the pool we want to create.
>> Ok this is a valid point which I did not consider.
>>>
>>> If the caller wants to use an existing pool, the caller can use the 
>>> useExisting param to do so.
>>>
>>> Is there a scenario you were thinking of where returning PASS if the 
>>> pool already exists would be useful?
>>>
>>
>> I wanted to return a PASS value, in case the pool with the same name 
>> already existed .
>> But since you gave a valid scenario, the above comment from me does 
>> not hold valid.
>
> Okay, just wanted to make sure there wasn't a scenario I was missing. 
> Is this patch set ready to go in?
+1 for me.




More information about the Libvirt-cim mailing list