Ask Your Question
0

Cloning from: openstack-dev/devstack yields c-api and other installation failures.

asked 2015-04-04 11:52:08 -0500

fatk1d gravatar image

In trying to get used to the various options of OpenStack, I've been installing Devstack over the last week at various times. The first time I cloned from Devstack, I setup an all-in-one installation on Dell R610 using minimal local.conf with nova based networking. It worked like a champ. I've since (approximately one week later) removed that installation after playing around with it and I'm now trying to get it back using the exact same local.conf file that produced my initial successful installation. Between each attempt at installing Devstack, I am of course doing an "./unstack.sh" followed by a "./clean.sh" and then removal of devstack directory. I then

git clone https://git.openstack.org/openstack-dev/devstack

and proceed with the "./stack.sh" after I copy in my simplistic local.conf file:

[[local|localrc]]

FLOATING_RANGE=192.168.1.1/26
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=em1
ADMIN_PASSWORD=super-secret-password
MYSQL_PASSWORD=super-secret-password
RABBIT_PASSWORD=super-secret-password
SERVICE_PASSWORD=super-secret-password
SERVICE_TOKEN=abcdefghijklmn

As you can see, there's not much to it and it produced a working devstack installation the first time I tried it a week ago. Now, using a more recent(?) Devstack clone, I'm getting a failure when c-api tries to start. Below is the failure:

2015-04-04 10:50:01.981 DEBUG cinder.openstack.common.service [-] Full set of CONF: from (pid=17714) wait /opt/stack/cinder/cinder/openstack/common/service.py:378
2015-04-04 10:50:01.981 DEBUG cinder.openstack.common.service [-] ******************************************************************************** from (pid=17714) log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1928
2015-04-04 10:50:01.981 INFO eventlet.wsgi.server [-] (17751) wsgi starting up on http://0.0.0.0:8776/
2015-04-04 10:50:01.982 DEBUG cinder.openstack.common.service [-] Configuration options gathered from: from (pid=17714) log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1929
2015-04-04 10:50:01.982 DEBUG cinder.openstack.common.service [-] command line args: None from (pid=17714) log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1930
2015-04-04 10:50:01.982 INFO eventlet.wsgi.server [-] (17752) wsgi starting up on http://0.0.0.0:8776/
2015-04-04 10:50:01.982 CRITICAL cinder [-] NoSuchOptError: no such option: config_file

2015-04-04 10:50:01.982 TRACE cinder Traceback (most recent call last):
2015-04-04 10:50:01.982 TRACE cinder   File "/usr/local/bin/cinder-api", line 10, in <module>
2015-04-04 10:50:01.982 TRACE cinder     sys.exit(main())
2015-04-04 10:50:01.982 TRACE cinder   File "/opt/stack/cinder/cinder/cmd/api.py", line 61, in main
2015-04-04 10:50:01.982 TRACE cinder     launcher.wait()
2015-04-04 10:50:01.982 TRACE cinder   File "/opt/stack/cinder/cinder/openstack/common/service.py", line 379, in wait
2015-04-04 10:50:01.982 TRACE cinder     CONF.log_opt_values(LOG, logging.DEBUG)
2015-04-04 10:50:01.982 TRACE cinder   File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1931, in log_opt_values
2015-04-04 10:50:01.982 TRACE cinder     logger.log ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
4

answered 2015-04-04 12:36:57 -0500

dbaxps gravatar image

updated 2015-04-06 06:28:49 -0500

Master branch worked fine just a couple hours ago

[[local|localrc]]
HOST_IP=192.168.1.50
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50

FLOATING_RANGE=192.168.10.0/24
FLAT_INTERFACE=eth0
Q_FLOATING_ALLOCATION_POOL=start=192.168.10.150,end=192.168.10.254
PUBLIC_NETWORK_GATEWAY=192.168.10.15

# Useful logging options for debugging:
DEST=/opt/stack
LOGFILE=$DEST/logs/stack.sh.log
SCREEN_LOGDIR=$DEST/logs/screen

# The default fixed range (10.0.0.0/24) conflicted with an address
# range I was using locally.
FIXED_RANGE=10.254.1.0/24
NETWORK_GATEWAY=10.254.1.1

# Services
disable_service n-net
enable_service n-cauth
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service horizon
disable_service tempest

I would suggest you you clean Ubuntu install.
Would you have any problems with Horizon console, retry

/usr/local/bin/nova-consoleauth --config-file /etc/nova/nova.conf

Checkout stable branch , just in case.

edit flag offensive delete link more

Comments

Sir, I finally got the installation to work like I wanted it to. It would have taken me much longer to resolve the issues without your help. Hats off to you for your assistance. If you lived in Missouri, I'd have to buy your lunch. Since you're quite far away, accept my sincere gratitude. :)

fatk1d gravatar imagefatk1d ( 2015-04-09 21:05:57 -0500 )edit
0

answered 2015-04-13 00:17:42 -0500

Te gravatar image

Hi guys,

Same error is taking place in here.

I got a Error on Exit when stack.sh was trying to start cinder-api:

  • screen -S stack -p c-api -X stuff '/usr/local/bin/cinder-api --config-file /etc/cinder/cinder.conf & echo $! >/opt/stack/status/stack/c-api.pid; fg || echo "c-api fai'ed 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://192.168.32.41:8776
  • local timeout=60
  • local url=http://192.168.32.41:8776
  • timeout 60 sh -c 'while ! curl -g -k --noproxy '\''*'\'' -s http://192.168.32.41:8776 >/dev/null; do sleep 1; done'
  • die 424 'c-api did not start'
  • local exitcode=0
  • set +o xtrace [Call Trace] ./stack.sh:1248:start_cinder /home/liyichen/devstack/lib/cinder:424:die [ERROR] /home/liyichen/devstack/lib/cinder:424 c-api did not start Error on exit

fatk1d: Did you solve this problem just by installing a clean ubuntu or you did something else?

Thanks in advance

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: 2015-04-04 11:52:08 -0500

Seen: 2,357 times

Last updated: Apr 13 '15