Ask Your Question
0

openstack-cinder-api failed

asked 2017-02-04 03:01:01 -0500

tland12 gravatar image

updated 2017-02-05 00:48:15 -0500

Hi guys I tried to start openstack-cinder-api but failed. Please help me to solve this issue. Thank you for your help in advance.

[root@controller1 ~]# cat /etc/centos-release

CentOS Linux release 7.3.1611 (Core) 

[root@controller1 ~]# rpm -qa | grep newton

centos-release-openstack-newton-1-1.el7.noarch

[root@controller1 ~]# systemctl start opensack-cinder-api openstack-cinder-scheduler

[root@controller1 ~]# systemctl status openstack-cinder-api

openstack-cinder-api.service - OpenStack Cinder API Server
   Loaded: loaded (/usr/lib/systemd/system/openstack-cinder-api.service; disabled; vendor preset: disabled)

Active: active (running) since Sat 2017-02-04 15:53:06 KST; 1ms ago
 Main PID: 16352 (systemd)
   CGroup: /system.slice/openstack-cinder-api.service
           16352 /usr/lib/systemd/systemd --switched-root --system --deserialize 21
Feb 04 15:53:06 controller1.chul.com systemd[1]: openstack-cinder-api.service holdoff time over,...rt.

Feb 04 15:53:06 controller1.chul.com systemd[1]: Started OpenStack Cinder API Server.

[root@controller1 ~]# lsof -i tcp:8776

[root@controller1 ~]# tail -f /var/log/messages

Feb  4 15:54:25 controller1 cinder-api: 2017-02-04 15:54:25.313 16762 WARNING cinder.api [-] The v1 api is deprecated and is not under active development. You should set enable_v1_api=false and enable_v3_api=true in your cinder.conf file.

Feb  4 15:54:25 controller1 kernel: cinder-api[16762]: segfault at 7f414b8eb760 ip 00007f414b8eb760 sp 00007ffca6bc41b8 error 15 in multiarray.so[7f414b8ea000+d000]
Feb  4 15:54:25 controller1 systemd: openstack-cinder-api.service: main process exited, code=killed, status=11/SEGV
Feb  4 15:54:25 controller1 systemd: Unit openstack-cinder-api.service entered failed state.

Feb  4 15:54:25 controller1 systemd: openstack-cinder-api.service failed.

Feb  4 15:54:25 controller1 systemd: openstack-cinder-api.service holdoff time over, scheduling restart.

Feb  4 15:54:25 controller1 systemd: Started OpenStack Cinder API Server.

Feb  4 15:54:25 controller1 systemd: Starting OpenStack Cinder API Server...

Feb  4 15:54:25 controller1 cinder-scheduler: Option "logdir" from group "DEFAULT" is deprecated. Use option "log-dir" from group "DEFAULT".

Feb  4 15:54:25 controller1 cinder-scheduler: 2017-02-04 15:54:25.817 16764 WARNING oslo_reports.guru_meditation_report [-] Guru meditation 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.

Feb  4 15:54:26 controller1 kernel: cinder-schedule[16764]: segfault at 7f749a4ba760 ip 00007f749a4ba760 sp 00007fffb21e1168 error 15 in multiarray.so[7f749a4b9000+d000]

Feb  4 15:54:26 controller1 systemd: openstack-cinder-scheduler.service: main process exited, code=killed, status=11/SEGV
Feb  4 15:54:26 controller1 systemd: Unit openstack-cinder-scheduler.service entered failed state.

Feb  4 15:54:26 controller1 systemd: openstack-cinder-scheduler.service failed.

Feb  4 15:54:26 controller1 systemd: openstack-cinder-scheduler.service holdoff time over, scheduling restart.

Feb  4 15:54:26 controller1 systemd: Started OpenStack Cinder Scheduler Server.

Feb  4 15:54:26 controller1 systemd: Starting OpenStack Cinder Scheduler Server...

[root@controller1 ~]# cinder service-list

ERROR: Unable to establish connection to http://192.168.80.3:8776/v2/ba40e0d269db49fda3ab07438f36e1da/os-services (http://192.168.80.3:8776/v2/ba40e0d26...): HTTPConnectionPool(host='192.168.80.3', port=8776): Max retries exceeded with url: /v2/ba40e0d269db49fda3ab07438f36e1da/os-services (Caused by NewConnectionError ... (more)

edit retag flag offensive close merge delete

Comments

Any clues in the cinder-scheduler log file?

Looking at the last lines of your messages file, I also wonder if the scheduler runs after all. What's the output of cinder service-list?

Bernd Bausch gravatar imageBernd Bausch ( 2017-02-04 19:32:15 -0500 )edit

Bernd thank you for your comment. This is the process I configured for openstack-cinder-api

  1. I was successful to start cinder-api and cinder-scheduler on Ubuntu 16.04 but failed on CentOS 7.2 with same configuration file
  2. The error messages above were repeated constantly on /var/log/messages
tland12 gravatar imagetland12 ( 2017-02-05 00:41:05 -0500 )edit

[root@controller1 ~]# cinder service-list

ERROR: Unable to establish connection to http://192.168.80.3:8776/v2/ba40e0d269db49fda3ab07438f36e1da/os-services (http://192.168.80.3:8776/v2/ba40e0d26...): HTTPConnectionPool(host='192.168.80.3', port=8776): Max retries exceeded with url: /v2/ba40e0d269db49fda3ab07438f36e1da/os-services (Caused by

tland12 gravatar imagetland12 ( 2017-02-05 00:41:36 -0500 )edit

However I could not find any error messages from /var/log/cinder/api.log and scheduler.log

tland12 gravatar imagetland12 ( 2017-02-05 00:49:31 -0500 )edit

Well, connection is refused because Cinder API isn't running. The messages in the syslog are probably repeated because systemd tries to restart the processes.

To me this smells like some incompatibility between Cinder and other software on the system, but I don't have enough insight to help.

Bernd Bausch gravatar imageBernd Bausch ( 2017-02-05 01:41:48 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2017-02-06 00:06:12 -0500

tland12 gravatar image

I am successful to start cinder-api and cinder-scheduler after reboot controller node and start all openstack services such as glance, nova and neutron.

[root@controller1 ~]# lsof –i tcp:8776
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME

cinder-ap 4922 cinder 7u IPv4 41293 0t0 TCP *:8776 (LISTEN)

cinder-ap 4958 cinder 7u IPv4 41293 0t0 TCP *:8776 (LISTEN)

cinder-ap 4959 cinder 7u IPv4 41293 0t0 TCP *:8776 (LISTEN)

[root@controller1 ~]# cinder service-list

+------------------+----------------------+------+---------+-------+------------------ | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | +------------------+----------------------+------+---------+-------+----------------------------+-----------------+ | cinder-scheduler | http://controller1.chul.com | nova | enabled | up | 2017-02-06T05:25:14.000000 | - |

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: 2017-02-04 00:59:46 -0500

Seen: 1,384 times

Last updated: Feb 06 '17