-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
This can be seen in the Jenkins logs for MODAK, here's the excerpt:
...
{
"hosts": {
"opera": {
"_ansible_no_log": false,
"action": "package",
"changed": false,
"invocation": {
"module_args": {
"allow_downgrade": false,
"autoremove": false,
"bugfix": false,
"conf_file": null,
"disable_excludes": null,
"disable_gpg_check": false,
"disable_plugin": [],
"disablerepo": [],
"download_dir": null,
"download_only": false,
"enable_plugin": [],
"enablerepo": [],
"exclude": [],
"install_repoquery": true,
"install_weak_deps": true,
"installroot": "/",
"list": null,
"lock_timeout": 30,
"name": [
"python-pip"
],
"releasever": null,
"security": false,
"skip_broken": false,
"state": "present",
"update_cache": false,
"update_only": false,
"use_backend": "auto",
"validate_certs": true
}
},
"msg": "",
"rc": 0,
"results": [
"python2-pip-8.1.2-14.el7.noarch providing python-pip is already installed"
]
}
},
"task": {
"duration": {
"end": "2022-01-13T14:37:41.949714Z",
"start": "2022-01-13T14:37:36.552750Z"
},
"id": "0242ac14-0002-1fc9-8667-000000000014",
"name": "geerlingguy.pip : Ensure Pip is installed."
}
},
{
"hosts": {
"opera": {
"action": "pip",
"changed": false,
"failed": true,
"msg": "One or more items failed",
"results": [
{
"_ansible_item_label": {
"name": "websocket-client",
"version": "0.59.0"
},
"_ansible_no_log": false,
"ansible_loop_var": "item",
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"chdir": null,
"editable": false,
"executable": "pip",
"extra_args": null,
"name": [
"websocket-client"
],
"requirements": null,
"state": "present",
"umask": null,
"version": "0.59.0",
"virtualenv": null,
"virtualenv_command": "virtualenv",
"virtualenv_python": null,
"virtualenv_site_packages": false
}
},
"item": {
"name": "websocket-client",
"version": "0.59.0"
},
"msg": "Unable to find any of pip to use. pip needs to be installed."
},
{
"_ansible_item_label": {
"name": "docker",
"version": "4.4.4"
},
"_ansible_no_log": false,
"ansible_loop_var": "item",
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"chdir": null,
"editable": false,
"executable": "pip",
"extra_args": null,
"name": [
"docker"
],
"requirements": null,
"state": "present",
"umask": null,
"version": "4.4.4",
"virtualenv": null,
"virtualenv_command": "virtualenv",
"virtualenv_python": null,
"virtualenv_site_packages": false
}
},
"item": {
"name": "docker",
"version": "4.4.4"
},
"msg": "Unable to find any of pip to use. pip needs to be installed."
}
]
}
},
"task": {
"duration": {
"end": "2022-01-13T14:37:44.258105Z",
"start": "2022-01-13T14:37:41.962868Z"
},
"id": "0242ac14-0002-1fc9-8667-000000000015",
"name": "geerlingguy.pip : Ensure pip_install_packages are installed."
}
}
]
}
],
"stats": {
"opera": {
"changed": 0,
"failures": 1,
"ignored": 0,
"ok": 6,
"rescued": 0,
"skipped": 2,
"unreachable": 0
}
}
}
[Worker_0] ------------
[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the
controller starting with Ansible 2.12. Current version: 3.7.3 (default, Jul 25
2020, 13:03:44) [GCC 8.3.0]. This feature will be removed from ansible-core in
version 2.12. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
[Worker_0] ============
Traceback (most recent call last):
File "/home/jenkins/workspace/MODAK_1.1.0-7/.venv/bin/opera", line 8, in <module>
sys.exit(main())
File "/home/jenkins/workspace/MODAK_1.1.0-7/.venv/lib/python3.7/site-packages/opera/cli.py", line 61, in main
return args.func(args)
File "/home/jenkins/workspace/MODAK_1.1.0-7/.venv/lib/python3.7/site-packages/opera/commands/deploy.py", line 131, in _parser_callback
delete_existing_state)
File "/home/jenkins/workspace/MODAK_1.1.0-7/.venv/lib/python3.7/site-packages/opera/commands/deploy.py", line 173, in deploy_service_template
topology.deploy(verbose_mode, workdir, num_workers)
File "/home/jenkins/workspace/MODAK_1.1.0-7/.venv/lib/python3.7/site-packages/opera/instance/topology.py", line 56, in deploy
do_deploy = executor.wait_results()
File "/home/jenkins/workspace/MODAK_1.1.0-7/.venv/lib/python3.7/site-packages/opera/threading/node_executor.py", line 33, in wait_results
errors = self.process_results(results)
File "/home/jenkins/workspace/MODAK_1.1.0-7/.venv/lib/python3.7/site-packages/opera/threading/node_executor.py", line 57, in process_results
future.result()
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 425, in result
return self.__get_result()
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/jenkins/workspace/MODAK_1.1.0-7/.venv/lib/python3.7/site-packages/opera/instance/node.py", line 128, in deploy
StandardInterfaceOperation.CREATE, verbose, workdir)
File "/home/jenkins/workspace/MODAK_1.1.0-7/.venv/lib/python3.7/site-packages/opera/instance/base.py", line 85, in run_operation
raise OperationError("Failed")
opera.error.OperationError: Failed
My guess is that the python2-pip package does not install the /usr/bin/pip -> /usr/bin/pip2 symlink anymore as a way of deprecating python2.
Metadata
Metadata
Assignees
Labels
No labels