Feature #4310

Better handling of optional roles (min/default cardinality 0)

Added by EOLE Team over 5 years ago. Updated over 3 years ago.

Status:NewStart date:01/27/2016
Priority:NormalDue date:
Assignee:Abel Coronado% Done:

0%

Category:OneFlow
Target version:Release 5.4.4
Resolution: Pull request:

Description

Hello,

I just created a service with optional roles:

    {
      "name": "PC_admin",
      "cardinality": 0,
      "vm_template": 12780,
      "parents": [
        "Horus" 
      ],
      "min_vms": 0,
      "max_vms": 5,
      "elasticity_policies": [

      ],
      "scheduled_policies": [

      ]
    },

Here is my review:

  • the cloud view does not support well:
    • the 0 cardinality, the cursor is outside the cardinality bar
    • it's not possible to reset the cardinality 0
  • starting the service works as expected, the optional VMs are not deployed but their status is RUNNING:
    ROLE PC_admin
    ROLE STATE          : RUNNING
    PARENTS             : Horus
    VM TEMPLATE         : 12780
    CARDINALITY         : 0
    MIN VMS             : 0
    MAX VMS             : 5
    NODES INFORMATION
     VM_ID NAME                    STAT UCPU    UMEM HOST                       TIME
    
    
  • scaling the optional VMs works, but I can not set it to 0

Regards.

flow-define-role-with-min-0-max-1.png (76.6 KB) EOLE Team, 06/08/2017 02:29 PM

flow-service-OK-without-VM.png (99.1 KB) EOLE Team, 06/08/2017 02:29 PM

flow-cloud-view-can-not-scale.png (50.1 KB) EOLE Team, 06/08/2017 02:30 PM

flow-user-view-can-scale-up.png (80.9 KB) EOLE Team, 06/08/2017 02:30 PM

flow-user-view-scaling-up.png (86.2 KB) EOLE Team, 06/08/2017 02:30 PM

flow-user-view-can-scale-down.png (80.8 KB) EOLE Team, 06/08/2017 02:30 PM

flow-user-view-scaling-down.png (88.2 KB) EOLE Team, 06/08/2017 02:30 PM

flow-user-view-do-not-limit-scale.png (93.5 KB) EOLE Team, 06/08/2017 02:31 PM

History

#1 Updated by EOLE Team almost 5 years ago

I tested with 5.0 and the issue is still present.

#2 Updated by EOLE Team about 4 years ago

I tested with 5.4 and things are a little better except for cloud view:

#4 Updated by EOLE Team about 4 years ago

Note that the error message when I tried to scale too much is not very informative.

Regards.

#5 Updated by OpenNebula Systems Support Team over 3 years ago

  • Tracker changed from Request to Feature
  • Status changed from Pending to New
  • Assignee set to Abel Coronado
  • Target version set to Release 5.4.4

Also available in: Atom PDF