error: argument --master-port: invalid int value bug
See original GitHub issueDescribe the bug
locust: error: argument --master-port: invalid int value: ‘tcp://172.30.44.4:8089’
Expected behavior
Locust runs correctly without producing this error. As --master-port
wasn’t even supplied.
Actual behavior
When invoking locust in master mode using the following: locust -f /scripts/locust-script.py --master
the following error occurs locust: error: argument --master-port: invalid int value: 'tcp://172.30.44.4:8089'
Steps to reproduce
Start locust in the container using the command: locust -f /scripts/locust-script.py --master
Error occurs.
Environment settings
- OS: RHEL
- Python version: Python 3.6 from image registry.redhat.io/rhel8/python-36
- Locust version: Using latest.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:53 (5 by maintainers)
Top Results From Across the Web
Python argparse error: error: argument count: invalid int value
I am trying to run below code in jupyter notebook. import argparse parser = argparse.ArgumentParser ...
Read more >connect-timeout: invalid int value - Fix error: argument
In case a connection timeout was configured, the check crashed with error: argument --connect-timeout: invalid int value This has been fixed.
Read more >MPLAB XC16 C Compiler User's Guide - Mouser Electronics
3.7.4 Options for Controlling Warnings and Errors . ... int type must be able to hold at least a 16-bit value, but it...
Read more >Privilege Management for Unix and Linux Version History
"5622.1 Policy Server error getting peer name - Invalid IP protocol" when configured to unix domain sockets. 9. pbdbutil --sudo -U (unlock locked...
Read more >RHSA-2022:5069 - Security Advisory - Red Hat 고객 포털
Important: OpenShift Container Platform 4.11.0 bug fix and security ... Wrong error code provided when request contains invalid argument ...
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 FreeTop 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
Top GitHub Comments
This should not happen any more now that we have renamed the env var for master port to LOCUST_MASTER_NODE_PORT (the original issue I mean, some of the followup discussion here might still apply, but that should be a separate ticket)
ahh ok. i see what’s happening; it’s a clash between auto-populated ENV variables that come from creating “Service” objects in k8s. It only clicked now, but naming a Service “locust-master” in k8s results in an environment value that is “LOCUST_MASTER_SERVICE” (and a bunch of other values). And those auto names happen to overlap some of the names that locust looks at.
I’m not sure what the best solution is; documentation could help but that’s always fragile. Obviously short-term I can just just different names for the k8s objects.