Discussion:
Maintenance Windows not changing production state
Jared Ready
2013-08-06 16:40:07 UTC
Permalink
Jared Ready [http://community.zenoss.org/people/residentbiscuit] created the discussion

"Maintenance Windows not changing production state"

To view the discussion, visit: http://community.zenoss.org/message/74305#74305

--------------------------------------------------------------
As the title says, our maitenance windows in 4.2.4 are not functioning at all. The production state on devices in the window never gets changed, and the only error that I have been able to find is one zenactiod.log.

http://fpaste.org/30408/80713413/ http://fpaste.org/30408/80713413/

That error just repeats constantly every minute. This is the only issue in the logs I have been able to find. I have tried throwing pretty much all daemons into debug mode and looking for more errors, but nothing else. I'm kind of stuck.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74305#74305]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Jared Ready
2013-08-06 16:59:17 UTC
Permalink
Jared Ready [http://community.zenoss.org/people/residentbiscuit] created the discussion

"Re: Maintenance Windows not changing production state"

To view the discussion, visit: http://community.zenoss.org/message/74306#74306

--------------------------------------------------------------
If anyone would be able to test out maintenance windows on their 4.2.4 install and let me know if it works or not, or if they also see this error, that would be awesome.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74306#74306]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
jcurry
2013-08-07 17:19:53 UTC
Permalink
jcurry [http://community.zenoss.org/people/jcurry] created the discussion

"Re: Maintenance Windows not changing production state"

To view the discussion, visit: http://community.zenoss.org/message/74315#74315

--------------------------------------------------------------
Hi Jared,
I have upgraded today from the community script installed 4.2.3 to 4.2.4.  I tested a maintenance window before and after upgrade and the Production State DOES change as expected.  Zenactiond.log shows typical messages like the following (and no error messages).

2013-08-07 16:53:17,577 INFO zen.maintenance: Performing periodic maintenance
2013-08-07 16:54:17,580 INFO zen.maintenance: Performing periodic maintenance
2013-08-07 16:55:00,019 INFO zen.MaintenanceWindows: Mainenance window 1655_to_1705 starting
2013-08-07 16:55:00,046 INFO zen.MaintenanceWindows: MW 1655_to_1705 changes i-2547e769's production state from Production to Maintenance
2013-08-07 16:55:00,083 INFO zen.MaintenanceWindows: MW 1655_to_1705 changes zen42.class.example.org's production state from Production to Maintenance
2013-08-07 16:55:17,584 INFO zen.maintenance: Performing periodic maintenance
2013-08-07 16:56:17,588 INFO zen.maintenance: Performing periodic maintenance
2013-08-07 16:57:17,592 INFO zen.maintenance: Performing periodic maintenance
2013-08-07 16:58:17,597 INFO zen.maintenance: Performing periodic maintenance
2013-08-07 16:59:17,600 INFO zen.maintenance: Performing periodic maintenance
2013-08-07 17:00:17,603 INFO zen.maintenance: Performing periodic maintenance
2013-08-07 17:01:17,607 INFO zen.maintenance: Performing periodic maintenance
2013-08-07 17:02:17,610 INFO zen.maintenance: Performing periodic maintenance
2013-08-07 17:03:17,614 INFO zen.maintenance: Performing periodic maintenance
2013-08-07 17:04:17,618 INFO zen.maintenance: Performing periodic maintenance
2013-08-07 17:04:59,015 INFO zen.MaintenanceWindows: Mainenance window 1655_to_1705 ending
2013-08-07 17:04:59,022 INFO zen.MaintenanceWindows: MW 1655_to_1705 changes i-2547e769's production state from Maintenance to Production
2013-08-07 17:04:59,035 INFO zen.MaintenanceWindows: MW 1655_to_1705 changes zen42.class.example.org's production state from Maintenance to Production
2013-08-07 17:05:17,621 INFO zen.maintenance: Performing periodic maintenance
2013-08-07 17:06:17,624 INFO zen.maintenance: Performing periodic maintenance

'Fraid your issue may be specific yo your installation.

Cheers,
Jane
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74315#74315]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Jared Ready
2013-08-07 17:48:36 UTC
Permalink
Jared Ready [http://community.zenoss.org/people/residentbiscuit] created the discussion

"Re: Maintenance Windows not changing production state"

To view the discussion, visit: http://community.zenoss.org/message/74316#74316

--------------------------------------------------------------
Jane,

Thanks for testing this out. Gives me a little more info as to what I'm looking for. I'll update if I ever figure out what's going on here.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74316#74316]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Jared Ready
2013-08-13 19:34:34 UTC
Permalink
Jared Ready [http://community.zenoss.org/people/residentbiscuit] created the discussion

"Re: Maintenance Windows not changing production state"

To view the discussion, visit: http://community.zenoss.org/message/74367#74367

--------------------------------------------------------------
With the help of Hackman238, finally got this issue resolved. Was due to a couple maintenance windows being "broken" (somehow). This was the code that was used to find and fix the problem:

<code>
for mw in devices.maintenanceWindowSearch():
    try:
        mw = mw.getObject()
        mw.productionState()
    except:
        print "problem is %s going to delete it" % (mw.id)
        mwp = mw.getPrimaryParent()
        mw.unindex_object()
        mwp.removeRelation(mw)
        commit()
        pass
</code>

Courtest of Hackman238 (Shane Scott)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74367#74367]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...