Created attachment 792612 [details] engine + cli logs Description of problem: After an host is added, trying to edit it's IP address (when host is in maintenance mode) fails due to wrong error: [RHEVM shell]# update host MyHost --address IP-Addr error: status: 409 reason: Conflict detail: Cannot edit Host. Host parameters cannot be modified while Host is operational. Please switch Host to Maintenance mode first Version-Release number of selected component (if applicable): is12 How reproducible: 100% Steps to Reproduce: 1. 2. 3. Actual results: detail: Cannot edit Host. Host parameters cannot be modified while Host is operational. Please switch Host to Maintenance mode first Expected results: detail: Cannot edit Host. parameter cannot be modified. Additional info:
There is already an error message for this case: ACTION_TYPE_FAILED_HOSTNAME_CANNOT_CHANGE It was not exposed due to a bug. Patch suggested on master.
just saw this is has flags exception & 3.3, changing to assigned.
Verified. tested on: rhevm-3.3.0-0.28.beta1.el6ev.noarch [RHEVM shell (connected)]# update host rose04 --address 1.1.1.1 error: status: 400 reason: Bad Request detail: Host Address can not be modified due to Security restrictions. In order to change Host Address, Host has to be reinstalled
According https://bugzilla.redhat.com/show_bug.cgi?id=1003281#c8 IP addrerss can be changed using API, but not from UI. So using UI related error message in REST, might not be the best solution.
I see. It is possible to implement it this way and might even be better according to bug 1003281, comment 8 and bug 1003281, comment 9. however currently the code contains a specific check to prevent this situation since ovirt git history began.
Closing - RHEV 3.3 Released