unit agent fails after a few upgrades

Bug #1191403 reported by William Reade
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Triaged
High
Unassigned

Bug Description

juju-lcy2-machine-16:2013/06/13 13:02:04 NOTICE worker/uniter: unit "postgresql/0" shutting down: ModeUpgrading local:precise/postgresql-42: failed to create "/var/lib/juju/agents/unit-postgresql-0/state/deployer/update-%Y%m%d-%H%M%S-9": mkdir /var/lib/juju/agents/unit-postgresql-0/state/deployer/update-%Y%m%d-%H%M%S-9: file exists
juju-lcy2-machine-16:2013/06/13 13:02:04 ERROR worker/uniter/filter: tomb: dying
juju-lcy2-machine-16:2013/06/13 13:02:04 ERROR uniter for postgresql/0: ModeUpgrading local:precise/postgresql-42: failed to create "/var/lib/juju/agents/unit-postgresql-0/state/deployer/update-%Y%m%d-%H%M%S-9": mkdir /var/lib/juju/agents/unit-postgresql-0/state/deployer/update-%Y%m%d-%H%M%S-9: file exists
juju-lcy2-machine-16:2013/06/13 13:02:04 ERROR ModeUpgrading local:precise/postgresql-42: failed to create "/var/lib/juju/agents/unit-postgresql-0/state/deployer/update-%Y%m%d-%H%M%S-9": mkdir /var/lib/juju/agents/unit-postgresql-0/state/deployer/update-%Y%m%d-%H%M%S-9: file exists

er, looks like we're not formatting a format string there :/.

Tags: bitesize easy
William Reade (fwereade)
tags: added: easy
Revision history for this message
John A Meinel (jameinel) wrote :

We're using time.Format wrong: http://play.golang.org/p/1C5k3aFKmI

The only question IMO is whether we should be using time.Now at all, instead of ioutil.TempDir which is designed to handle collisions like this.

Revision history for this message
John A Meinel (jameinel) wrote :

Ah, I read the duplication wrong, this is marked as a dupe of that.

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.