Getting fatal error on `Get list of labels.` task
See original GitHub issueThe task Get list of labels. is failing after updated with ansible_fqdn on https://github.com/atosatto/ansible-dockerswarm/commit/3bb8a49297448325b8feaa9b7a899c78b2fab97e
The node hostname(staging-manager-03) on docker node ls is different from the fqdn string given on following error:
TASK [atosatto.docker-swarm : Get list of labels.] ********************************************************************************************************************************************
fatal: [165.22.48.107 -> 165.22.48.105]: FAILED! => {"changed": false, "cmd": ["docker", "inspect", "--format", "{{ range $key, $value := .Spec.Labels }}{{ printf \"%s\\n\" $key }}{{ end }}", "staging-manager-03.sgp1"], "delta": "0:00:00.412684", "end": "2020-05-14 13:10:42.573599", "msg": "non-zero return code", "rc": 1, "start": "2020-05-14 13:10:42.160915", "stderr": "Error: No such object: staging-manager-03.sgp1", "stderr_lines": ["Error: No such object: staging-manager-03.sgp1"], "stdout": "", "stdout_lines": []}
For now I am using v2.2.0 which gives no error.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:19 (1 by maintainers)
Top Results From Across the Web
Getting a "Fatal error: Index out … | Apple Developer Forums
I've debugged this through and through on Ventura and the element of the array I delete a receipt group from is deleted properly,...
Read more >Trying to build a helloworld.c program on Visual studio but ...
Executing task: gcc -g o helloworld helloworld.c < cc1: fatal error: helloworld.c: No such file or directory compilation terminated.
Read more >Database Engine events and errors - SQL Server
Consult this MSSQL error code list to find explanations for error messages for SQL Server database engine events.
Read more >Node Error FATAL ERROR: v8::FromJust Maybe value is ...
I am trying my best to get a sandboxed reproduction, but this is for a corporate project so I am unable to share...
Read more >VBA Error Handling - A Complete Guide - Excel Macro Mastery
Goes to a specific label when an error occurs. This allows us to handle the error. Err Object, When an error occurs the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I can confirm that the commit 3bb8a49 mentioned in the issue #82 is the one that breaks the labels setup, if it is reverted then the playbook finishes without issues.
Hello. I’m also having this issue. Any plans to reaply the fix? Thanks!