nova-objectstore logrotate script uses 'dpkg-vendor'

Bug #913739 reported by Andrew Glen-Young
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

nova-objectstore's logrotate script uses 'dpkg-vendor' to try determine how to restart nova-objectstore. This requires 'dpkg-dev' to be installed which is not desirable.

The script really should use /etc/lsb-release.

Current logrotate script (/etc/logrotate.d/nova-objectstore):

    /var/log/nova/nova-objectstore.log {
        daily
        missingok
        postrotate
            if dpkg-vendor --derives-from ubuntu ; then
                restart nova-objectstore
            else
                invoke-rc.d nova-objectstore restart 2>&1 >/dev/null
            fi
        endscript
    }

Related bugs:
- LP#781716 Post install check assumes dpkg-vendor

System information:
- DISTRIB_DESCRIPTION="Ubuntu 11.10"
- nova-objectstore 2011.3-0ubuntu6.3

Dave Walker (davewalker)
Changed in nova (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Chuck Short (zulcss) wrote :

This should already be fixed in the archive.

Changed in nova (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.