The MAAS provider does not raise an exception when get_machines(...) does not find the requested machines.

Bug #965101 reported by Gavin Panella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Fix Released
Undecided
Gavin Panella

Bug Description

MachineProviderBase.get_machines() is documented to raise MachinesNotFound, but MAAS's get_machines() does not check that the instances requested are returned from the service, and thus does not ever raise MachinesNotFound. This can cause an IndexError in MachineProviderBase.get_machine() - not the singular - which then obscures the cause of the issue.

Related branches

Gavin Panella (allenap)
Changed in juju:
status: New → In Progress
assignee: nobody → Gavin Panella (allenap)
no longer affects: maas
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Don't forget to look for, and clean up, references to this bug in the source tree!

Changed in juju:
milestone: none → florence
Changed in juju:
status: In Progress → 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.