3.2. DevStack

Installation sur un serveur Scaleway C2L 8 CPUs, 32 Go RAM

1. Devstack

2. Installation simple sur un hôte

git clone https://git.openstack.org/openstack-dev/devstack
cd devstack

local.conf

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

=========================
DevStack Component Timing
 (times are in seconds)
=========================
run_process           48
test_with_retry        6
apt-get-update        10
osc                  382
wait_for_service      51
git_timed            273
dbsync                43
pip_install          879
apt-get              217
-------------------------
Unaccounted time     800
=========================
Total runtime        2709



This is your host IP address: 10.5.64.169
This is your host IPv6 address: 2001:bc8:4400:2800::229
Horizon is now available at http://10.5.64.169/dashboard
Keystone is serving at http://10.5.64.169/identity/
The default users are: admin and demo
The password: supersecret

WARNING:
Using lib/neutron-legacy is deprecated, and it will be removed in the future


Services are running under systemd unit files.
For more information see:
https://docs.openstack.org/devstack/latest/systemd.html

DevStack Version: stein
Change: 16eea25b2645260808c7d063a8308cac6cc68cef Merge "Add 3 nodes nodeset based on Ubuntu bionic" 2019-03-07 12:22:38 +0000
OS Version: Ubuntu 18.04 bionic

2019-03-08 14:27:39.645 | stack.sh completed in 2709 seconds.

3. Exemple DevStack Swift

./unstack.sh
[[local|localrc]]
ENABLE_HTTPD_MOD_WSGI_SERVICES=False
ENABLED_SERVICES=key,swift,mysql
HOST_IP=127.0.0.1
ADMIN_PASSWORD=admin
MYSQL_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD

OS_IDENTITY_API_VERSION=3
OS_AUTH_URL="http://$KEYSTONE_IP/identity/v3"
OS_USERNAME=$ADMIN_USER
OS_USER_DOMAIN_ID=default
OS_PASSWORD=$ADMIN_PASSWORD
OS_PROJECT_NAME=$ADMIN_USER
OS_PROJECT_DOMAIN_ID=default
OS_REGION_NAME=RegionOne

SERVICE_HOST=$SWIFT_IP
SWIFT_SERVICE_PROTOCOL=${SWIFT_SERVICE_PROTOCOL:-http}
SWIFT_DEFAULT_BIND_PORT=${SWIFT_DEFAULT_BIND_PORT:-8080}
# service local host is used for ring building
SWIFT_SERVICE_LOCAL_HOST=$HOST_IP
# service listen address for prox
SWIFT_SERVICE_LISTEN_ADDRESS=$HOST_IP
SWIFT_LOOPBACK_DISK_SIZE=20G
SWIFT_MAX_FILE_SIZE=5368709122
SWIFT_HASH=1234567890
IDENTITY_API_VERSION=3
SWIFT_DATA_DIR=/home/stack/data/swift
./stack.sh

=========================
DevStack Component Timing
 (times are in seconds)
=========================
run_process           10
apt-get-update         4
osc                  231
wait_for_service       9
git_timed             11
dbsync                11
pip_install          174
apt-get                9
-------------------------
Unaccounted time     206
=========================
Total runtime        665



This is your host IP address: 127.0.0.1
This is your host IPv6 address: 2001:bc8:4400:2800::229
Keystone is serving at http://127.0.0.1/identity/
The default users are: admin and demo
The password: admin

Services are running under systemd unit files.
For more information see:
https://docs.openstack.org/devstack/latest/systemd.html

DevStack Version: stein
Change: 16eea25b2645260808c7d063a8308cac6cc68cef Merge "Add 3 nodes nodeset based on Ubuntu bionic" 2019-03-07 12:22:38 +0000
OS Version: Ubuntu 18.04 bionic

2019-03-08 19:34:35.565 | stack.sh completed in 665 seconds.