ovirt-engine icon indicating copy to clipboard operation
ovirt-engine copied to clipboard

Can't change compatable version from 4.4 to 4.5

Open slavonnet opened this issue 2 years ago • 1 comments

  • Then try editengine and save without any change :

engine.log:

2022-05-05 07:58:37,767+03 INFO  [org.ovirt.engine.core.bll.UpdateVmCommand] (default task-7) [345e25c0-3fcb-4755-a2eb-385f82bd43b2] Lock Acquired to object 'EngineLock:{exclusiveLocks='[HostedEngine=VM_NAME]', sharedLocks='[f75316cb-6e94-445e-ad01-09219be02031=VM]'}'
2022-05-05 07:58:37,768+03 WARN  [org.ovirt.engine.core.bll.UpdateVmCommand] (default task-7) [345e25c0-3fcb-4755-a2eb-385f82bd43b2] Validation of action 'UpdateVm' failed for user [email protected]@dev.obs.group-authz. Reasons: VAR__ACTION__UPDATE,VAR__TYPE__VM,VM_CANNOT_UPDATE_HOSTED_ENGINE_FIELD
2022-05-05 07:58:37,768+03 INFO  [org.ovirt.engine.core.bll.UpdateVmCommand] (default task-7) [345e25c0-3fcb-4755-a2eb-385f82bd43b2] Lock freed to object 'EngineLock:{exclusiveLocks='[HostedEngine=VM_NAME]', sharedLocks='[f75316cb-6e94-445e-ad01-09219be02031=VM]'}'

UI error message:

Error while executing action:

HostedEngine:
There was an attempt to change Hosted Engine VM values that are locked.

  • Then try change cluster version 4.6 to 4.7: engine.log:
2022-05-05 08:03:48,779+03 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-7) [7256c3a9] EVENT_ID: CLUSTER_CANNOT_UPDATE_VM_COMPATIBILITY_VERSION(12,005), Cannot update compatibility version of Vm/Template: [HostedEngine], Message: There was an attempt to change Hosted Engine VM values that are locked.

UI error message:

Error while executing action: Cannot update cluster because the update triggered update of the VMs/Templates and it failed for the following: HostedEngine. "There was an attempt to change Hosted Engine VM values that are locked." is one of the error(s).

To fix the issue, please go to each VM/Template, edit, change the Custom Compatibility Version (or other fields changed previously in the cluster dialog) and press OK. If the save does not pass, fix the dialog validation. After successful cluster update, you can revert your Custom Compatibility Version change (or other changes). If the problem still persists, you may refer to the engine.log file for further details.

slavonnet avatar May 05 '22 05:05 slavonnet

# cd /usr/share/ovirt-engine/setup/dbutils
# ./unlock_entity.sh -t all -v

does not help

slavonnet avatar May 05 '22 05:05 slavonnet