UPWORK/ODESK guru: Tips and Tricks for clients

skype: upwork.link , email: [email protected]

OpenStack : Glance 11.0.1 on OpenSuse 13.2 – ‘cannot import name _uuid_generate_random’

without comments

Если вы получили этот питоньячий костыль при попытке запуска glance

ERROR: Unable to load glance-api-keystone from configuration file /etc/glance/glance-api-paste.ini.
Got: ImportError('cannot import name _uuid_generate_random',)

То с большой долей вероятности это из за традиционных косяков версий пейсателей кудесников

Binary file kombu/utils/__init__.pyc matches
kombu/utils/__init__.py:from uuid import UUID, uuid4 as _uuid4, _uuid_generate_random
kombu/utils/__init__.py:    if ctypes and _uuid_generate_random:  # pragma: no cover
kombu/utils/__init__.py:        _uuid_generate_random(buffer)

Модуль исчез в Python 2.7.12, а glance питоньята не хотят следить за этим и носить все с собой

Обновите через pip:

kombu                     - Messaging library for Python.
  INSTALLED: 3.0.23
  LATEST:    4.0.2
:~ # pip install -v kombu==3.0.30

И как результат вся эта херня от glance хотя бы взлетает, чтобы слушать на порту:

# /usr/bin/glance-api --config-file=/etc/glance/glance-api.conf
...
StoreLocation'>, 'store': , 'store_entry': 'file'} register_scheme_map /usr/lib/python2.7/site-packages/glance_store/location.py:90
2017-02-14 18:53:10.057 29649 INFO glance.common.wsgi [-] Starting 8 workers
2017-02-14 18:53:10.062 29649 INFO glance.common.wsgi [-] Started child 29656
2017-02-14 18:53:10.062 29656 INFO eventlet.wsgi.server [-] (29656) wsgi starting up on http://0.0.0.0:9292/
2017-02-14 18:53:10.067 29649 INFO glance.common.wsgi [-] Started child 29657
2017-02-14 18:53:10.068 29657 INFO eventlet.wsgi.server [-] (29657) wsgi starting up on http://0.0.0.0:9292/
2017-02-14 18:53:10.073 29649 INFO glance.common.wsgi [-] Started child 29658
2017-02-14 18:53:10.074 29658 INFO eventlet.wsgi.server [-] (29658) wsgi starting up on http://0.0.0.0:9292/
2017-02-14 18:53:10.078 29649 INFO glance.common.wsgi [-] Started child 29659
2017-02-14 18:53:10.079 29659 INFO eventlet.wsgi.server [-] (29659) wsgi starting up on http://0.0.0.0:9292/
2017-02-14 18:53:10.084 29649 INFO glance.common.wsgi [-] Started child 29660
2017-02-14 18:53:10.085 29660 INFO eventlet.wsgi.server [-] (29660) wsgi starting up on http://0.0.0.0:9292/
2017-02-14 18:53:10.089 29649 INFO glance.common.wsgi [-] Started child 29661
2017-02-14 18:53:10.090 29661 INFO eventlet.wsgi.server [-] (29661) wsgi starting up on http://0.0.0.0:9292/
2017-02-14 18:53:10.095 29649 INFO glance.common.wsgi [-] Started child 29662
2017-02-14 18:53:10.096 29662 INFO eventlet.wsgi.server [-] (29662) wsgi starting up on http://0.0.0.0:9292/
2017-02-14 18:53:10.101 29649 INFO glance.common.wsgi [-] Started child 29663
2017-02-14 18:53:10.101 29663 INFO eventlet.wsgi.server [-] (29663) wsgi starting up on http://0.0.0.0:9292/

Written by spectre

February 14th, 2017 at 5:35 pm

Posted in Openstack

Leave a Reply

*