Bug 1169741 - [RFE] Power Management Settings - clear/remove settings in webui
Summary: [RFE] Power Management Settings - clear/remove settings in webui
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: WebUI
Version: 570
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Pavel Studeník
URL:
Whiteboard:
Depends On:
Blocks: sat570-blockers sat570-powermgmt
TreeView+ depends on / blocked
 
Reported: 2014-12-02 10:47 UTC by Pavel Studeník
Modified: 2015-01-13 10:25 UTC (History)
2 users (show)

Fixed In Version: spacewalk-java-2.3.8-84 cobbler-2.0.7-52
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-13 10:25:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pavel Studeník 2014-12-02 10:47:18 UTC
Description of problem:
I set parameters for  Power Management Settings in webui. But I discovered that system doesn't support this feature. I would like to remove it (disable feature), because cobbler renders so many messages to logfile and I didn't find way how to do it.

Version-Release number of selected component (if applicable):
spacewalk-java-2.3.8-81.el6sat.noarch
cobbler-2.0.7-50.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. register system
2. enable and set power management
3. I don't know how to remove it

Actual results:
I can't remove settings and in logs there are a lot of messages.

Expected results:
It's possible to clear settings and without a lot of messages in logs.

Additional info:
==> /var/log/rhn/rhn_taskomatic_daemon.log <==
INFO   | jvm 1    | 2014/12/02 05:42:00 | 2014-12-02 05:42:00,370 [DefaultQuartzScheduler_Worker-9] ERROR com.redhat.rhn.manager.kickstart.cobbler.CobblerLoginCommand - XmlRpcFault while logging in.  most likely user doesn't have permissions. 
INFO   | jvm 1    | 2014/12/02 05:42:00 | redstone.xmlrpc.XmlRpcFault: <class 'cobbler.cexceptions.CX'>:'login failed (taskomatic_user)'
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at redstone.xmlrpc.XmlRpcClient.handleResponse(XmlRpcClient.java:443)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at redstone.xmlrpc.XmlRpcClient.endCall(XmlRpcClient.java:376)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at redstone.xmlrpc.XmlRpcClient.invoke(XmlRpcClient.java:165)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.manager.kickstart.cobbler.CobblerXMLRPCHelper.invokeMethod(CobblerXMLRPCHelper.java:69)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.manager.kickstart.cobbler.CobblerLoginCommand.login(CobblerLoginCommand.java:52)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.frontend.integration.IntegrationService.authorize(IntegrationService.java:114)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.frontend.integration.IntegrationService.getAuthToken(IntegrationService.java:67)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.manager.kickstart.cobbler.CobblerCommand.<init>(CobblerCommand.java:68)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.manager.kickstart.cobbler.CobblerDistroSyncCommand.<init>(CobblerDistroSyncCommand.java:52)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.taskomatic.task.CobblerSyncTask.execute(CobblerSyncTask.java:78)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.taskomatic.task.RhnJavaJob.execute(RhnJavaJob.java:89)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.taskomatic.TaskoJob.execute(TaskoJob.java:169)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
INFO   | jvm 1    | 2014/12/02 05:42:00 | 2014-12-02 05:42:00,370 [DefaultQuartzScheduler_Worker-9] ERROR com.redhat.rhn.taskomatic.task.CobblerSyncTask - RuntimeExceptionError trying to sync to cobbler: We had an error trying to login.
INFO   | jvm 1    | 2014/12/02 05:42:00 | com.redhat.rhn.manager.kickstart.cobbler.NoCobblerTokenException: We had an error trying to login.
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.manager.kickstart.cobbler.CobblerLoginCommand.login(CobblerLoginCommand.java:57)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.frontend.integration.IntegrationService.authorize(IntegrationService.java:114)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.frontend.integration.IntegrationService.getAuthToken(IntegrationService.java:67)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.manager.kickstart.cobbler.CobblerCommand.<init>(CobblerCommand.java:68)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.manager.kickstart.cobbler.CobblerDistroSyncCommand.<init>(CobblerDistroSyncCommand.java:52)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.taskomatic.task.CobblerSyncTask.execute(CobblerSyncTask.java:78)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.taskomatic.task.RhnJavaJob.execute(RhnJavaJob.java:89)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.taskomatic.TaskoJob.execute(TaskoJob.java:169)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
INFO   | jvm 1    | 2014/12/02 05:42:00 | Caused by: redstone.xmlrpc.XmlRpcFault: <class 'cobbler.cexceptions.CX'>:'login failed (taskomatic_user)'
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at redstone.xmlrpc.XmlRpcClient.handleResponse(XmlRpcClient.java:443)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at redstone.xmlrpc.XmlRpcClient.endCall(XmlRpcClient.java:376)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at redstone.xmlrpc.XmlRpcClient.invoke(XmlRpcClient.java:165)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.manager.kickstart.cobbler.CobblerXMLRPCHelper.invokeMethod(CobblerXMLRPCHelper.java:69)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.manager.kickstart.cobbler.CobblerLoginCommand.login(CobblerLoginCommand.java:52)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       ... 9 more
INFO   | jvm 1    | 2014/12/02 05:42:00 | 2014-12-02 05:42:00,370 [DefaultQuartzScheduler_Worker-9] ERROR com.redhat.rhn.taskomatic.task.CobblerSyncTask - re-throwing exception since we havent yet.
INFO   | jvm 1    | 2014/12/02 05:42:00 | 2014-12-02 05:42:00,371 [DefaultQuartzScheduler_Worker-9] ERROR com.redhat.rhn.taskomatic.task.CobblerSyncTask - Executing a task threw an exception: com.redhat.rhn.manager.kickstart.cobbler.NoCobblerTokenException
INFO   | jvm 1    | 2014/12/02 05:42:00 | 2014-12-02 05:42:00,371 [DefaultQuartzScheduler_Worker-9] ERROR com.redhat.rhn.taskomatic.task.CobblerSyncTask - Message: We had an error trying to login.
INFO   | jvm 1    | 2014/12/02 05:42:00 | 2014-12-02 05:42:00,371 [DefaultQuartzScheduler_Worker-9] ERROR com.redhat.rhn.taskomatic.task.CobblerSyncTask - Cause: redstone.xmlrpc.XmlRpcFault: <class 'cobbler.cexceptions.CX'>:'login failed (taskomatic_user)'
INFO   | jvm 1    | 2014/12/02 05:42:00 | 2014-12-02 05:42:00,371 [DefaultQuartzScheduler_Worker-9] ERROR com.redhat.rhn.taskomatic.task.CobblerSyncTask - Stack trace:com.redhat.rhn.manager.kickstart.cobbler.NoCobblerTokenException: We had an error trying to login.
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.manager.kickstart.cobbler.CobblerLoginCommand.login(CobblerLoginCommand.java:57)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.frontend.integration.IntegrationService.authorize(IntegrationService.java:114)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.frontend.integration.IntegrationService.getAuthToken(IntegrationService.java:67)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.manager.kickstart.cobbler.CobblerCommand.<init>(CobblerCommand.java:68)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.manager.kickstart.cobbler.CobblerDistroSyncCommand.<init>(CobblerDistroSyncCommand.java:52)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.taskomatic.task.CobblerSyncTask.execute(CobblerSyncTask.java:78)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.taskomatic.task.RhnJavaJob.execute(RhnJavaJob.java:89)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.taskomatic.TaskoJob.execute(TaskoJob.java:169)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
INFO   | jvm 1    | 2014/12/02 05:42:00 | Caused by: redstone.xmlrpc.XmlRpcFault: <class 'cobbler.cexceptions.CX'>:'login failed (taskomatic_user)'
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at redstone.xmlrpc.XmlRpcClient.handleResponse(XmlRpcClient.java:443)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at redstone.xmlrpc.XmlRpcClient.endCall(XmlRpcClient.java:376)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at redstone.xmlrpc.XmlRpcClient.invoke(XmlRpcClient.java:165)
INFO   | jvm 1    | 2014/12/02 05:42:00 |       at com.redhat.rhn.manager.kickstart.cobbler.CobblerXMLRPCHelper.invokeMethod(CobblerXMLRPCHelper.j

Comment 2 Tomas Lestach 2014-12-05 15:22:40 UTC
spacewalk.git:
 be6480510e6d8511f4c3f63db664a85328bfefcc (add csrf check for the power management page)
 638f65e9a009cd404d2ee6ff3bce1716e5cfcba4 (allow removing Cobbler System Profile on  the power management page)
 4569ac912cf597273ca7a75d6e51a15ecdd45817 (accept more power status messages)

Comment 6 Clifford Perry 2015-01-13 10:25:26 UTC
With the release of Red Hat Satellite 5.7 on January 12th 2015 this bug is
being moved to a Closed Current Release state. 

The Satellite 5.7 GA Errata:
 - https://rhn.redhat.com/errata/RHSA-2015-0033.html 

Satellite 5.7 Release Notes:
 -
https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.7/html-single/Release_Notes/index.html

Satellite Customer Portal Blog announcement for release:
 - https://access.redhat.com/blogs/1169563/posts/1315743 

Cliff

NOTE: This bug has not been re-verified (moved to RELEASE_PENDING) prior to release. We assume that the bug has indeed been fixed and not regressed since we initially verified it. Please re-open in the future if needed.


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