Re: [Openstack] Cinder - Could not start Cinder Volume service-Ocata

2017-06-21 Thread SGopinath s.gopinath

Thanks a lot for your feedback. 

Indeed I did try that. 

I also found there are errors thrown in cinder-scheduler service in the 
controller. 

Thanks, 
S.Gopinath 


From: "Adhi Priharmanto" <adhi@gmail.com> 
To: "Arne Wiebalck" <arne.wieba...@cern.ch> 
Cc: "SGopinath s.gopinath" <s.gopin...@gov.in>, "openstack" 
<openstack@lists.openstack.org> 
Sent: Wednesday, June 21, 2017 12:21:52 PM 
Subject: Re: [Openstack] Cinder - Could not start Cinder Volume service-Ocata 

try to Populate the Block Storage database: 
# su -s /bin/sh -c "cinder-manage db sync" cinder 

just like describe in [ 
https://docs.openstack.org/ocata/install-guide-rdo/cinder-controller-install.html#install-and-configure-components
 | 
https://docs.openstack.org/ocata/install-guide-rdo/cinder-controller-install.html#install-and-configure-components
 ] 





On Wed, Jun 21, 2017 at 1:37 PM, Arne Wiebalck < [ mailto:arne.wieba...@cern.ch 
| arne.wieba...@cern.ch ] > wrote: 



I saw something similar when preparing the Ocala upgrade: in our case this was 
caused by stale entries in the ‘services' table. 
So, you may want to check the entries in that table and clean things up if 
necessary. 

Cheers, 
Arne 



BQ_BEGIN

On 17 Jun 2017, at 19:59, SGopinath s.gopinath < [ mailto:s.gopin...@gov.in | 
s.gopin...@gov.in ] > wrote: 


Hi, 

I could not start th cinder-volume service and I'm getting the following error. 

I pasted here my /etc/cinder/cinder.conf. 

May please help. 

Thanks, 
S.Gopinath 

/etc/cinder/cinder.conf 
== 


[DEFAULT] 
rootwrap_config = /etc/cinder/rootwrap.conf 
api_paste_confg = /etc/cinder/api-paste.ini 
iscsi_helper = tgtadm 
volume_name_template = volume-%s 
#volume_group = cinder-volumes 
verbose = True 
auth_strategy = keystone 
state_path = /var/lib/cinder 
lock_path = /var/lock/cinder 
volumes_dir = /var/lib/cinder/volumes 
###SXG 
transport_url = rabbit://openstack:OpenStack123@controller 
auth_strategy = keystone 
my_ip = 10.163.61.22 
enabled_backends = lvm 
glance_api_servers = [ http://controller:9292/ | http://controller:9292 ] 

###SXG 
[database] 
connection = mysql+pymysql://cinder:CinderOpenStack123@controller/cinder 

###SXG 
[keystone_authtoken] 
auth_uri = [ http://controller:5000/ | http://controller:5000 ] 
auth_url = [ http://controller:35357/ | http://controller:35357 ] 
memcached_servers = controller:11211 
auth_type = password 
project_domain_name = default 
user_domain_name = default 
project_name = service 
username = cinder 
password = CinderOpenStack123 

###SXG 
[lvm] 
volume_drivers = cinder.volume.drivers.lvm.LVMVolumeDriver 
volume_group = cinder-volumes 
iscsi_protocol = iscsi 
iscsi_helper = tgtadm 

###SXG 
[oslo_concurrency] 
lock_path = /var/lib/cinder/tmp 

###END##
 

root@cloud1:/etc/cinder# vgs 
VG #PV #LV #SN Attr VSize VFree 
cinder-volumes 1 0 0 wz--n- 37.22g 37.22g 
root@cloud1:/etc/cinder# pvs 
PV VG Fmt Attr PSize PFree 
/dev/sda4 cinder-volumes lvm2 a-- 37.22g 37.22g 


###
 
2017-06-18 05:11:50.953 5230 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. 
2017-06-18 05:11:51.105 5230 INFO root [-] Generating grammar tables from 
/usr/lib/python2.7/lib2to3/Grammar.txt 
2017-06-18 05:11:51.183 5230 INFO root [-] Generating grammar tables from 
/usr/lib/python2.7/lib2to3/PatternGrammar.txt 
2017-06-18 05:11:51.238 5230 WARNING py.warnings 
[req-85789cbc-b26c-47c5-be34-035fae86e504 - - - - -] 
/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py:241: 
NotSupportedWarning: Configuration option(s) ['use_tpool'] not supported 
exception.NotSupportedWarning 

2017-06-18 05:11:51.357 5230 INFO cinder.rpc 
[req-85789cbc-b26c-47c5-be34-035fae86e504 - - - - -] Automatically selected 
cinder-scheduler objects version 1.21 as minimum service version. 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume 
[req-85789cbc-b26c-47c5-be34-035fae86e504 - - - - -] Volume service cloud1@lvm 
failed to start. 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume Traceback (most recent 
call last): 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume File 
"/usr/lib/python2.7/dist-packages/cinder/cmd/volume.py", line 81, in main 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume binary='cinder-volume') 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume File 
"/usr/lib/python2.7/dist-packages/cinder/service.py", line 268, in create 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume service_name=service_name) 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume File 
"

Re: [Openstack] Cinder - Could not start Cinder Volume service-Ocata

2017-06-21 Thread Adhi Priharmanto
try to Populate the Block Storage database:

# su -s /bin/sh -c "cinder-manage db sync" cinder


just like describe in
https://docs.openstack.org/ocata/install-guide-rdo/cinder-controller-install.html#install-and-configure-components





On Wed, Jun 21, 2017 at 1:37 PM, Arne Wiebalck 
wrote:

> I saw something similar when preparing the Ocala upgrade: in our case this
> was caused by stale entries in the ‘services' table.
> So, you may want to check the entries in that table and clean things up if
> necessary.
>
> Cheers,
>  Arne
>
>
> On 17 Jun 2017, at 19:59, SGopinath s.gopinath  wrote:
>
>
> Hi,
>
> I could not start th cinder-volume service and I'm getting the following
> error.
>
> I pasted here my /etc/cinder/cinder.conf.
>
> May please help.
>
> Thanks,
> S.Gopinath
>
> /etc/cinder/cinder.conf
> ==
>
>
> [DEFAULT]
> rootwrap_config = /etc/cinder/rootwrap.conf
> api_paste_confg = /etc/cinder/api-paste.ini
> iscsi_helper = tgtadm
> volume_name_template = volume-%s
> #volume_group = cinder-volumes
> verbose = True
> auth_strategy = keystone
> state_path = /var/lib/cinder
> lock_path = /var/lock/cinder
> volumes_dir = /var/lib/cinder/volumes
> ###SXG
> transport_url = rabbit://openstack:OpenStack123@controller
> auth_strategy = keystone
> my_ip = 10.163.61.22
> enabled_backends = lvm
> glance_api_servers = http://controller:9292
>
> ###SXG
> [database]
> connection = mysql+pymysql://cinder:CinderOpenStack123@controller/cinder
>
> ###SXG
> [keystone_authtoken]
> auth_uri = http://controller:5000
> auth_url = http://controller:35357
> memcached_servers = controller:11211
> auth_type = password
> project_domain_name = default
> user_domain_name = default
> project_name = service
> username = cinder
> password = CinderOpenStack123
>
> ###SXG
> [lvm]
> volume_drivers = cinder.volume.drivers.lvm.LVMVolumeDriver
> volume_group = cinder-volumes
> iscsi_protocol = iscsi
> iscsi_helper = tgtadm
>
> ###SXG
> [oslo_concurrency]
> lock_path = /var/lib/cinder/tmp
>
> 
> ###END##
>
> root@cloud1:/etc/cinder# vgs
>   VG #PV #LV #SN Attr   VSize  VFree
>   cinder-volumes   1   0   0 wz--n- 37.22g 37.22g
> root@cloud1:/etc/cinder# pvs
>   PV VG Fmt  Attr PSize  PFree
>   /dev/sda4  cinder-volumes lvm2 a--  37.22g 37.22g
>
>
> 
> ###
> 2017-06-18 05:11:50.953 5230 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.
> 2017-06-18 05:11:51.105 5230 INFO root [-] Generating grammar tables from
> /usr/lib/python2.7/lib2to3/Grammar.txt
> 2017-06-18 05:11:51.183 5230 INFO root [-] Generating grammar tables from
> /usr/lib/python2.7/lib2to3/PatternGrammar.txt
> 2017-06-18 05:11:51.238 5230 WARNING py.warnings
> [req-85789cbc-b26c-47c5-be34-035fae86e504 - - - - -]
> /usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py:241:
> NotSupportedWarning: Configuration option(s) ['use_tpool'] not supported
>   exception.NotSupportedWarning
>
> 2017-06-18 05:11:51.357 5230 INFO cinder.rpc 
> [req-85789cbc-b26c-47c5-be34-035fae86e504
> - - - - -] Automatically selected cinder-scheduler objects version 1.21 as
> minimum service version.
> 2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume
> [req-85789cbc-b26c-47c5-be34-035fae86e504 - - - - -] Volume service
> cloud1@lvm failed to start.
> 2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume Traceback (most
> recent call last):
> 2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume   File
> "/usr/lib/python2.7/dist-packages/cinder/cmd/volume.py", line 81, in main
> 2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume
> binary='cinder-volume')
> 2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume   File
> "/usr/lib/python2.7/dist-packages/cinder/service.py", line 268, in create
> 2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume
> service_name=service_name)
> 2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume   File
> "/usr/lib/python2.7/dist-packages/cinder/service.py", line 150, in
> __init__
> 2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume *args, **kwargs)
> 2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume   File
> "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 235, in
> __init__
> 2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume *args, **kwargs)
> 2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume   File
> "/usr/lib/python2.7/dist-packages/cinder/manager.py", line 156, in
> __init__
> 2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume
> self.scheduler_rpcapi = scheduler_rpcapi.SchedulerAPI()
> 2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume   File
> 

Re: [Openstack] Cinder - Could not start Cinder Volume service-Ocata

2017-06-21 Thread Arne Wiebalck
I saw something similar when preparing the Ocala upgrade: in our case this was 
caused by stale entries in the ‘services' table.
So, you may want to check the entries in that table and clean things up if 
necessary.

Cheers,
 Arne


On 17 Jun 2017, at 19:59, SGopinath s.gopinath 
> wrote:


Hi,

I could not start th cinder-volume service and I'm getting the following error.

I pasted here my /etc/cinder/cinder.conf.

May please help.

Thanks,
S.Gopinath

/etc/cinder/cinder.conf
==


[DEFAULT]
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_confg = /etc/cinder/api-paste.ini
iscsi_helper = tgtadm
volume_name_template = volume-%s
#volume_group = cinder-volumes
verbose = True
auth_strategy = keystone
state_path = /var/lib/cinder
lock_path = /var/lock/cinder
volumes_dir = /var/lib/cinder/volumes
###SXG
transport_url = rabbit://openstack:OpenStack123@controller
auth_strategy = keystone
my_ip = 10.163.61.22
enabled_backends = lvm
glance_api_servers = http://controller:9292

###SXG
[database]
connection = mysql+pymysql://cinder:CinderOpenStack123@controller/cinder

###SXG
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = cinder
password = CinderOpenStack123

###SXG
[lvm]
volume_drivers = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_group = cinder-volumes
iscsi_protocol = iscsi
iscsi_helper = tgtadm

###SXG
[oslo_concurrency]
lock_path = /var/lib/cinder/tmp

###END##

root@cloud1:/etc/cinder# vgs
  VG #PV #LV #SN Attr   VSize  VFree
  cinder-volumes   1   0   0 wz--n- 37.22g 37.22g
root@cloud1:/etc/cinder# pvs
  PV VG Fmt  Attr PSize  PFree
  /dev/sda4  cinder-volumes lvm2 a--  37.22g 37.22g


###
2017-06-18 05:11:50.953 5230 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.
2017-06-18 05:11:51.105 5230 INFO root [-] Generating grammar tables from 
/usr/lib/python2.7/lib2to3/Grammar.txt
2017-06-18 05:11:51.183 5230 INFO root [-] Generating grammar tables from 
/usr/lib/python2.7/lib2to3/PatternGrammar.txt
2017-06-18 05:11:51.238 5230 WARNING py.warnings 
[req-85789cbc-b26c-47c5-be34-035fae86e504 - - - - -] 
/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py:241: 
NotSupportedWarning: Configuration option(s) ['use_tpool'] not supported
  exception.NotSupportedWarning

2017-06-18 05:11:51.357 5230 INFO cinder.rpc 
[req-85789cbc-b26c-47c5-be34-035fae86e504 - - - - -] Automatically selected 
cinder-scheduler objects version 1.21 as minimum service version.
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume 
[req-85789cbc-b26c-47c5-be34-035fae86e504 - - - - -] Volume service cloud1@lvm 
failed to start.
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume Traceback (most recent 
call last):
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume   File 
"/usr/lib/python2.7/dist-packages/cinder/cmd/volume.py", line 81, in main
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume binary='cinder-volume')
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume   File 
"/usr/lib/python2.7/dist-packages/cinder/service.py", line 268, in create
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume 
service_name=service_name)
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume   File 
"/usr/lib/python2.7/dist-packages/cinder/service.py", line 150, in __init__
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume *args, **kwargs)
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume   File 
"/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 235, in 
__init__
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume *args, **kwargs)
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume   File 
"/usr/lib/python2.7/dist-packages/cinder/manager.py", line 156, in __init__
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume self.scheduler_rpcapi 
= scheduler_rpcapi.SchedulerAPI()
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume   File 
"/usr/lib/python2.7/dist-packages/cinder/rpc.py", line 188, in __init__
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume serializer = 
base.CinderObjectSerializer(obj_version_cap)
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume   File 
"/usr/lib/python2.7/dist-packages/cinder/objects/base.py", line 412, in __init__
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume raise 
exception.CappedVersionUnknown(version=version_cap)
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume 

[Openstack] Cinder - Could not start Cinder Volume service-Ocata

2017-06-17 Thread SGopinath s.gopinath

Hi, 

I could not start th cinder-volume service and I'm getting the following error. 

I pasted here my /etc/cinder/cinder.conf. 

May please help. 

Thanks, 
S.Gopinath 

/etc/cinder/cinder.conf 
== 


[DEFAULT] 
rootwrap_config = /etc/cinder/rootwrap.conf 
api_paste_confg = /etc/cinder/api-paste.ini 
iscsi_helper = tgtadm 
volume_name_template = volume-%s 
#volume_group = cinder-volumes 
verbose = True 
auth_strategy = keystone 
state_path = /var/lib/cinder 
lock_path = /var/lock/cinder 
volumes_dir = /var/lib/cinder/volumes 
###SXG 
transport_url = rabbit://openstack:OpenStack123@controller 
auth_strategy = keystone 
my_ip = 10.163.61.22 
enabled_backends = lvm 
glance_api_servers = http://controller:9292 

###SXG 
[database] 
connection = mysql+pymysql://cinder:CinderOpenStack123@controller/cinder 

###SXG 
[keystone_authtoken] 
auth_uri = http://controller:5000 
auth_url = http://controller:35357 
memcached_servers = controller:11211 
auth_type = password 
project_domain_name = default 
user_domain_name = default 
project_name = service 
username = cinder 
password = CinderOpenStack123 

###SXG 
[lvm] 
volume_drivers = cinder.volume.drivers.lvm.LVMVolumeDriver 
volume_group = cinder-volumes 
iscsi_protocol = iscsi 
iscsi_helper = tgtadm 

###SXG 
[oslo_concurrency] 
lock_path = /var/lib/cinder/tmp 

###END##
 

root@cloud1:/etc/cinder# vgs 
VG #PV #LV #SN Attr VSize VFree 
cinder-volumes 1 0 0 wz--n- 37.22g 37.22g 
root@cloud1:/etc/cinder# pvs 
PV VG Fmt Attr PSize PFree 
/dev/sda4 cinder-volumes lvm2 a-- 37.22g 37.22g 


###
 
2017-06-18 05:11:50.953 5230 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. 
2017-06-18 05:11:51.105 5230 INFO root [-] Generating grammar tables from 
/usr/lib/python2.7/lib2to3/Grammar.txt 
2017-06-18 05:11:51.183 5230 INFO root [-] Generating grammar tables from 
/usr/lib/python2.7/lib2to3/PatternGrammar.txt 
2017-06-18 05:11:51.238 5230 WARNING py.warnings 
[req-85789cbc-b26c-47c5-be34-035fae86e504 - - - - -] 
/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py:241: 
NotSupportedWarning: Configuration option(s) ['use_tpool'] not supported 
exception.NotSupportedWarning 

2017-06-18 05:11:51.357 5230 INFO cinder.rpc 
[req-85789cbc-b26c-47c5-be34-035fae86e504 - - - - -] Automatically selected 
cinder-scheduler objects version 1.21 as minimum service version. 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume 
[req-85789cbc-b26c-47c5-be34-035fae86e504 - - - - -] Volume service cloud1@lvm 
failed to start. 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume Traceback (most recent 
call last): 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume File 
"/usr/lib/python2.7/dist-packages/cinder/cmd/volume.py", line 81, in main 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume binary='cinder-volume') 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume File 
"/usr/lib/python2.7/dist-packages/cinder/service.py", line 268, in create 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume service_name=service_name) 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume File 
"/usr/lib/python2.7/dist-packages/cinder/service.py", line 150, in __init__ 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume *args, **kwargs) 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume File 
"/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 235, in 
__init__ 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume *args, **kwargs) 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume File 
"/usr/lib/python2.7/dist-packages/cinder/manager.py", line 156, in __init__ 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume self.scheduler_rpcapi = 
scheduler_rpcapi.SchedulerAPI() 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume File 
"/usr/lib/python2.7/dist-packages/cinder/rpc.py", line 188, in __init__ 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume serializer = 
base.CinderObjectSerializer(obj_version_cap) 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume File 
"/usr/lib/python2.7/dist-packages/cinder/objects/base.py", line 412, in 
__init__ 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume raise 
exception.CappedVersionUnknown(version=version_cap) 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume CappedVersionUnknown: 
Unrecoverable Error: Versioned Objects in DB are capped to unknown version 
1.21. 
2017-06-18 05:11:51.358 5230 ERROR cinder.cmd.volume 
2017-06-18 05:11:51.360 5230 ERROR cinder.cmd.volume 
[req-85789cbc-b26c-47c5-be34-035fae86e504 - - - - -] No volume service(s) 
started successfully, terminating. 
root@cloud1:/etc/cinder# 






From: