Bug 816680 - Child availability still up with down parent after shutdown operation on AS5
Summary: Child availability still up with down parent after shutdown operation on AS5
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Agent, Operations, Plugin Container
Version: 4.4
Hardware: All
OS: All
urgent
high
Target Milestone: ---
: RHQ 4.4.0
Assignee: Jay Shaughnessy
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: jon310-sprint11, rhq44-sprint11
TreeView+ depends on / blocked
 
Reported: 2012-04-26 16:37 UTC by Jay Shaughnessy
Modified: 2013-08-31 09:55 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-08-31 09:55:30 UTC
Embargoed:


Attachments (Terms of Use)

Description Jay Shaughnessy 2012-04-26 16:37:14 UTC
A possible regression because I'm fairly sure this was working. But I
just saw the following and it didn't seem environmental. I'll have to
check it out:

1) AS5 into inventory
2) Make sure it is running and showing GREEN avail
3) Shutdown via operation 
4) After successful shutdown wait between 30-60s for
   the requested lifecycle avail check to take place
   and report to the server.

The AS should show RED as should all of its children.

But I'm seeing a change only for the AS.

Comment 1 Jay Shaughnessy 2012-04-27 22:25:40 UTC
This looks like a real regression. Working it.

Comment 2 Jay Shaughnessy 2012-04-28 00:02:14 UTC
commit 26cbde9ab726fbf1c34e7e7f03f498e2530e72a3

    - remove some confusion between use of null and UNKNOWN
    - remove some confusion around NOT UP and DOWN
    - improve some logic around deferring to a parent's DOWN status
    - protect against invalid return values from AvailabilityFacet.getAvailability() impls


Test Notes:
In addition to the reproduction steps, try a start operation as well,
which brings resources UP as opposed to DOWN.  or anything else that
you can think of.

Comment 3 Sunil Kondkar 2012-04-30 11:16:13 UTC
Verified on build#1429 (Version: 4.4.0-SNAPSHOT Build Number: e566c0a)

Verified availability with stop and start operations. The AS resource and it's child resources are DOWN after stop operation and UP after start operation.
Also verified availability by stopping AS5 instance manually with <ctl C> and then starting manually again.


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