"Malformed output discovered from systemd list-unit-files"

Bug #1880359 reported by peace_corpse
98
This bug affects 21 people
Affects Status Importance Assigned to Milestone
ansible
Fix Released
Unknown
ansible (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

systemd list-unit-files format changed in version 245

This results in ansible failing with the error "Malformed output discovered from systemd list-unit-files: <unit.name>" when service_facts is queried

Solution is to update ansible from v2.9.6 to at least v2.9.7

To reproduce this error, run:

$ ansible localhost -m service_facts

Related patch:
https://github.com/ansible/ansible/commit/bd4fdb1ca23fb043789042074f3f9fa4fb07fbf1

Tags: focal
description: updated
description: updated
description: updated
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ansible (Ubuntu):
status: New → Confirmed
Revision history for this message
Tony Vroon (tonyvroon) wrote :

The fix version is 2.9.8, not 2.9.7
Upstream commit: https://github.com/ansible/ansible/commit/bd4fdb1ca23fb043789042074f3f9fa4fb07fbf1
Upstream PR: https://github.com/ansible/ansible/pull/68211

This is particularly bad on Focal systems managing other Focal systems, and affects DataDog playbooks in particular:
https://github.com/DataDog/ansible-datadog/issues/274

Please could you upload a 2.9.8 package to focal?

Changed in ansible:
status: Unknown → New
Revision history for this message
Orion-cora (orion-cora) wrote :

I am hitting this as well. Please fix. Thank you.

Changed in ansible:
status: New → Fix Released
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.