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

Cannot clone a profile with a remoting subsystem but no io subsystem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.1.0.CR2
    • 2.0.10.Final
    • Management, Remoting
    • None

      The remoting subsystem added a requirement for the new io subsystem's worker capability, but it has special logic such that the requirement is only added if an endpoint resource is configured. So, legacy configs (pre-io) won't have that resource, so there is no requirement.

      This breaks down in the case of the profile 'clone' op, as a placeholder resource we add for the endpoint (to allow reads of the default endpoint config data) ends up getting 'described' and added by the cloning process. So that added resource triggers an unmet requirement for the io worker:

      [domain@localhost:9990 /] /profile=default:clone(to-profile=test)
      {
          "outcome" => "failed",
          "failure-description" => {"domain-failure-description" => "WFLYCTL0369: Required capabilities are not available:
          org.wildfly.io.worker.default in context 'profile=test'; There are no known registration points which can provide this capability."},
          "rolled-back" => true
      }
      

      I'm not sure how to deal with this; some sort of marker is needed to disable 'describing' that placeholder resource.

            bstansbe@redhat.com Brian Stansberry
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: