Duplicate key error on juju.txns.stash creating model

Bug #1594290 reported by Mark Shuttleworth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Triaged
High
Unassigned

Bug Description

Just saw this:

  $ juju models
  MODEL OWNER STATUS LAST CONNECTION
  controller* admin@local available 12 seconds ago
  bigdata admin@local destroying never connected

  mark@maas:~$ juju add-model kubes

  ERROR failed to create new model: E11000 duplicate key error collection: juju.txns.stash index: _id_ dup key: { : { c: "statuseshistory", id: ObjectId('5765d034ffc8d5d51c65b348') } }
mark@maas:~$

It might be related to the destroy-model proceeding in the background.

Interestingly, though the model got created:

  $ juju models
  MODEL OWNER STATUS LAST CONNECTION
  controller* admin@local available 7 minutes ago
  kubes admin@local available never connected

Though I don't know if it's broken in some way or not.

Tags: mongodb
Revision history for this message
Cheryl Jennings (cherylj) wrote :

As I have been triaging other bugs in 2.0, I have also seen this error in logs, most commonly in reference to the presence collection. In those cases, the pingers would restart and no error was surfaced up to the users.

@sabdfl - Was your controller machine on trusty or xenial? (if on trusty, it would be still be using mongo 2.4) I'll also try to dig up some other examples to see if there's some correlation between mongo version and this error.

Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.0-beta10
tags: added: mongodb
Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1594290] Re: Duplicate key error on juju.txns.stash creating model

In this case the controller is Xenial.

Mark

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.