Ask Your Question

C-api failed to start in devstack

asked 2016-01-05 06:59:25 -0500

updated 2016-01-06 03:52:41 -0500

Hi All,

I have cloned devstack with both master/liberty branch, while doing getting error with c-api failed to start as below

+ echo 'log: /opt/stack/logs/c-api.log.2016-01-05-171822'
log: /opt/stack/logs/c-api.log.2016-01-05-171822
+ [[ -n /opt/stack/logs ]]
+ [[ True == \T\r\u\e ]]
+ screen -S stack -p c-api -X logfile /opt/stack/logs/c-api.log.2016-01-05-171822
+ screen -S stack -p c-api -X log on
+ touch /opt/stack/logs/c-api.log.2016-01-05-171822
+ ln -sf /opt/stack/logs/c-api.log.2016-01-05-171822 /opt/stack/logs/c-api.log
+ [[ -n '' ]]
+ sleep 3
++ echo -ne '\015'
+ NL=$'\r'
+ [[ -n '' ]]
+ screen_rc c-api '/usr/local/bin/cinder-api --config-file /etc/cinder/cinder.conf'
+ SCREENRC=/home/pandy/devstack/stack-screenrc
+ [[ ! -e /home/pandy/devstack/stack-screenrc ]]
+ grep c-api /home/pandy/devstack/stack-screenrc
++ echo -ne '\015'
+ NL=$'\r'
+ echo 'screen -t c-api bash'
"'echo 'stuff "/usr/local/bin/cinder-api --config-file /etc/cinder/cinder.conf
+ [[ -n /opt/stack/logs ]]
+ [[ True == \T\r\u\e ]]
+ echo 'logfile /opt/stack/logs/c-api.log.2016-01-05-171822'
+ echo 'log on'
+ screen -S stack -p c-api -X stuff '/usr/local/bin/cinder-api --config-file /etc/cinder/cinder.conf & echo $! >/opt/stack/status/stac'/; fg || echo "c-api failed to start" | tee "/opt/stack/status/stack/c-api.failure"
+ echo 'Waiting for Cinder API to start...'
Waiting for Cinder API to start...
+ wait_for_service 60
+ local timeout=60
+ local url=
+ timeout 60 sh -c 'while ! curl -g -k --noproxy '\''*'\'' -s >/dev/null; do sleep 1; done'
+ die 510 'c-api did not start'
+ local exitcode=0
+ set +o xtrace
[Call Trace]
[ERROR] /home/pandy/devstack/lib/cinder:510 c-api did not start
Error on exit

I have done unstack and stack multiple times. pls help

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-01-06 02:52:45 -0500

Bharath gravatar image

Can you provide more details. Are you able to ssh to that ip and is port 8776 open and not being used by any other process. Can you manually do a curl request with debug enabled and see the response so that we will get to know the exact reason for failure.

edit flag offensive delete link more

answered 2016-01-06 03:12:22 -0500

When am doing any CURL call am getting proper response, via CLI also same, If i do cinder list am getting output, then how it showing error and also restarted c-api service manually its started without any issue. There is no firewall/ port issue all are reachable

edit flag offensive delete link more


if you are able to get output for cinder list, it means cinder-api has already started and it is working, strange to see error as shown above. Are all other cinder processes running or any of them failed to start with an error?

Bharath gravatar imageBharath ( 2016-01-06 03:27:28 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-01-05 06:59:25 -0500

Seen: 873 times

Last updated: Jan 06 '16