Ask Your Question
1

cinder-volume CappedVersionUnknown

asked 2016-12-08 16:59:27 -0600

messeiry gravatar image

Hello Team, am receiving the following error in cinder-volume node. iam implimenting openstack-newton

folowed the guide online at http://docs.openstack.org/newton/install-guide-ubuntu/cinder-storage-install.html (http://docs.openstack.org/newton/inst...)

2016-12-08 14:41:40.901 10516 ERROR cinder.cmd.volume [req-a15d7a68-d2e5-4001-8cd0-92281287b5a7 - - - - -] No volume service(s) started successfully, terminating.
2016-12-08 14:41:42.196 10537 WARNING oslo_reports.guru_meditation_report [-] Guru mediation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
2016-12-08 14:41:42.471 10537 WARNING py.warnings [req-0ec6b251-79a9-4055-aac5-c907de77e700 - - - - -] /usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py:241: NotSupportedWarning: Configuration option(s) ['use_tpool'] not supported
2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume [req-0ec6b251-79a9-4055-aac5-c907de77e700 - - - - -] Volume service cinder@cinder failed to start.
2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume Traceback (most recent call last):
2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume   File "/usr/lib/python2.7/dist-packages/cinder/cmd/volume.py", line 81, in main
2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume     binary='cinder-volume')
2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume   File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 268, in create
2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume     service_name=service_name)
2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume   File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 150, in __init__
2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume     *args, **kwargs)
2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 235, in __init__
2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume     *args, **kwargs)
2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume   File "/usr/lib/python2.7/dist-packages/cinder/manager.py", line 156, in __init__
2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume     self.scheduler_rpcapi = scheduler_rpcapi.SchedulerAPI()
2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume   File "/usr/lib/python2.7/dist-packages/cinder/rpc.py", line 188, in __init__
2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume     serializer = base.CinderObjectSerializer(obj_version_cap)
2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume   File "/usr/lib/python2.7/dist-packages/cinder/objects/base.py", line 412, in __init__
2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume     raise exception.CappedVersionUnknown(version=version_cap)
2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume CappedVersionUnknown: Unrecoverable Error: Versioned Objects in DB are capped to unknown version 1.11.
2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume 
2016-12-08 14:41:42.646 10537 ERROR cinder.cmd.volume [req-0ec6b251-79a9-4055-aac5-c907de77e700 - - - - -] No volume service(s) started successfully, terminating.

^C

the output of

root@cinder:/home/messeiry# vgs
  VG             #PV #LV #SN Attr   VSize   VFree  
  cinder-volumes   1   0   0 wz--n- 100.00g 100.00g
root@cinder:/home/messeiry# pvs
  PV         VG             Fmt  Attr PSize   PFree  
  /dev/sdb   cinder-volumes lvm2 a--  100.00g 100.00g ...
(more)
edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2018-01-22 03:15:55 -0600

QLGQ gravatar image

Thank you! I solved the problem!

edit flag offensive delete link more
0

answered 2016-12-09 14:22:30 -0600

messeiry gravatar image

i found the workaround to make this all work, first error is

2016-12-08 14:41:42.642 10537 ERROR cinder.cmd.volume CappedVersionUnknown: Unrecoverable Error: Versioned Objects in DB are capped to unknown version 1.11.

vim /usr/lib/python2.7/dist-packages/cinder/objects/base.py

# Hacked by messeiry error in version 1.11, this will add version 1.11 to the supported versions, the code on Githib is uch uipdated than this one, 
OBJ_VERSIONS.add('1.11', {'GroupSnapshot': '1.0', 'GroupSnapshotList': '1.0','Group': '1.1'})

after that i recieve the following errors and i edited those files to work around it, it's basically an issue with the version i have installed for cinder-volume and schedukler, but also a problem in the oslo-messaging.these should be update on the openstack documentation for newton. otherwise such installations will fail. i will try at some other time to replicate the issue with different installation p[ackages or just deploy directly from source on github.

the following error appeared

2016-12-09 11:50:31.349 94962 INFO oslo_service.service [req-da18d2d1-4048-4f26-9288-bc88061822b8 - - - - -] Child 109572 exited with status 1
2016-12-09 11:50:31.358 109601 INFO cinder.service [-] Starting cinder-volume node (version 8.1.1)
2016-12-09 11:50:31.360 109601 INFO cinder.volume.manager [req-f861837a-c0a8-47b4-9264-93dfc3d76d65 - - - - -] Starting volume driver LVMVolumeDriver (3.0.0)
2016-12-09 11:50:32.241 109601 ERROR oslo_service.service [req-f861837a-c0a8-47b4-9264-93dfc3d76d65 - - - - -] Error starting thread.
2016-12-09 11:50:32.241 109601 ERROR oslo_service.service Traceback (most recent call last):
2016-12-09 11:50:32.241 109601 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/oslo_service/service.py", line 680, in run_service
2016-12-09 11:50:32.241 109601 ERROR oslo_service.service     service.start()
2016-12-09 11:50:32.241 109601 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 166, in start
2016-12-09 11:50:32.241 109601 ERROR oslo_service.service     self.manager.init_host()
2016-12-09 11:50:32.241 109601 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 513, in init_host
2016-12-09 11:50:32.241 109601 ERROR oslo_service.service     self.publish_service_capabilities(ctxt)
2016-12-09 11:50:32.241 109601 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 2047, in publish_service_capabilities
2016-12-09 11:50:32.241 109601 ERROR oslo_service.service     self._publish_service_capabilities(context)
2016-12-09 11:50:32.241 109601 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/cinder/manager.py", line 173, in _publish_service_capabilities
2016-12-09 11:50:32.241 109601 ERROR oslo_service.service     self.last_capabilities)
2016-12-09 11:50:32.241 109601 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/cinder/scheduler/rpcapi.py", line 165, in update_service_capabilities
2016-12-09 11:50:32.241 109601 ERROR oslo_service.service     capabilities=capabilities)
2016-12-09 11:50:32.241 109601 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 135, in cast
2016-12-09 11:50:32.241 109601 ERROR oslo_service.service     if self.version_cap:
2016-12-09 11:50:32.241 109601 ERROR oslo_service.service   File "/usr/lib/python2.7/dist-packages/oslo_messaging ...
(more)
edit flag offensive delete link more

Comments

Thank you! This came up on my install and your fix worked perfectly.

DaveDunaway gravatar imageDaveDunaway ( 2016-12-27 09:15:35 -0600 )edit

thanks a lot amigo!! it worked for my Ocata version, changed OBJ_VERSIONS.add('1.11' replacing to 1.21.

daniel hernandez gravatar imagedaniel hernandez ( 2017-07-01 01:21:13 -0600 )edit
0

answered 2018-04-04 13:50:48 -0600

fattony666 gravatar image

Issue is still in place on OpenStack Queens version, running Ubuntu 16.04

I applied the same steps as mentioned above to remove the issues. Applied the steps on controller & storage node separately.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2016-12-08 16:59:27 -0600

Seen: 1,224 times

Last updated: Apr 04 '18