onegroup list errors with "no implicit conversion of String into Integer" while JSON and XML outputs are fine
Description
For onegroup list the following line produces and error:
https://github.com/OpenNebula/one/blob/release-7.0.0/src/cli/one_helper/onegroup_helper.rb#L112C1-L113C1
no implicit conversion of String into Integer
While for onegroup list -x and -j it works correctly.
To Reproduce Not sure how to reproduce, but we have example traces that the issue does not happen in the table format only in XML and JSON
Expected behavior Independently of the output format the command should list the groups .
Details
- Affected Component: oned
- Hypervisor: irrelevant
- Version: 7.0.0
Progress Status
- [ ] Code committed
- [ ] Testing - QA
- [ ] Documentation (Release notes - resolved issues, compatibility, known issues)
I t seems related to an upgrade generating a wrong group structure, we need more information to reproduce and fix.
@balazsbme can you provide more information? Thanks!
The isssue is in empty VM quota:
"QUOTAS": [
{
"ID": "117",
"DATASTORE_QUOTA": {},
"VM_QUOTA": [
{}, ---> incorrect, empty VM QUOTA object
... other correctly handled VM QUOTA objects
]
}
]
We don't know the root cause of the empty quota, but at least the OpenNebula should parse it correctly.