Bug 996889

Summary: Unable to change port offset for servers in domain
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Petr Kremensky <pkremens>
Component: Web ConsoleAssignee: Heiko Braun <hbraun>
Status: CLOSED CURRENTRELEASE QA Contact: Jakub Cechacek <jcechace>
Severity: medium Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.1.0CC: brian.stansberry, hpehl, jkudrnac
Target Milestone: ER3   
Target Release: EAP 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
When changing the port offset for servers in a domain, the action failed with the resulting message: "Internal server error". The underlying cause was that the value of `socket-binding-group` on the `server-config` resource was undefined, so the attempt to change the server configuration, no value was pre-selected in the `Socket binding` select box. Consequently the first part of composite operation failed. The root cause has now been resolved and the port offset for servers in a domain can now be set in the web management console.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-15 16:18:44 UTC Type: Bug
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: 1003533    

Description Petr Kremensky 2013-08-14 08:49:24 UTC
Changing port offset for servers in domain fails with:

Response

Internal Server Error
{
    "outcome" => "failed",
    "result" => {
        "step-1" => {
            "outcome" => "failed",
            "failure-description" => "JBAS014704: '' is an invalid value for parameter socket-binding-group. Values must have a minimum length of 1 characters",
            "rolled-back" => true
        },
        "step-2" => {"outcome" => undefined}
    },
    "failure-description" => {"domain-failure-description" => {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "JBAS014704: '' is an invalid value for parameter socket-binding-group. Values must have a minimum length of 1 characters"}}},
    "rolled-back" => true
}

Comment 1 Jakub Cechacek 2013-08-14 09:04:22 UTC
By default the value of socket-binding-group on server-config resource is undefined - Thus when you attempt to change server configuration by default no value is pre-selected in "Socked binding" select box. Consequently the first part of composite operation fails 

{
            "operation" => "write-attribute",
            "address" => [
                ("host" => "master"),
                ("server-config" => "server-three")
            ],
            "name" => "socket-binding-group",
            "value" => ""
}, 


Correct value for no-selection should be either undefined or "standard-sockets", otherwise it's going to fail.

Comment 2 Petr Kremensky 2013-09-27 09:45:15 UTC
Verified on EAP 6.2.0.ER3