Nonce generation should use uuids rather than randint(100000000)

Bug #1359247 reported by Greg Lutostanski
This bug report is a duplicate of:  Bug #1190986: [SRU] ERROR Nonce already used. Edit Remove
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Go MAAS API Library
In Progress
High
Greg Lutostanski
juju-core
New
Undecided
Unassigned

Bug Description

Even with maas' nonce cleaner we should be using uuids for nonces rather than randInt(100,000,000).

It only takes 10000 calls to have a ~40% chance of a collision using the randInt method.

This can be hit using juju bootstrap (or any time juju makes a lot of gomaasapi calls) causing the "ERROR Nonce already used:" problem (https://bugs.launchpad.net/bugs/1190986).

Related branches

Changed in gomaasapi:
importance: Undecided → High
status: New → In Progress
assignee: nobody → Greg Lutostanski (lutostag)
David Britton (dpb)
tags: added: cloud-installer landscape
no longer affects: juju-core (Ubuntu)
Aaron Bentley (abentley)
Changed in juju-core:
milestone: none → 1.20.7
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.