Playbook fails when install_metrics = true is set in extra_vars, on the 'set the tcp port for grafana' task
Output (is long):
{"changed": false, "cmd": ["maas", "admin", "maas", "set-config", "name=promtail_port", "value=5238"], "delta": "0:00:01.369197", "end": "2022-12-06 15:22:54.386239", "msg": "non-zero return code", "rc": 2, "start": "2022-12-06 15:22:53.017042", "stderr": "usage: maas [-h] COMMAND ...\n\noptional arguments:\n -h, --help show this help message and exit\n\ndrill down:\n COMMAND\n login Log in to a remote API, and remember its description and\n credentials.\n logout Log out of a remote API, purging any stored credentials.\n list List remote APIs that have been logged-in to.\n refresh Refresh the API descriptions of all profiles.\n init Initialize controller.\n apikey Used to manage a user's API keys. Shows existing keys unless\n --generate or --delete is passed.\n configauth Configure external authentication.\n config-tls Configure MAAS Region TLS.\n createadmin Create a MAAS administrator account.\n changepassword\n Change a MAAS user's password.\n\nhttps://maas.io/\n\nargument COMMAND: invalid choice: 'admin' (choose from 'login', 'logout', 'list', 'refresh', 'init', 'apikey', 'configauth', 'config-tls', 'createadmin', 'changepassword')", "stderr_lines": ["usage: maas [-h] COMMAND ...", "", "optional arguments:", " -h, --help show this help message and exit", "", "drill down:", " COMMAND", " login Log in to a remote API, and remember its description and", " credentials.", " logout Log out of a remote API, purging any stored credentials.", " list List remote APIs that have been logged-in to.", " refresh Refresh the API descriptions of all profiles.", " init Initialize controller.", " apikey Used to manage a user's API keys. Shows existing keys unless", " --generate or --delete is passed.", " configauth Configure external authentication.", " config-tls Configure MAAS Region TLS.", " createadmin Create a MAAS administrator account.", " changepassword", " Change a MAAS user's password.", "", "https://maas.io/", "", "argument COMMAND: invalid choice: 'admin' (choose from 'login', 'logout', 'list', 'refresh', 'init', 'apikey', 'configauth', 'config-tls', 'createadmin', 'changepassword')"], "stdout": "", "stdout_lines": []}
Playbook fails when
install_metrics = true
is set in extra_vars, on the 'set the tcp port for grafana' taskOutput (is long):
{"changed": false, "cmd": ["maas", "admin", "maas", "set-config", "name=promtail_port", "value=5238"], "delta": "0:00:01.369197", "end": "2022-12-06 15:22:54.386239", "msg": "non-zero return code", "rc": 2, "start": "2022-12-06 15:22:53.017042", "stderr": "usage: maas [-h] COMMAND ...\n\noptional arguments:\n -h, --help show this help message and exit\n\ndrill down:\n COMMAND\n login Log in to a remote API, and remember its description and\n credentials.\n logout Log out of a remote API, purging any stored credentials.\n list List remote APIs that have been logged-in to.\n refresh Refresh the API descriptions of all profiles.\n init Initialize controller.\n apikey Used to manage a user's API keys. Shows existing keys unless\n --generate or --delete is passed.\n configauth Configure external authentication.\n config-tls Configure MAAS Region TLS.\n createadmin Create a MAAS administrator account.\n changepassword\n Change a MAAS user's password.\n\nhttps://maas.io/\n\nargument COMMAND: invalid choice: 'admin' (choose from 'login', 'logout', 'list', 'refresh', 'init', 'apikey', 'configauth', 'config-tls', 'createadmin', 'changepassword')", "stderr_lines": ["usage: maas [-h] COMMAND ...", "", "optional arguments:", " -h, --help show this help message and exit", "", "drill down:", " COMMAND", " login Log in to a remote API, and remember its description and", " credentials.", " logout Log out of a remote API, purging any stored credentials.", " list List remote APIs that have been logged-in to.", " refresh Refresh the API descriptions of all profiles.", " init Initialize controller.", " apikey Used to manage a user's API keys. Shows existing keys unless", " --generate or --delete is passed.", " configauth Configure external authentication.", " config-tls Configure MAAS Region TLS.", " createadmin Create a MAAS administrator account.", " changepassword", " Change a MAAS user's password.", "", "https://maas.io/", "", "argument COMMAND: invalid choice: 'admin' (choose from 'login', 'logout', 'list', 'refresh', 'init', 'apikey', 'configauth', 'config-tls', 'createadmin', 'changepassword')"], "stdout": "", "stdout_lines": []}