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
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>
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>
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
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)
* 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
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)
* 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>