<div class="xam_msg_class">
<font size="2">Hello,<br /><br />before opening a new bug, I'm asking here if somebody could let me know if this is a bug or there are other ways to obtain clusters list...<br /><br />on python script I retrieve cluster list by using:<br /><br />clulist = api.clusters.list( "datacenter=" + "PROD" )<br /><br />but this query on python script will be *automatically* expandend on something like evething datacenter containg word PROD -> *PROD*, and on our env there are either NO_PROD datacenter and PROD datacenter, and this cause that clulist object contains every clusters on both datacenter.<br /><br />Instead ovirt-shell works fine and returns only clusters filtered by datacenter-identifier parameter.<br /><br />To better understand this is snippet of python code:<br /><br />>>> clulist = api.clusters.list( "datacenter=" + "PROD" )<br />>>> <br />>>> <br />>>> <br />>>> for clu in clulist:<br />... print "Found cluster " + clu.get_name()<br />... <br />Found cluster NO_PROD <-------- THIS CLUSTER IS ON NO_PROD DATACENTER<br />Found cluster PROD<br />>>><br /><br />ovirt-shell snippet that works fine:<br /><br />[oVirt shell (connected)]# list clusters --datacenter-identifier PROD<br /><br />id : 168c0d5e-8f12-4377-aabf-604adfd36b2b<br />name : PROD<br /><br />[oVirt shell (connected)]# list clusters --datacenter-identifier NO_PROD<br /><br />id : a092c9fc-0f5f-471e-8bca-b3828255aa5a<br />name : NO_PROD<br /><br />[oVirt shell (connected)]#<br /><br />Is this a bug? Can I open a new bug on bugzilla?<br /><br />Best regards<br />Amedeo Salvati</font>
</div>