Ask Your Question
0

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: https://docs.openstack.org/devstack/latest/ (https://docs.openstack.org/devstack/l...)

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 https://opendev.org/openstack/devstack cd devstack cp samples/local.conf . (Note, I also tried the min one with just the passwords, same issue) ./stack.sh

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@127.0.0.1/nova_cell0?charset=utf8 |  False   |
| cell1 | 4e90bd1d-964d-4f3f-90a1-e42030baf1ff | rabbit://stackrabbit:pants@139.162.244.175:5672/nova_cell1 | mysql+pymysql://root:pants@127.0.0.1/nova_cell1?charset=utf8 |  False   |
+-------+--------------------------------------+------------------------------------------------------------+--------------------------------------------------------------+----------+
+./stack.sh:main:1361                      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
+./stack.sh:exit_trap:531                  local r=1
++./stack.sh:exit_trap:532                  jobs -p
+./stack.sh:exit_trap:532                  jobs=
+./stack.sh:exit_trap:535                  [[ -n '' ]]
+./stack.sh:exit_trap:541                  '[' -f /tmp/tmp.0jqhUBUVJq ']'
+./stack.sh:exit_trap:542                  rm /tmp/tmp.0jqhUBUVJq
+./stack.sh:exit_trap:546                  kill_spinner
+./stack.sh:kill_spinner:441               '[' '!' -z '' ']'
+./stack.sh:exit_trap:548                  [[ 1 -ne 0 ]]
+./stack.sh:exit_trap:549                  echo 'Error on exit'
Error on exit
+./stack.sh:exit_trap:551                  type -p generate-subunit
+./stack.sh:exit_trap:552                  generate-subunit 1564687245 1372 fail
+./stack.sh:exit_trap:554                  [[ -z /opt/stack/logs ]]
+./stack.sh:exit_trap:557                  /opt/stack/devstack/tools/worlddump.py -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
+./stack.sh:exit_trap:566                  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@127.0.0.1/nova_cell0?charset=utf8 |  False   |
| cell1 | 6e754c24-4c2c-4262-b2c3-ad07abf19b3c | rabbit://stackrabbit:StrongAdminSecret@139.162.244.175:5672/nova_cell1 | mysql+pymysql://root:StrongAdminSecret@127.0.0.1/nova_cell1?charset=utf8 |  False   |
+-------+--------------------------------------+------------------------------------------------------------------------+--------------------------------------------------------------------------+----------+
+./stack.sh:main:1361                      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 ...
(more)
edit retag flag offensive close merge delete

Comments

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

1 answer

Sort by ยป oldest newest most voted
0

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 ./stack.sh, 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

Comments

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

Stats

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

Seen: 31 times

Last updated: Aug 11