Description of problem: Running $> sudo openstack-nova-db-setup as per http://fedoraproject.org/wiki/Getting_started_with_OpenStack_on_Fedora_17 creates a logfile owned by root: $> ls -l /var/log/glance/registry.log -rw-r--r--. 1 root root 132 Apr 10 10:32 /var/log/glance/registry.log This prevents the glance-registry service from starting - it runs under the "glance" account, and cannot write to the logfile. Version-Release number of selected component (if applicable): $> rpm -qf /usr/bin/openstack-glance-db-setup openstack-glance-2012.1-0.11.rc2.fc16.noarch How reproducible: 100% Steps to Reproduce: Simply run "sudo /usr/bin/openstack-glance-db-setup" Additional info: (Re-) Moving the logfile solves the issue.
Also present in openstack-glance-2012.1-1.fc16.noarch
Good one. This happens on new systems where openstack-glance-db-setup is run before glance ever was. I.E. the norm for users. This should fix it... diff --git a/openstack-glance-db-setup b/openstack-glance-db-setup index e1f0eb9..95a2a83 100755 --- a/openstack-glance-db-setup +++ b/openstack-glance-db-setup @@ -247,12 +247,10 @@ fi # Ask openstack-$APP to sync the db. echo "Asking openstack-$APP to sync the database." -if [ "${APP}" = "nova" ]; then - nova-manage db sync -else - # glance and keystone - $APP-manage db_sync -fi +[ "${APP}" = "nova" ] && db_sync='db sync' || db_sync='db_sync' +# Run as $APP user so any newly created (log) files have correct ownership +runuser -s /bin/sh $APP -c "$APP-manage $db_sync" Fix coming up...
openstack-glance-2012.1-2.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/openstack-glance-2012.1-2.fc17
Note the build above is for F17, but you might be able to install manually on your F16 system. I checked keystone and its "db sync" process does not create log files. I checked nova, and its does, but only for the nova-manage command which is generally run as root anyway. In any case all services will soon update to a shared db-setup script which will manage permissions consistently.
Works fine on F16, Karma given. Thanks!
Package openstack-glance-2012.1-2.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing openstack-glance-2012.1-2.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-5594/openstack-glance-2012.1-2.fc17 then log in and leave karma (feedback).
openstack-glance-2012.1-3.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/openstack-glance-2012.1-3.fc17
openstack-glance-2012.1-3.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.