Commit Graph
213 Commits
Author SHA1 Message Date
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
Alejandro Huertas Herrero c0d32b7195 B #5532: fix service keeps in WARNING state (#1782) 2022-02-17 16:12:44 +01:00
Christian González c440bc9af7 M #: Add default delete-type at oneflow server (#1607) 2021-11-23 15:29:44 +01:00
Alejandro Huertas Herrero 56529fdb0a B #5456: add append support in OneFlow (#1514) 2021-10-08 12:48:29 +02:00
Daniel Clavijo Coca d87c885795 B OpenNebula/one#5526: Fix oneflow recover (#1428)
(cherry picked from commit f18fb4cf537e62f8867274dd417c106c3e76d90c)
2021-09-02 11:08:32 +02:00
Alejandro Huertas Herrero ea1f5eab39 M #-: fix typo in flow eventmanager (#1335) 2021-06-28 09:55:36 +02:00
Tino Vazquez 05295f1ef4 L #-: Linting for rubocop 1.17.0 2021-06-22 18:11:42 +02:00
Pavel Czerný 8f94dc7666 F #5289: Fix flow batch action (#1317) 2021-06-18 11:27:54 +02:00
Pavel Czerný 4a1809c0d9 F #5289: Fix sched ID in role.rb (#1300) 2021-06-16 10:09:22 +02:00
Ruben S. Montero 0f130a1abd F #5289: Remove unneeded code 2021-06-15 11:24:19 +02:00
Ruben S. MonteroandPavel Czerný 3f171f3b5b F #5289: New api for sched actions
SchedActions are now a complete managed type. It is in in /TEMPLATE and
not /USER_TEMPLATE and includes dedicated API Calls to manage the
entries:

- one.vm.schedadd (add new sched_action)
- one.vm.schedupdate (update an exiting sched_action)
- one.vm.scheddelete (delete an action)

The scheduler now use this API. This will prevent race conditions
between update operations from different processes.

co-authored-by: Pavel Czerný <pczerny@opennebula.systems>
2021-06-15 08:22:26 +00:00
Frederick Borges 424cd761c4 F #4654: Add option to remove and add new roles on services (#1281)
(cherry picked from commit 7181175f73)
2021-06-07 14:02:56 +02:00
Alejandro Huertas Herrero 4293059b45 L #-: lint some files (#1220) 2021-05-25 17:00:37 +02:00
Alejandro Huertas Herrero 2bba9e1b8f F #4654: add/remove roles from running service (#1191) 2021-05-12 16:36:12 +02:00
Vlastimil Holer c649213923 B #5379: Disable warnings on load of rubygems (#1199)
(cherry picked from commit 5fe824f1e7)
2021-05-11 09:24:32 +02:00