0dd2ad15af
This patch add a script to create v2plugin rootfs. 1. use local unix socket for v2plugin 2. add config.json for v2plugin 3. Add scripts to build v2plugin rootfs 4. Update devstack to use v2plugin Change-Id: I91d352a963840f33d1d2f9cea17ab6ac777d22bc Related-Bug: #1668486 Partially-Implements: BP docker-v2plugin
31 lines
633 B
Bash
Executable File
31 lines
633 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ! -d /etc/kuryr ]; then
|
|
mkdir -p /etc/kuryr
|
|
cat > /etc/kuryr/kuryr.conf << EOF
|
|
[DEFAULT]
|
|
|
|
bindir = /usr/libexec/kuryr
|
|
capability_scope = $CAPABILITY_SCOPE
|
|
log_dir = /var/log/kuryr
|
|
log_file = kuryr.log
|
|
|
|
[neutron]
|
|
project_domain_name = $USER_DOMAIN_NAME
|
|
project_name = $SERVICE_PROJECT_NAME
|
|
user_domain_name = $SERVICE_DOMAIN_NAME
|
|
password = $SERVICE_PASSWORD
|
|
username = $SERVICE_USER
|
|
auth_url = $IDENTITY_URL
|
|
auth_type = password
|
|
EOF
|
|
|
|
fi
|
|
|
|
/usr/sbin/uwsgi \
|
|
--plugin /usr/lib/uwsgi/python \
|
|
--http-socket $HTTP_SOCKET \
|
|
-w kuryr_libnetwork.server:app \
|
|
--master \
|
|
--processes "$PROCESSES"
|