Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent error when using Legacy Leases #9576

Merged
merged 3 commits into from Dec 13, 2018

Conversation

SimonRichardson
Copy link
Member

@SimonRichardson SimonRichardson commented Dec 13, 2018

Description of change

The following code ensures that we don't fail when attempting to
use the old legacy leases.

QA steps

juju bootstrap localhost test --debug --build-agent=true --config features="[legacy-leases]" --bootstrap-series="xenial"
juju add-machine --series=xenial
juju upgrade-series 0 prepare bionic -y

Documentation changes

This is a bug fix, not functionality has changed.

Bug reference

https://bugs.launchpad.net/juju/+bug/1808324

The following code ensures that we don't fail when attempting to
use the old legacy leases.
Copy link
Member

@jameinel jameinel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix looks correct to me, though I haven't actually run bootstrap to confirm.
The big question here is how we will test this.

I'm a bit mixed, feeling like it is both easy to break this accidentally (as we obviously did), but also not a code path that we really want to support for a long time.
Thoughts?

worker/upgradeseries/worker.go Outdated Show resolved Hide resolved
worker/upgradeseries/worker.go Outdated Show resolved Hide resolved
The error type from the API is not the same type as
errors.NotImplemented error, as the pointers don't match. This is
a shame, because crossing API boundaries is the necessity of juju.
@SimonRichardson
Copy link
Member Author

!!build!!

Lease failure on a mongo box, not entirely sure why.

@SimonRichardson
Copy link
Member Author

!!build!!

1 similar comment
@SimonRichardson
Copy link
Member Author

!!build!!

@SimonRichardson
Copy link
Member Author

$$merge$$

@jujubot jujubot merged commit fb6d498 into juju:2.5 Dec 13, 2018
@SimonRichardson SimonRichardson deleted the legacy-leases-error branch December 13, 2018 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants