Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker_compose_v2_pull: Cannot parse event from line #785

Closed
timocov opened this issue Jan 30, 2024 · 4 comments · Fixed by #786
Closed

docker_compose_v2_pull: Cannot parse event from line #785

timocov opened this issue Jan 30, 2024 · 4 comments · Fixed by #786
Labels
bug Something isn't working docker-compose-v2 Docker Compose v2

Comments

@timocov
Copy link

timocov commented Jan 30, 2024

SUMMARY

When using community.docker.docker_compose_v2_pull it prints warnings and asks to report an issue.

Similar to #778, but probably a bit different.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

community.docker.docker_compose_v2_pull

ANSIBLE VERSION
ansible [core 2.15.9]
  config file = /home/timocov/projects/home-server/ansible.cfg
  configured module search path = ['/home/timocov/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  ansible collection location = /home/timocov/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/usr/bin/python3)
  jinja version = 3.1.2
  libyaml = True
COLLECTION VERSION
$ ansible-galaxy collection list community.docker

# /home/timocov/.ansible/collections/ansible_collections
Collection       Version
---------------- -------
community.docker 3.7.0

# /usr/lib/python3/dist-packages/ansible_collections
Collection       Version
---------------- -------
community.docker 3.4.11
CONFIGURATION
CONFIG_FILE() = /home/timocov/projects/home-server/ansible.cfg
DEFAULT_HOST_LIST(/home/timocov/projects/home-server/ansible.cfg) = ['/home/timocov/projects/home-server/hosts.yml']
OS / ENVIRONMENT
STEPS TO REPRODUCE

It feels like this happens on a new, not pulled yet images. After second run these warning are gone.

EXPECTED RESULTS

No warnings.

ACTUAL RESULTS
[WARNING]: Cannot parse event from line: '4f4fb700ef54 Waiting'. Please report this at https://github.com/ansible-collections/community.docker/issues/new?assignees=&labels=&projects=&template=bug_report.md
[WARNING]: Cannot parse event from line: '238022553356 Downloading     541B/541B'. Please report this at https://github.com/ansible-collections/community.docker/issues/new?assignees=&labels=&projects=&template=bug_report.md
[WARNING]: Cannot parse event from line: '972e292d3a60 Downloading    106kB/10.43MB'. Please report this at https://github.com/ansible-collections/community.docker/issues/new?assignees=&labels=&projects=&template=bug_report.md
[WARNING]: Cannot parse event from line: 'f2543dc9f0a9 Downloading  25.36kB/2.425MB'. Please report this at https://github.com/ansible-collections/community.docker/issues/new?assignees=&labels=&projects=&template=bug_report.md
[WARNING]: Cannot parse event from line: '972e292d3a60 Downloading  5.925MB/10.43MB'. Please report this at https://github.com/ansible-collections/community.docker/issues/new?assignees=&labels=&projects=&template=bug_report.md
[WARNING]: Cannot parse event from line: 'f2543dc9f0a9 Downloading  2.219MB/2.425MB'. Please report this at https://github.com/ansible-collections/community.docker/issues/new?assignees=&labels=&projects=&template=bug_report.md
[WARNING]: Cannot parse event from line: 'f2543dc9f0a9 Extracting  32.77kB/2.425MB'. Please report this at https://github.com/ansible-collections/community.docker/issues/new?assignees=&labels=&projects=&template=bug_report.md
[WARNING]: Cannot parse event from line: '4f4fb700ef54 Downloading      32B/32B'. Please report this at https://github.com/ansible-collections/community.docker/issues/new?assignees=&labels=&projects=&template=bug_report.md
[WARNING]: Cannot parse event from line: 'f2543dc9f0a9 Extracting  2.425MB/2.425MB'. Please report this at https://github.com/ansible-collections/community.docker/issues/new?assignees=&labels=&projects=&template=bug_report.md
[WARNING]: Cannot parse event from line: '972e292d3a60 Extracting  131.1kB/10.43MB'. Please report this at https://github.com/ansible-collections/community.docker/issues/new?assignees=&labels=&projects=&template=bug_report.md
[WARNING]: Cannot parse event from line: '972e292d3a60 Extracting  10.43MB/10.43MB'. Please report this at https://github.com/ansible-collections/community.docker/issues/new?assignees=&labels=&projects=&template=bug_report.md
[WARNING]: Cannot parse event from line: '238022553356 Extracting     541B/541B'. Please report this at https://github.com/ansible-collections/community.docker/issues/new?assignees=&labels=&projects=&template=bug_report.md
[WARNING]: Cannot parse event from line: '4f4fb700ef54 Extracting      32B/32B'. Please report this at https://github.com/ansible-collections/community.docker/issues/new?assignees=&labels=&projects=&template=bug_report.md
@felixfontein felixfontein added bug Something isn't working docker-compose-v2 Docker Compose v2 labels Jan 31, 2024
@felixfontein
Copy link
Collaborator

Which version of Docker Compose are you using?

@timocov
Copy link
Author

timocov commented Jan 31, 2024

$ docker compose version
Docker Compose version 2.20.2+ds1-0ubuntu1~22.04.1

@felixfontein
Copy link
Collaborator

#786 should parse these messages correctly. Thanks for reporting this! I hope that eventually Docker Compose will have machine-readable output and we don't have to play this cat and mouse game anymore :)

@timocov
Copy link
Author

timocov commented Feb 2, 2024

@felixfontein thanks for a prompt fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docker-compose-v2 Docker Compose v2
Projects
None yet
2 participants