one icon indicating copy to clipboard operation
one copied to clipboard

onegroup list errors with "no implicit conversion of String into Integer" while JSON and XML outputs are fine

Open balazsbme opened this issue 4 months ago • 3 comments

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)

balazsbme avatar Sep 26 '25 08:09 balazsbme

I t seems related to an upgrade generating a wrong group structure, we need more information to reproduce and fix.

rsmontero avatar Oct 01 '25 07:10 rsmontero

@balazsbme can you provide more information? Thanks!

dcarracedo avatar Oct 10 '25 13:10 dcarracedo

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.

paczerny avatar Dec 11 '25 07:12 paczerny