Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

stack.sh fails because c-api doesn't start. How can I solve this issue?

 2015-11-04 20:49:20.592 | SCREEN_LOGDIR: 
2015-11-04 20:49:20.592 | + echo 'log: /opt/stack/logs/c-api.log.2015-11-04-202216'
2015-11-04 20:49:20.592 | log: /opt/stack/logs/c-api.log.2015-11-04-202216
2015-11-04 20:49:20.592 | + [[ -n /opt/stack/logs ]]
2015-11-04 20:49:20.592 | + screen -S stack -p c-api -X logfile /opt/stack/logs/c-api.log.2015-11-04-202216
2015-11-04 20:49:20.595 | + screen -S stack -p c-api -X log on
2015-11-04 20:49:20.597 | + ln -sf /opt/stack/logs/c-api.log.2015-11-04-202216 /opt/stack/logs/c-api.log
2015-11-04 20:49:21.078 | + [[ -n '' ]]
2015-11-04 20:49:21.078 | + sleep 3
2015-11-04 20:49:24.190 | ++ echo -ne '\015'
2015-11-04 20:49:24.190 | + NL=$'\r'
2015-11-04 20:49:24.190 | + [[ -n '' ]]
2015-11-04 20:49:24.190 | + screen_rc c-api '/usr/local/bin/cinder-api --config-file /etc/cinder/cinder.conf'
2015-11-04 20:49:24.190 | + SCREEN_NAME=stack
2015-11-04 20:49:24.190 | + SCREENRC=/home/usr/devstack/stack-screenrc
2015-11-04 20:49:24.190 | + [[ ! -e /home/usr/devstack/stack-screenrc ]]
2015-11-04 20:49:24.379 | + grep c-api /home/usr/devstack/stack-screenrc
2015-11-04 20:49:24.986 | ++ echo -ne '\015'
2015-11-04 20:49:24.986 | + NL=$'\r'
2015-11-04 20:49:24.986 | + echo 'screen -t c-api bash'
"'15-11-04 20:49:24.986 | + echo 'stuff "/usr/local/bin/cinder-api --config-file /etc/cinder/cinder.conf
2015-11-04 20:49:24.986 | + [[ -n /opt/stack/logs ]]
2015-11-04 20:49:24.986 | + echo 'logfile /opt/stack/logs/c-api.log.2015-11-04-202216'
2015-11-04 20:49:24.986 | + echo 'log on'
2015-11-04 20:49:24.986 | + screen -S stack -p c-api -X stuff '/usr/local/bin/cinder-api --config-file /etc/cinder/cinder.conf & echo $! >/opt/s'ack/status/stack/c-api.pid; fg || echo "c-api failed to start" | tee "/opt/stack/status/stack/c-api.failure"
2015-11-04 20:49:25.250 | + echo 'Waiting for Cinder API to start...'
2015-11-04 20:49:25.251 | Waiting for Cinder API to start...
2015-11-04 20:49:25.251 | + wait_for_service 60 http://192.168.15.15:8776
2015-11-04 20:49:25.848 | + local timeout=60
2015-11-04 20:49:25.848 | + local url=http://192.168.15.15:8776
2015-11-04 20:49:25.848 | + timeout 60 sh -c 'while ! curl -g -k --noproxy '\''*'\'' -s http://192.168.15.15:8776 >/dev/null; do sleep 1; done'
2015-11-04 20:50:26.007 | + die 512 'c-api did not start'
2015-11-04 20:50:26.369 | + local exitcode=0
2015-11-04 20:50:26.735 | [Call Trace]
2015-11-04 20:50:26.735 | ./stack.sh:1256:start_cinder
2015-11-04 20:50:26.735 | /home/usr/devstack/lib/cinder:512:die
2015-11-04 20:50:29.472 | [ERROR] /home/usr/devstack/lib/cinder:512 c-api did not start
2015-11-04 20:50:30.699 | Error on exit