devstack fail with noattribute error

Bug #1440982 reported by Ethan Lynn
This bug report is a duplicate of:  Bug #1440983: devstack fail with noattribute error. Edit Remove
48
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Magnum
Incomplete
Wishlist
Unassigned
devstack
New
Undecided
Unassigned

Bug Description

I use the latest devstack (20150407), when I running ./stack.sh I got an error.

2015-04-07 05:53:50.819 | + cd /opt/stack/requirements
2015-04-07 05:53:50.820 | + python update.py /opt/stack/keystone
2015-04-07 05:53:51.115 | Traceback (most recent call last):
2015-04-07 05:53:51.116 | File "update.py", line 274, in <module>
2015-04-07 05:53:51.116 | main(options, args)
2015-04-07 05:53:51.116 | File "update.py", line 259, in main
2015-04-07 05:53:51.116 | _copy_requires(options.suffix, options.softupdate, args[0])
2015-04-07 05:53:51.116 | File "update.py", line 219, in _copy_requires
2015-04-07 05:53:51.116 | source_reqs = _parse_reqs('global-requirements.txt')
2015-04-07 05:53:51.116 | File "update.py", line 140, in _parse_reqs
2015-04-07 05:53:51.116 | reqs[_parse_pip(pip)] = pip
2015-04-07 05:53:51.116 | File "update.py", line 101, in _parse_pip
2015-04-07 05:53:51.116 | elif install_require.url:
2015-04-07 05:53:51.116 | AttributeError: 'InstallRequirement' object has no attribute 'url'

Revision history for this message
Sam Wan (sam-wan) wrote :

Seems pip 6.1.0 has changed 'url' to 'link'.
I use below workaround:
-------------------------------
sed -i 's/install_require.url/install_require.link/g' /opt/stack/new/requirements/update.py
------------------------------
And this change can overcome the 'AttributeError' error.

Revision history for this message
Viktor Serhieiev (vsergeyev) wrote :

I confirm, that fix from Sam Wan works

Revision history for this message
Andrew McDermott (frobware) wrote :

I submitted a change for this (https://review.openstack.org/171106) based on the fix described here.

Revision history for this message
Serg Melikyan (smelikyan) wrote :

This issue affects all gates in OpenStack CI

Revision history for this message
Alan Pevec (apevec) wrote :
Revision history for this message
Alan Pevec (apevec) wrote :

What is the project in Launchpad for openstack/requirements ?

Changed in magnum:
status: New → Incomplete
Revision history for this message
Steven Dake (sdake) wrote :

Is this bug already fixed?

Changed in magnum:
importance: Undecided → Wishlist
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.