123cc109e2
'glance' element now results in a properly-configured, working glance service on first boot. While glance-api and glance-reg may need to be broken out again in the future, the intention now is to focus on a working service for an end-to-end PoC. Change-Id: I4fb1cd5ad6defef5a5c4fddfded46d51e8097b5a
14 lines
647 B
Bash
Executable File
14 lines
647 B
Bash
Executable File
#!/bin/bash
|
|
set -eux
|
|
|
|
# TODO: use trunk instead of folsom
|
|
# trunk glance currently results in CRITICAL 'duplicate config entry log-format' errors:
|
|
# https://bugs.launchpad.net/ubuntu/+source/python-glanceclient/+bug/1131327
|
|
os-svc-install -n glance -u glance -r https://github.com/openstack/glance.git -b stable/folsom
|
|
|
|
mkdir -p /var/lib/glance/images && chown -R glance:glance /var/lib/glance/images
|
|
os-svc-daemon glance-api glance glance-api "--debug --log-config /etc/glance/logging.conf"
|
|
os-svc-daemon glance-reg glance glance-registry "--debug --log-config /etc/glance/logging.conf"
|
|
|
|
install -m 0755 -o glance -g glance -d /var/log/glance
|