[openstack-dev] For those using Quantum with devstack

Mate Lakat mate.lakat at citrix.com
Tue May 28 15:06:28 UTC 2013


Hi,

Multiple problems here.

$ grep oslo.config quantum.egg-info/requires.txt
oslo.config

https://github.com/openstack-dev/pbr/blob/master/pbr/packaging.py#L89
is responsible for generating the line above.

And it seems, we have a bad url in pip-requires, because it does not
specify a version.

Apart from that, devstack has issues with urls as well, because it will
pass the whole url to pip with -f. That is bad, because -f expects an
url, that yields a catalog.

Suggested changes:

Fix the url in quantum:
https://review.openstack.org/30745

Fix the issue in devstack:
https://review.openstack.org/30723

Cheers,
Mate



On Tue, May 28, 2013 at 12:22:13PM +0900, Yoshihiro Kaneko wrote:
> I removed oslo.config 1.1.1 which was already installed before starting
> devstack, and ran devstack, then oslo.config 1.2.0a2 was installed.
> 
> 
> 2013/5/27 Yoshihiro Kaneko <ykaneko0929 at gmail.com>
> 
> > Hi,
> >
> > Ah... This is not a good news.
> > Change I78260871 added the URL of the tarball of oslo.config 1.2.0a2.
> > However oslo.config 1.2.0a2 was not installed.
> > After run devstack, oslo.config 1.1.1 was installed.
> > # previous report was wrong a bit.
> >
> > $ pip freeze|grep oslo
> > oslo.config==1.1.1
> >
> > $ ls -d /usr/local/lib/python2.7/dist-packages/oslo*
> > /usr/local/lib/python2.7/dist-packages/oslo
> > /usr/local/lib/python2.7/dist-packages/oslo.config-1.1.1-nspkg.pth
> > /usr/local/lib/python2.7/dist-packages/oslo.config-1.1.1.egg-info
> >
> >
> > Did this problem happen only to me?
> >
> > Thanks,
> > Kaneko
> >
> >
> >
> > 2013/5/24 Zhongyue Luo <zhongyue.nah at intel.com>
> >
> >> Glad to hear the good news.
> >>
> >> I'll be more careful in the future for changes that might break bw
> >> compatibility.
> >>
> >> Thanks.
> >>
> >> On Fri, May 24, 2013 at 1:56 PM, Yoshihiro Kaneko <ykaneko0929 at gmail.com>wrote:
> >>
> >>> Hi,
> >>>
> >>> Change I78260871(Require oslo.config 1.2.0a2) was merged, but the
> >>> problem was not solved at least in my environment.
> >>> oslo.config 1.2.0a2 does not seem to be installed.
> >>> Is this a problem of my environment?
> >>>
> >>> devstack log
> >>> ----------
> >>> 2013-05-24 04:47:00 + cd /opt/stack/quantum
> >>> 2013-05-24 04:47:00 + python setup.py egg_info
> >>> 2013-05-24 04:47:00 running egg_info
> >>> 2013-05-24 04:47:00 writing requirements to quantum.egg-info/requires.txt
> >>> 2013-05-24 04:47:00 writing quantum.egg-info/PKG-INFO
> >>> 2013-05-24 04:47:00 writing top-level names to
> >>> quantum.egg-info/top_level.txt
> >>> 2013-05-24 04:47:00 writing dependency_links to
> >>> quantum.egg-info/dependency_links.txt
> >>> 2013-05-24 04:47:00 writing entry points to
> >>> quantum.egg-info/entry_points.txt
> >>> 2013-05-24 04:47:00 reading manifest template 'MANIFEST.in'
> >>> 2013-05-24 04:47:00 warning: no files found matching 'AUTHORS'
> >>> 2013-05-24 04:47:00 warning: no files found matching 'ChangeLog'
> >>> 2013-05-24 04:47:00 warning: no files found matching
> >>> 'quantum/db/migration/alembic/script.py.mako'
> >>> 2013-05-24 04:47:00 warning: no files found matching
> >>> 'quantum/db/migration/alembic/versions/README'
> >>> 2013-05-24 04:47:00 warning: no previously-included files matching
> >>> '*.pyc' found anywhere in distribution
> >>> 2013-05-24 04:47:00 writing manifest file 'quantum.egg-info/SOURCES.txt'
> >>> 2013-05-24 04:47:00 ++ awk '/^.+/ {print "-f " $1}'
> >>> quantum.egg-info/dependency_links.txt
> >>> 2013-05-24 04:47:00 + raw_links='-f
> >>> http://tarballs.openstack.org/oslo.config/oslo.config-1.2.0a2.tar.gz#egg=oslo.config
> >>> '
> >>> 2013-05-24 04:47:00 ++ xargs
> >>> 2013-05-24 04:47:00 ++ echo -f
> >>> http://tarballs.openstack.org/oslo.config/oslo.config-1.2.0a2.tar.gz#egg=oslo.config
> >>> 2013-05-24 04:47:00 + depend_links='-f
> >>> http://tarballs.openstack.org/oslo.config/oslo.config-1.2.0a2.tar.gz#egg=oslo.config
> >>> '
> >>> 2013-05-24 04:47:00 ++ '[' '!' -r quantum.egg-info/requires.txt ']'
> >>> 2013-05-24 04:47:00 ++ echo '-r *-info/requires.txt'
> >>> 2013-05-24 04:47:00 + require_file='-r *-info/requires.txt'
> >>> 2013-05-24 04:47:00 + pip_install -r quantum.egg-info/requires.txt -f
> >>> http://tarballs.openstack.org/oslo.config/oslo.config-1.2.0a2.tar.gz#egg=oslo.config
> >>> 2013-05-24 04:47:00 + [[ False = \T\r\u\e ]]
> >>> 2013-05-24 04:47:00 + [[ -z -r quantum.egg-info/requires.txt -f
> >>> http://tarballs.openstack.org/oslo.config/oslo.config-1.2.0a2.tar.gz#egg=oslo.config]]
> >>> 2013-05-24 04:47:00 + [[ -z deb ]]
> >>> 2013-05-24 04:47:00 + [[ False = True ]]
> >>> 2013-05-24 04:47:00 + SUDO_PIP=sudo
> >>> 2013-05-24 04:47:00 ++ get_pip_command
> >>> 2013-05-24 04:47:00 ++ is_fedora
> >>> 2013-05-24 04:47:00 ++ [[ -z Ubuntu ]]
> >>> 2013-05-24 04:47:00 ++ '[' Ubuntu = Fedora ']'
> >>> 2013-05-24 04:47:00 ++ '[' Ubuntu = 'Red Hat' ']'
> >>> 2013-05-24 04:47:00 ++ '[' Ubuntu = CentOS ']'
> >>> 2013-05-24 04:47:00 ++ which pip
> >>> 2013-05-24 04:47:00 + CMD_PIP=/usr/local/bin/pip
> >>> 2013-05-24 04:47:00 + [[ -n is_fedora ]]
> >>> 2013-05-24 04:47:00 + [[ precise =~ (rhel6) ]]
> >>> 2013-05-24 04:47:00 + PIP_USE_MIRRORS=True
> >>> 2013-05-24 04:47:00 + [[ True != \F\a\l\s\e ]]
> >>> 2013-05-24 04:47:00 + PIP_MIRROR_OPT=--use-mirrors
> >>> 2013-05-24 04:47:00 + sudo PIP_DOWNLOAD_CACHE=/var/cache/pip HTTP_PROXY=
> >>> HTTPS_PROXY= NO_PROXY= /usr/local/bin/pip install --use-mirrors -r
> >>> quantum.egg-info/requires.txt -f
> >>> http://tarballs.openstack.org/oslo.config/oslo.config-1.2.0a2.tar.gz#egg=oslo.config
> >>> <snip>
> >>> 2013-05-24 04:47:00 Requirement already satisfied (use --upgrade to
> >>> upgrade): os
> >>> lo.config in /usr/local/lib/python2.7/dist-packages (from -r
> >>> quantum.egg-info/re
> >>> quires.txt (line 20))
> >>> ----------
> >>>
> >>> quantum/tools/pip-requires
> >>> ----------
> >>> d2to1>=0.2.10,<0.3
> >>> pbr>=0.5,<0.6
> >>> Paste
> >>> PasteDeploy>=1.5.0
> >>> Routes>=1.12.3
> >>> amqplib>=0.6.1
> >>> anyjson>=0.2.4
> >>> argparse
> >>> eventlet>=0.9.17
> >>> greenlet>=0.3.1
> >>> httplib2
> >>> iso8601>=0.1.4
> >>> kombu>=1.0.4
> >>> netaddr
> >>> python-quantumclient>=2.2.0,<3.0.0
> >>> pyudev
> >>> sqlalchemy>=0.7.8,<=0.7.99
> >>> WebOb>=1.2
> >>> python-keystoneclient>=0.2.0
> >>> alembic>=0.4.1
> >>>
> >>> http://tarballs.openstack.org/oslo.config/oslo.config-1.2.0a2.tar.gz#egg=oslo.config
> >>>
> >>> # Cisco plugin dependencies
> >>> python-novaclient
> >>> # End Cisco dependencies
> >>> ----------
> >>>
> >>> quantum/quantum.egg-info/requires.txt
> >>> ----------
> >>> d2to1>=0.2.10,<0.3
> >>> pbr>=0.5,<0.6
> >>> Paste
> >>> PasteDeploy>=1.5.0
> >>> Routes>=1.12.3
> >>> amqplib>=0.6.1
> >>> anyjson>=0.2.4
> >>> eventlet>=0.9.17
> >>> greenlet>=0.3.1
> >>> httplib2
> >>> iso8601>=0.1.4
> >>> kombu>=1.0.4
> >>> netaddr
> >>> python-quantumclient>=2.2.0,<3.0.0
> >>> pyudev
> >>> sqlalchemy>=0.7.8,<=0.7.99
> >>> WebOb>=1.2
> >>> python-keystoneclient>=0.2.0
> >>> alembic>=0.4.1
> >>> oslo.config
> >>> ----------
> >>>
> >>>
> >>> $ pip freeze|grep oslo.config
> >>> oslo.config==1.1.0
> >>>
> >>> $ ls -d /usr/local/lib/python2.7/dist-packages/oslo*
> >>> /usr/local/lib/python2.7/dist-packages/oslo
> >>> /usr/local/lib/python2.7/dist-packages/oslo.config-1.1.0-nspkg.pth
> >>> /usr/local/lib/python2.7/dist-packages/oslo.config-1.1.0.egg-info
> >>>
> >>>
> >>> In addition, after I installed oslo.config 1.2.0a2 manually (pip install
> >>> http...), devstack worked.
> >>>
> >>> Thanks,
> >>> Kaneko
> >>>
> >>>
> >>> _______________________________________________
> >>> OpenStack-dev mailing list
> >>> OpenStack-dev at lists.openstack.org
> >>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >>>
> >>>
> >>
> >>
> >> --
> >> *Intel SSG/SSD/STO/DCST/CIT*
> >> 880 Zixing Road, Zizhu Science Park, Minhang District, 200241, Shanghai,
> >> China
> >> +862161166500
> >>
> >> _______________________________________________
> >> OpenStack-dev mailing list
> >> OpenStack-dev at lists.openstack.org
> >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >>
> >>
> >

> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


-- 
Mate Lakat



More information about the OpenStack-dev mailing list