ansible / workshops

Training Course for Ansible Automation Platform
MIT License
1.75k stars 1.14k forks source link

F5 Workshop fails during TASK [control_node : install f5 workshop dependicies] #111

Closed tonykay closed 5 years ago

tonykay commented 6 years ago

F5 workshop failure

commit 46c6080969d78934a1e262fb5cd016d21068a1bd (currently latest) ansible versions 2.7.0 (and 2.6.2)

I note the output of the failed task includes a failure involving netaddr:

TASK [control_node : install f5 workshop dependicies]

....output truncated, full output below....

Running setup.py install for bigsuds: finished with status 'done'\n Found existing installation: netaddr 0.7.5\n\n:stderr: Cannot uninstall 'netaddr'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.\n"} Is this possibly caused by the most recent commit which adds python-netaddr:

provisioner/roles/control_node/tasks/main.yml adding - python-netaddr to the list on packages to install?

TASK [control_node : install f5 workshop dependicies] *****************************************************************************************************************
fatal: [tk02-student1-ansible]: FAILED! => {"changed": false, "cmd": ["/bin/pip2", "install", "-U", "f5-sdk", "bigsuds", "netaddr"], "msg": "stdout: Collecting f5-sdk\n  Downloading https://files.pythonhosted.org/packages/85/1c/b6fb89a1ed640ff4d19899209eb4e8e236d170fe974a3a0f0ec8a29f2345/f5-sdk-3.0.20.tar.gz (153kB)\nCollecting bigsuds\n  Downloading https://files.pythonhosted.org/packages/0b/42/4884a0856c9c969910a1585915502ad25163330af75f6247d92cfa3c404e/bigsuds-1.0.6.tar.gz\nCollecting netaddr\n  Downloading https://files.pythonhosted.org/packages/ba/97/ce14451a9fd7bdb5a397abf99b24a1a6bb7a1a440b019bebd2e9a0dbec74/netaddr-0.7.19-py2.py3-none-any.whl (1.6MB)\nRequirement already satisfied, skipping upgrade: six>=1.9.0 in /usr/lib/python2.7/site-packages (from f5-sdk) (1.11.0)\nCollecting f5-icontrol-rest>=1.3.2 (from f5-sdk)\n  Downloading https://files.pythonhosted.org/packages/56/49/f457bce3900cbd41a31396f1c22b4a2aaf48dde23dd2e5577fa75ca7e174/f5-icontrol-rest-1.3.11.tar.gz\nCollecting suds-jurko>=0.6 (from bigsuds)\n  Downloading https://files.pythonhosted.org/packages/bd/6f/54fbf0999a606680d27c69b1ad12dfff62768ecb9fe48524cebda6eb4423/suds-jurko-0.6.tar.bz2 (143kB)\nRequirement already satisfied, skipping upgrade: requests<3,>=2.5.0 in /usr/lib/python2.7/site-packages (from f5-icontrol-rest>=1.3.2->f5-sdk) (2.20.0)\nRequirement already satisfied, skipping upgrade: urllib3<1.25,>=1.21.1 in /usr/lib/python2.7/site-packages (from requests<3,>=2.5.0->f5-icontrol-rest>=1.3.2->f5-sdk) (1.24)\nRequirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 in /usr/lib/python2.7/site-packages (from requests<3,>=2.5.0->f5-icontrol-rest>=1.3.2->f5-sdk) (3.0.4)\nRequirement already satisfied, skipping upgrade: idna<2.8,>=2.5 in /usr/lib/python2.7/site-packages (from requests<3,>=2.5.0->f5-icontrol-rest>=1.3.2->f5-sdk) (2.7)\nRequirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /usr/lib/python2.7/site-packages (from requests<3,>=2.5.0->f5-icontrol-rest>=1.3.2->f5-sdk) (2018.10.15)\nInstalling collected packages: f5-icontrol-rest, f5-sdk, suds-jurko, bigsuds, netaddr\n  Running setup.py install for f5-icontrol-rest: started\n    Running setup.py install for f5-icontrol-rest: finished with status 'done'\n  Running setup.py install for f5-sdk: started\n    Running setup.py install for f5-sdk: finished with status 'done'\n  Running setup.py install for suds-jurko: started\n    Running setup.py install for suds-jurko: finished with status 'done'\n  Running setup.py install for bigsuds: started\n    Running setup.py install for bigsuds: finished with status 'done'\n  Found existing installation: netaddr 0.7.5\n\n:stderr: Cannot uninstall 'netaddr'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.\n"}
fatal: [tk02-student2-ansible]: FAILED! => {"changed": false, "cmd": ["/bin/pip2", "install", "-U", "f5-sdk", "bigsuds", "netaddr"], "msg": "stdout: Collecting f5-sdk\n  Downloading https://files.pythonhosted.org/packages/85/1c/b6fb89a1ed640ff4d19899209eb4e8e236d170fe974a3a0f0ec8a29f2345/f5-sdk-3.0.20.tar.gz (153kB)\nCollecting bigsuds\n  Downloading https://files.pythonhosted.org/packages/0b/42/4884a0856c9c969910a1585915502ad25163330af75f6247d92cfa3c404e/bigsuds-1.0.6.tar.gz\nCollecting netaddr\n  Downloading https://files.pythonhosted.org/packages/ba/97/ce14451a9fd7bdb5a397abf99b24a1a6bb7a1a440b019bebd2e9a0dbec74/netaddr-0.7.19-py2.py3-none-any.whl (1.6MB)\nRequirement already satisfied, skipping upgrade: six>=1.9.0 in /usr/lib/python2.7/site-packages (from f5-sdk) (1.11.0)\nCollecting f5-icontrol-rest>=1.3.2 (from f5-sdk)\n  Downloading https://files.pythonhosted.org/packages/56/49/f457bce3900cbd41a31396f1c22b4a2aaf48dde23dd2e5577fa75ca7e174/f5-icontrol-rest-1.3.11.tar.gz\nCollecting suds-jurko>=0.6 (from bigsuds)\n  Downloading https://files.pythonhosted.org/packages/bd/6f/54fbf0999a606680d27c69b1ad12dfff62768ecb9fe48524cebda6eb4423/suds-jurko-0.6.tar.bz2 (143kB)\nRequirement already satisfied, skipping upgrade: requests<3,>=2.5.0 in /usr/lib/python2.7/site-packages (from f5-icontrol-rest>=1.3.2->f5-sdk) (2.20.0)\nRequirement already satisfied, skipping upgrade: urllib3<1.25,>=1.21.1 in /usr/lib/python2.7/site-packages (from requests<3,>=2.5.0->f5-icontrol-rest>=1.3.2->f5-sdk) (1.24)\nRequirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 in /usr/lib/python2.7/site-packages (from requests<3,>=2.5.0->f5-icontrol-rest>=1.3.2->f5-sdk) (3.0.4)\nRequirement already satisfied, skipping upgrade: idna<2.8,>=2.5 in /usr/lib/python2.7/site-packages (from requests<3,>=2.5.0->f5-icontrol-rest>=1.3.2->f5-sdk) (2.7)\nRequirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /usr/lib/python2.7/site-packages (from requests<3,>=2.5.0->f5-icontrol-rest>=1.3.2->f5-sdk) (2018.10.15)\nInstalling collected packages: f5-icontrol-rest, f5-sdk, suds-jurko, bigsuds, netaddr\n  Running setup.py install for f5-icontrol-rest: started\n    Running setup.py install for f5-icontrol-rest: finished with status 'done'\n  Running setup.py install for f5-sdk: started\n    Running setup.py install for f5-sdk: finished with status 'done'\n  Running setup.py install for suds-jurko: started\n    Running setup.py install for suds-jurko: finished with status 'done'\n  Running setup.py install for bigsuds: started\n    Running setup.py install for bigsuds: finished with status 'done'\n  Found existing installation: netaddr 0.7.5\n\n:stderr: Cannot uninstall 'netaddr'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.\n"}
IPvSean commented 5 years ago

fixed with https://github.com/network-automation/linklight/commit/476bd5ba3e7ffc92f399db4fe5c478b8b4024982

can you double check @tonykay