Bug 862299 - [webadmin] Host demands to be in maintenance in case power management adding (only non-SPM)
Summary: [webadmin] Host demands to be in maintenance in case power management adding ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.1.0
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Oved Ourfali
QA Contact: Pavel Stehlik
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-02 14:54 UTC by Pavel Stehlik
Modified: 2016-02-10 19:06 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-04 20:04:20 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
pwr-mgmt (73.26 KB, image/png)
2012-10-02 14:54 UTC, Pavel Stehlik
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.