Bug #4637
CLUSTER_ID automatic requirements only checks first result
Status: | Closed | Start date: | 07/13/2016 | |
---|---|---|---|---|
Priority: | Sponsored | Due 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
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
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)
bug #4637: Fix wrong check for int/float bool expressions
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