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