Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oneflow should permit to tweak roles at instance #5591

Closed
7 tasks
baby-gnu opened this issue Oct 29, 2021 · 1 comment
Closed
7 tasks

Oneflow should permit to tweak roles at instance #5591

baby-gnu opened this issue Oct 29, 2021 · 1 comment

Comments

@baby-gnu
Copy link
Contributor

Description

When instanciating a OneFlow service, it's not possible to adjust the memory or disk sizes.

Use case

We define a service usable by our users with “normal” personnal capacity.

Sometimes, we may need to deploy a bigger instance of the service.

Interface Changes

During instance of a OneFlow service, we should have the same optional capacity modifications of each roles as when instanciating a VM template.

This will have the advantage of having the modification limiters set in the VM templates

Additional Context

Today, when we define a service, we need to have several service and VM templates:

  • Service foo small
  • Service foo big
  • Service foo huge

Which is limited as we do not provide all the possibility in the range between small and huge.

Progress Status

  • Branch created
  • Code committed to development branch
  • Testing - QA
  • Documentation
  • Release notes - resolved issues, compatibility, known issues
  • Code committed to upstream release/hotfix branches
  • Documentation committed to upstream release/hotfix branches
@vickmp
Copy link
Member

vickmp commented Jan 30, 2023

@tinova PRs to merge:

This functionality also needs to be implemented from the Sunstone side.

rsmontero pushed a commit to OpenNebula/docs that referenced this issue Feb 7, 2023
rsmontero pushed a commit to OpenNebula/docs that referenced this issue Feb 7, 2023
rsmontero added a commit to OpenNebula/docs that referenced this issue Feb 7, 2023
rsmontero pushed a commit that referenced this issue Feb 9, 2023
Custom attributes have been added at the role level.
In this way, roles can be individually customized during instantiation.
Added parameters:
- custom_attrs: contains user-defined custom attributes.
- custom_attrs_values: contains the values of the custom_attrs.
  In case of overlapping role and service level attributes, role level attributes will take precedence.

Example:
roles: [
    {
        "name": "role_1",
        ...
        "custom_attrs": {
            "MEMORY": "M|range|memory (mb)|100..500|200",
            "DISK_SIZE": "M|range|disk size (mb)|100..500|250"
        }
    }
]

In order to be used from CLI, the vm_template_contents in the service template must be filled manually.

(cherry picked from commit 90aac4b)
rsmontero added a commit that referenced this issue Feb 9, 2023
(cherry picked from commit 496ac20)
rsmontero pushed a commit that referenced this issue Feb 9, 2023
rsmontero pushed a commit that referenced this issue Feb 28, 2023
rsmontero added a commit that referenced this issue Feb 28, 2023
This reverts commit d6ec6fa.

(cherry picked from commit 9bf063b)
rsmontero pushed a commit that referenced this issue Mar 1, 2023
Custom attributes have been added at the role level.
In this way, roles can be individually customized during instantiation.
Added parameters:
- custom_attrs: contains user-defined custom attributes.
- custom_attrs_values: contains the values of the custom_attrs.
  In case of overlapping role and service level attributes, role level attributes will take precedence.

Example:
roles: [
    {
        "name": "role_1",
        ...
        "custom_attrs": {
            "MEMORY": "M|range|memory (mb)|100..500|200",
            "DISK_SIZE": "M|range|disk size (mb)|100..500|250"
        }
    }
]

In order to be used from CLI, the vm_template_contents in the service template must be filled manually.
rsmontero added a commit that referenced this issue Mar 1, 2023
rsmontero pushed a commit that referenced this issue Mar 1, 2023
rsmontero added a commit that referenced this issue Mar 1, 2023
rsmontero pushed a commit that referenced this issue May 17, 2023
rsmontero pushed a commit that referenced this issue May 17, 2023
sk4zuzu added a commit to OpenNebula/terraform-provider-opennebula that referenced this issue Jun 3, 2024
The role scale feature is currently supported in OpenNebula >= 6.8.0,
please refer to OpenNebula/one#5591.
sk4zuzu added a commit to OpenNebula/terraform-provider-opennebula that referenced this issue Jun 3, 2024
The role scale feature is currently supported in OpenNebula >= 6.8.0,
please refer to OpenNebula/one#5591.
sk4zuzu added a commit to OpenNebula/terraform-provider-opennebula that referenced this issue Oct 16, 2024
The role scale feature is currently supported in OpenNebula >= 6.8.0,
please refer to OpenNebula/one#5591.
dgarcia18 pushed a commit to OpenNebula/terraform-provider-opennebula that referenced this issue Oct 17, 2024
Adds support for OneFlow service scaling at cardinality changes. 

The role scale feature is currently supported in OpenNebula >= 6.8.0,
please refer to OpenNebula/one#5591.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants