OneFlow Service Names and Hooks
It would be really useful if we could give services individual names, as per Templates and VMs.
The use case would be having a template LoadBalanced-WebApplication and being able to instantiate it as WebApp1 and WebApp2.
As an extension to this it would be useful to be able to pass the names and roles of VMs started to a hook script.
The use case would be that the hook would be able to update chef with this info.
#3 Updated by Daniel Molina about 5 years ago
- Tracker changed from Request to Feature
- Status changed from Pending to Closed
- Priority changed from Normal to High
- Resolution set to duplicate
The first part of you request (service names) will be included in opennebula 4.8. Users will be able to provide a name for the new service and custom variables (i.e: mysql_password) that will be included in the CONTEXT section. These variables will be defined in the VM template and the user will have to provide them in the instantiate form.
We are also including a way to provide the network configuration for a given service. The admin will define how many network interfaces need the service and how each role is connected to them. The user will define what network is assigned for each interface in the instantiate form.
Hooks for OneFlow Services has been requested before, and we will try to consider it for future release.
As a workaround you can use VM Hooks and retrieve the service_id and role_name from the VM template. Also you can define the name that the new VMs will receive in the oneflow-server.conf
We are also extending the OneGate features for opennebula-4.8. Now a vm will be able to retrieve information of itself and the service it belongs to through OneGate.
Hope this helps