Bug 1312389

Summary: EAP7 - it's not possible to update network interface configuration (attribute names are different in EAP 7)
Product: [JBoss] JBoss Operations Network Reporter: Filip Brychta <fbrychta>
Component: Plugin -- JBoss EAP 7Assignee: Michael Burman <miburman>
Status: CLOSED CURRENTRELEASE QA Contact: Filip Brychta <fbrychta>
Severity: high Docs Contact:
Priority: high    
Version: JON 3.3.5CC: loleary, miburman, spinder
Target Milestone: DR01Keywords: Triaged
Target Release: One-off release   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-06 18:57: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: 1314853    

Description Filip Brychta 2016-02-26 15:33:29 UTC
Description of problem:
Update of network interface configuration fails with {WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:={Operation step-3=WFLYCTL0201: Unknown attribute 'any-ipv4-address'}}, rolled-back=true

There is no any-ipv4-address attribute in EAP7 but JON is still using it.


Version-Release number of selected component (if applicable):
JON3.3.5 with eap plugin pack update03-DR01

How reproducible:
Always

Steps to Reproduce:
1.go to eap7 resource -> Server Configuration -> Network interfaces -> Management
2. try to update configuration e.g. inet address


Actual results:
It will fail with Operation step-3=WFLYCTL0201: Unknown attribute 'any-ipv4-address'

Expected results:
Configuration is updated

Additional info:
EAP6 management interface attributes:
[standalone.23.149:10099 /] /interface=management:read-resource
{
    "outcome" => "success",
    "result" => {
        "any" => undefined,
        "any-address" => undefined,
        "any-ipv4-address" => undefined,
        "any-ipv6-address" => undefined,
        "inet-address" => expression "${jboss.bind.address.management:0.0.0.0}",
        "link-local-address" => undefined,
        "loopback" => undefined,
        "loopback-address" => undefined,
        "multicast" => undefined,
        "name" => "management",
        "nic" => undefined,
        "nic-match" => undefined,
        "not" => undefined,
        "point-to-point" => undefined,
        "public-address" => undefined,
        "site-local-address" => undefined,
        "subnet-match" => undefined,
        "up" => undefined,
        "virtual" => undefined
    }
}

EAP7 management interface attributes:
[standalone.23.83:10090 /] /interface=management:read-resource
{
    "outcome" => "success",
    "result" => {
        "any" => undefined,
        "any-address" => undefined,
        "inet-address" => expression "${jboss.bind.address.management:0.0.0.0}",
        "link-local-address" => undefined,
        "loopback" => undefined,
        "loopback-address" => undefined,
        "multicast" => undefined,
        "name" => "management",
        "nic" => undefined,
        "nic-match" => undefined,
        "not" => undefined,
        "point-to-point" => undefined,
        "public-address" => undefined,
        "site-local-address" => undefined,
        "subnet-match" => undefined,
        "up" => undefined,
        "virtual" => undefined
    }
}

Comment 1 Michael Burman 2016-03-02 13:28:11 UTC
Fixed in the eap7dr02 branch:

commit 2f0b11e407d19783f74f7beae7554051f2dc12c1
Author: Michael Burman <miburman>
Date:   Wed Mar 2 15:27:46 2016 +0200

    [BZ 1312389] Remove any-ipv4-address and any-ipv6-address as options

Comment 2 Michael Burman 2016-03-03 15:51:41 UTC
Previous commit is superseded by the master commit:

commit b57684bf616bad1444735ceced9f764b99318d72
Author: Michael Burman <miburman>
Date:   Thu Mar 3 17:21:56 2016 +0200

    [BZ 1314385] Initial implementation of wfly-10 plugin (copy of jboss-as-7 plugin)

Comment 5 Filip Brychta 2016-03-29 14:49:26 UTC
Verified on JON3.3.5 + eap plugin pack update04-DR01