DevStack in Ubuntu 17.04 VM

asked 2017-07-30 16:43:09 -0500

Nicu Tofan gravatar image

On a fresh installation of Ubuntu 17.04 I installed DevStack (openstack 3.8.1) using:

IP4_ADDR=192.168.1.50
IP4_GATEWAY=192.168.1.1
current_time=$(date "+%Y~%m~%d-%H~%M~%S")
mv /etc/network/interfaces /etc/network/interfaces.$current_time
sudo tee /etc/network/interfaces << EOF
auto lo
iface lo inet loopback
auto enp0s3
iface enp0s3 inet static
    address $IP4_ADDR
    netmask 255.255.255.0
    gateway $IP4_GATEWAY
EOF
sudo service networking reload
sudo apt-get -y install cloud-init git net-tools htop
git clone https://git.openstack.org/openstack-dev/devstack -b stable/ocata
cd devstack
tee local.conf << EOF
[[local|localrc]]
ADMIN_PASSWORD=password
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
HOST_IP=$IP4_ADDR
LOGFILE=\$DEST/logs/stack.sh.log
LOGDAYS=2
LOG_COLOR=False
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
SWIFT_REPLICAS=1
SWIFT_DATA_DIR=\$DEST/data
EOF
sed -i '2s/.*/FORCE=yes/' ./stack.sh
./stack.sh

Warnings in log:

:26:51.932 | update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
:45:46.311 | Warning: Since password will be sent to server in plain text, use ssl connection to ensure password safety.
:46:21.808 | 2017-07-30 23:46:21.807 24455 WARNING py.warnings [-] /usr/local/lib/python2.7/dist-packages/pycadf/identifier.py:60: UserWarning: Invalid uuid. To ensure interoperability, identifiers should be a valid uuid.
:46:21.809 |   warnings.warn('Invalid uuid. To ensure interoperability, identifiers '
:51:49.562 | WARNING:root:No local_settings file found.
:52:24.292 | 2017-07-30 23:52:24.292 29570 WARNING neutron.agent.ovsdb.native.vlog [-] tcp:127.0.0.1:6640: send error: Connection refused
:53:04.319 | WARNING: cell0 mapping not found - not syncing cell0.

Errors in log:

:29:20.886 | Job for radvd.service failed because the control process exited with error code.
:32:26.746 | ERROR: Module version does not exist!
:52:24.292 | 2017-07-30 23:52:24.292 29570 WARNING neutron.agent.ovsdb.native.vlog [-] tcp:127.0.0.1:6640: send error: Connection refused

Now immediately after the installation if I issue:

$ openstack --os-cloud=devstack-admim server list

I get no error but - after a restart - I get

Unable to establish connection to http://192.168.1.50:8774/v2.1/servers/detail (http://192.168.1.50:8774/v2.1/servers...): HTTPConnectionPool(host='192.168.1.50', port=8774): Max retries exceeded with url: /v2.1/servers/detail (Caused by NewConnectionError('<requests.packages.urllib3.connection.httpconnection 0x7fb52591a650="" at="" object="">: Failed to establish a new connection: [Errno 111] Connection refused',))</requests.packages.urllib3.connection.httpconnection>

From openstack --os-cloud=devstack-admin catalog list I know that nova and nova_legacy should listen to the port but sudo lsof -i -n -P | grep 8774 comes out empty (and there is no /etc/apache2/sites-available/nova-api.conf so so surprise there).

Something fails to start but I don't know how to debug this and my google-fu is failing me.

edit retag flag offensive close merge delete