Skip to content

Conversation

axw
Copy link
Contributor

@axw axw commented Jul 22, 2014

There is a race between the machine agent starting and
the provisioner recording its instance ID in state.
We modify the agent's logic around opening API
connections to retry for up to one minute if it receives
an error satisfying IsCodeNotProvisioned.

Fixes https://bugs.launchpad.net/juju-core/+bug/1345014

@axw
Copy link
Contributor Author

axw commented Jul 22, 2014

$$cherrypick$$

@jujubot
Copy link
Collaborator

jujubot commented Jul 22, 2014

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot
Copy link
Collaborator

jujubot commented Jul 22, 2014

Build failed: Tests failed
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/85

There is a race between the machine agent starting and
the provisioner recording its instance ID in state.
We modify the agent's logic around opening API
connections to retry for up to one minute if it receives
an error satisfying IsCodeNotProvisioned.

Fixes https://bugs.launchpad.net/juju-core/+bug/1345014
@axw
Copy link
Contributor Author

axw commented Jul 22, 2014

$$retry$$

@jujubot
Copy link
Collaborator

jujubot commented Jul 22, 2014

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

jujubot added a commit that referenced this pull request Jul 22, 2014
cmd/jujud: reattempt api.Open if IsCodeNotProvisioned

There is a race between the machine agent starting and
the provisioner recording its instance ID in state.
We modify the agent's logic around opening API
connections to retry for up to one minute if it receives
an error satisfying IsCodeNotProvisioned.

Fixes https://bugs.launchpad.net/juju-core/+bug/1345014
@jujubot jujubot merged commit 6fd6246 into juju:1.20 Jul 22, 2014
axw added a commit to axw/juju that referenced this pull request Dec 6, 2016
axw added a commit to axw/juju that referenced this pull request Dec 6, 2016
jujubot added a commit that referenced this pull request Dec 6, 2016
jujubot added a commit that referenced this pull request Dec 6, 2016
axw added a commit to axw/juju that referenced this pull request Jan 27, 2017
jujubot added a commit that referenced this pull request Jan 27, 2017
patches: add mgo PR #360

Add mgo/txn patch to 1.25 branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants