pkg_resources.DistributionNotFound: The 'oslo.policy<0.4.0,>=0.3.1' distribution was not found and is required by keystone

Bug #1468356 reported by Aneesh
This bug report is a duplicate of a bug on an inactive project. Edit Remove
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
New
High
Unassigned

Bug Description

Installing murano using devstack but it's fails with below error

both using stable/kilo

 | + screen_rc dstat 'dstat -tcmndrylpg --top-cpu-adv --top-io-adv'
2015-06-23 23:07:45.324 | + SCREEN_NAME=stack
2015-06-23 23:07:45.324 | + SCREENRC=/home/vagrant/devstack/stack-screenrc
2015-06-23 23:07:45.324 | + [[ ! -e /home/vagrant/devstack/stack-screenrc ]]
2015-06-23 23:07:45.324 | + echo 'sessionname stack'
2015-06-23 23:07:45.325 | + echo 'hardstatus alwayslastline '\''%{= .} %-Lw%{= .}%> %n%f %t*%{= .}%+Lw%< %-=%{g}(%{d}%H/%l%{g})'\'''
2015-06-23 23:07:45.325 | + echo 'setenv PROMPT_COMMAND /bin/true'
2015-06-23 23:07:45.326 | + echo 'screen -t shell bash'
2015-06-23 23:07:45.326 | + grep dstat /home/vagrant/devstack/stack-screenrc
2015-06-23 23:07:45.329 | + screen -S stack -p dstat -X stuff 'dstat -tcmndrylpg --top-cpu-adv --top-io-adv & echo $! >/opt/stack/status/stack/dstat.pid; f ' || echo "dstat failed to start" | tee "/opt/stack/status/stack/dstat.failure"
2015-06-23 23:07:45.340 | + run_process peakmem_tracker /home/vagrant/devstack/tools/peakmem_tracker.sh
2015-06-23 23:07:45.341 | + local service=peakmem_tracker
2015-06-23 23:07:45.341 | + local command=/home/vagrant/devstack/tools/peakmem_tracker.sh
2015-06-23 23:07:45.341 | + local group=
2015-06-23 23:07:45.341 | + is_service_enabled peakmem_tracker
2015-06-23 23:07:45.350 | + return 1
2015-06-23 23:07:45.351 | + is_service_enabled keystone
2015-06-23 23:07:45.358 | + return 0
2015-06-23 23:07:45.358 | + echo_summary 'Starting Keystone'
2015-06-23 23:07:45.359 | + [[ -t 3 ]]
2015-06-23 23:07:45.359 | + [[ True != \T\r\u\e ]]
2015-06-23 23:07:45.359 | + echo -e Starting Keystone
2015-06-23 23:07:45.359 | + '[' 192.168.27.100 == 192.168.27.100 ']'
2015-06-23 23:07:45.359 | + init_keystone
2015-06-23 23:07:45.360 | + is_service_enabled ldap
2015-06-23 23:07:45.363 | + return 1
2015-06-23 23:07:45.363 | + recreate_database keystone
2015-06-23 23:07:45.363 | + local db=keystone
2015-06-23 23:07:45.363 | + recreate_database_mysql keystone
2015-06-23 23:07:45.364 | + local db=keystone
2015-06-23 23:07:45.364 | + mysql -uroot -pstratus -h127.0.0.1 -e 'DROP DATABASE IF EXISTS keystone;'
2015-06-23 23:07:45.367 | + mysql -uroot -pstratus -h127.0.0.1 -e 'CREATE DATABASE keystone CHARACTER SET utf8;'
2015-06-23 23:07:45.371 | + /usr/local/bin/keystone-manage db_sync
2015-06-23 23:07:45.481 | Traceback (most recent call last):
2015-06-23 23:07:45.482 | File "/usr/local/bin/keystone-manage", line 4, in <module>
2015-06-23 23:07:45.482 | __import__('pkg_resources').require('keystone==2015.1.1.dev13')
2015-06-23 23:07:45.482 | File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3084, in <module>
2015-06-23 23:07:45.482 | @_call_aside
2015-06-23 23:07:45.483 | File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3070, in _call_aside
2015-06-23 23:07:45.483 | f(*args, **kwargs)
2015-06-23 23:07:45.483 | File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3097, in _initialize_master_working_set
2015-06-23 23:07:45.483 | working_set = WorkingSet._build_master()
2015-06-23 23:07:45.484 | File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 653, in _build_master
2015-06-23 23:07:45.484 | return cls._build_from_requirements(__requires__)
2015-06-23 23:07:45.484 | File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 666, in _build_from_requirements
2015-06-23 23:07:45.484 | dists = ws.resolve(reqs, Environment())
2015-06-23 23:07:45.485 | File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 839, in resolve
2015-06-23 23:07:45.485 | raise DistributionNotFound(req, requirers)
2015-06-23 23:07:45.485 | pkg_resources.DistributionNotFound: The 'oslo.policy<0.4.0,>=0.3.1' distribution was not found and is required by keystone

Tags: murano
Changed in murano:
milestone: none → liberty-1
Revision history for this message
Kirill Zaitsev (kzaitsev) wrote :

this looks like a packaging issue, not related to murano. Am I wrong?

tags: removed: openstack
Revision history for this message
Aneesh (aneeshputtur) wrote :

Without enabling murano services, devstack (kilo) works fine.

Revision history for this message
Victor Ryzhenkin (vryzhenkin) wrote :

Did u write to localrc:
    MURANO_BRANCH=stable/kilo ?

Changed in murano:
importance: Undecided → High
Revision history for this message
Ekaterina Chernova (efedorova) wrote :

It seems, that we have problems with murano devstack lib, branches are not set automatically.
Thus if you checked out from stable/kilo murano with devstack will be installed from master

+ branch should be specified for all components:

MURANO_BRANCH
MURANO_DASHBOARD_BRANCH
MURANO_PYTHONCLIENT_BRANCH

Please, try provide this info in local rd and we fix this issue in

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.
  • Duplicate of bug #1468746 Remove

Other bug subscribers

Remote bug watches

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