Hi,
We are using the same version of OpenNebula (4.1.0.2) in two different environments. When requesting information about the VM or the Service from OneGate the format of the json is different between environments, specially in the USER_TEMPLATE section:
(1)
"USER_TEMPLATE": [
[
"SUNSTONE_CAPACITY_SELECT",
"YES"
],
[
"ROLE_NAME",
"db01"
],
[
"FROM_APP_NAME",
"Centos 6x"
],
[
"SERVICE_ID",
"4"
],
[
"FROM_APP",
"54b3f2d5cf723241e8000002"
],
[
"SUNSTONE_NETWORK_SELECT",
"YES"
],
[
"HYPERVISOR",
"kvm"
]
]
(2)
`
"USER_TEMPLATE": {
"FROM_APP": "54c1682f9376371a1a000003",
"FROM_APP_NAME": "Centos 6x",
"HYPERVISOR": "kvm",
"READY": "YES",
"ROLE_NAME": "db01",
"SCHED_REQUIREMENTS": "CLUSTER_ID=\"101\"",
"SERVICE_ID": "71",
"SUNSTONE_CAPACITY_SELECT": "YES",
"SUNSTONE_NETWORK_SELECT": "YES
}
The example in the documentation is similar to the environment (2) : http://docs.opennebula.org/4.10/advanced_administration/application_insight/onegate_usage.html
Seemed to me something related to the version of the json gem . In environment (1) we have ruby 1.8 and json 1.6.3 and in (2) we have ruby 1.9 and json 1.8.2 . As (1) is a production environment we cannot update ruby without testing first the impact, but in (2) we downgrade ruby-json to 1.6.3 but still getting the same format.
Any ideas why this is happening?
Thanks!