Description of problem: When adding an host with a name and address through the REST API, the error message says that "rootPassword" is required, but the actual field name is "root_password" Version-Release number of selected component (if applicable): oVirt Engine Version: 3.3.0-0.3.beta1.fc19 How reproducible: 100% Steps to Reproduce: 1. Send a POST to /api/hosts with: <host> <name>David Bowie</name> <address>8.8.8.8</address> </host> Actual results: Error message returned: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <fault> <reason>Incomplete parameters</reason> <detail>Host [rootPassword] required for add</detail> </fault> Expected results: The error message should return "root_password" instead. Sending: <host> <name>David Bowie</name> <address>8.8.8.8</address> <rootPassword>1</rootPassword> </host> Returns the same error message (rootPassword is required). Sending: <host> <name>David Bowie</name> <address>8.8.8.8</address> <root_password>1</root_password> </host> Works. Thus the error message should say that "root_password" is required.
the representation of this variable very on the content-type you choose to communicate with the server, in your case it's "root_password" cause you use xml, for yaml/json it will be rootPassword (for now till we support it), therefore we've decided to keep it general in java format for all content-types till we officially align with the jaxb arguments representation
Re-targeting to 3.3.2 since 3.3.0 has been released.
Re-targeting to 3.3.3 since the bug is not resolved in 3.3.2 beta and is not blocking 3.3.2 release tracker (bug #1027349)
As far as I understand from Michael's comment #1 this is not a bug, it just the representation of the variable in the cli's output (using the yaml/json instead of the xml type). Any additional treatment for this issue?
This root password parameter is now marked as optional, renamed to password, and when it is needed and missing the message printed is the following: <fault> <reason>Operation Failed</reason> <detail>[Cannot install Host with empty password.]</detail> </fault>
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days