]
Yeray Borges Santana commented on WFLY-13276:
---------------------------------------------
This error only occurs in s390. In a x86 running OpenJ9 VM, we haven't seen this
error.
I haven't tested a fix yet, but It looks like the error is the following:
The {{embed-host-controller}} can return the model controller client when the host state
is still STARTING. Galleon is not waiting for RUNNING state before configuring the host
model, so that, intermittently, the configuration script is being executed with the host
controller still starting. When the host controller is starting, any operation that could
end up in a require reload won't put the server in that state and hence the error.
Elytron is trying to configure the server when is should be in a require reload, failing
in this case.
Galleon provisioning is failing intermittently on s390
------------------------------------------------------
Key: WFLY-13276
URL:
https://issues.redhat.com/browse/WFLY-13276
Project: WildFly
Issue Type: Bug
Components: Build System
Reporter: Yeray Borges Santana
Assignee: Yeray Borges Santana
Priority: Major
Attachments: provisioning-error.log
It seems to be randomly between build and dist modules, but in s390 environment the
builds fail with the following error:
{noformat}
org.jboss.galleon.ProvisioningException: Failed to generate host.xml on {
[Step 3/4] "operation" => "composite",
[Step 3/4] "address" => [],
[Step 3/4] "rollback-on-runtime-failure" => true,
[Step 3/4] "steps" => [
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"}
[Step 3/4] ],
[Step 3/4] "disallowed-providers" =>
["OracleUcrypto"],
[Step 3/4] "final-providers" => "combined-providers"
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"provider-loader" => "elytron"}
[Step 3/4] ],
[Step 3/4] "module" =>
"org.wildfly.security.elytron"
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"provider-loader" => "openssl"}
[Step 3/4] ],
[Step 3/4] "module" => "org.wildfly.openssl"
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"aggregate-providers" =>
"combined-providers"}
[Step 3/4] ],
[Step 3/4] "providers" => [
[Step 3/4] "elytron",
[Step 3/4] "openssl"
[Step 3/4] ]
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"identity-realm" => "local"}
[Step 3/4] ],
[Step 3/4] "identity" => "$local"
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"file-audit-log" => "local-audit"}
[Step 3/4] ],
[Step 3/4] "format" => "JSON",
[Step 3/4] "path" => "audit.log",
[Step 3/4] "relative-to" => "jboss.domain.log.dir"
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"constant-realm-mapper" => "local"}
[Step 3/4] ],
[Step 3/4] "realm-name" => "local"
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"provider-http-server-mechanism-factory" =>
"global"}
[Step 3/4] ]
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"simple-permission-mapper" =>
"default-permission-mapper"}
[Step 3/4] ],
[Step 3/4] "mapping-mode" => "first",
[Step 3/4] "permission-mappings" => [
[Step 3/4] {
[Step 3/4] "principals" => ["anonymous"],
[Step 3/4] "permission-sets" =>
[{"permission-set" => "default-permissions"}]
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "match-all" => "true",
[Step 3/4] "permission-sets" => [
[Step 3/4] {"permission-set" =>
"login-permission"},
[Step 3/4] {"permission-set" =>
"default-permissions"}
[Step 3/4] ]
[Step 3/4] }
[Step 3/4] ]
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"simple-role-decoder" =>
"groups-to-roles"}
[Step 3/4] ],
[Step 3/4] "attribute" => "groups"
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"provider-sasl-server-factory" =>
"global"}
[Step 3/4] ]
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"mechanism-provider-filtering-sasl-server-factory"
=> "elytron"}
[Step 3/4] ],
[Step 3/4] "filters" => [{"provider-name" =>
"WildFlyElytron"}],
[Step 3/4] "sasl-server-factory" => "global"
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"configurable-sasl-server-factory" =>
"configured"}
[Step 3/4] ],
[Step 3/4] "properties" =>
{"wildfly.sasl.local-user.default-user" => "$local"},
[Step 3/4] "sasl-server-factory" => "elytron"
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"constant-role-mapper" =>
"super-user-mapper"}
[Step 3/4] ],
[Step 3/4] "roles" => ["SuperUser"]
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"permission-set" =>
"login-permission"}
[Step 3/4] ],
[Step 3/4] "permissions" => [{"class-name" =>
"org.wildfly.security.auth.permission.LoginPermission"}]
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"permission-set" =>
"default-permissions"}
[Step 3/4] ],
[Step 3/4] "permissions" => []
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"properties-realm" =>
"ManagementRealm"}
[Step 3/4] ],
[Step 3/4] "users-properties" => {
[Step 3/4] "path" => "mgmt-users.properties",
[Step 3/4] "relative-to" =>
"jboss.domain.config.dir",
[Step 3/4] "digest-realm-name" =>
"ManagementRealm"
[Step 3/4] }
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "write-attribute",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"properties-realm" =>
"ManagementRealm"}
[Step 3/4] ],
[Step 3/4] "name" => "groups-properties",
[Step 3/4] "value" => {
[Step 3/4] "path" => "mgmt-groups.properties",
[Step 3/4] "relative-to" =>
"jboss.domain.config.dir"
[Step 3/4] }
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"security-domain" =>
"ManagementDomain"}
[Step 3/4] ],
[Step 3/4] "default-realm" => "ManagementRealm",
[Step 3/4] "permission-mapper" =>
"default-permission-mapper",
[Step 3/4] "realms" => [
[Step 3/4] {
[Step 3/4] "realm" => "ManagementRealm",
[Step 3/4] "role-decoder" =>
"groups-to-roles"
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "realm" => "local",
[Step 3/4] "role-mapper" =>
"super-user-mapper"
[Step 3/4] }
[Step 3/4] ]
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"sasl-authentication-factory" =>
"management-sasl-authentication"}
[Step 3/4] ],
[Step 3/4] "mechanism-configurations" => [
[Step 3/4] {
[Step 3/4] "mechanism-name" =>
"JBOSS-LOCAL-USER",
[Step 3/4] "realm-mapper" => "local"
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "mechanism-name" => "DIGEST-MD5",
[Step 3/4] "mechanism-realm-configurations" =>
[{"realm-name" => "ManagementRealm"}]
[Step 3/4] }
[Step 3/4] ],
[Step 3/4] "sasl-server-factory" => "configured",
[Step 3/4] "security-domain" => "ManagementDomain"
[Step 3/4] },
[Step 3/4] {
[Step 3/4] "operation" => "add",
[Step 3/4] "address" => [
[Step 3/4] {"host" => "master"},
[Step 3/4] {"subsystem" => "elytron"},
[Step 3/4] {"http-authentication-factory" =>
"management-http-authentication"}
[Step 3/4] ],
[Step 3/4] "http-server-mechanism-factory" =>
"global",
[Step 3/4] "mechanism-configurations" => [{
[Step 3/4] "mechanism-name" => "BASIC",
[Step 3/4] "mechanism-realm-configurations" =>
[{"realm-name" => "Management Realm"}]
[Step 3/4] }],
[Step 3/4] "security-domain" => "ManagementDomain"
[Step 3/4] }
[Step 3/4] ]
[Step 3/4] }: {"WFLYCTL0062: Composite operation failed and was rolled back. Steps
that failed:" => {"Operation step-2" => {
[Step 3/4] "WFLYCTL0412: Required services that are not installed:" =>
["elytron.security-properties"],
[Step 3/4] "WFLYCTL0180: Services with missing/unavailable dependencies"
=> ["org.wildfly.security.providers.elytron is missing
[elytron.security-properties]"]
[Step 3/4] }}}
[Step 3/4] at
org.wildfly.galleon.plugin.config.generator.WfConfigGenerator.doHandle(WfConfigGenerator.java:356)
[Step 3/4] at
org.wildfly.galleon.plugin.config.generator.WfConfigGenerator.endBatch(WfConfigGenerator.java:272)
[Step 3/4] at
org.wildfly.galleon.plugin.config.generator.WfConfigGenerator.executeScript(WfConfigGenerator.java:494)
[Step 3/4] at
org.wildfly.galleon.plugin.config.generator.WfConfigGenerator.forkedForEmbedded(WfConfigGenerator.java:471)
[Step 3/4] at
org.wildfly.galleon.plugin.server.ForkedEmbeddedUtil.main(ForkedEmbeddedUtil.java:208)
[Step 3/4] [INFO] Overall Galleon provisioning took 27.115 seconds
{noformat}