Commit Graph
202 Commits
Author SHA1 Message Date
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
Alejandro Huertas Herrero e5be998b43 M #-: minor changes related with ZMQ endpoint (#903) 2021-03-03 10:58:45 +01:00
Vlastimil Holer 0457a46045 M #-: Avoid reloading of OpenNebula distributed Ruby gems (#829) 2021-02-17 19:52:38 +01:00
Vlastimil Holer 096754b63f M #-: Bump year to 2021 (#778) 2021-02-09 16:07:56 +01:00
Alejandro Huertas Herrero 2648aa9a5d M #-: get service update cardinality error (#754) 2021-02-04 17:06:16 +01:00
Alejandro Huertas Herrero c946f8a81e B #5235: force update cardinality in service (#688) 2021-01-21 16:06:34 +01:00
Alejandro Huertas Herrero 58b79f114e F #5191: implement OneFlow service purge done (#569) 2020-12-18 13:32:49 +01:00
Alejandro Huertas Herrero 21c6e1ca2d F #5194: check states in service transient states (#562) 2020-12-15 13:22:35 +01:00
Alejandro Huertas Herrero f895b87b3e M #-: fix minor bug in OneFlow (#486) 2020-11-26 15:38:54 +01:00
Alejandro Huertas Herrero 24c0dd5505 F #5035: delete service when every role finished (#377) 2020-10-29 17:12:17 +01:00
Alejandro Huertas Herrero aa80c1432a F #4967: Delete tmpls associated to a service tmpl (#373)
- Add support to delete VM templates when deleting service template
- Add support to delete also images
2020-10-29 15:15:02 +01:00
Alejandro Huertas Herrero 77c3b265ac F #4966: add service template reg time (#372)
Service start time has been also added
2020-10-28 18:08:30 +01:00