provider/maas: better handling of devices claim-sticky-ip-address failures and absence of reserved IP address

Bug #1520199 reported by Dimiter Naydenov
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Dimiter Naydenov
1.25
Fix Released
High
Dimiter Naydenov

Bug Description

See related MAAS bug #1519527.

With this PR https://github.com/juju/juju/pull/3730/ and its forward ports, Juju registers all LXC/KVM machines as MAAS devices, calls claim-sticky-ip-address on the device, and deletes the corresponding device when the LXC/KVM machine is removed.

However, Juju can handle better the case where claim-sticky-ip-address fails (the error is swallowed up the stack in ProvisionerAPI.allocateAddress unless it's a NotSupportedError) and on success the response should be parsed to get the reserved IP address to return it back to the worker (from PrepareContainerInterfaceInfo) and log it. If there's no IP in the response and it's a success (like the MAAS regression described in the related bug), it should be treated as a failure.

This way we can surface up the provider issue to the user and improve the reliability.

Revision history for this message
Dimiter Naydenov (dimitern) wrote :

IMO this is High instead of Critical, as it's more of an improvement than a new regression on Juju's side.

tags: added: tech-debt
tags: added: kanban-cross-team
tags: removed: kanban-cross-team
Revision history for this message
Dimiter Naydenov (dimitern) wrote :
Changed in juju-core:
status: Triaged → In Progress
assignee: nobody → Dimiter Naydenov (dimitern)
Revision history for this message
Dimiter Naydenov (dimitern) wrote :
Changed in juju-core:
status: In Progress → Fix Committed
Changed in juju-core:
milestone: 1.26.0 → 2.0-alpha1
Changed in juju-core:
milestone: 2.0-alpha1 → 1.26-alpha3
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
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.