Bug 608487
Summary: | agent startup without --clean fails to sync with server | ||
---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Joseph Marques <jmarques> |
Component: | Plugin Container | Assignee: | Joseph Marques <jmarques> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Sudhir D <sdharane> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 3.0.0 | CC: | cwelton |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 2.4 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-08-12 16:47:28 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 593121 |
Description
Joseph Marques
2010-06-27 19:34:46 UTC
commit 44e97f20fd026fc660d38d819497cb843a353384 Author: Joseph Marques <joseph> Date: Sun Jun 27 18:04:02 2010 -0400 BZ-608487: fix sync logic by always sending an InventoryReport to the server ---- as mentioned above, this is expected to cause a regression in https://bugzilla.redhat.com/show_bug.cgi?id=545595 This bug has the exact same reproduction procedures as were detailed by Ian Springer here: https://bugzilla.redhat.com/show_bug.cgi?id=535283#c3 This bug was fixed in simultaneous conjunction with performance improvements to this subsystem, detailed here: https://bugzilla.redhat.com/show_bug.cgi?id=608057 Thus, verifying either of these bugs actually verifies both of them. Verified per the steps in aforementioned bug <schedule> <schedule-id>10171</schedule-id> <name>CpuPerc.idle</name> <enabled>false</enabled> <interval>1200000</interval> </schedule> versus <schedule> <schedule-id>10171</schedule-id> <name>CpuPerc.idle</name> <enabled>true</enabled> <interval>600000</interval> </schedule> Ok, So I verified this with jon-server-2.4.0.GA_QA Build# 43 with below steps mentioned in bug 535283 1) Inventory only the platform. 2) execute "inventory --xml --export=export-1.xml" on the agent command line 3) shut down the agent 4) Go to Administration>System Configuration>Templates 5) Edit Metric Templates for CPU 6) check "Update schedules for existing resources", set collection interval to 10 minutes for "Idle" metrics (this will enable that metric as well) 7) Check that this metric got updated for the individual CPU resources in their Monitor>Schedule sub tabs 8) start up the agent 9) wait 30s (shouldn't be necessary) 10) execute "inventory --xml --export=export-2.xml" on the agent commandline 11) Locate the <schedule> element with name CpuPerc.idle for the same CPU resource in both export-1.xml and export-2.xml The results are as expected below for both CPU-0 and CPU-1, The schedule in export-1.xml is disabled and the interval is 1200000. <schedule> <schedule-id>12744</schedule-id> <name>CpuPerc.idle</name> <enabled>false</enabled> <interval>1200000</interval> </schedule> The schedule in export-2.xml is enabled and interval is 600000. <schedule> <schedule-id>12743</schedule-id> <name>CpuPerc.idle</name> <enabled>true</enabled> <interval>600000</interval> </schedule> Marking this bug as verified. [10:40] < joseph> cswiii: sudhir_lurk: for https://bugzilla.redhat.com/show_bug.cgi?id=608487 make sure you test it at the resource-level, group-level, auto-group-level, and metric template level. [10:40] < joseph> you should repeat all test cases for the disable button, enable button, and interval set of buttons [10:40] < joseph> that will test all code-paths [10:41] <@cswiii> the what-what? [10:41] < joseph> then you should do that while the agent is online, to see that the updates make it to the agent in steady-state, as well as test when the agent is offline (and then when it starts back up, the schedules get sync'ed) [10:42] <@cswiii> joseph: i don't know what you mean by cases for the disable button, enable button and interval set of buttons. [10:43] < joseph> ccrouch: https://bugzilla.redhat.com/show_bug.cgi?id=609158 [10:43] < joseph> cswiii: when you look at monitor>schedules, you have different controls at the botom of the table [10:43] < joseph> even though they all do similar things, each of them execute different code Reopening for further examination. I have verified the Enable and Disable functionality at the resource level and I could see that the table was getting updated with values for the Enabled ones. Also, when disabled these were no longer available. Verified at the group level, by creating group and adding the resources to same and then enabling the metric collection for group resources and monitoring them and then changing the interval and see that it is updated correctly and then disable the same. Tested against dynagroups. I think we can mark this bug as verified at this point. Mass-closure of verified bugs against JON. |