Commit Graph
56 Commits
Author SHA1 Message Date
Ruben S. Montero ebbb7be5d4 M #-: Bump version 7.3.80 2026-03-30 09:58:53 +02:00
Jan Orel 4c92499a70 M #-: Simplify ruby path setup (#3613)
- we deliver /usr/lib/ruby/load_opennebula_paths.rb
- sym-linked from known (system-wide) Ruby path
  - Debian/Ubuntu: /usr/local/lib/site_ruby/load_opennebula_paths.rb
  - RHEL/Alma:     /usr/local/share/ruby/site_ruby/load_opennebula_paths.rb
- suppress warnings from Rubygems no longer needed
2025-05-05 13:24:22 +02: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
Tino Vázquez 05d147c524 M #-: Bump version 6.10.0
Also bump copyright year to 2024
2024-07-29 14:27:11 +02:00
madalinneagandGuillermo Ramos 4161a93b74 B OpenNebula/one#6305: Fixing oneflow delete function (#3146)
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
Co-authored-by: Guillermo Ramos <gramos@opennebula.io>
2024-07-10 13:07:03 +02:00
Jan Orel 954c545605 B #-: Fix stdin hanlding in cli (#2909)
Don't realy solely on STDIN.wait_readable. When
running CLI from script, STDIN could be easily
inherited and already processed. Also Jenkins in
`sh` function always passes STDIN.

Improve error message when attributes should be
merged.
2024-01-30 16:45:25 +01:00
Daniel Clavijo Coca 9d5322fe1d F OpenNebula/one#6365: Improve oneflow listing commands CLI (#2870) 2023-12-12 16:07:19 +01:00
Daniel Clavijo Coca 7c91082e33 F OpenNebula/one#6242: prioritize file read (#2779) 2023-10-23 12:19:42 +02:00
Daniel Clavijo Coca 1804583ece F OpenNebula/one#6242: Allow templates via STDIN on CLI (#2660) 2023-07-07 10:21:38 +02:00
Victor Palma 15c4626313 F #5591: Add CLI support for custom role attrs (#2579)
(cherry picked from commit 6b11d98f3f)
2023-05-12 13:52:01 +02:00
Daniel Clavijo Coca 820948be4c M #-: Add -R short option for recursive operations (#2555)
(cherry picked from commit 19c6b7c5ef)
2023-03-09 17:48:19 +01: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
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
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 3376afdaf0 M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
Pavel Czerný 3507c56ad4 B 5912: Fix oneflow-template auth params (#2240)
(cherry picked from commit 94fc17c36a)
2022-07-22 09:34:27 +02:00
Daniel Clavijo Coca 46fcb89634 B OpenNebula/one#5912: Fix CLI auth params (#2232)
being bypassed on oneflow-template

(cherry picked from commit acc1647bd2)
2022-07-13 19:13:48 +02:00
Alejandro Huertas Herrero 0146390990 B #5769: removed not needed models dependency (#2137) 2022-06-08 19:32:23 +02:00
Alejandro Huertas Herrero 5b35eb7946 F #5356: add CLI chmod support /u/g/o (#2054) 2022-05-18 14:51:51 +02:00
Tino Vazquez f7d53e75ff M #-: Bump version 6.3.85 2022-04-07 19:49:58 +02:00
Alejandro Huertas Herrero 846fe9619f B #5475: remove XML option from flow cmds (#1448) 2021-09-13 12:33:40 +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
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 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 472ee2bccf F #4950: add JSON and YAML outputs (#63) 2020-07-14 17:42:30 +02:00
Vlastimil Holer 7872274c9b B #4929: Preserve site_ruby in paths, use realpath (#33) 2020-06-22 15:18:57 +02:00
Vlastimil Holer f3c50a5d89 M #-: Year bump to 2020 (#4634) 2020-04-30 15:00:02 +02:00
Vlastimil Holer d064ee6db3 B #4304: Distribution gems affects OpenNebula (#4578)
Remove vendor_ruby and site_ruby directories from $LOAD_PATH, so
that distribution gems installed directly into loadable path
without need to use rubygems are not loaded by require.
2020-04-22 10:21:08 +02:00
Alejandro Huertas Herrero 7e1a5c07a1 F #4468: add oneflow recover delete (#4472) 2020-04-03 16:17:29 +02:00
Christian González 473b838ddf M #: Defaults values for Service template (#4364) 2020-03-17 11:01:43 +01:00
Alejandro Huertas Herrero f3d8bac9c3 F #4287: service template recursive clone (#4289) 2020-03-06 11:54:18 +01:00
8696a50e8f F #4132: Redesign oneflow internal logic
co-authored-by: Christian González <cgonzalez@opennebula.systems>
co-authored-by: Alejandro Huertas Herrero <ahuertas@opennebula.systems>
co-authored-by: Jorge Lobo <jlobo@opennebula.systems>
2020-02-19 14:56:03 +01:00
Ruben S. Montero 5e53c4f893 Revert "F #4132: Redesign oneflow internal logic"
This reverts commit da969c5fd3.
2020-02-19 14:56:03 +01:00
da969c5fd3 F #4132: Redesign oneflow internal logic
co-authored-by: Christian González <cgonzalez@opennebula.systems>
co-authored-by: Alejandro Huertas Herrero <ahuertas@opennebula.systems>
co-authored-by: Jorge Lobo <jlobo@opennebula.systems>
2020-02-18 15:53:30 +01:00
Christian González dd3fd1f397 B #3607: fix oneflow-template show output format (#3608)
(cherry picked from commit b216110475)
2019-09-04 16:40:17 +02:00
Vlastimil Holer 787e957f85 F #2799: Respect GEMS_LOCATION (#3598) 2019-08-18 20:33:09 +02:00
Vlastimil Holer 441cf1f7f9 Bump version to 5.7.85, year to 2019 2019-01-16 11:47:59 +01:00
Tino Vazquez 7bd6a8d2fb Adjust alignment for new rubocop version 2018-11-23 22:09:36 +01:00
Tino Vazquez 64ef1f3e47 Ruby code formatting: CLI Part I 2018-10-17 18:57:50 +02:00
Vlastimil Holer a4c0447ccf Bump year to 2018 (#1623) 2018-01-02 18:27:37 +01:00
Javi Fontan 8de979e42c Bump version 5.3.80 2017-05-25 16:07:35 +02:00
Javi Fontan e1f6dee180 Update copyright notice year 2016-05-04 12:33:23 +02:00
Daniel Molina be11c47e84 feature #2123: feature #4240: Add service template rename to the CLI 2016-02-02 15:54:38 +01:00
Daniel Molina 6d05d2d28c feature #4240: Add service template clone to the CLI 2016-02-02 15:54:38 +01:00
Jaime Melis e20fb5c4c4 Fix copyright in banners 2015-09-23 16:51:10 +02:00
Jaime Melis 8d00b74177 Change year to 2015 2015-02-24 12:27:59 +01:00
Daniel Molina a06c6afd94 Provide merge_template as json instead of string when a new service template is instantiated 2014-05-27 12:35:33 +02:00