No distributions at all found for oslo.i18n>=0.2.0

Bug #1395133 reported by Mark Horstman
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
diskimage-builder
Won't Fix
Medium
Unassigned

Bug Description

Host: CentOS 7.0 minimal

Trying to create an OS (icehouse) image for a centos 6.5 nova server. Running the latest diskimage-builder on CentOS 7with the heat-config element fails:

$ git clone https://git.openstack.org/openstack/diskimage-builder.git
$ git clone https://git.openstack.org/openstack/dib-utils.git
$ git clone https://git.openstack.org/openstack/tripleo-image-elements.git
$ git clone https://git.openstack.org/openstack/heat-templates.git
$ export PATH="`pwd`/diskimage-builder/bin:`pwd`/dib-utils/bin:${PATH}"

###############
# the following works
###############
$ disk-image-create --qemu-img-options compat=0.10 vm centos7 \
-o centos7-dib-basic.qcow2

###############
# the following fails
###############
$ disk-image-create --qemu-img-options compat=0.10 vm centos7 heat-config \
-o centos7-dib-heatconfig.qcow2
...
Downloading/unpacking oslo.i18n>=0.2.0 (from oslo.utils>=1.0.0->python-keystoneclient>=0.11.1->os-collect-config)
  Real name of requirement oslo.i18n is oslo.i18n
  Could not find any downloads that satisfy the requirement oslo.i18n>=0.2.0 (from oslo.utils>=1.0.0->python-keystoneclient>=0.11.1->os-collect-config)
  Some externally hosted files were ignored (use --allow-external oslo.i18n to allow).
Cleaning up...
No distributions at all found for oslo.i18n>=0.2.0 (from oslo.utils>=1.0.0->python-keystoneclient>=0.11.1->os-collect-config)
Storing debug log for failure in /root/.pip/pip.log

Any idea how to fix this? It seems like the issue is with a package that's being downloaded as part of the process. Not something I have installed already on the machine on which I'm running diskimage-builder.

Revision history for this message
Mark Horstman (mah042) wrote :
description: updated
Ben Nemec (bnemec)
Changed in diskimage-builder:
status: New → Triaged
Revision history for this message
Ben Nemec (bnemec) wrote :

I'm not able to reproduce the problem - my build on a CentOS 7 vm completed fine.

It looks like you may be behind a proxy - is it possible that it cached an old index or something that would be causing issues?

Changed in diskimage-builder:
importance: Undecided → Medium
Revision history for this message
Mark Horstman (mah042) wrote :

Yes. I am behind a proxy. But it is not a caching proxy. Did you find something in the log that showed it had downloaded the incorrect version?

I can't imagine that it matters but the CentOS7 guest on which I'm running diskimage-builder is just a generic KVM guest built using the attached kickstart file.

Revision history for this message
Mark Horstman (mah042) wrote :

I thought it might have something to do with the 'sudo su' not carrying the proxy environment variables forward, but that's not it. I've confirmed they're set in the 'sudo su' environment, but it still fails the same way. Could I be getting a bad mirror? How would I tell?

Revision history for this message
HungVelo (hungvelo) wrote :

I also got the same error message trying to create a disk image, diskimage-builder/bin/disk-image-create vm with heat-config-*.
Yes, I am behind a proxy with http_proxy and https_proxy set properly - I can run apt-get update, wget or curl to external site without any issue. What is so special about oslo.i18n that it could not find any downloads while it has no problem with other packages? Please let us know if anyone finds a fix for this. Thank you.

Revision history for this message
ALU-IMS (vicente-panizo) wrote :

I'm also seeing this error running behind a proxy. It worked fine last week so its not a proxy configuration issue.

Revision history for this message
Eshe Pickett (eshe-n-pickett) wrote :

Running with Ubuntu, I too ran into this issue and was able to get around it by doing the following in my environment:

PIP_PROXY=<your_proxy>
PIP_ALLOW_EXTERNAL=true

Revision history for this message
Eshe Pickett (eshe-n-pickett) wrote :

I ran into this again, and also set:

export PIP_DOWNLOAD_CACHE=/opt/pip/cache

This has been very consistent for me.

Revision history for this message
Gregory Haynes (greghaynes) wrote :

this bug is no longer relevant to dib

Changed in diskimage-builder:
status: Triaged → Won't Fix
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.