horizon_developer_mode does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
When enabling horizon_
# openstack-ansible os-horizon-
--- some output ---
failed: [aio1_horizon_
msg: Task failed as maximum retries was encountered
cmd:
/usr/local/bin/pip install -U --constraint /opt/developer-
--- some more output ---
Running the command manually inside the container:
# /usr/local/bin/pip install -U --constraint /opt/developer-
Ignoring indexes: https:/
Ignoring dnspython3: markers u"python_
Ignoring ovs: markers u"python_
Collecting python-
Could not find a version that satisfies the requirement python-
No matching distribution found for python-
This is using osa master branch. I'm guessing for some reason the horizon constraints file is not being considered when package versions are resolved in repo build?
developer mode will default to the current master branch of openstack/ requirements to look for upper constraints: /github. com/openstack/ openstack- ansible- os_horizon/ blob/master/ defaults/ main.yml# L23
https:/
repo_build will use this given SHA: /github. com/openstack/ openstack- ansible/ blob/master/ playbooks/ defaults/ repo_packages/ openstack_ services. yml#L58
https:/
The python- keystoneclient upper constraint was bumped in a commit after the current OSA SHA which is why the package is missing. https:/ /review. openstack. org/#/c/ 319069/
-e pip_install_ options= "--isolated" will work, but I'm thinking that might be good to include directly in the role's fact when developer_mode is set. /github. com/openstack/ openstack- ansible- os_horizon/ blob/master/ tasks/horizon_ install. yml#L50
https:/
That would also help work around a locked down pip.conf and avoid the role dependency/variable needed to lock that file down.