provider/local: avoid spurious errors in Destroy #2888

Merged
merged 1 commit into from Aug 10, 2015

Conversation

Projects
None yet
3 participants
Member

axw commented Jul 28, 2015

The local provider's Destroy method will sometimes
emit an ugly ERROR log message, but keep on destroying,
if the upstart/systemd service cannot be stopped and
removed. This will often occur because the agent
also stops/removes its service during teardown. To
avoid the ugly error, we attempt the operation twice,
and only log the error on the second attempt.

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

provider/local: avoid spurious errors in Destroy
The local provider's Destroy method will sometimes
emit an ugly ERROR log message, but keep on destroying,
if the upstart/systemd service cannot be stopped and
removed. This will often occur because the agent
also stops/removes its service during teardown. To
avoid the ugly error, we attempt the operation twice,
and only log the error on the second attempt.

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

howbazaar commented Aug 10, 2015

:shipit: 👍

Member

axw commented Aug 10, 2015

$$merge$$

Contributor

jujubot commented Aug 10, 2015

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

Contributor

jujubot commented Aug 10, 2015

Build failed: Generating tarball failed
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/4233

Member

axw commented Aug 10, 2015

"bzr: ERROR:
http://bazaar.launchpad.net/%2Bbranch-id/769359/.bzr/repository/indices/82a0588ac18ed8994f614f8142ee921f.rix
is redirected to https://launchpad.net"
umm.

$$merge$$

On Mon, Aug 10, 2015 at 12:41 PM Juju bot notifications@github.com wrote:

Build failed: Generating tarball failed
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/4233


Reply to this email directly or view it on GitHub
#2888 (comment).

Contributor

jujubot commented Aug 10, 2015

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

jujubot added a commit that referenced this pull request Aug 10, 2015

Merge pull request #2888 from axw/lp1477263-provider-local-destroy-race
provider/local: avoid spurious errors in Destroy

The local provider's Destroy method will sometimes
emit an ugly ERROR log message, but keep on destroying,
if the upstart/systemd service cannot be stopped and
removed. This will often occur because the agent
also stops/removes its service during teardown. To
avoid the ugly error, we attempt the operation twice,
and only log the error on the second attempt.

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

@jujubot jujubot merged commit c6c3429 into juju:master Aug 10, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment