Ask Your Question

devstack not working with ubuntu 18.4 LTS

asked 2019-08-02 05:09:06 -0500

nutmix gravatar image

updated 2019-08-02 06:54:02 -0500

I just followed the instructions here: (

on a brand new linode Ubuntu 18.04 LTS (The recommended distro) with 4GB ram, 2 core, 60GB SSD etc.

I first did a sudo apt-get update/upgrade of course.

The article says to do the following, which I did exactly:

sudo useradd -s /bin/bash -d /opt/stack -m stack echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack sudo su - stack git clone cd devstack cp samples/local.conf . (Note, I also tried the min one with just the passwords, same issue) ./

This runs for a long time, then ends with the error output at the end. After the install, there is no dashboard on http://myip/dashboard.

Dumping cells_v2 mapping
+lib/nova:start_nova:1007                  /usr/local/bin/nova-manage cell_v2 list_cells --verbose
|  Name |                 UUID                 |                       Transport URL                        |                     Database Connection                      | Disabled |
| cell0 | 00000000-0000-0000-0000-000000000000 |                          none:///                          | mysql+pymysql://root:pants@ |  False   |
| cell1 | 4e90bd1d-964d-4f3f-90a1-e42030baf1ff | rabbit://stackrabbit:pants@ | mysql+pymysql://root:pants@ |  False   |
+./                      create_flavors
+lib/nova:create_flavors:1071              is_service_enabled n-api
+functions-common:is_service_enabled:1988  return 0
+lib/nova:create_flavors:1072              openstack --os-region-name=RegionOne flavor list
+lib/nova:create_flavors:1072              grep -q ds512M
+lib/nova:create_flavors:1074              openstack --os-region-name=RegionOne flavor create --id c1 --ram 256 --disk 1 --vcpus 1 cirros256
Internal Server Error (HTTP 500)
+lib/nova:create_flavors:1                 exit_trap
+./                  local r=1
++./                  jobs -p
+./                  jobs=
+./                  [[ -n '' ]]
+./                  '[' -f /tmp/tmp.0jqhUBUVJq ']'
+./                  rm /tmp/tmp.0jqhUBUVJq
+./                  kill_spinner
+./               '[' '!' -z '' ']'
+./                  [[ 1 -ne 0 ]]
+./                  echo 'Error on exit'
Error on exit
+./                  type -p generate-subunit
+./                  generate-subunit 1564687245 1372 fail
+./                  [[ -z /opt/stack/logs ]]
+./                  /opt/stack/devstack/tools/ -d /opt/stack/logs
nova-compute: no process found
neutron-dhcp-agent: no process found
neutron-l3-agent: no process found
neutron-metadata-agent: no process found
neutron-openvswitch-agent: no process found
+./                  exit 1

I just wiped the machine, rebuilt it, but this time did a dist-upgrade and reboot before doing the instl using the min conf file as per the documentation. Got more or less the same error:

| cell0 | 00000000-0000-0000-0000-000000000000 |                                none:///                                | mysql+pymysql://root:StrongAdminSecret@ |  False   |
| cell1 | 6e754c24-4c2c-4262-b2c3-ad07abf19b3c | rabbit://stackrabbit:StrongAdminSecret@ | mysql+pymysql://root:StrongAdminSecret@ |  False   |
+./                      create_flavors
+lib/nova:create_flavors:1071              is_service_enabled n-api
+functions-common:is_service_enabled:1959  local xtrace
++functions-common:is_service_enabled:1960  set +o
++functions-common:is_service_enabled:1960  grep xtrace
+functions-common:is_service_enabled:1960  xtrace='set -o xtrace'
+functions-common:is_service_enabled:1961  set +o xtrace
+functions-common ...
edit retag flag offensive close merge delete


4gb is way too small. Try 8 or more.

Bernd Bausch gravatar imageBernd Bausch ( 2019-08-02 05:50:58 -0500 )edit

@Berd thanks for the reply. All the articles I found said 4GB would work. I would assume I see memory errors or crash during install process if not enough memory?

nutmix gravatar imagenutmix ( 2019-08-02 06:56:19 -0500 )edit

Indeed, my guess is that parts of OpenStack are aborted for lack of memory or are even unable to start. Or they start so slowly that something times out.

In your case, nova-compute and all of Neutron are not running.

/var/log/syslog or the kernel message log (dmesg) should contain information.

Bernd Bausch gravatar imageBernd Bausch ( 2019-08-02 07:07:25 -0500 )edit

Ideally, if it cant run in 4GB, it should check and abort at the start of the script. Interestingly, I just created an 8GB ubuntu 19 instance. It complained that the OS was not supported (had to use the force option), but it seems to have worked. Now I need to figure out how to use the UI.

nutmix gravatar imagenutmix ( 2019-08-02 09:56:20 -0500 )edit

i could not make devstack work on 18.04 either, spent insane amount of time to troubleshoot it, I just went for 16.04

tipkopf gravatar imagetipkopf ( 2019-08-03 12:27:35 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2020-03-27 14:10:47 -0500



Neutron options


Open vSwitch provider networking configuration



GIT_BASE=${GIT_BASE:-} enable_plugin tackr master


disable_service n-net enable_service q-svc enable_service q-agt enable_service q-dhcp enable_service q-l3 enable_service q-meta enable_service neutron enable_service swift enable_service s-proxy enable_service s-object enable_service s-container enable_service s-account

SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5 SWIFT_REPLICAS=1 SWIFT_DATA_DIR=$DEST/data

edit flag offensive delete link more

answered 2019-08-11 12:04:04 -0500

Ben78 gravatar image

updated 2019-08-11 12:05:29 -0500

Unfortunately, latest branch of DevStack necessarily is not compatible with any release of Ubuntu. After cloning the DevStack and before running ./, try to checkout an on older branch of devstack by executing something like this:

git checkout stable/stein

This worked for me. Do not forget to try this on a fresh OS.

edit flag offensive delete link more


I just set up a master branch Devstack on Ubuntu 18.04. No problem found.

Bernd Bausch gravatar imageBernd Bausch ( 2019-08-15 00:16:56 -0500 )edit

For me, master branch only works fine on Ubuntu 18.04 server not Desktop. Have you installed it on Ubuntu Desktop?

Ben78 gravatar imageBen78 ( 2019-08-15 08:35:20 -0500 )edit

I always use the server releases. My guess: Desktop has a much larger collection of software installed, some of which might clash with Devstack. Or configuration differences, in particular when it comes to network and firewall management.

Bernd Bausch gravatar imageBernd Bausch ( 2019-08-16 01:36:53 -0500 )edit

Does the Desktop version of 18.04 use NetworkManager? If so, be aware that OpenStack doesn't coexist well, or not at all, with NetworkManager. Disable it or use the server version.

Bernd Bausch gravatar imageBernd Bausch ( 2019-08-16 01:41:03 -0500 )edit

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


Asked: 2019-08-02 05:06:10 -0500

Seen: 543 times

Last updated: Aug 11 '19