Upgrade pip/setuptools/wheel/ NGINX not autoindexing

Bug #1825414 reported by Bram Nagtegals
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Unassigned

Bug Description

With the AIO installation it can't find the install files to upgrade pip/setuptools/wheel.
I manually browsed the url, BUT it couldn't find the needed files, however I could find the needed subdirectories.
I am using the minimal/default installation.

    "msg": "stdout: Collecting setuptools==41.0.0 (from -c /openstack/venvs/utility-19.0.0.0rc2.dev16/constraints.txt (line 49))\n\n:stderr: Exception:\nTraceback (most recent call last):\n File \"/openstack/venvs/utility-19.0.0.0rc2.dev16/lib/python2.7/site-packages/pip/basecommand.py\", line 215, in main\n status = self.run(options, args)\n File \"/openstack/venvs/utility-19.0.0.0rc2.dev16/lib/python2.7/site-packages/pip/commands/install.py\", line 353, in run\n wb.build(autobuilding=True)\n File \"/openstack/venvs/utility-19.0.0.0rc2.dev16/lib/python2.7/site-packages/pip/wheel.py\", line 749, in build\n self.requirement_set.prepare_files(self.finder)\n File \"/openstack/venvs/utility-19.0.0.0rc2.dev16/lib/python2.7/site-packages/pip/req/req_set.py\", line 380, in prepare_files\n ignore_dependencies=self.ignore_dependencies))\n File \"/openstack/venvs/utility-19.0.0.0rc2.dev16/lib/python2.7/site-packages/pip/req/req_set.py\", line 554, in _prepare_file\n require_hashes\n File \"/openstack/venvs/utility-19.0.0.0rc2.dev16/lib/python2.7/site-packages/pip/req/req_install.py\", line 278, in populate_link\n self.link = finder.find_requirement(self, upgrade)\n File \"/openstack/venvs/utility-19.0.0.0rc2.dev16/lib/python2.7/site-packages/pip/index.py\", line 465, in find_requirement\n all_candidates = self.find_all_candidates(req.name)\n File \"/openstack/venvs/utility-19.0.0.0rc2.dev16/lib/python2.7/site-packages/pip/index.py\", line 423, in find_all_candidates\n for page in self._get_pages(url_locations, project_name):\n File \"/openstack/venvs/utility-19.0.0.0rc2.dev16/lib/python2.7/site-packages/pip/index.py\", line 568, in _get_pages\n page = self._get_page(location)\n File \"/openstack/venvs/utility-19.0.0.0rc2.dev16/lib/python2.7/site-packages/pip/index.py\", line 683, in _get_page\n return HTMLPage.get_page(link, session=self.session)\n File \"/openstack/venvs/utility-19.0.0.0rc2.dev16/lib/python2.7/site-packages/pip/index.py\", line 795, in get_page\n resp.raise_for_status()\n File \"/openstack/venvs/utility-19.0.0.0rc2.dev16/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/models.py\", line 893, in raise_for_status\n raise HTTPError(http_error_msg, response=self)\nHTTPError: 404 Client Error: Not Found for url: http://172.29.236.100:8181/os-releases/19.0.0.0rc2.dev16/debian-9.8-x86_64\n",
    "retries": 6
}

Revision history for this message
Bram Nagtegals (turtleeeeeeeeeeeeeee) wrote :

After deeper research, the repo container did contain the files, however the file rights seems wrong:
root@aio1-repo-container-0ca39ca3:/var/www/repo/os-releases/19.0.0.0rc2.dev16# ls -alh
total 60K
drwxr-sr-x 3 nginx www-data 4.0K Apr 18 21:05 .
drwxr-sr-x 3 nginx www-data 4.0K Apr 18 20:30 ..
drwxr-sr-x 2 root www-data 20K Apr 18 21:05 debian-9.8-x86_64
-rw-r--r-- 1 root root 2.5K Apr 18 21:05 keystone-19.0.0.0rc2.dev16-constraints.txt
-rw-r--r-- 1 root root 1 Apr 18 21:04 keystone-19.0.0.0rc2.dev16-global-constraints.txt
-rw-r--r-- 1 root root 105 Apr 18 21:04 keystone-19.0.0.0rc2.dev16-requirements.txt
-rw-r--r-- 1 root root 241 Apr 18 21:04 keystone-19.0.0.0rc2.dev16-source-constraints.txt
-rw-r--r-- 1 root root 2.7K Apr 18 20:33 utility-19.0.0.0rc2.dev16-constraints.txt
-rw-r--r-- 1 root root 1 Apr 18 20:32 utility-19.0.0.0rc2.dev16-global-constraints.txt
-rw-r--r-- 1 root root 880 Apr 18 20:32 utility-19.0.0.0rc2.dev16-requirements.txt
-rw-r--r-- 1 root root 138 Apr 18 20:32 utility-19.0.0.0rc2.dev16-source-constraints.txt

Revision history for this message
Bram Nagtegals (turtleeeeeeeeeeeeeee) wrote :

Mmmm NGINX doesn't seem to be indexing the pages

summary: - Upgrade pip/setuptools/wheel
+ Upgrade pip/setuptools/wheel/ NGINX not autoindexing
description: updated
Revision history for this message
Dmitriy Rabotyagov (noonedeadpunk) wrote :

According to git blame, nginx indexing is enabled since repo_server role being established and was not changed since then:
https://opendev.org/openstack/openstack-ansible-repo_server/blame/commit/27078e06e8398d0a2030b77f32089277206957de/templates/openstack-slushee.vhost.j2#L22

I was also not able to reproduce the issue, so assuming that it was fixed eventually.

Feel free to bump the bug report or open a new one in case you still hit the same issue.

Changed in openstack-ansible:
status: New → Fix Committed
status: Fix Committed → Fix Released
Revision history for this message
Bram Nagtegals (turtleeeeeeeeeeeeeee) wrote :

It's been a 5 year old bug report, I have no idea anymore what was going on and propably moved on long ago :D

Revision history for this message
Dmitriy Rabotyagov (noonedeadpunk) wrote (last edit ):

Yeah, I know it's weird but we decided to clean up our bug tracker anyway.

While most of things are invalid or fixed we were able to find still potentially relevant issues that worth attention.

And we take of bugs way better today then it used to be before. Over 70% of open bugs were last updated 4 years ago...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.