[jboss-jira] [JBoss JIRA] (WFCORE-994) Inconsistent :rrd(access-control) response when querying host resources

Heiko Braun (JIRA) issues at jboss.org
Wed Sep 23 11:46:00 EDT 2015


    [ https://issues.jboss.org/browse/WFCORE-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13111781#comment-13111781 ] 

Heiko Braun edited comment on WFCORE-994 at 9/23/15 11:45 AM:
--------------------------------------------------------------

On a domain with two host controllers:

{noformat}
[domain at localhost:9990 /] :read-children-names(child-type=host)
{
    "outcome" => "success",
    "result" => [
        "macbook-pro.fritz.box",
        "master"
    ]
}

{noformat}

Can someone explain the difference between a) and b)? And why is the second host not showing up?

a) 
{noformat}
[domain at localhost:9990 /] /host=*/server-config=*:read-resource-description(access-control=trim-descriptions)
{
    "outcome" => "success",
    "result" => [{
        "address" => [
            ("host" => "master"),
            ("server-config" => "*")
        ],
        "outcome" => "success",
        "result" => {
            "description" => undefined,
            " capabilities" => [{
                "name" => "org.wildfly.domain.server-config",
                "dynamic" => true
            }],
            "attributes" => undefined,
            "operations" => undefined,
            "notifications" => undefined,
            "children" => {
                "interface" => {"model-description" => undefined},
                "jvm" => {"model-description" => undefined},
                "path" => {"model-description" => undefined},
                "system-property" => {"model-description" => undefined}
            },
            "access-control" => {
                "default" => {
                    "read" => true,
                    "write" => true,
                    "attributes" => {
                        "auto-start" => {
                            "read" => true,
                            "write" => true
                        },
                        "cpu-affinity" => {
                            "read" => true,
                            "write" => true
                        },
                        "group" => {
                            "read" => true,
                            "write" => true
                        },
                        "name" => {
                            "read" => true,
                            "write" => true
                        },
                        "priority" => {
                            "read" => true,
                            "write" => true
                        },
                        "socket-binding-default-interface" => {
                            "read" => true,
                            "write" => true
                        },
                        "socket-binding-group" => {
                            "read" => true,
                            "write" => true
                        },
                        "socket-binding-port-offset" => {
                            "read" => true,
                            "write" => true
                        },
                        "status" => {
                            "read" => true,
                            "write" => true
                        },
                        "update-auto-start-with-server-status" => {
                            "read" => true,
                            "write" => true
                        }
                    }
                },
                "exceptions" => {}
            }
        }
    }]
}

{noformat}

b) 
{noformat}
[domain at localhost:9990 /] /host=*/server=*:read-resource-description(access-control=trim-descriptions)
{
    "outcome" => "success",
    "result" => [
        {
            "address" => [
                ("host" => "master"),
                ("server" => "*")
            ],
            "outcome" => "success",
            "result" => {
                "description" => undefined,
                "attributes" => undefined,
                "operations" => undefined,
                "notifications" => undefined,
                "children" => {},
                "access-control" => {
                    "default" => {
                        "read" => true,
                        "write" => true,
                        "attributes" => {
                            "launch-type" => {
                                "read" => true,
                                "write" => true
                            },
                            "server-state" => {
                                "read" => true,
                                "write" => true
                            }
                        }
                    },
                    "exceptions" => {}
                }
            }
        },
        {
            "address" => [
                ("host" => "master"),
                ("server" => "server-one")
            ],
            "outcome" => "success",
            "result" => {
                "access-control" => {
                    "default" => {
                        "read" => true,
                        "write" => true,
                        "attributes" => {}
                    },
                    "exceptions" => {}
                },
                "description" => undefined
            }
        }
    ]
}

{noformat}


was (Author: heiko.braun):
On a domain with two host controllers:

{noformat}
[domain at localhost:9990 /] :read-children-names(child-type=host)
{
    "outcome" => "success",
    "result" => [
        "macbook-pro.fritz.box",
        "master"
    ]
}

{noformat}

Can someone explain the difference between a) and b)?

a) 
{noformat}
[domain at localhost:9990 /] /host=*/server-config=*:read-resource-description(access-control=trim-descriptions)
{
    "outcome" => "success",
    "result" => [{
        "address" => [
            ("host" => "master"),
            ("server-config" => "*")
        ],
        "outcome" => "success",
        "result" => {
            "description" => undefined,
            " capabilities" => [{
                "name" => "org.wildfly.domain.server-config",
                "dynamic" => true
            }],
            "attributes" => undefined,
            "operations" => undefined,
            "notifications" => undefined,
            "children" => {
                "interface" => {"model-description" => undefined},
                "jvm" => {"model-description" => undefined},
                "path" => {"model-description" => undefined},
                "system-property" => {"model-description" => undefined}
            },
            "access-control" => {
                "default" => {
                    "read" => true,
                    "write" => true,
                    "attributes" => {
                        "auto-start" => {
                            "read" => true,
                            "write" => true
                        },
                        "cpu-affinity" => {
                            "read" => true,
                            "write" => true
                        },
                        "group" => {
                            "read" => true,
                            "write" => true
                        },
                        "name" => {
                            "read" => true,
                            "write" => true
                        },
                        "priority" => {
                            "read" => true,
                            "write" => true
                        },
                        "socket-binding-default-interface" => {
                            "read" => true,
                            "write" => true
                        },
                        "socket-binding-group" => {
                            "read" => true,
                            "write" => true
                        },
                        "socket-binding-port-offset" => {
                            "read" => true,
                            "write" => true
                        },
                        "status" => {
                            "read" => true,
                            "write" => true
                        },
                        "update-auto-start-with-server-status" => {
                            "read" => true,
                            "write" => true
                        }
                    }
                },
                "exceptions" => {}
            }
        }
    }]
}

{noformat}

b) 
{noformat}
[domain at localhost:9990 /] /host=*/server=*:read-resource-description(access-control=trim-descriptions)
{
    "outcome" => "success",
    "result" => [
        {
            "address" => [
                ("host" => "master"),
                ("server" => "*")
            ],
            "outcome" => "success",
            "result" => {
                "description" => undefined,
                "attributes" => undefined,
                "operations" => undefined,
                "notifications" => undefined,
                "children" => {},
                "access-control" => {
                    "default" => {
                        "read" => true,
                        "write" => true,
                        "attributes" => {
                            "launch-type" => {
                                "read" => true,
                                "write" => true
                            },
                            "server-state" => {
                                "read" => true,
                                "write" => true
                            }
                        }
                    },
                    "exceptions" => {}
                }
            }
        },
        {
            "address" => [
                ("host" => "master"),
                ("server" => "server-one")
            ],
            "outcome" => "success",
            "result" => {
                "access-control" => {
                    "default" => {
                        "read" => true,
                        "write" => true,
                        "attributes" => {}
                    },
                    "exceptions" => {}
                },
                "description" => undefined
            }
        }
    ]
}

{noformat}

> Inconsistent :rrd(access-control) response when querying host resources
> -----------------------------------------------------------------------
>
>                 Key: WFCORE-994
>                 URL: https://issues.jboss.org/browse/WFCORE-994
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Domain Management
>            Reporter: Heiko Braun
>            Assignee: Kabir Khan
>            Priority: Critical
>             Fix For: 2.0.0.CR5
>
>
> {noformat}
> [domain at localhost:9990 /] /host=*:read-resource-description(access-control=trim-descriptions){roles=Administrator}
> {
>     "outcome" => "success",
>     "result" => [
>         {
>             "address" => [("host" => "macbook-pro.fritz.box")],
>             "outcome" => "success",
>             "result" => {
>                 "access-control" => {
>                     "default" => {
>                         "read" => true,
>                         "write" => true,
>                         "attributes" => {}
>                     },
>                     "exceptions" => {}
>                 },
>                 "description" => undefined
>             }
>         },
>         {
>             "address" => [("host" => "master")],
>             "outcome" => "success",
>             "result" => {
>                 "description" => undefined,
>                 "attributes" => undefined,
>                 "operations" => undefined,
>                 "notifications" => undefined,
>                 "children" => {
>                     "core-service" => {"model-description" => undefined},
>                     "jvm" => {"model-description" => undefined},
>                     "socket-binding-group" => {"model-description" => undefined},
>                     "path" => {"model-description" => undefined},
>                     "server" => {"model-description" => undefined},
>                     "subsystem" => {"model-description" => undefined},
>                     "server-config" => {"model-description" => undefined},
>                     "interface" => {"model-description" => undefined},
>                     "system-property" => {"model-description" => undefined},
>                     "extension" => {"model-description" => undefined}
>                 },
>                 "access-control" => {
>                     "default" => {
>                         "read" => true,
>                         "write" => true,
>                         "attributes" => {
>                             "directory-grouping" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "domain-controller" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "domain-organization" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "host-state" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "management-major-version" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "management-micro-version" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "management-minor-version" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "master" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "name" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "namespaces" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "organization" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "product-name" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "product-version" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "release-codename" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "release-version" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "running-mode" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "schema-locations" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "server-state" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "suspend-state" => {
>                                 "read" => true,
>                                 "write" => true
>                             },
>                             "uuid" => {
>                                 "read" => true,
>                                 "write" => true
>                             }
>                         }
>                     },
>                     "exceptions" => {}
>                 }
>             }
>         }
>     ]
> }
> [domain at localhost:9990 /] 
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list