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

opennebula_service should support role scale operation #553

Closed
sk4zuzu opened this issue May 28, 2024 · 2 comments
Closed

opennebula_service should support role scale operation #553

sk4zuzu opened this issue May 28, 2024 · 2 comments

Comments

@sk4zuzu
Copy link
Collaborator

sk4zuzu commented May 28, 2024

Description

OneFlow service instances support role scaling, but currently Provider does not, changing role cardinality forces resource recreation. There seems to be no code in the Provider that would use necessary API calls. We'd like to change that, as this is a crucial feature of OneFlow. :)

New or affected resources and data sources

  • opennebula_service

Potential terraform configuration

resource "opennebula_service" "service" {
  name = "service"

  template_id = opennebula_service_template.service.id

  extra_template = jsonencode({
      networks_values = [
        { service = { id = tostring(data.opennebula_virtual_network.service.id) } },
        { private = { id = tostring(opennebula_virtual_network.reservation.id) } },
      ]
      roles = [
        { cardinality = 2 },
        { cardinality = 2 },
      ]
  })

  timeouts {
    create = "15m"
    delete = "5m"
  }
}

References

https://docs.opennebula.io/6.8/integration_and_development/system_interfaces/appflow_api.html#service
https://github.com/OpenNebula/terraform-provider-opennebula/blob/v1.4.0/opennebula/resource_opennebula_service.go#L55

@sk4zuzu sk4zuzu self-assigned this May 28, 2024
sk4zuzu added a commit 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 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.
Copy link

This issue is stale because it has been open for 30 days with no activity and it has not the 'status: confirmed' label or it is not in a milestone. Remove the 'status: stale' label or comment, or this will be closed in 5 days.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 6, 2024
@treywelsh treywelsh reopened this Aug 29, 2024
Copy link

This issue is stale because it has been open for 30 days with no activity and it has not the 'status: confirmed' label or it is not in a milestone. Remove the 'status: stale' label or comment, or this will be closed in 5 days.

sk4zuzu added a commit 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 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.
@sk4zuzu sk4zuzu closed this as completed Oct 22, 2024
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

2 participants