[OpenStack-Infra] Correct URL to synch local pypi mirror from

Jeremy Stanley fungi at yuggoth.org
Wed May 11 20:46:10 UTC 2016


On 2016-05-11 16:31:48 -0400 (-0400), Bob Hansen wrote:
[...]
> I have a bandersnatch mirror, that mirrors from pypi.python.org
> every few hours, but during a run it can't find packages that have
> been updated in various requirements.txt files and not on
> pypi.python.org.
[...]

Update latency could be one possible issue. We update our mirrors
every 5 minutes, so it's possible you're seeing constraints updates
landing and specifying versions of things which are not yet in your
mirror.

> Recently there was a change made to the oslo.config and oslo.concurrency
> versions that are not on my mirror and are not on pypi.python.org.
[...]
> A check on pypi (and my mirror) shows the most recent version is
> oslo.config 3.4.0

I wonder why you think 3.4.0 is the latest version... at
https://pypi.python.org/simple/oslo.config/ I see both
oslo.config-3.9.0.tar.gz and oslo.config-3.9.0-py2.py3-none-any.whl
linked.

> Questions:
> 1.What is the proper URL to synch my mirror from?

We use mirror.master=https://pypi.python.org in our bandersnatch
configuration, as indicated here:
<URL: http://git.openstack.org/cgit/openstack-infra/puppet-bandersnatch/tree/templates/bandersnatch.conf.erb#n8 >

> 2.See many references to per-reqion openstack pypi mirrors, should I be
> using them? If so, what are the URLs, or where can I find them?

No, those are local mirrors in our various CI environments. We don't
recommend their use outside our upstream CI jobs/workers for a
variety of reasons (they're unofficial/non-canonical, we frequently
rename or reorganize them in opaque and disruptive ways, may have
them down for unannounced maintenance, et cetera).
-- 
Jeremy Stanley



More information about the OpenStack-Infra mailing list