2b113e1e29
As part of an ongoing effort to apply more testing against elements, this patch provides fixes for most dib-lint failures outside of the set -o pipefail patch[1] including set options, indention, and file permissions. There are still a few indention errors left after this patch, but they should be ignored in a dib-lint patch soon to add additional exclusions. [1] Ib97e3a35dd0ee653f1298c9ffe6ea99cea9dfd55 Change-Id: Ibf3dfc5735752900598466b0a54342692ef77284
25 lines
909 B
Bash
Executable File
25 lines
909 B
Bash
Executable File
#!/bin/bash
|
|
set -eux
|
|
|
|
# Used by all compute
|
|
install-packages bridge-utils ebtables qemu-utils syslinux
|
|
|
|
# LIBVIRT_DEFAULT_URI needs to be set due to
|
|
# https://bugs.launchpad.net/tripleo/+bug/1226310
|
|
CONFIG_PARAMETERS="--config-dir /etc/nova"
|
|
TEMPLATE_ROOT=$(dirname $0)/../os-apply-config
|
|
|
|
if [ -d ${TEMPLATE_ROOT}/etc/nova/compute ]; then
|
|
CONFIG_PARAMETERS="${CONFIG_PARAMETERS} --config-dir /etc/nova/compute"
|
|
fi
|
|
|
|
os-svc-daemon -i "$NOVA_VENV_DIR" -e "LIBVIRT_DEFAULT_URI=qemu:///system" nova-compute nova nova-compute "${CONFIG_PARAMETERS}"
|
|
|
|
|
|
# Use the rootwrap config from the source repo.
|
|
install -o root -g root -m 0755 -d /etc/nova/rootwrap.d
|
|
for f in $(ls /opt/stack/nova/etc/nova/rootwrap.d/); do
|
|
install -o root -g root -m 644 /opt/stack/nova/etc/nova/rootwrap.d/$f /etc/nova/rootwrap.d/$f
|
|
done
|
|
install -o root -g root -m 0644 /opt/stack/nova/etc/nova/rootwrap.conf /etc/nova/rootwrap.conf
|