Bug #4637

CLUSTER_ID automatic requirements only checks first result

Added by OpenNebula Systems Support Team almost 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:07/13/2016
Priority:SponsoredDue date:
Assignee:Ruben S. Montero% Done:

0%

Category:Core & System
Target version:Release 5.0.2
Resolution:fixed Pull request:
Affected Versions:OpenNebula 5.0

Description

If a DS for instance is in Cluster A and B, only Cluster A is returned, so if Cluster B is request in SCHED_REQUIREMENTS, the VM won't be deployed.

Associated revisions

Revision eed6b268
Added by Ruben S. Montero almost 5 years ago

bug #4637: Adds > operator for boolean expresions. > evaluates to
true if the value is included in a result array. An array of attributes
is obtained for multiple values xpath, e.g.
<CLUSTER>
<ID>100</ID>
<ID>101</ID>
</CLUSTER>

an expresion of the form CLUSTER/ID in a requirement returns [100, 101].
To test if a given element is in a datastore:

CLUSTER/ID > 101 -----> [100, 101] > 101 ---> true

Note that CLUSTER/ID = 101 only evaluates the first element found

CLUSTER/ID = 101 ----> 100 = 101 ----> false

Revision 34672cbb
Added by Ruben S. Montero almost 5 years ago

bug #4637: Adds > operator for boolean expresions. > evaluates to
true if the value is included in a result array. An array of attributes
is obtained for multiple values xpath, e.g.
<CLUSTER>
<ID>100</ID>
<ID>101</ID>
</CLUSTER>

an expresion of the form CLUSTER/ID in a requirement returns [100, 101].
To test if a given element is in a datastore:

CLUSTER/ID > 101 -----> [100, 101] > 101 ---> true

Note that CLUSTER/ID = 101 only evaluates the first element found

CLUSTER/ID = 101 ----> 100 = 101 ----> false

(cherry picked from commit eed6b268adcb70660b0a5251c2d434b591c7bd8b)

Revision 2537eb88
Added by Ruben S. Montero almost 5 years ago

bug #4637: Fix wrong check for int/float bool expressions

Revision 0f84cc4c
Added by Ruben S. Montero almost 5 years ago

bug #4637: Fix wrong check for int/float bool expressions

(cherry picked from commit 2537eb8859ffa688fab5aacf693c4b03e4946025)

History

#1 Updated by Jaime Melis almost 5 years ago

  • Assignee set to Ruben S. Montero

#2 Updated by Ruben S. Montero almost 5 years ago

  • Status changed from Pending to Closed
  • Resolution set to fixed

#3 Updated by Ruben S. Montero almost 5 years ago

  • Affected Versions OpenNebula 5.0 added

Also available in: Atom PDF