Error messages about bad API requests are unhelpful and dense
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Won't Fix
|
High
|
Unassigned |
Bug Description
Fresh install of 1.7.0~beta4+
Whilst an image import was going on, API calls were being issued to switch the boot sources.
$ maas scapestack boot-source-
invalid literal for int() with base 10: 'b08a5826-
tailing the logs "just because", and I see this:
==> /var/log/
ERROR 2014-10-01 14:51:03,011 maasserver #######
ERROR 2014-10-01 14:51:06,054 maasserver Traceback (most recent call last):
File "/usr/lib/
response = wrapped_
File "/usr/lib/
response = func(*args, **kwargs)
File "/usr/lib/
result = self.error_
File "/usr/lib/
result = meth(request, *args, **kwargs)
File "/usr/lib/
return function(self, request, *args, **kwargs)
File "/usr/lib/
BootSource, id=boot_source_id)
File "/usr/lib/
return queryset.get(*args, **kwargs)
File "/usr/lib/
clone = self.filter(*args, **kwargs)
File "/usr/lib/
return self._filter_
File "/usr/lib/
clone.
File "/usr/lib/
clause = self._add_
File "/usr/lib/
current_
File "/usr/lib/
clause.
File "/usr/lib/
data = self._prepare_
File "/usr/lib/
value = obj.prepare(
File "/usr/lib/
return self.field.
File "/usr/lib/
return self.get_
File "/usr/lib/
return int(value)
ValueError: invalid literal for int() with base 10: 'b08a5826-
tags: | added: landscape |
summary: |
- int() got an uuid, crashed + Bad API call leads to: int() got an uuid, crashed |
Changed in maas: | |
milestone: | none → 1.7.0 |
Changed in maas: | |
status: | Incomplete → Confirmed |
Changed in maas: | |
status: | Confirmed → New |
Changed in maas: | |
assignee: | Blake Rouse (blake-rouse) → nobody |
assignee: | nobody → Graham Binns (gmb) |
status: | New → In Progress |
Changed in maas: | |
assignee: | Graham Binns (gmb) → nobody |
Assigning this to Blake as it looks like it could be a problem with the boot resources code.