pkg_resources.ContextualVersionConflict: (oslo.i18n 1.3.1 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('oslo.i18n>=1.5.0'), set(['oslo.utils']))

Bug #1447608 reported by Eduard Biceri-Matei
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Cinder
Invalid
Undecided
Unassigned

Bug Description

Trying to install devstack stable/juno 2014.2.2

C-sch service fails to start

home/devstack$ /usr/local/bin/cinder-scheduler --config-file /etc/cinder/cinder.conf & echo $! >/opt/stack/status/stack/c-sch.pid; fg || echo "c-sch failed to start" | tee "/opt/stack/status/stack/c-sch.failure"
[1] 40391
/usr/local/bin/cinder-scheduler --config-file /etc/cinder/cinder.conf
Traceback (most recent call last):
  File "/usr/local/bin/cinder-scheduler", line 4, in <module>
    __import__('pkg_resources').require('cinder==2014.2.2')
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3057, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 641, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 654, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 832, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (oslo.i18n 1.3.1 (/usr/local/lib/python2.7/dist-packages), Requirement.parse('oslo.i18n>=1.5.0'), set(['oslo.utils']))
c-sch failed to start

Local.conf
[[local|localrc]]
HOST_IP=172.20.52.251
FLAT_INTERFACE=pubbr
FIXED_RANGE=172.20.52.0/26
FIXED_NETWORK_SIZE=62
FLOATING_RANGE=172.20.52.0/26
MULTI_HOST=1
LOGFILE=/opt/stack/logs/stack.sh.log
ADMIN_PASSWORD=***
MYSQL_PASSWORD=***
RABBIT_PASSWORD=***
SERVICE_PASSWORD=***
SERVICE_TOKEN=***

CINDER_BRANCH=2014.2.2
GLANCE_BRANCH=2014.2.2
HEAT_BRANCH=2014.2.2
HORIZON_BRANCH=2014.2.2
KEYSTONE_BRANCH=2014.2.2
NEUTRON_BRANCH=2014.2.2
NOVA_BRANCH=2014.2.2
SWIFT_BRANCH=2014.2.2
TROVE_BRANCH=2014.2.2

DATABASE_TYPE=mysql
SERVICE_HOST=172.20.52.252
MYSQL_HOST=172.20.52.252
RABBIT_HOST=172.20.52.252
GLANCE_HOSTPORT=172.20.52.252:9292
ENABLED_SERVICES=n-cpu,n-net,n-api,c-sch,c-api,c-vol

Changed in cinder:
assignee: nobody → Vilobh Meshram (vilobhmm)
Revision history for this message
Philippe Ploegaert (philippe-ploegaert) wrote :

Issues occurs when installing 2nd node - first node is ok.

On 2nd node we install less components:
ENABLED_SERVICES=n-cpu,n-net,n-api,c-sch,c-api,c-vol

Further debugging showed oslo-utils 1.5.0 gets installed,
manually installing oslo-utils 1.4.0 fixes the cinder startup issue.

Log file shows:
2015-04-30 01:08:10.085 | Collecting keystonemiddleware<1.4.0,>=1.0.0
2015-04-30 01:08:15.162 | /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
2015-04-30 01:08:15.162 | InsecurePlatformWarning
2015-04-30 01:08:15.287 | Downloading keystonemiddleware-1.3.1-py2.py3-none-any.whl (74kB)
2015-04-30 01:08:15.349 | Requirement already satisfied (use --upgrade to upgrade): WebOb>=1.2.3 in /usr/lib/python2.7/dist-packages (from keystonemiddleware<1.4.0,>=1.0.0)
2015-04-30 01:08:15.350 | Collecting six>=1.7.0 (from keystonemiddleware<1.4.0,>=1.0.0)
2015-04-30 01:08:15.371 | Using cached six-1.9.0-py2.py3-none-any.whl
2015-04-30 01:08:15.379 | Collecting pycadf>=0.6.0 (from keystonemiddleware<1.4.0,>=1.0.0)
2015-04-30 01:08:15.431 | Downloading pycadf-0.9.0-py2-none-any.whl (49kB)
2015-04-30 01:08:15.471 | Collecting oslo.utils>=1.1.0 (from keystonemiddleware<1.4.0,>=1.0.0)
2015-04-30 01:08:15.501 | Downloading oslo.utils-1.5.0-py2.py3-none-any.whl (56kB)

Revision history for this message
Sean McGinnis (sean-mcginnis) wrote :

Automatically unassigning due to inactivity.

Changed in cinder:
assignee: Vilobh Meshram (vilobhmm) → nobody
Changed in cinder:
status: New → Invalid
Revision history for this message
Juan Pedro Paredes (juampe) wrote :

To fix first uninstall the old package
pip uninstall oslo.i18n

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.