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: I6bb59204cbe044f9dfac183fa6110fdcdde5636d
  • Loading branch information
moghea committed May 31, 2016
1 parent 7bb6dd6 commit 7d778fd
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -175,6 +175,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 7d778fd

Please sign in to comment.