[MXS-2821] Generic error message "Invalid object relations for" when dynamically creating or linking items in maxscale with maxctrl Created: 2020-01-03  Updated: 2020-01-21  Resolved: 2020-01-21

Status: Closed
Project: MariaDB MaxScale
Component/s: maxctrl
Affects Version/s: 2.3.15
Fix Version/s: 2.4.6

Type: Bug Priority: Minor
Reporter: Claudio Nanni Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: 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'"
        }
    ]
}



 Comments   
Comment by markus makela [ 2020-01-20 ]

Changed the messages to state that the servers or filters which are being added or remove cannot be found.

Generated at Thu Feb 08 04:16:55 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.