Skip to content

Conversation

@notartom
Copy link
Contributor

Vim, bash-completion, and git-review.

Vim, bash-completion, and git-review.
@notartom notartom changed the title Pre-install useful packages [WIP] Pre-install useful packages Apr 28, 2022
@notartom
Copy link
Contributor Author

Currently does not work, but wanted to get something up. Seems the ensure-pip role doesn't actually ensure pip:

TASK [ensure-pip : Install pip from packages] **********************************
skipping: [compute1] => (item=/home/artom/src/ansible_role_devstack/submodules/zuul-jobs/roles/ensure-pip/tasks/RedHat.yaml)
skipping: [controller] => (item=/home/artom/src/ansible_role_devstack/submodules/zuul-jobs/roles/ensure-pip/tasks/RedHat.yaml)

TASK [ensure-pip : Ensure setuptools] ******************************************
skipping: [compute1]
skipping: [controller]

TASK [ensure-pip : Check for python3-venv] *************************************
skipping: [compute1]
skipping: [controller]

TASK [ensure-pip : Ensure python3-venv] ****************************************
skipping: [compute1]
skipping: [controller]

TASK [ensure-pip : Install pip from source] ************************************
skipping: [compute1]
skipping: [controller]

And then the pip install fails:

TASK [devstack_common : Install pip packages] **********************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'pkg_resources'
fatal: [compute1]: FAILED! => changed=false
  msg: Failed to import the required Python library (setuptools) on compute1's Python /usr/libexec/platform-python. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'pkg_resources'
fatal: [controller]: FAILED! => changed=false
  msg: Failed to import the required Python library (setuptools) on controller's Python /usr/libexec/platform-python. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter

@SeanMooney
Copy link
Owner

The reason its now failing is it depend on setuptools which i am now unistnalling because it comes form a non default repo.

lets refactor this into a seper install_dev_env role which we will run via a separate playbook.
we can install settuptools if needed cleanly then i belive there might be a role for that already if not its easy to do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants