Issues in multi-node devstack configuration on Ubuntu 16.04: nova-api did not start

asked 2017-07-30 15:08:53 -0500

lorenzo.rosa gravatar image

updated 2017-08-01 17:42:46 -0500

Hi to all!

I just followed the instructions in https://docs.openstack.org/devstack/latest/guides/multinode-lab.html (this guide), starting from a new VM with the minimal version of Ubuntu 16.04. I have an error while executing "stack.sh" on the "controller" node.

This is the log:

2017-07-30 16:20:25.203 | +functions-common:write_uwsgi_user_unit_file:1481  [[ -n '' ]]
2017-07-30 16:20:25.233 | +functions-common:write_uwsgi_user_unit_file:1484  iniset -sudo /etc/systemd/system/devstack@n-api.service Install WantedBy multi-user.target
2017-07-30 16:20:25.421 | +functions-common:write_uwsgi_user_unit_file:1487  sudo systemctl daemon-reload
2017-07-30 16:20:27.453 | +functions-common:_run_under_systemd:1534  sudo systemctl enable devstack@n-api.service
2017-07-30 16:20:27.490 | Created symlink from /etc/systemd/system/multi-user.target.wants/devstack@n-api.service to /etc/systemd/system/devstack@n-api.service.
2017-07-30 16:20:27.910 | +functions-common:_run_under_systemd:1535  sudo systemctl start devstack@n-api.service
2017-07-30 16:20:28.912 | +functions-common:run_process:1594         time_stop run_process
2017-07-30 16:20:28.943 | +functions-common:time_stop:2509           local name
2017-07-30 16:20:28.979 | +functions-common:time_stop:2510           local end_time
2017-07-30 16:20:29.023 | +functions-common:time_stop:2511           local elapsed_time
2017-07-30 16:20:29.039 | +functions-common:time_stop:2512           local total
2017-07-30 16:20:29.058 | +functions-common:time_stop:2513           local start_time
2017-07-30 16:20:29.091 | +functions-common:time_stop:2515           name=run_process
2017-07-30 16:20:29.117 | +functions-common:time_stop:2516           start_time=1501431622771
2017-07-30 16:20:29.146 | +functions-common:time_stop:2518           [[ -z 1501431622771 ]]
2017-07-30 16:20:29.187 | ++functions-common:time_stop:2521           date +%s%3N
2017-07-30 16:20:29.209 | +functions-common:time_stop:2521           end_time=1501431629190
2017-07-30 16:20:29.227 | +functions-common:time_stop:2522           elapsed_time=6419
2017-07-30 16:20:29.263 | +functions-common:time_stop:2523           total=17032
2017-07-30 16:20:29.285 | +functions-common:time_stop:2525           _TIME_START[$name]=
2017-07-30 16:20:29.304 | +functions-common:time_stop:2526           _TIME_TOTAL[$name]=23451
2017-07-30 16:20:29.323 | +lib/nova:start_nova_api:794               nova_url=http://192.168.56.201/compute/v2.1/
2017-07-30 16:20:29.393 | +lib/nova:start_nova_api:797               echo 'Waiting for nova-api to start...'
2017-07-30 16:20:29.400 | Waiting for nova-api to start...
2017-07-30 16:20:29.435 | +lib/nova:start_nova_api:798               wait_for_service 60 http://192.168.56.201/compute/v2.1/
2017-07-30 16:20:29.473 | +functions:wait_for_service:397            local timeout=60
2017-07-30 16:20:29.514 | +functions:wait_for_service:398            local url=http://192.168.56.201/compute/v2.1/
2017-07-30 16:20:29.552 | +functions:wait_for_service:399            local rval=0
2017-07-30 16:20:29.609 | +functions:wait_for_service:400            time_start wait_for_service
2017-07-30 16:20:29.663 | +functions-common:time_start:2495          local name=wait_for_service
2017-07-30 16:20:29.713 | +functions-common:time_start:2496          local start_time=
2017-07-30 16:20:29.747 | +functions-common:time_start:2497          [[ -n '' ]]
2017-07-30 16:20:29.800 | ++functions-common:time_start:2500          date +%s%3N
2017-07-30 16:20:29.840 | +functions-common:time_start:2500          _TIME_START[$name]=1501431629801
2017-07-30 16:20:29.881 | +functions:wait_for_service:401            timeout 60 bash -x
2017-07-30 16:20:29.985 | ++::                                        curl -g -k --noproxy '*' -s -o /dev/null -w '%{http_code}' http://192.168.56.201/compute/v2.1/
2017-07-30 16:21:30.389 | +functions:wait_for_service:401 ...
(more)
edit retag flag offensive close merge delete

Comments

First thing to check is the nova-api log. I believe that the more recent versions of devstack use systemd, so that something like journalctl -u nova-api should do the trick.

Bernd Bausch gravatar imageBernd Bausch ( 2017-08-01 22:06:51 -0500 )edit

Thank you for the comment. However, the result is not so helpful:

stack@controller:~/devstack$ sudo journalctl -u nova-api
-- No entries --

It is a few days that I try to install devstack on a VM using VirtualBox; I always get stuck because nova-api (or neutron, or keystone) doesn't start.

lorenzo.rosa gravatar imagelorenzo.rosa ( 2017-08-02 12:26:20 -0500 )edit

According to the fifth line in the log output, the systemd service is actually called n-api. In any case, you need to find the nova api log messages.

Bernd Bausch gravatar imageBernd Bausch ( 2017-08-03 04:29:02 -0500 )edit