Commit Graph
227 Commits
Author SHA1 Message Date
Jan Orel 104b421077 B OpenNebula/one#6983: Use REXML from opennebula-rubygems (#3594)
Previously, REXML was loaded from the systempath via the rubygem-rexml RPM/DEB package. With tproxy introducing a dependency on opennebula-rubygems for KVM/LXC node packages, this change updates driver actions to use REXML provided by the OpenNebula path.

L #-: Follow new linter rule
2025-04-24 09:28:35 +02:00
Victor Palma 129200a9b0 B #-: Fix shutdown_nodes to return correct VM IDs from VR (#3588) 2025-04-23 12:04:30 +02:00
Tino Vázquez 79ac91e538 M #-: Bump to 6.99.85 2025-04-16 11:54:16 +02:00
Victor Palma 502857d45a B #-: Fix duplicate nics in OneFlow
Improve merge method for arrays
2025-04-16 11:38:59 +02:00
Victor Palma e0e5b5093b B #-: Fix undeploy success condition (#3556) 2025-04-08 08:53:38 +02:00
Victor Palma 5c21198104 B OpenNebula/one#6999: Ensure shutdown and shutdown_recovery always returns an error on failure (#3537) 2025-04-04 14:01:16 +02:00
Victor Palma 63b25f1a45 B #-: replace merge template attributes (#3506) 2025-03-25 19:40:37 +01:00
Victor Palma f38d382d0e B #6680: Get attributes from request body <v7.0 (#3493)
* B #-: Get attributes from request body <v7.0

* B #-: Get role attributes from request body <v7.0
2025-03-21 14:48:51 +01:00
Victor Palma 87c6d4a697 F #6680: Add service template compability mode <v7.0 (#3487) 2025-03-20 14:49:14 +01:00
e2539c32c8 F #6680,#6682: Improve OneFlow data model and add support to VR
This commits adds the following improvements:

* Improving Usability & Consistency in flow documents:
  - vm_template -> template_id, generic as also VR templates are
    considered
  - vm_template_contents -> template_contents, same as above
  - custom_attrs -> user_inputs, use same name convention as VM
    Templates
  - custom_attrs_values -> user_inputs_values, same as above

* Easier OneFlow operations
  - template_contents (old vm_template_contents) is now in JSON format
    instead of a String.
  - better error reporting when merging template contents

* Role can use Virtual Routers as main element, supporting all role
  features (user inputs, dependencies and network creation). Related
  changes:
  - Role data model structure has been totally refactored to accomodate
    the new type (vmrole.rb and vrrole.rb)
  - VR roles use VR OpenNebula API to create associated VMs.
  - VR HA uses the cardinaility of the role

  New attributes:
  - type, new attribute to identify the role type VM or VR
  - vrouter_ips, floating IP of each network managed
  - vrouter_id, of the associated VR

* Improved Sunstone interface for flows, including support for the new
  features.

co-authored-by: Victor Palma <vpalma@opennebula.io>
co-authored-by: Miguel E. Ruiz <mruiz@opennebula.io>
co-authored-by: Victor Hansson <vhansson@opennebula.io>
2025-03-19 12:17:29 +01:00
Tino Vázquez a64f071808 M #-: Bump year 2025 2025-02-28 11:56:18 +01:00
Miguel E. Ruiz 25f57aa6e6 B OpenNebula/one#6656: Fix Sinatra error handler (#3180) 2024-07-31 12:29:25 +02:00
Miguel E. Ruiz 49ab70d5a7 B #6656: Fix OneFlow server error output (#3168)
* Avoid return backtrace to the user
* Modify Sinatra config
2024-07-30 12:39:05 +02:00
Tino Vázquez 05d147c524 M #-: Bump version 6.10.0
Also bump copyright year to 2024
2024-07-29 14:27:11 +02:00
Victor Palma c8500c47bc F OpenNebula/one#6553: Add oneflow error msgs to main oneflow server log file (#3127) 2024-07-03 13:20:53 +02:00
Victor Palma 9d201cdec2 B OpenNebula/one#6589: Fix incorrect logic in resolve_networks function (#3126) 2024-07-03 13:14:17 +02:00
Victor Palma afdf30ce53 B OpenNebula/one#6396: Return error in case of failed nodes (#3058) 2024-05-22 09:34:41 +02:00
0d1ac37583 B OpenNebula/terraform-provider-opennebula#527: Fix create/reserve vnets
The issue is caused by a wrong handling of hash keys in oneflow logic
that assumes vnet IDs are stored in the first position.

co-authored-by: Victor Palma <vpalma@opennebula.io>
co-authored-by: shurkys <shurkys@gmail.com>
2024-05-10 10:58:54 +02:00
Victor Palma 15a013ed4d B OpenNebula/one#6545: Add return code to deploy func (#3023) 2024-04-16 10:53:13 +02:00
Tino Vázquez 697061f687 L #-: Rubocop 1.63.0 2024-04-08 18:49:37 +02:00
vichansson 3d59f15a41 F OpenNebula/one#5388: Add OneFlow tabs (#2915)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-02-05 14:11:27 +01:00
Tino Vázquez 7516ed7f0a L #-: Lint for rubocop 1.58.0 2023-12-04 10:40:53 +01:00
Tino Vázquez d49e6fcc8f Revert "L #-: Linting for rubocop 1.58.0"
This reverts commit 76f1d1bba4.
2023-12-04 10:05:02 +01:00
Tino Vázquez 76f1d1bba4 L #-: Linting for rubocop 1.58.0 2023-12-02 13:22:31 +01:00
Ruben S. Montero 4b73241133 B #6406: Retry vm_info in flow deployment
After a VM Template is instantiated, the associated VM info is
retreived. This commit retries in case of failure up to 3 times with
linear spacing. If VM info cannot be retreived flow deployment fails
2023-11-23 14:39:15 +01:00
Victor Palma 33420561f7 F #5591: Add API support for custom role attrs (#2578)
(cherry picked from commit 7a9a6f87b6)
2023-05-12 13:52:01 +02:00
Ruben S. Montero 2ec40c2b72 Revert "F #5591: Custom role attributes in oneflow added (#2525)"
This reverts commit d6ec6fad07.

(cherry picked from commit 9bf063b1a2)
2023-02-28 12:28:17 +01:00
Victor Palma f66ab7a8c2 F #5591: Custom role attributes in oneflow added (#2525)
(cherry picked from commit d6ec6fad07)
2023-02-27 10:30:27 +01:00
Tino Vázquez 4ba8847da1 F #6127: Remove headers from all conf files (#2517) 2023-02-22 16:03:37 +01:00
Jan Orel b82ca031a7 Revert "F #5591: Custom role attributes in oneflow added (#2465)" (#2491)
This reverts commit 8aae36824d.
2023-02-09 10:58:02 +01:00
Tino Vázquez fae34eee26 L #-: Change percentage for brackets
in ruby word array definitions

(cherry picked from commit 27a97b4ea6)
(cherry picked from commit f0d462649d)
2023-02-07 13:28:47 +01:00
Ruben S. Montero 88cf47e401 L #5591: Linting (line-length)
(cherry picked from commit 496ac20e0a)
2023-02-07 07:48:32 +01:00
Victor Palma 8aae36824d F #5591: Custom role attributes in oneflow added (#2465)
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 90aac4b5f3)
2023-02-07 07:48:31 +01:00
Tino Vázquez ccf9acafbb L #-: Remove unneeded parenthesis
(cherry picked from commit 2ee4a31f39)
2023-01-24 11:38:17 +01:00
Tino Vázquez 3376afdaf0 M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
Jan Orel 8689d5d49b B #6034 Fix log rotation (#2415)
* Revert "F #5328: Update logrotate behavior to avoid long restarts (#2275)". This reverts commit 6b1127f180.

* B #5328: Don't wait for log compressing
* B #6034: Don't overwrite logs

While having already `copytruncate` in logroate we don't need to implement signaling and re-openning files.

* L #-: Linting
2022-12-12 11:50:54 +01:00
Christian González ab48cd242b L #: Lint OneFlow files (#2300) 2022-10-06 16:40:54 +02:00
Christian González d39c229d93 B #5814: OneFlow server creates clients as needed
Oneflow do not caches OpenNebulaClient objects and generate a new one
whenever an user operation needs to be made.

* onflow-server sends the @username down to the flow components, so it
  can create serveradmin tokens when needed in callbacks. Athentication is
  performed in the flow-server

* Direct (non-cb) actions receive a fresh client each time to execute
  the operation

(cherry picked from commit 8980e1b0ff)
2022-10-05 12:48:11 +02:00
Alejandro Huertas Herrero 02db555402 L #-: fix linting typo (#2156) 2022-06-15 16:28:54 +02:00
Alejandro Huertas Herrero ba5de1e300 F #5814: Add retry method when auth error (#2151) 2022-06-15 14:35:10 +02:00
Alejandro Huertas Herrero 338765e4b5 F #1176: global params for all VMs in a service (#2123) 2022-06-02 18:10:53 +02:00
Alejandro Huertas 517de72f80 F #1149: add new log format to config files 2022-05-09 13:18:03 +02:00
Alejandro Huertas 8b37678ad2 F #1149: make log output configurable 2022-05-09 13:17:44 +02:00
Ruben S. Montero 07e4240799 F #1765: Fixes bugs on flow 2022-04-19 11:30:17 +02:00
Ruben S. Montero 0cadc99a89 F #1765: Allow instantiation of OneFlow service with all VMs on hold (#1910)
This applies commit 1df045fd0e.
2022-04-19 11:29:36 +02:00
Ruben S. Montero 1df045fd0e Revert "F #1765: Allow instantiation of OneFlow service with all VMs on hold (#1910)"
This reverts commit 49a5f62c47.
2022-04-14 12:21:31 +02:00
Tino Vazquez 7259d6a964 L #-: Minor linting 2022-04-13 13:45:34 +02:00
Victor Palma 49a5f62c47 F #1765: Allow instantiation of OneFlow service with all VMs on hold (#1910) 2022-04-13 11:29:59 +02:00
4b746348b3 f #5725: State for Virtual Networks
* VNETs include state to flag their configuration status
  (READY/ERROR/LOCK)
* Hooks can be program based on VNET state transitions
* Include Java/Go/Ruby bindings
* New vCenter network drivers
* Place-holder to customize actions (create/delete) for other netowrk drivers
* Sunstone integration
* OneFlow syncs flow creation on VNET status
* Remove deprecated vcenter hooks and autoregistration

co-authored-by: Frederick Ernesto Borges Noronha <fborges@opennebula.io>
co-authored-by: Alejandro Huertas <ahuertas@opennebula.io>
co-authored-by: Pavel Czerny <pczerny@opennebula.systems>
2022-04-09 15:20:17 +02:00
Tino Vazquez f7d53e75ff M #-: Bump version 6.3.85 2022-04-07 19:49:58 +02:00