rabbitmq_user throws "ValueError: need more than 1 value to unpack" in some cases #1278
Comments
FWIW, wrapping it in a try/except seems to work:
|
[module: messaging/rabbitmq_user.py] |
@dwcramer Thanks for submitting this bug report. @chrishoffman -- thanks in advance for taking a look at this bug report and for your ongoing work in maintaining this module. |
I'm seeing a very similar issue in
A warning message string is appearing where a tab-separated vhost + tracing string is expected (line 82 in the most recent commit):
Now, I have fixed my issue acutely by heeding the warning and moving my config file to the new location. This causes the unexpected warning message to not appear. However, the tendency of messages to appear in the output being consumed by these modules indicates that they need to be smarter about reading it. Like @dwcramer, I had to modify the module to figure out what was going on, because the original traceback didn't include the value being |
@chrishoffman, ping. This issue is still waiting on your response. |
This issue is likely fixed by ae7f7c2c That commit introduces a check for valid |
@chrishoffman, ping. This issue is still waiting on your response. |
@chrishoffman, ping. This issue is still waiting on your response. |
1 similar comment
@chrishoffman, ping. This issue is still waiting on your response. |
@chrishoffman, ping. This issue is still waiting on your response. |
This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible Please read through the repomerge page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo. |
This issue was migrated to ansible/ansible#29242 |
I've been getting intermittent failures of rabbitmq_user so I added a print statement around line 137 to see what's going on:
That indeed shows me what's happening (see longer listing at bottom). Note the second item in the list is:
It appears that the list_users command is getting some extra stuff back from the shell in the form of the "Last login" message. I'm not sure what the most correct fix is for this. I'll hack something in a local copy of rabbitmq_user.py for now and leave the correct fix for someone else.
The text was updated successfully, but these errors were encountered: