Cannot start cinderlib

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

Bug Description

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

Traceback (most recent call last):
  File "", line 1, in <module>
    import cinderlib as cl
  File "/usr/lib/python2.7/site-packages/cinderlib/", line 19, in <module>
    from cinderlib import cinderlib
  File "/usr/lib/python2.7/site-packages/cinderlib/", line 28, in <module>
    cinder_objects.register_all() # noqa
  File "/usr/lib/python2.7/site-packages/cinder/objects/", line 27, in register_all
  File "/usr/lib/python2.7/site-packages/cinder/objects/", line 34, in <module>
    base.CinderObjectDictCompat, base.CinderComparableObject):
  File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/", line 139, in register
  File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/", line 134, in _register_class
    self.registration_hook(cls, 0)
  File "/usr/lib/python2.7/site-packages/cinder/objects/", line 162, in registration_hook
  File "/usr/lib/python2.7/site-packages/cinder/objects/", 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

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)

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

    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