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

Generic error message "Invalid object relations for" when dynamically creating or linking items in maxscale with maxctrl

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 2.3.15
    • 2.4.6
    • maxctrl
    • None

    Description

      Creating services or linking objects sometimes return an error message that it's too generic: "Invalid object relations for".

      This same message is returned for very different errors:

      $  maxctrl create service "DynamicService003" readwritesplit master_accept_reads=true user=maxuser password=maxpwd --filters=MyFilter001,MyFilter002
      Error: Server at localhost:8989 responded with status code 403 to `POST services`:{
          "errors": [
              {
                  "detail": "Invalid object relations for 'DynamicService003'"
              }
          ]
      }
      
      

      The above is a syntax error, filters syntax is: --filters MyFilter001 MyFilter002

      This case below is when trying to link a monitor to a non existing server:

      $ maxctrl link monitor MariaDB-Monitor NonExistingServer
      Error: Server at localhost:8989 responded with status code 403 to `PATCH monitors/MariaDB-Monitor`:{
          "errors": [
              {
                  "detail": "Invalid object relations for 'MariaDB-Monitor'"
              }
          ]
      }
      

      Attachments

        Activity

          People

            markus makela markus makela
            claudio.nanni Claudio Nanni
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.