Bug 857057 - [AS7] cannot retrieveBackingContent for Deployment resource in server-group
Summary: [AS7] cannot retrieveBackingContent for Deployment resource in server-group
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Content, Plugins
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-13 13:32 UTC by Libor Zoubek
Modified: 2022-03-31 04:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Libor Zoubek 2012-09-13 13:32:06 UTC
Description of problem:


Version-Release number of selected component (if applicable):
JON 3.1.1.CR2 + EAP 6.0.GA

How reproducible:always


Steps to Reproduce:
1. start EAP6 in Domain mode
2. create Deployment child for main-server-group resource (upload some WAR)
3. check it's content tab
  
Actual results: content tab is empty. If you attempt to call retrieveBackingContent of deployment resource via CLI you get:

java.lang.RuntimeException: Content not available in the content repository. If you recently deployed content to this resource, then the content repository has not yet received the content or content information. The content for a resource is available only after the deployment and discovery process completes. Please try again in a few minutes.

but .. if you try in a few minutes (30minutes) content is still not available and you get same result


Expected results:you may get above exception because of Bug 830841 but after some time (a few minutes) content must be available.


Additional info:

Comment 1 Heiko W. Rupp 2012-09-25 08:12:46 UTC
Technically the content of a server group lives under DomainDeployment.
For example I have a file 'test-simple.war' deployed to server-group=main-server-group.

The domain wide deployment has the content:

[domain@localhost:9999 /] /deployment=test-simple.war:read-resource
{
    "outcome" => "success",
    "result" => {
        "content" => [{"hash" => bytes {
            0xee, 0x38, 0x29, 0x31, 0x59, 0xb2, 0x9d, 0xfc,
            0x69, 0xaa, 0x9f, 0x14, 0x0e, 0x57, 0x8a, 0x2e,
            0x6b, 0x60, 0x6e, 0xb0
        }}],
        "name" => "test-simple.war",
        "runtime-name" => "test-simple.war"
    }
}

While the server-group only references this:

[domain@localhost:9999 server-group=main-server-group] ./deployment=test-simple.war:read-resource
{
    "outcome" => "success",
    "result" => {
        "enabled" => true,
        "name" => "test-simple.war",
        "runtime-name" => "test-simple.war"
    }
}

Having said that, one can of course implement functionality that for a server group just pulls the bits from the domain deployment and returns that.

My concern here is (and I may just misunderstand things): if the RHQ-server pulls this into its database, and we have a 10 MB war file and it is deployed to 5 server-groups, will we have 50MB of blobs in the database?

The same concern applies for the actual managed servers of a server group. If the server-group has 10 servers, will we then end up with 10*10MB of identical blobs in the database?


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