Discussion:
[Openstack] nova - Error in cells
SGopinath s.gopinath
2017-06-15 03:37:19 UTC
Permalink
Hi ,


I'm trying to install Openstack Ocata in
Ubuntu 16.04.2 LTS.

I could able to start nova services and successfully
could get the output on executing

openstack hypervisor list ...

No issues...


But when I execute

su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova

I get the error

ProgrammingError: (pymysql.err.ProgrammingError) (1146, u"Table 'nova_api.compute_nodes' doesn't exist")

I could not find compute_nodes table in the database nova_api.
However the compute_nodes table is in nova_api_cell0 database and it
does not contain any rows.


I think there is only a minor issue in assuming where the table is in which
database.

Could anyone suggest a solution for this.

Thanks,
S.Gopinath
melanie witt
2017-06-15 05:30:49 UTC
Permalink
Post by SGopinath s.gopinath
But when I execute
su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova
I get the error
ProgrammingError: (pymysql.err.ProgrammingError) (1146, u"Table
'nova_api.compute_nodes' doesn't exist")
I could not find compute_nodes table in the database nova_api.
It sounds like when you created your cell, you gave it the nova_api
database connection information instead of the nova database connection
information (where the compute_nodes table is). You can check the
details of your cells by doing 'nova-manage cell_v2 list_cells
--verbose'. Assuming you have a single cell deployment (standard) you
should see two cells in the output, one is cell0 and one is your compute
cell. The compute cell 'Database Connection' should be pointing at your
nova database. If it's not, you can update it using 'nova-manage cell_v2
update_cell --database_connection <nova database url>'. Then restart the
nova-api services.

You can check out the documentation for more details:

https://docs.openstack.org/developer/nova/cells.html#setup-of-cells-v2

Hope that helps,
melanie
SGopinath s.gopinath
2017-06-17 17:59:26 UTC
Permalink
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:***@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:***@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##########################

***@cloud1:/etc/cinder# vgs
VG #PV #LV #SN Attr VSize VFree
cinder-volumes 1 0 0 wz--n- 37.22g 37.22g
***@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 ***@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.
***@cloud1:/etc/cinder#






From: "SGopinath s.gopinath" <***@gov.in>
To: "openstack" <***@lists.openstack.org>
Sent: Thursday, June 15, 2017 9:07:19 AM
Subject: [Openstack] nova - Error in cells

Hi ,


I'm trying to install Openstack Ocata in
Ubuntu 16.04.2 LTS.

I could able to start nova services and successfully
could get the output on executing

openstack hypervisor list ...

No issues...


But when I execute

su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova

I get the error

ProgrammingError: (pymysql.err.ProgrammingError) (1146, u"Table 'nova_api.compute_nodes' doesn't exist")

I could not find compute_nodes table in the database nova_api.
However the compute_nodes table is in nova_api_cell0 database and it
does not contain any rows.


I think there is only a minor issue in assuming where the table is in which
database.

Could anyone suggest a solution for this.

Thanks,
S.Gopinath
SGopinath s.gopinath
2017-06-21 02:25:01 UTC
Permalink
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:***@controller
auth_strategy = keystone
my_ip = [ callto:10.163.61.22 | 10.163.61.22 ]
enabled_backends = lvm
glance_api_servers = [ http://controller:9292/ | http://controller:9292 ]

###SXG
[database]
connection = mysql+pymysql://cinder:***@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##########################

***@cloud1:/etc/cinder# vgs
VG #PV #LV #SN Attr VSize VFree
cinder-volumes 1 0 0 wz--n- 37.22g 37.22g
***@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 ***@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.
***@cloud1:/etc/cinder#






From: "SGopinath s.gopinath" < ***@gov.in >
To: "openstack" < ***@lists.openstack.org >
Sent: Thursday, June 15 , 2017 9:07:19 AM
Subject: [Openstack] nova - Error in cells

Hi ,


I'm trying to install Openstack Ocata in
Ubuntu 16.04.2 LTS.

I could able to start nova services and successfully
could get the output on executing

openstack hypervisor list ...

No issues...


But when I execute

su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova

I get the error

ProgrammingError: (pymysql.err.ProgrammingError) (1146, u"Table 'nova_api.compute_nodes' doesn't exist")

I could not find compute_nodes table in the database nova_api.
However the compute_nodes table is in nova_api_cell0 database and it
does not contain any rows.


I think there is only a minor issue in assuming where the table is in which
database.

Could anyone suggest a solution for this.

Thanks,
S.Gopinath
Arne Wiebalck
2017-06-21 06:37:37 UTC
Permalink
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 <***@gov.in<mailto:***@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:***@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:***@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##########################

***@cloud1:/etc/cinder# vgs
VG #PV #LV #SN Attr VSize VFree
cinder-volumes 1 0 0 wz--n- 37.22g 37.22g
***@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 ***@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.
***@cloud1:/etc/cinder#





________________________________
From: "SGopinath s.gopinath" <***@gov.in<mailto:***@gov.in>>
To: "openstack" <***@lists.openstack.org<mailto:***@lists.openstack.org>>
Sent: Thursday, June 15, 2017 9:07:19 AM
Subject: [Openstack] nova - Error in cells

Hi ,


I'm trying to install Openstack Ocata in
Ubuntu 16.04.2 LTS.

I could able to start nova services and successfully
could get the output on executing

openstack hypervisor list ...

No issues...


But when I execute

su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova

I get the error

ProgrammingError: (pymysql.err.ProgrammingError) (1146, u"Table 'nova_api.compute_nodes' doesn't exist")

I could not find compute_nodes table in the database nova_api.
However the compute_nodes table is in nova_api_cell0 database and it
does not contain any rows.


I think there is only a minor issue in assuming where the table is in which
database.

Could anyone suggest a solution for this.

Thanks,
S.Gopinath



_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : ***@lists.openstack.org<mailto:***@lists.openstack.org>
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
--
Arne Wiebalck
CERN IT
Adhi Priharmanto
2017-06-21 06:51:52 UTC
Permalink
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
Post by 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
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
auth_strategy = keystone
my_ip = 10.163.61.22
enabled_backends = lvm
glance_api_servers = http://controller:9292
###SXG
[database]
###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##########################
VG #PV #LV #SN Attr VSize VFree
cinder-volumes 1 0 0 wz--n- 37.22g 37.22g
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 - - - - -]
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
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)
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.
------------------------------
*Sent: *Thursday, June 15, 2017 9:07:19 AM
*Subject: *[Openstack] nova - Error in cells
Hi ,
I'm trying to install Openstack Ocata in
Ubuntu 16.04.2 LTS.
I could able to start nova services and successfully
could get the output on executing
openstack hypervisor list ...
No issues...
But when I execute
su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova
I get the error
ProgrammingError: (pymysql.err.ProgrammingError) (1146, u"Table
'nova_api.compute_nodes' doesn't exist")
I could not find compute_nodes table in the database nova_api.
However the compute_nodes table is in nova_api_cell0 database and it
does not contain any rows.
I think there is only a minor issue in assuming where the table is in which
database.
Could anyone suggest a solution for this.
Thanks,
S.Gopinath
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/
openstack
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/
openstack
--
Arne Wiebalck
CERN IT
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/
openstack
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/
openstack
--
Cheers,



[image: --]
Adhi Priharmanto
[image: http://]about.me/a_dhi
<http://about.me/a_dhi?promo=email_sig>
+62-812-82121584
SGopinath s.gopinath
2017-06-21 17:13:48 UTC
Permalink
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" <***@gmail.com>
To: "Arne Wiebalck" <***@cern.ch>
Cc: "SGopinath s.gopinath" <***@gov.in>, "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:***@cern.ch | ***@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:***@gov.in | ***@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:***@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:***@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##########################

***@cloud1:/etc/cinder# vgs
VG #PV #LV #SN Attr VSize VFree
cinder-volumes 1 0 0 wz--n- 37.22g 37.22g
***@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 ***@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.
***@cloud1:/etc/cinder#






From: "SGopinath s.gopinath" < [ mailto:***@gov.in | ***@gov.in ] >
To: "openstack" < [ mailto:***@lists.openstack.org | ***@lists.openstack.org ] >
Sent: Thursday, June 15, 2017 9:07:19 AM
Subject: [Openstack] nova - Error in cells

Hi ,


I'm trying to install Openstack Ocata in
Ubuntu 16.04.2 LTS.

I could able to start nova services and successfully
could get the output on executing

openstack hypervisor list ...

No issues...


But when I execute

su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova

I get the error

ProgrammingError: (pymysql.err.ProgrammingError) (1146, u"Table 'nova_api.compute_nodes' doesn't exist")

I could not find compute_nodes table in the database nova_api.
However the compute_nodes table is in nova_api_cell0 database and it
does not contain any rows.


I think there is only a minor issue in assuming where the table is in which
database.

Could anyone suggest a solution for this.

Thanks,
S.Gopinath



_______________________________________________
Mailing list: [ http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack |
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack ]
Post to : [ mailto:***@lists.openstack.org | ***@lists.openstack.org ]
Unsubscribe : [ http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack |
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack ]
--
Arne Wiebalck
CERN IT


_______________________________________________
Mailing list: [ http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack | http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack ]
Post to : [ mailto:***@lists.openstack.org | ***@lists.openstack.org ]
Unsubscribe : [ http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack | http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack ]


BQ_END
--
Cheers,


[ http://about.me/a_dhi?promo=email_sig | Adhi Priharmantoabout.me/a_dhi ]

+62-812-82121584
Loading...