[WF29] CLI add tcpping protocol changed (add-protocol invisible?)

133 views
Skip to first unread message

onetop.han

unread,
Sep 14, 2023, 12:38:54 PM9/14/23
to WildFly
hello.

I have been setting up the TCPPING cluster with CLI command until WF26 version. However, the command is not working in the WF29 version. but, If the TCPPING settings were tested by copying the xml tag, it seems to work well.


I looked it up a little bit, and I think something has changed since the WF27 version (
I don't know exactly)

Can you give me a guide on how to set it up through CLI command as below?

command result
[disconnected /] batch
[disconnected / #] embed-host-controller --host-config=host-primary.xml
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.wildfly.extension.elytron.SSLDefinitions (jar:file:/SW/wildfly2901/core/modules/system/layers/base/org/wildfly/extension/elytron/main/wildfly-elytron-integration-21.1.1.Final.jar!/) to method com.sun.net.ssl.internal.ssl.Provider.isFIPS()
WARNING: Please consider reporting this to the maintainers of org.wildfly.extension.elytron.SSLDefinitions
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[domain@embedded / #] /profile=ha/subsystem="jgroups"/stack="tcpping":add()
[domain@embedded / #] /profile=ha/subsystem="jgroups"/stack="tcpping":add-protocol(type="TCPPING")
[domain@embedded / #] /profile=ha/subsystem="jgroups"/stack="tcpping"/transport="TRANSPORT":add(socket-binding="jgroups-tcp",type="TCP")
")omain@embedded / #] /profile=ha/subsystem="jgroups"/stack="tcpping"/protocol="TCPPING"/property="initial_hosts":add(value="172.21.70.2[7600],172.21.70.2[7700]
[domain@embedded / #] /profile=ha/subsystem="jgroups"/stack="tcpping"/protocol="TCPPING"/property="port_range":add(value="10")
[domain@embedded / #] /profile=ha/subsystem="jgroups"/stack="tcpping":add-protocol(type="MERGE2")
[domain@embedded / #] /profile=ha/subsystem="jgroups"/stack="tcpping":add-protocol(socket-binding="jgroups-tcp-fd",type="FD_SOCK")
[domain@embedded / #] /profile=ha/subsystem="jgroups"/stack="tcpping":add-protocol(type="FD")
[domain@embedded / #] /profile=ha/subsystem="jgroups"/stack="tcpping":add-protocol(type="VERIFY_SUSPECT")
[domain@embedded / #] /profile=ha/subsystem="jgroups"/stack="tcpping":add-protocol(type="BARRIER")
[domain@embedded / #] /profile=ha/subsystem="jgroups"/stack="tcpping":add-protocol(type="pbcast.NAKACK")
[domain@embedded / #] /profile=ha/subsystem="jgroups"/stack="tcpping":add-protocol(type="UNICAST2")
[domain@embedded / #] /profile=ha/subsystem="jgroups"/stack="tcpping":add-protocol(type="pbcast.STABLE")
[domain@embedded / #] /profile=ha/subsystem="jgroups"/stack="tcpping":add-protocol(type="pbcast.GMS")
[domain@embedded / #] /profile=ha/subsystem="jgroups"/stack="tcpping":add-protocol(type="UFC")
[domain@embedded / #] /profile=ha/subsystem="jgroups"/stack="tcpping":add-protocol(type="MFC")
[domain@embedded / #] /profile=ha/subsystem="jgroups"/stack="tcpping":add-protocol(type="FRAG2")
[domain@embedded / #] /profile=ha/subsystem="jgroups"/stack="tcpping":add-protocol(type="RSVP")
[domain@embedded / #] /profile=ha/subsystem=jgroups/channel=ee:write-attribute(name=stack,value=tcpping)
[domain@embedded / #] run-batch
org.jboss.as.cli.CommandFormatException: Failed to get the list of the operation properties: "WFLYCTL0162: There is no operation add-protocol registered at address [
    ("profile" => "ha"),
    ("subsystem" => "jgroups"),
    ("stack" => "tcpping")
]": Failed to get the list of the operation properties: "WFLYCTL0162: There is no operation add-protocol registered at address [
    ("profile" => "ha"),
    ("subsystem" => "jgroups"),
    ("stack" => "tcpping")
]"

[domain@embedded /] quit


Tap Results
[domain@embedded /] /profile=ha/subsystem="jgroups"/stack="tcpping":
add                         list-remove                 map-remove                  read-attribute-group-names  read-operation-description  remove
list-add                    map-clear                   query                       read-children-names         read-operation-names        undefine-attribute
list-clear                  map-get                     read-attribute              read-children-resources     read-resource               whoami
list-get                    map-put                     read-attribute-group        read-children-types         read-resource-description   write-attribute



thank you

onetop.han

unread,
Sep 15, 2023, 9:40:38 AM9/15/23
to WildFly

I'm sorry. I solved it.

I've confirmed that you can do it in a different way.

But I still wonder why the grammar that was available in the WF26 version became impossible.

Thank you.
2023년 9월 15일 금요일 오전 1시 38분 54초 UTC+9에 onetop.han님이 작성:

Paul Ferraro

unread,
Sep 16, 2023, 6:00:04 PM9/16/23
to WildFly
The add-protocol method of the /subsystem=jgroups/stack=* resource was deprecated in WildFly 9.0 [1] on 5 Dec 2014.
For WildFly 27 we removed management operations from most subsystem that were deprecated as of WildFly 23, which would have included this operation.
Your server log should have warned you of the deprecation to give you ample time to update your CLI scripts.

Reply all
Reply to author
Forward
0 new messages