Skip to content

Commit

Permalink
change /var/log/api.log ownership to glance:glance to avoid glance-ap…
Browse files Browse the repository at this point in the history
…i service crash.

Since provisioning code explicitly mentioned log_file as /var/log/glance/api.log, ownership sets to
root causing glance to fail while updating a log file.
Closes-Bug: #1580446

Change-Id: I2914bc2b3994dedd568d2d74e70197aba9802f54
  • Loading branch information
moghea committed May 31, 2016
1 parent 456262a commit c8f95eb
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -201,6 +201,10 @@ if [ "$INTERNAL_VIP" != "none" ]; then
openstack-config --set /etc/glance/glance-api.conf DEFAULT swift_store_auth_address $INTERNAL_VIP:5000/v2.0/
fi

if [ $is_ubuntu -eq 1 ] ; then
chown glance:glance /var/log/glance/api.log
fi

if [ "$OPENSTACK_INDEX" -eq 1 ]; then
glance-manage db_sync
fi
Expand Down

0 comments on commit c8f95eb

Please sign in to comment.