Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3281

Add a "force" attribute to CLI add operations to allow existing resources to be transparently recreated

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 7.1.0.CR1b
    • CLI
    • None

    Description

      To allow for repeatable CLI script executions (e.g. in case of a missconfiguration like wrong IP or DB-Password provided) conditional logic is required to prevent "Duplicate resource" failures. These logic is typically contained in a wrapper script (shell script or another scripting language).

      Pseudocode:

      exists = test if the resource to be (re-)added already exists
      if (exists) remove resource
      add resource
      

      Adding a "force" or "override" attribute to the add operation (which recreates the resources transparently if necessary) would remove the need for conditional logic and additional wrapper scripts.

      A simple example, assuming that the logger to be added already exists:

      /subsystem=logging/logger=com.arjuna:add(level=TRACE, force=true)
      

      In such a case the existing logger should be removed and recreated with the new properties provided.

      Attachments

        Activity

          People

            olubyans@redhat.com Alexey Loubyansky
            r.reimann_jira Robert Reimann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: