Cannot start cinderlib

Bug #1870149 reported by Gorka Eguileor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cinderlib
Fix Released
Undecided
Gorka Eguileor
Train
Won't Fix
Undecided
Unassigned

Bug Description

Just trying to import cinderlib in a Python interpreter results in the following error:

Traceback (most recent call last):
  File "test.py", line 1, in <module>
    import cinderlib as cl
  File "/usr/lib/python2.7/site-packages/cinderlib/__init__.py", line 19, in <module>
    from cinderlib import cinderlib
  File "/usr/lib/python2.7/site-packages/cinderlib/cinderlib.py", line 28, in <module>
    cinder_objects.register_all() # noqa
  File "/usr/lib/python2.7/site-packages/cinder/objects/__init__.py", line 27, in register_all
    __import__('cinder.objects.backup')
  File "/usr/lib/python2.7/site-packages/cinder/objects/backup.py", line 34, in <module>
    base.CinderObjectDictCompat, base.CinderComparableObject):
  File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 139, in register
    registry._register_class(obj_cls)
  File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 134, in _register_class
    self.registration_hook(cls, 0)
  File "/usr/lib/python2.7/site-packages/cinder/objects/base.py", line 162, in registration_hook
    cls.cinder_ovo_cls_init()
  File "/usr/lib/python2.7/site-packages/cinder/objects/base.py", line 277, in cinder_ovo_cls_init
    raise exception.ProgrammingError(reason=msg)
cinder.exception.ProgrammingError: Programming error in Cinder: Couldn't find ORM model for Persistent Versioned Object Backup.

This happens when a newer version of cinderlib is running with an older version of cidner.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinderlib (master)

Fix proposed to branch: master
Review: https://review.opendev.org/716617

Changed in cinderlib:
status: New → In Progress
Changed in cinderlib:
milestone: none → 2.0.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinderlib (master)

Reviewed: https://review.opendev.org/716617
Committed: https://git.openstack.org/cgit/openstack/cinderlib/commit/?id=2fec756322fbc86b441e884c36891e5087447e2b
Submitter: Zuul
Branch: master

commit 2fec756322fbc86b441e884c36891e5087447e2b
Author: Gorka Eguileor <email address hidden>
Date: Wed Apr 1 16:45:41 2020 +0200

    Pin cinder version

    Up to cinderlib's version 0.9.0 the library was backward compatible with
    older Cinder releases, but version 1.0.0 and higher are no longer
    compatible with pre Train Cinder releases, so we need to pin the Cinder
    release.

    Change-Id: I15944eb67a5628cf2d2983409d767efc6de7608f
    Closes-Bug: #1870149

Changed in cinderlib:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers