Ask Your Question
0

devstack ubuntu broken pipe error (current and rocky)

asked 2019-03-05 16:01:23 -0500

openstackfusion gravatar image

Hi!

Seems I'm trying to do something a little less common which is install devstack on Ubuntu 18.04.02 LTS without doing a conjure-up or something similar. The machine is fully updated/upgraded. No new packages added. Git was already a part of the server install.

My goal is to do something like tripleo (OpenStack on OpenStack) on Ubuntu.

So the idea was install devstack on a single machine.

So did the git clone against master put a local.conf in, (even tried the exact example on this page (https://docs.openstack.org/devstack/latest/guides/single-machine.html)) (https://docs.openstack.org/devstack/l...) ran "./stack.sh"

If I use master the error occurs on line 540. If I got to stable/rocky it appears on 533.

++functions-common:trueorfalse:143          xtrace='set -o xtrace'
++functions-common:trueorfalse:144          set +o xtrace
+functions-common:git_clone:502            RECLONE=False
+functions-common:git_clone:503            [[ 0 -gt 0 ]]
+functions-common:git_clone:507            [[ False = \T\r\u\e ]]
+functions-common:git_clone:516            echo stable/rocky
+functions-common:git_clone:516            egrep -q '^refs'
+functions-common:git_clone:530            [[ ! -d /opt/stack/requirements ]]
+functions-common:git_clone:538            [[ False = \T\r\u\e ]]
+functions-common:git_clone:564            cd /opt/stack/requirements
+functions-common:git_clone:565            git show --oneline
+functions-common:git_clone:565            head -1
deb35373 update constraint for python-swiftclient to new release 3.7.0
+functions-common:git_clone:566            cd /opt/stack/devstack
+./stack.sh:main:755                       echo_summary 'Installing package prerequisites'
+./stack.sh:echo_summary:434               [[ -t 3 ]]
+./stack.sh:echo_summary:434               [[ True != \T\r\u\e ]]
+./stack.sh:echo_summary:440               echo -e Installing package prerequisites
++./stack.sh:echo_summary:1                 exit_trap
++./stack.sh:exit_trap:515                  local r=1
+++./stack.sh:exit_trap:516                  jobs -p
++./stack.sh:exit_trap:516                  jobs=
++./stack.sh:exit_trap:519                  [[ -n '' ]]
++./stack.sh:exit_trap:525                  '[' -f '' ']'
++./stack.sh:exit_trap:530                  kill_spinner
++./stack.sh:kill_spinner:425               '[' '!' -z '' ']'
++./stack.sh:exit_trap:532                  [[ 1 -ne 0 ]]
++./stack.sh:exit_trap:533                  echo 'Error on exit'
./stack.sh: line 533: echo: write error: Broken pipe

Not sure where to go from here. I checked for text file logs or logs to journalctl as the stack user and don't see them.

Thanks in advance!

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2019-03-05 16:14:34 -0500

openstackfusion gravatar image

More on this...

So while waiting for post moderation, I went to the quick start guide and copied all of that text into a new local.conf

[[local|localrc]]
# Multi-host settings
MULTI_HOST=False
HOST_IP=YOUR_IP_CONFIG
SERVICE_HOST=$HOST_IP
DATABASE_TYPE=mysql
MYSQL_HOST=$HOST_IP
RABBIT_HOST=$HOST_IP

# Passwords
DATABASE_PASSWORD=123
ADMIN_PASSWORD=123
MYSQL_PASSWORD=123
RABBIT_PASSWORD=123
SERVICE_PASSWORD=123
SERVICE_TOKEN=ADMIN

#FIXED_RANGE=192.168.128.0/24
#IPV4_ADDRS_SAFE_TO_USE=192.168.128.0/24
#GIT_BASE=/opt/git
disable_service n-net
disable_service tempest
disable_service heat
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 n-novnc
enable_plugin cyborg git://git.openstack.org/openstack/cyborg
NOVA_VNC_ENABLED=True
NOVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_auto.html"
VNCSERVER_LISTEN=0.0.0.0
VNCSERVER_PROXYCLIENT_ADDRESS=$SERVICE_HOST
RECLONE=False
#enable Logging
LOGFILE=/opt/stack/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=True
LOGDIR=/opt/stack/logs

substituting HOST_IP for the servers IP.

That seems to be working right now.

So perhaps the issue I'm reporting is that the docs for single machine maybe imply a simpler config file than what is necessary:

Run DevStack¶

Now to configure stack.sh. DevStack includes a sample in devstack/samples/local.conf. Create local.conf as shown below to do the following:

    Set FLOATING_RANGE to a range not used on the local network, i.e. 192.168.1.224/27. This configures IP addresses ending in 225-254 to be used as floating IPs.
    Set FIXED_RANGE and FIXED_NETWORK_SIZE to configure the internal address space used by the instances.
    Set FLAT_INTERFACE to the Ethernet interface that connects the host to your local network. This is the interface that should be configured with the static IP address mentioned above.
    Set the administrative password. This password is used for the admin and demo accounts set up as OpenStack users.
    Set the MySQL administrative password. The default here is a random hex string which is inconvenient if you need to look at the database directly for anything.
    Set the RabbitMQ password.
    Set the service password. This is used by the OpenStack services (Nova, Glance, etc) to authenticate with Keystone.

local.conf should look something like this:

[[local|localrc]]
FLOATING_RANGE=192.168.1.224/27
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0
ADMIN_PASSWORD=supersecret
DATABASE_PASSWORD=iheartdatabases
RABBIT_PASSWORD=flopsymopsy
SERVICE_PASSWORD=iheartksl

I'm posting this so that anyone who has the same problem and can't find an answer is hopefully helped over the hump.

Best!

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

1 follower

Stats

Asked: 2019-03-05 15:56:54 -0500

Seen: 221 times

Last updated: Mar 05