Trying to update a boot-source-selection when the image import is stopped returns '{'os': ['OS ubuntu with release xenial has no available images for download']}

Bug #1648528 reported by Brendan Donegan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
High
Unassigned

Bug Description

In the CI, due to some strange bugs, I updated the tests to stop the image import fully before trying to add a new boot source selection. However now when I try to do that I get:

{"os": ["OS ubuntu with release xenial has no available images for download"]}

I'm not sure how MAAS is determing that there are 'no available images for download' of xenial.

Revision history for this message
Blake Rouse (blake-rouse) wrote :

Updating the caching of what selections are available is a delayed process. I would say its just because you did it to fast. It shouldn't take long to update. How long are you waiting before updating the selections?

Changed in maas:
status: New → Incomplete
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

As I showed you in person, the boot source cache is empty when this occurs:

>>> from maasserver.models import BootSourceCache
>>> BootSourceCache.objects.all()
[]

There's also a bunch of tracebacks in regiond.log, like this:

2016-12-09 09:43:30 -: [critical] Unhandled error in EventualResult
        Traceback (most recent call last):
          File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 393, in callback
            self._startRunCallbacks(result)
          File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 501, in _startRunCallbacks
            self._runCallbacks()
          File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line
588, in _runCallbacks
            current.result = callback(current.result, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1184, in gotResult
            _inlineCallbacks(r, g, deferred)
        --- <exception caught here> ---
          File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks
            result = g.send(result)
        builtins.StopIteration:

Changed in maas:
status: Incomplete → Triaged
importance: Undecided → High
milestone: none → 2.2.0
Changed in maas:
milestone: 2.2.0 → 2.2.x
Changed in maas:
status: Triaged → Invalid
status: Invalid → Incomplete
milestone: 2.2.x → 2.3.x
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi!

**This is an automated message**

We believe this is may no longer be an issue in the latest MAAS release. Due to the original date of the bug report, we are currently marking it as Invalid. If you believe this bug report still valid against the latest release of MAAS, or if you are still interested in this, please re-open this bug report.

Thanks

Changed in maas:
status: Incomplete → Invalid
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.