ValueError: number of bits must be greater than zero

Bug #1705090 reported by Jason Hobbs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
In Progress
Critical
Blake Rouse
2.2
Triaged
Critical
Blake Rouse

Bug Description

Using the build from ppa:maas/proposed, we're seeing this error in regiond.log:

2017-07-18 18:25:43 maasserver.utils.views: [error] 500 Internal Server Error @ /MAAS/rpc/
Traceback (most recent call last):
  File "/usr/lib/python3.5/random.py", line 253, in choice
    i = self._randbelow(len(seq))
  File "/usr/lib/python3.5/random.py", line 230, in _randbelow
    r = getrandbits(k) # 0 <= r < 2**k
ValueError: number of bits must be greater than zero

This is resulting in MAAS returning 500 errors for all calls to the region controller.

2.2.2-6092-g9031a90-0ubuntu1~16.04.1

Related branches

Revision history for this message
Jason Hobbs (jason-hobbs) wrote :
tags: added: cdo-qa-blocker
removed: cdo-qa-block
Changed in maas:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Blake Rouse (blake-rouse)
milestone: none → 2.3.0
milestone: 2.3.0 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.