[Migration operation] :migrate operation should return outcome
success when migrating expressions jgroup stack in discovery group
---------------------------------------------------------------------------------------------------------------------------------
Key: WFLY-5678
URL:
https://issues.jboss.org/browse/WFLY-5678
Project: WildFly
Issue Type: Bug
Components: JMS
Affects Versions: 10.0.0.CR4
Reporter: Jeff Mesnil
Assignee: Jeff Mesnil
Priority: Blocker
Fix For: 10.0.0.CR5
If configuration for jgroups stack in discovery group contains expression:
{code}
<discovery-group name="groupU">
<jgroups-stack>${jgroups.stack:udp}</jgroups-stack>
<jgroups-channel>${jgroups.channel:udp}</jgroups-channel>
</discovery-group>
{code}
then :migrate operation has {{outcome => failed}}:
{code}
[standalone@127.0.0.1:9999 /] /subsystem=messaging:migrate
{
"outcome" => "failed",
"result" => {
"migration-warnings" => [],
"migration-error" => {
"operation" => {
"jgroups-stack" => expression
"${jgroups.stack:udp}",
"jgroups-channel" => expression
"${jgroups.channel:udp}",
"operation" => "add",
"address" => [
("subsystem" => "messaging-activemq"),
("server" => "default"),
("discovery-group" => "groupU")
],
"operation-headers" => {
"caller-type" => "user",
"access-mechanism" => "NATIVE"
}
},
"result" => {
"outcome" => "failed",
"failure-description" => "WFLYCTL0264: jgroups-stack
may not be ModelType.EXPRESSION",
"rolled-back" => true
}
}
},
"failure-description" => "WFLYMSG0081: Migration failed, see
results for more details.",
"rolled-back" => true
}
{code}
Based on my understanding there should be outcome success with warning.