glance-simplestreams-sync charm doesn't install cron on install

Bug #1434356 reported by Brad Marshall
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
glance-simplestreams-sync (Juju Charms Collection)
Fix Released
Critical
Felipe Reyes

Bug Description

The glance-simplestreams-sync charm doesn't install cron on a first run. The install hook doesn't do anything with installing cron scripts, and the config-changed hook only does it when the run config option is changed or - if my understanding of charmhelpers.core.hookenv.config is correct the first time its called, which it isn't. I've attached the unit logs from a fresh install of the charm.

I have a branch at lp:~brad-marshall/charms/trusty/glance-simplestreams-sync/install-cronscripts that installs the cron jobs on the install hook, but I'm not sure if its the correct way to fix it - the charm reads as if it should work as is, so I don't know if I've done something wrong here or what.

We are using the latest version of the glance-simplestreams-sync charm on a Trusty LXC. Please let me know if you have any questions or require any more information.

Related branches

Revision history for this message
Brad Marshall (brad-marshall) wrote :
Revision history for this message
Brad Marshall (brad-marshall) wrote :

A simple juju set glance-simplestreams-sync run=false then true after the install kicks off the config-changed hook as expected, and installs the cron scripts.

James Page (james-page)
Changed in glance-simplestreams-sync (Juju Charms Collection):
status: New → Confirmed
importance: Undecided → Critical
milestone: none → 15.01
milestone: 15.01 → 15.10
James Page (james-page)
Changed in glance-simplestreams-sync (Juju Charms Collection):
status: Confirmed → Triaged
Felipe Reyes (freyes)
Changed in glance-simplestreams-sync (Juju Charms Collection):
assignee: nobody → Felipe Reyes (freyes)
Felipe Reyes (freyes)
Changed in glance-simplestreams-sync (Juju Charms Collection):
status: Triaged → In Progress
Felipe Reyes (freyes)
tags: added: backport-potential openstack sts
Changed in glance-simplestreams-sync (Juju Charms Collection):
status: In Progress → Fix Committed
James Page (james-page)
Changed in glance-simplestreams-sync (Juju Charms Collection):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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