Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operations.removeIfExists(Address) doesn't work as expected for host resources #137

Closed
zebrik opened this issue Sep 1, 2016 · 2 comments
Assignees
Milestone

Comments

@zebrik
Copy link
Contributor

zebrik commented Sep 1, 2016

User gets

org.wildfly.extras.creaper.core.online.operations.OperationException: removeIfExists failed: {"outcome" => "failed","result" => {},"failure-description" => {"host-failure-descriptions" => {"master" => "WFLYCTL0216: Management resource '[
    (\"host\" => \"master\"),
    (\"server-config\" => \"ServerOperationsSrv_6hi94faW\")
]' not found"}},"rolled-back" => true}
    at org.wildfly.extras.creaper.core.online.operations.Operations.removeIfExists(Operations.java:207)

The problem is that Operations.isResultUnknownOrNotFound(ModelNodeResult) doesn't expect failure-description starting with {"host-failure-descriptions" => {"master" =>

@zebrik zebrik changed the title Operations.removeIfExists(Address) doesn't work for host resources Operations.removeIfExists(Address) doesn't work as expected for host resources Sep 1, 2016
@Ladicek
Copy link
Contributor

Ladicek commented Sep 2, 2016

Makes sense.

@Ladicek
Copy link
Contributor

Ladicek commented Sep 2, 2016

Fixed, thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants