You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Certain CLI actions which required ID's will accept a name on the command line but when sent as an XML-RPC request to OpenNebula, the ID will be 0.
To Reproduce
Attempt to delete a zone host or another object which requests an ID only:
onezone server-del 0 server-name
This command is effectively the same as onezone server-del 0 0 even if server-name is host ID 4 or any non-zero ID.
Expected behavior
The command should either fail to accept a string for an ID or it should resolve the name to an ID properly.
Details
Affected Component: CLI
Version: 6.8.3
Progress Status
Code committed
Testing - QA
Documentation (Release notes - resolved issues, compatibility, known issues)
The text was updated successfully, but these errors were encountered:
These parameters were fixed:
* schedid in onebackupjob
* execid in onehook
* snapshot_id in oneimage
* nicid, pciid, sched_id and sgid in onevm
* nicid in onevrouter
* serverid in onezone
For all those parameters the string used as ID:
* if possible the name is converted is converted to int ID
* fails if the resource doesn't have name
(cherry picked from commit f5b2a173607e2f045ce3de95755828cef4bcca5b)
Description
Certain CLI actions which required ID's will accept a name on the command line but when sent as an XML-RPC request to OpenNebula, the ID will be 0.
To Reproduce
Attempt to delete a zone host or another object which requests an ID only:
onezone server-del 0 server-name
This command is effectively the same as
onezone server-del 0 0
even ifserver-name
is host ID 4 or any non-zero ID.Expected behavior
The command should either fail to accept a string for an ID or it should resolve the name to an ID properly.
Details
Progress Status
The text was updated successfully, but these errors were encountered: