repo_build cannot refer to variables in Creating OSA requirement wheels
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Won't Fix
|
Wishlist
|
Kevin Carter |
Bug Description
Background:
Gnocchi's setup.py allows storage driver choice to customize requirements.
This allows us to only install the additional libraries required for the storage drivers we care about (file, swift, ceph,...).
This should allow us to do the following in role defaults:
gnocchi_
- "gnocchi[mysql,{{ gnocchi_
- keystonemiddleware
- gnocchiclient
- python-memcached
Where {{ gnocchi_
in the user_*.yml files.
Expected:
The repo should build wheels and venvs.
Actual:
During repo_build there is incomplete interpretation occurring when this detail is extracted from the os_roles.
> root@host:
TASK: [repo_build | Create OpenStack-Ansible requirement wheels] **************
failed: [aio1_repo_
stderr: Ignoring dnspython3: markers "python_
Ignoring os-win: markers "python_
Ignoring python-
Ignoring requestsexceptions: markers "python_
Invalid requirement: 'gnocchi[mysql,{# gnocchi_
Traceback (most recent call last):
File "/usr/local/
req = pkg_resources.
File "/usr/local/
req, = parse_requireme
File "/usr/local/
DISTRO, CBRACKET, line, p, (1,), "'extra' name"
File "/usr/local/
raise RequirementPars
RequirementPars
Workaround:
Roles can install all optional libraries all the time:
gnocchi_
- "gnocchi[
- keystonemiddleware
- gnocchiclient
- python-memcached
Changed in openstack-ansible: | |
importance: | Undecided → Wishlist |
assignee: | nobody → Kevin Carter (kevin-carter) |
Changed in openstack-ansible: | |
status: | New → Triaged |
The repo_build process is no longer present and all supported releases take a different approach.