Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 862299

Summary: [webadmin] Host demands to be in maintenance in case power management adding (only non-SPM)
Product: Red Hat Enterprise Virtualization Manager Reporter: Pavel Stehlik <pstehlik>
Component: ovirt-engineAssignee: Oved Ourfali <oourfali>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: dyasny, ecohen, iheim, lpeer, Rhev-m-bugs, sgrinber, yeylon, ykaul, yzaslavs
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 20:04:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
pwr-mgmt none

Description Pavel Stehlik 2012-10-02 14:54:05 UTC
Created attachment 620329 [details]
pwr-mgmt

Description of problem:
 In case host is non-SPM and Up: try to add PM to it. There is msg:
"Error:

srh-206:

    Cannot edit Host. Host parameters cannot be modified while Host is operational.
    Please switch Host to Maintenance mode first."
In case host is SPM the message doesn't appear.


Version-Release number of selected component (if applicable):
si19.1

How reproducible:


Steps to Reproduce:
1. see above
2.
3.
  
Actual results:
see att image

Expected results:
PM should be added without host maintenance mode 

Additional info:
engine.log:
==============================
2012-10-02 16:44:52,835 ERROR [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8009-7) [27a6fd46] Field otpValidity can not be updated when status is Up
2012-10-02 16:44:52,835 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (ajp-/127.0.0.1:8009-7) [27a6fd46] ObjectIdentityChecker.IsUpdateValid:: Not updatable field 'otpValidity' was updated
2012-10-02 16:44:52,836 WARN  [org.ovirt.engine.core.bll.UpdateVdsCommand] (ajp-/127.0.0.1:8009-7) [27a6fd46] CanDoAction of action UpdateVds failed. Reasons:VDS_STATUS_NOT_VALID_FOR_UPDATE,VAR__ACTION__UPDATE,VAR__TYPE__HOST

Comment 3 Oved Ourfali 2012-10-03 11:03:33 UTC
Posted patch:
http://gerrit.ovirt.org/#/c/8324

Comment 4 Oved Ourfali 2012-10-03 13:42:12 UTC
Commit: 3bcdb751d14f9826345f372e2e412c3d610d0a3c

http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=3bcdb751d14f9826345f372e2e412c3d610d0a3c