Closed UdhavPawar closed 7 years ago
What role does the upawar user have on the bigip that's failing?
admin with advance shell, ssh to 10.1.254.248 directly, it works fine, and ran the same yaml file from another computer, it works fine
something related to his account on LTM, tested with different user account on the same computer it works fine.
Everything happens over http with F5 modules. Even things that look like ssh
I can provide some debug code to assist if you're still interested in the underlying problem.
Thanks Tim
That will be great.
Sent from my iPhone
On Jul 28, 2017, at 6:11 PM, Tim Rupp notifications@github.com<mailto:notifications@github.com> wrote:
I can provide some debug code to assist if you're still interested in the underlying problem.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/F5Networks/f5-ansible/issues/290#issuecomment-318793364, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AbzU5ydYCA1f60SIrJ-IYQWeBgBRM3j8ks5sSobHgaJpZM4OnEXi.
@fwissue see this method here
https://gist.github.com/caphrim007/0ba1531401f51d1d9f5b6213dedd7848
Overwrite your own copy of that method.
Then, do pip install q
Finally, run the module, watch it fail, and then post the output of cat "$TMPDIR/q"
[root@e79f354e01e2 tmp]# cat q
0.0s execute_on_device: item['command']='tmsh show sys version'
[root@e79f354e01e2 work]# ansible-playbook -i privateiphost showver.yml
PLAY [run arbitrary command on F5 devices.] *****
TASK [show version] *****
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: requests.exceptions.ConnectionError: HTTPSConnectionPool(host='~', port=443): Max retries exceeded with url: /mgmt/shared/authn/login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x28e36d0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
fatal: [~]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_pjUFRL/ansible_module_bigip_command.py\", line 375, in
PLAY RECAP **
10.1.23.252 : ok=0 changed=0 unreachable=0 failed=1
~ : ok=0 changed=0 unreachable=0 failed=1
@UdhavPawar I still maintain that something is screwy with whatever account you are using for this purpose. If you want to contact me offline at t.rupp@f5.com, I'd be happy to debug it with you further.
Agreed, it works fine with another account, this issue can be closed
ISSUE TYPE
COMPONENT NAME
bigip_command
ANSIBLE VERSION
PYTHON VERSION
BIGIP VERSION
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
I have two load balancers, (10.1.254.248, and 10.0.254.248), both load balancer running same code. same yaml file works fine on 10.0.254.248, but it does not work on 10.1.254.248
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS