Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-5128

Failed patching passive parameter value

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 24.02.2
    • 24.02.3
    • Core
    • None

    Description

      I'm trying to change the passive parameter runtime value using maxctrl / curl. It seems that there is an issue regarding the default value / configured value for admin_readwrite_hosts / admin_readonly_hosts in conjunction with skip_name_resolve set to true.

      As per the documentation, the default values for the above admin_ parameters should be '%'. While checking the running configuration, it looks like the default value is set to '*'

      $ maxctrl --pretty=true api get maxscale data[].parameters | grep "admin_read"
          "admin_readonly_hosts": "*",
          "admin_readwrite_hosts": "*",
      

      Any attempt to change the 'passive' parameter value will result in an HTTP 400 response code.

      $ maxctrl --pretty=true api patch maxscale '{"data":{"parameters":{"passive":true}}}'
      Error: Server at https://127.0.0.1:8989 responded with 400 Bad Request to `PATCH maxscale`
      {
          "errors": [
              {
                  "detail": "'skip_name_resolve' cannot be enabled if 'admin_readwrite_hosts' includes hostname patterns. Use only numeric addresses in 'admin_readwrite_hosts'"
              },
              {
                  "detail": "'skip_name_resolve' cannot be enabled if 'admin_readonly_hosts' includes hostname patterns. Use only numeric addresses in 'admin_readonly_hosts'"
              }
          ]
      }
      

      I've tried to explictly set the admin_read* parameters values to '%' in the configuration file with no success.

      $ grep admin_read /etc/maxscale.cnf
      admin_readwrite_hosts       = %
      admin_readonly_hosts        = %
      

      Attachments

        Activity

          People

            markus makela markus makela
            santoniu Antoniu-George Savu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.