Closed rmarcandier13 closed 4 years ago
TASK [f5_setup : Install AS3] **************************************************************************************************************************************************************************************************************************************************
fatal: [renatoworkshop-student1-f5]: FAILED! => changed=false
cmd: rpm -qp --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}' /Users/rengonca/Documents/GitHub/workshops/provisioner/roles/f5_setup/files/f5-appsvcs-3.4.0-2.noarch.rpm
msg: '[Errno 2] No such file or directory'
rc: 2
This error is super odd to me.... can you look at your provisioner/roles/f5_setup/files
and let me know what is in there (ls provisioner/roles/f5_setup/files)
tagging @ericzji and @focrensh
i am getting errors on this same task... but mine looks just like a timeout and not related to your issue->
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: urllib2.URLError: <urlopen error timed out>
fatal: [tower-qe-f5-tower-devel-null-633-devel-student2-f5]: FAILED! => changed=false
module_stderr: |-
Traceback (most recent call last):
File "/root/.ansible/tmp/ansible-tmp-1574847320.03-83446807256459/AnsiballZ_bigip_lx_package.py", line 102, in <module>
_ansiballz_main()
File "/root/.ansible/tmp/ansible-tmp-1574847320.03-83446807256459/AnsiballZ_bigip_lx_package.py", line 94, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/root/.ansible/tmp/ansible-tmp-1574847320.03-83446807256459/AnsiballZ_bigip_lx_package.py", line 40, in invoke_module
runpy.run_module(mod_name='ansible.modules.network.f5.bigip_lx_package', init_globals=None, run_name='__main__', alter_sys=True)
File "/usr/lib64/python2.7/runpy.py", line 176, in run_module
fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code
mod_name, mod_fname, mod_loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/modules/network/f5/bigip_lx_package.py", line 480, in <module>
File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/modules/network/f5/bigip_lx_package.py", line 473, in main
File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/modules/network/f5/bigip_lx_package.py", line 209, in exec_module
File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/modules/network/f5/bigip_lx_package.py", line 222, in present
File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/modules/network/f5/bigip_lx_package.py", line 250, in create
File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/modules/network/f5/bigip_lx_package.py", line 336, in upload_to_device
File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/module_utils/network/f5/icontrol.py", line 505, in upload_file
File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/module_utils/network/f5/icontrol.py", line 238, in post
File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/module_utils/network/f5/icontrol.py", line 193, in send
File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/module_utils/urls.py", line 1288, in open
File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib64/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/usr/lib64/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/tmp/ansible_bigip_lx_package_payload_nCi67m/ansible_bigip_lx_package_payload.zip/ansible/module_utils/urls.py", line 467, in https_open
File "/usr/lib64/python2.7/urllib2.py", line 1214, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error timed out>
module_stdout: ''
msg: |-
MODULE FAILURE
See stdout/stderr for the exact error
rc: 1
Hey Sean,
Thank you for your reply.
This is the output:
~/Documents/GitHub/workshops master !5 ?1 16:29:58 ❯ ls provisioner/roles/f5_setup/files as3.sh f5-appsvcs-3.4.0-2.noarch.rpm ~/Documents/GitHub/workshops master !5 ?1 16:30:16 ❯ pwd /Users/rengonca/Documents/GitHub/workshops ~/Documents/GitHub/workshops master !5 ?1 16:30:40 ❯
you are missing a file in there the as3.sh, can you check the source here and make sure it matches https://github.com/ansible/workshops/tree/master/provisioner/roles/f5_setup/files
Hey Sean,
The file is there:
This is the output:
~/Documents/GitHub/workshops master !5 ?1 16:29:58 ❯ ls provisioner/roles/f5_setup/files as3.sh <<<<< ----- f5-appsvcs-3.4.0-2.noarch.rpm . <<<<<------ ~/Documents/GitHub/workshops master !5 ?1 16:30:16 ❯ pwd /Users/rengonca/Documents/GitHub/workshops ~/Documents/GitHub/workshops master !5 ?1 16:30:40 ❯
your error is unique to your box, it is saying the playbook can't access the file /Users/rengonca/Documents/GitHub/workshops/provisioner/roles/f5_setup/files/f5-appsvcs-3.4.0-2.noarch.rpm
can you just try re-running? are permissions setup incorrectly? Can you try another box?
no response in 8 days
SUMMARY
I cloned the repo and tried to build the Ansible F5 lab
ISSUE TYPE
EXTRA VARS FILE
for more information on the extra vars file please refer to: https://github.com/network-automation/linklight/blob/master/provisioner/README.md
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
❯ system_profiler SPSoftwareDataType Software:
PLAYBOOK SHORT OUTPUT
PLAYBOOK LONG OUTPUT