Quantum cronjobs have invalid continuation characters

Bug #1170312 reported by Darragh O'Reilly on 2013-04-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
quantum (Ubuntu)
High
Unassigned

Bug Description

Three openstack quantum packages from the ubuntu cloud archive have this same problem. Each one trys to install a cronjob that contains backslashes which appear to be illegal in cronjobs on ubuntu. Removing the '\'s and putting the command on one line solves it anyway.

root@netnode:/# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"

root@netnode:/# grep ERROR /var/log/syslog
Apr 18 09:02:05 netnode cron[873]: (*system*quantum-dhcp-agent-netns-cleanup) ERROR (Syntax error, this crontab file will be ignored)
Apr 18 09:02:05 netnode cron[873]: (*system*quantum-lbaas-agent-netns-cleanup) ERROR (Syntax error, this crontab file will be ignored)
Apr 18 09:02:05 netnode cron[873]: (*system*quantum-l3-agent-netns-cleanup) ERROR (Syntax error, this crontab file will be ignored)

root@netnode:/# find /etc/cron* -name quantum\*
/etc/cron.d/quantum-dhcp-agent-netns-cleanup
/etc/cron.d/quantum-lbaas-agent-netns-cleanup
/etc/cron.d/quantum-l3-agent-netns-cleanup

root@netnode:/# find /etc/cron* -name quantum\* -exec sh -c 'echo "==== {} ===="; cat {}; echo' \;

==== /etc/cron.d/quantum-dhcp-agent-netns-cleanup ====
# Periodically cleans Quantum's network namespaces on behalf of the Quantum
# DHCP agent.
30 * * * * quantum if [ -x /usr/bin/quantum-netns-cleanup ] ; then \
                     /usr/bin/quantum-netns-cleanup \
                    --config-file=/etc/quantum/quantum.conf \
                    --config-file=/etc/quantum/dhcp_agent.ini >/dev/null 2>&1; fi

==== /etc/cron.d/quantum-lbaas-agent-netns-cleanup ====
# Periodically cleans Quantum's network namespaces on behalf of the Quantum
# L3 agent.
0 * * * * quantum if [ -x /usr/bin/quantum-netns-cleanup ] ; then \
                    /usr/bin/quantum-netns-cleanup \
                    --config-file=/etc/quantum/quantum.conf \
                    --config-file=/etc/quantum/lbaas_agent.ini >/dev/null 2>&1; fi

==== /etc/cron.d/quantum-l3-agent-netns-cleanup ====
# Periodically cleans Quantum's network namespaces on behalf of the Quantum
# L3 agent.
0 * * * * quantum if [ -x /usr/bin/quantum-netns-cleanup ] ; then \
                    /usr/bin/quantum-netns-cleanup \
                    --config-file=/etc/quantum/quantum.conf \
                    --config-file=/etc/quantum/l3_agent.ini >/dev/null 2>&1; fi

root@netnode:/# dpkg -S /etc/cron.d/quantum-dhcp-agent-netns-cleanup
quantum-dhcp-agent: /etc/cron.d/quantum-dhcp-agent-netns-cleanup

root@netnode:/# dpkg -S /etc/cron.d/quantum-lbaas-agent-netns-cleanup
quantum-lbaas-agent: /etc/cron.d/quantum-lbaas-agent-netns-cleanup

root@netnode:/# dpkg -S /etc/cron.d/quantum-l3-agent-netns-cleanup
quantum-l3-agent: /etc/cron.d/quantum-l3-agent-netns-cleanup

root@netnode:/# dpkg -l quantum\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=========================-=========================-==================================================================
un quantum-client <none> (no description available)
ii quantum-common 1:2013.1-0ubuntu1~cloud0 Quantum is a virtual network service for Openstack - common
ii quantum-dhcp-agent 1:2013.1-0ubuntu1~cloud0 Quantum is a virtual network service for Openstack - DHCP agent
ii quantum-l3-agent 1:2013.1-0ubuntu1~cloud0 Quantum is a virtual network service for Openstack - l3 agent
ii quantum-lbaas-agent 1:2013.1-0ubuntu1~cloud0 Quantum is a virtual network service for Openstack - LBaaS agent
ii quantum-metadata-agent 1:2013.1-0ubuntu1~cloud0 Quantum is a virtual network service for Openstack - metadata agen
un quantum-plugin <none> (no description available)
ii quantum-plugin-openvswitc 1:2013.1-0ubuntu1~cloud0 Quantum is a virtual network service for Openstack - Open vSwitch
ii quantum-plugin-openvswitc 1:2013.1-0ubuntu1~cloud0 Quantum is a virtual network service for Openstack - Open vSwitch
un quantum-server <none> (no description available)

Related branches

James Page (james-page) on 2013-04-22
Changed in quantum (Ubuntu):
importance: Undecided → High
status: New → Triaged
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package quantum - 1:2013.1-0ubuntu2

---------------
quantum (1:2013.1-0ubuntu2) raring; urgency=low

  * Fix invalid multi-line cron jobs (LP: #1170312):
    - d/cron.d/*: Consolidate jobs into a single command line, set syntax
      highlighting to type 'crontab'.
 -- James Page <email address hidden> Mon, 22 Apr 2013 15:58:12 +0100

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

Other bug subscribers