Descriptionvvyazmin@redhat.com
2013-07-29 11:31:32 UTC
Created attachment 779804[details]
## Logs rhevm, vdsm, libvirt, thread dump, superVdsm
Description of problem:
Failed manually set SPM Priority - Field sshPort can not be updated when status is Up
Version-Release number of selected component (if applicable):
RHEVM 3.3 - IS7 environment:
RHEVM: rhevm-3.3.0-0.11.master.el6ev.noarch
VDSM: vdsm-4.12.0-rc3.12.git139ec2f.el6ev.x86_64
LIBVIRT: libvirt-0.10.2-18.el6_4.9.x86_64
QEMU & KVM: qemu-kvm-rhev-0.12.1.2-2.355.el6_4.5.x86_64
SANLOCK: sanlock-2.6-2.el6.x86_64
PythonSDK: rhevm-sdk-python-3.3.0.7-1.el6ev.noarch
How reproducible:
100%
Steps to Reproduce:
Create Data Center with tree hosts connected to two Storage Domains.
Manually edit “SPM Priority” to Low or High
Actual results:
Failed set “SPM Priority”
Expected results:
Succeed set “SPM Priority”
Impact on user:
Failed set “SPM Priority”
Workaround:
none
Additional info:
UI:
Error while executing action:
tigris02.scl.lab.tlv.redhat.com:
Cannot edit Host. Host parameters cannot be modified while Host is operational.
Please switch Host to Maintenance mode first.
/var/log/ovirt-engine/engine.log
2013-07-29 13:49:34,230 WARN [org.ovirt.engine.core.compat.backendcompat.PropertyInfo] (ajp-/127.0.0.1:8702-1) Unable to get value of property: vdsName for class org.ovirt.engine.core.common.businessentities.VdsStatic
2013-07-29 13:49:34,230 WARN [org.ovirt.engine.core.compat.backendcompat.PropertyInfo] (ajp-/127.0.0.1:8702-1) Unable to get value of property: vdsName for class org.ovirt.engine.core.common.businessentities.VdsStatic
2013-07-29 13:49:34,230 ERROR [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-1) Field sshPort can not be updated when status is Up
2013-07-29 13:49:34,230 WARN [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-1) ObjectIdentityChecker.IsUpdateValid:: Not updatable field 'sshPort' was updated
2013-07-29 13:49:34,230 WARN [org.ovirt.engine.core.bll.UpdateVdsCommand] (ajp-/127.0.0.1:8702-1) CanDoAction of action UpdateVds failed. Reasons:VAR__ACTION__UPDATE,VAR__TYPE__HOST,VDS_STATUS_NOT_VALID_FOR_UPDATE
/var/log/vdsm/vdsm.log
When setting the spm priority we update all vds related raw in vdsStatic table, part of this raw is sshPort field that could be updated when vds is in UP state (fix in http://gerrit.ovirt.org/17429).
The reason it was not raised before is that the VDS was probably added before we added this fields with the new update script, we added sshPort field with null, instead of giving it default value. When ssh port is null the backend uses 22 as default, when setting another field as SPM priority (it could happened with other fields as well), the set of 22 is recognized as an update and that fails the update operation at all. The patch (http://gerrit.ovirt.org/17303) set default values for sshPort and sshUsername to avoid such issues.
Created attachment 779804 [details] ## Logs rhevm, vdsm, libvirt, thread dump, superVdsm Description of problem: Failed manually set SPM Priority - Field sshPort can not be updated when status is Up Version-Release number of selected component (if applicable): RHEVM 3.3 - IS7 environment: RHEVM: rhevm-3.3.0-0.11.master.el6ev.noarch VDSM: vdsm-4.12.0-rc3.12.git139ec2f.el6ev.x86_64 LIBVIRT: libvirt-0.10.2-18.el6_4.9.x86_64 QEMU & KVM: qemu-kvm-rhev-0.12.1.2-2.355.el6_4.5.x86_64 SANLOCK: sanlock-2.6-2.el6.x86_64 PythonSDK: rhevm-sdk-python-3.3.0.7-1.el6ev.noarch How reproducible: 100% Steps to Reproduce: Create Data Center with tree hosts connected to two Storage Domains. Manually edit “SPM Priority” to Low or High Actual results: Failed set “SPM Priority” Expected results: Succeed set “SPM Priority” Impact on user: Failed set “SPM Priority” Workaround: none Additional info: UI: Error while executing action: tigris02.scl.lab.tlv.redhat.com: Cannot edit Host. Host parameters cannot be modified while Host is operational. Please switch Host to Maintenance mode first. /var/log/ovirt-engine/engine.log 2013-07-29 13:49:34,230 WARN [org.ovirt.engine.core.compat.backendcompat.PropertyInfo] (ajp-/127.0.0.1:8702-1) Unable to get value of property: vdsName for class org.ovirt.engine.core.common.businessentities.VdsStatic 2013-07-29 13:49:34,230 WARN [org.ovirt.engine.core.compat.backendcompat.PropertyInfo] (ajp-/127.0.0.1:8702-1) Unable to get value of property: vdsName for class org.ovirt.engine.core.common.businessentities.VdsStatic 2013-07-29 13:49:34,230 ERROR [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-1) Field sshPort can not be updated when status is Up 2013-07-29 13:49:34,230 WARN [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8702-1) ObjectIdentityChecker.IsUpdateValid:: Not updatable field 'sshPort' was updated 2013-07-29 13:49:34,230 WARN [org.ovirt.engine.core.bll.UpdateVdsCommand] (ajp-/127.0.0.1:8702-1) CanDoAction of action UpdateVds failed. Reasons:VAR__ACTION__UPDATE,VAR__TYPE__HOST,VDS_STATUS_NOT_VALID_FOR_UPDATE /var/log/vdsm/vdsm.log