Issue 631 in ganeti: logrotate unknown option 'su'

219 views
Skip to first unread message

gan...@googlecode.com

unread,
Nov 30, 2013, 11:20:58 AM11/30/13
to ganeti...@googlegroups.com
Status: New
Owner: ----

New issue 631 by simon.de...@gmail.com: logrotate unknown option 'su'
http://code.google.com/p/ganeti/issues/detail?id=631

* What software version are you running? Please provide the output of "gnt-
cluster --version", "gnt-cluster version", and "hspace --version".

# gnt-cluster --version
gnt-cluster (ganeti v2.9.1) 2.9.1
# gnt-cluster version
Software version: 2.9.1
Internode protocol: 2090000
Configuration format: 2090000
OS api version: 20
Export interface: 0
VCS version: v2.9.1
# hspace --version
hspace (ganeti) version v2.9.1
compiled with ghc 7.4
running on linux x86_64

* What distribution are you using?

Ubuntu using your Ganeti PPA package.

# lsb_release -rd
Description: Ubuntu 12.04.3 LTS
Release: 12.04
# uname -m
x86_64


* What steps will reproduce the problem?
1. Install the package "ganeti" from Ganeti team PPA
2. Wait for the daily logrotate
3. Check cron emails

* What is the expected output? What do you see instead?

No cron emails should be sent but I got this error:

/etc/cron.daily/logrotate:
error: ganeti:10 unknown option 'su' -- ignoring line
error: ganeti:10 unexpected text

* Please provide any additional information below.

The logrotate job is like this:

# cat /etc/logrotate.d/ganeti
/var/log/ganeti/*.log {
weekly
missingok
rotate 52
notifempty
compress
delaycompress
create 640
sharedscripts
su root root
postrotate
/usr/lib/ganeti/daemon-util rotate-all-logs
endscript
}


I think the "su root root" part should be dropped and use "create 640 root
root" instead.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

gan...@googlecode.com

unread,
Dec 2, 2013, 6:46:33 AM12/2/13
to ganeti...@googlegroups.com
Updates:
Status: WontFix
Cc: apoi...@gmail.com

Comment #1 on issue 631 by pud...@google.com: logrotate unknown option 'su'
http://code.google.com/p/ganeti/issues/detail?id=631

Thank you for the bug report. The bug corresponds to Ubuntu distribution
packages, which aren't maintained by the Ganeti team. Please file this bug
to the maintainers of the corresponding Ubuntu package.

gan...@googlecode.com

unread,
Dec 2, 2013, 7:00:38 AM12/2/13
to ganeti...@googlegroups.com

Comment #2 on issue 631 by apoi...@gmail.com: logrotate unknown option 'su'
http://code.google.com/p/ganeti/issues/detail?id=631

This is because the version of logrotate in 12.04 LTS does not
support/need 'su'. I just uploaded a fixed set of packages to the PPA.

Thanks,
Apollon

gan...@googlecode.com

unread,
Dec 2, 2013, 10:53:08 AM12/2/13
to ganeti...@googlegroups.com

Comment #3 on issue 631 by simon.de...@gmail.com: logrotate unknown
option 'su'
http://code.google.com/p/ganeti/issues/detail?id=631

Thanks Apollon the new packages fixes the problem.
Next time should I open issues here or in the PPA bug tracker?

Regards,
Simon

gan...@googlecode.com

unread,
Dec 2, 2013, 10:56:29 AM12/2/13
to ganeti...@googlegroups.com

Comment #4 on issue 631 by apoi...@gmail.com: logrotate unknown option 'su'
http://code.google.com/p/ganeti/issues/detail?id=631

Well, if you're 100% sure it's a Ganeti bug (and not something in the
packaging), you should open issues here. In any case, if you open a bug in
Launchpad and it's Ganeti-specific, we will forward the bug report here.

Regards,
Apollon
Reply all
Reply to author
Forward
0 new messages