Debian MariaDB post config fails - Invalid callback for stdout specified: json

Bug #2052293 reported by Michal Nasiadka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
New
Undecided
Unassigned

Bug Description

https://zuul.opendev.org/t/openstack/builds?job_name=kolla-ansible-debian&project=openstack/kolla-ansible

"msg": "Can not parse the inner module output: b'ERROR! Invalid callback for stdout specified: json\\n'"

TASK [mariadb : Creating shard root mysql user] ********************************
task path: /home/zuul/kolla-ansible-venv/share/kolla-ansible/ansible/roles/mariadb/tasks/register.yml:2
Friday 02 February 2024 10:27:32 +0000 (0:00:00.132) 0:02:36.261 *******
Using module file /home/zuul/kolla-ansible-venv/share/kolla-ansible/ansible/library/kolla_toolbox.py
Pipelining is enabled.
<172.99.67.79> ESTABLISH SSH CONNECTION FOR USER: None
<172.99.67.79> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=300 -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o 'ControlPath="/home/zuul/.ansible/cp/115ab8490d"' 172.99.67.79 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-dxdlnwhgypbszlvsjnaoacbpyquhnzkb ; /usr/bin/python3'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<172.99.67.79> (1, b'\n{"failed": true, "msg": "Can not parse the inner module output: b\'ERROR! Invalid callback for stdout specified: json\\\\n\'", "exception": " File \\"/tmp/ansible_kolla_toolbox_payload_2kfz3qcw/ansible_kolla_toolbox_payload.zip/ansible/modules/kolla_toolbox.py\\", line 187, in use_docker\\n File \\"/usr/lib/python3.11/json/__init__.py\\", line 346, in loads\\n return _default_decoder.decode(s)\\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\\n File \\"/usr/lib/python3.11/json/decoder.py\\", line 337, in decode\\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n File \\"/usr/lib/python3.11/json/decoder.py\\", line 355, in raw_decode\\n raise JSONDecodeError(\\"Expecting value\\", s, err.value) from None\\n", "invocation": {"module_args": {"container_engine": "docker", "module_name": "mysql_user", "module_args": "{\'login_host\': \'192.0.2.1\', \'login_port\': \'3306\', \'login_user\': \'root\', \'login_password\': \'mtH97KhASbMLUuFnHw8Es9nzztQWH4y1GOghJSP1\', \'name\': \'root\', \'password\': \'mtH97KhASbMLUuFnHw8Es9nzztQWH4y1GOghJSP1\', \'host\': \'%\', \'priv\': \'*.*:ALL,GRANT\'}", "api_version": "auto", "timeout": 180, "module_extra_vars": null, "user": null}}}\n', b'/tmp/ansible_kolla_toolbox_payload_2kfz3qcw/ansible_kolla_toolbox_payload.zip/ansible/modules/kolla_toolbox.py:120: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.\n/tmp/ansible_kolla_toolbox_payload_2kfz3qcw/ansible_kolla_toolbox_payload.zip/ansible/modules/kolla_toolbox.py:151: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.\n/tmp/ansible_kolla_toolbox_payload_2kfz3qcw/ansible_kolla_toolbox_payload.zip/ansible/modules/kolla_toolbox.py:152: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.\n')
<172.99.67.79> Failed to connect to the host via ssh: /tmp/ansible_kolla_toolbox_payload_2kfz3qcw/ansible_kolla_toolbox_payload.zip/ansible/modules/kolla_toolbox.py:120: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
/tmp/ansible_kolla_toolbox_payload_2kfz3qcw/ansible_kolla_toolbox_payload.zip/ansible/modules/kolla_toolbox.py:151: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
/tmp/ansible_kolla_toolbox_payload_2kfz3qcw/ansible_kolla_toolbox_payload.zip/ansible/modules/kolla_toolbox.py:152: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
The full traceback is:
  File "/tmp/ansible_kolla_toolbox_payload_2kfz3qcw/ansible_kolla_toolbox_payload.zip/ansible/modules/kolla_toolbox.py", line 187, in use_docker
  File "/usr/lib/python3.11/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
fatal: [primary]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "api_version": "auto",
            "container_engine": "docker",
            "module_args": "{'login_host': '192.0.2.1', 'login_port': '3306', 'login_user': 'root', 'login_password': 'mtH97KhASbMLUuFnHw8Es9nzztQWH4y1GOghJSP1', 'name': 'root', 'password': 'mtH97KhASbMLUuFnHw8Es9nzztQWH4y1GOghJSP1', 'host': '%', 'priv': '*.*:ALL,GRANT'}",
            "module_extra_vars": null,
            "module_name": "mysql_user",
            "timeout": 180,
            "user": null
        }
    },
    "msg": "Can not parse the inner module output: b'ERROR! Invalid callback for stdout specified: json\\n'"
}

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to kolla-ansible (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/907528

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla-ansible (master)

Change abandoned by "Michal Nasiadka <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/907528
Reason: not needed

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 16.4.0

This issue was fixed in the openstack/kolla 16.4.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 17.3.0

This issue was fixed in the openstack/kolla 17.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 15.6.0

This issue was fixed in the openstack/kolla 15.6.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.