Ask Your Question
0

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 stack.sh 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'
+ SCREEN_NAME=stack
+ 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'/c-api.pid; 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 http://10.0.2.15:8776
+ local timeout=60
+ local url=http://10.0.2.15:8776
+ timeout 60 sh -c 'while ! curl -g -k --noproxy '\''*'\'' -s http://10.0.2.15:8776 >/dev/null; do sleep 1; done'
+ die 510 'c-api did not start'
+ local exitcode=0
+ set +o xtrace
[Call Trace]
./stack.sh:1286:start_cinder
/home/pandy/devstack/lib/cinder:510:die
[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
0

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

Comments

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
0

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

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

1 follower

Stats

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

Seen: 660 times

Last updated: Jan 06 '16