Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-3040

StepCapabilityStatus should take dynamic capability dependencies into account

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 3.0.0.Beta28
    • Management
    • None

    Description

      Currently at stage RUNTIME we check the stepCapabilityStatus before executing the OSH associated with a capability. But this check doesn't take into account the state of the capability dependencies.
      For example if we add the undertow subsystem from scratch : the server service is not added because its capability is RELOAD_REQUIRED but when adding the listener the stepCapabilityStatus is NORMAL while it depends on a service that is in RELOAD_REQUIRED so is potentially not there (which is the case) thus the RUNTIME OSH will fail instead of being skipped.
      Reproducer:

      /extension=org.wildfly.extension.undertow:add(module="org.wildfly.extension.undertow")
      /extension=org.wildfly.extension.io:add(module="org.wildfly.extension.io")
      batch
      /subsystem=undertow:add
      /subsystem=undertow/servlet-container=default:add
      /subsystem=undertow/server=default-server:add
      /subsystem=undertow/server=default-server/host=default-host:add(alias=["localhost"])
      /subsystem=undertow/server=default-server/http-listener=default:add(socket-binding="http")
      /subsystem=undertow/buffer-cache=default:add
      /subsystem=undertow/configuration=handler:add
      /subsystem=undertow/configuration=filter:add
      /subsystem=io:add
      /subsystem=io/buffer-pool=default:add
      /subsystem=io/worker=default:add
      /socket-binding-group=standard-sockets/socket-binding=http:add(port="\${jboss.http.port:8080}")
      run-batch
      

      Attachments

        Issue Links

          Activity

            People

              bstansbe@redhat.com Brian Stansberry
              ehugonne1@redhat.com Emmanuel Hugonnet
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: