The region process doesn't start properly after 'maas init' in the snap
Bug #1761120 reported by
Björn Tillenius
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Blake Rouse |
Bug Description
After installing the snap and running 'maas init' to set up MAAS, I can't connect to the MAAS URL. This is in the regiond.log:
https:/
If I restart supervisord, MAAS starts properly.
I tested this with revision 30cf5f1d27917dc
After some bisecting, it seems that this is the commit that is to blame:
commit 7e74081aa6f6b3a
Author: Blake Rouse <email address hidden>
Date: Mon Mar 19 22:34:50 2018 +0000
Add options to regiond.conf and snap to adjust the number of regiond workers and enable debugging.
description: | updated |
Changed in maas: | |
assignee: | nobody → Blake Rouse (blake-rouse) |
Changed in maas: | |
milestone: | 2.4.x → 2.4.0beta2 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
018-04-04 09:28:00 twisted.scripts: [info] twistd 17.9.0 (/snap/ maas/x1/ usr/bin/ python3 3.6.5) starting up. internet. asyncioreactor. AsyncioSelector Reactor. start_up: [error] Database error during start-up maas/x1/ usr/lib/ python3/ dist-packages/ django/ db/backends/ utils.py" , line 64, in execute execute( sql, params) ProgrammingErro r: relation "maasserver_config" does not exist config" ."value" FROM "maasserve...
^
2018-04-04 09:28:00 twisted.scripts: [info] reactor class: twisted.
2018-04-04 09:28:00 maasserver.
Traceback (most recent call last):
File "/snap/
return self.cursor.
psycopg2.
LINE 1: ..._config"."name", "maasserver_
The above exception was the direct cause of the following exception:
Traceback (most recent call last): maas/x1/ lib/python3. 6/site- packages/ maasserver/ start_up. py", line 67, in start_up get_shared_ secret( ) maas/x1/ usr/lib/ python3/ dist-packages/ twisted/ python/ threadpool. py", line 250, in inContext maas/x1/ usr/lib/ python3/ dist-packages/ twisted/ python/ threadpool. py", line 266, in <lambda> theWork = lambda: context.call(ctx, func, *args, **kw) maas/x1/ usr/lib/ python3/ dist-packages/ twisted/ python/ context. py", line 122, in callWithContext text(). callWithContext (ctx, func, *args, **kw) maas/x1/ usr/lib/ python3/ dist-packages/ twisted/ python/ context. py", line 85, in callWithContext maas/x1/ lib/python3. 6/site- packages/ provisioningser ver/utils/ twisted. py", line 875, in callInContext maas/x1/ lib/python3. 6/site- packages/ provisioningser ver/utils/ twisted. py", line 232, in wrapper maas/x1/ lib/python3. 6/site- packages/ maasserver/ utils/orm. py", line 712, in call_with_ connection maas/x1/ lib/python3. 6/site- packages/ maasserver/ utils/_ _init__ .py", line 192, in call_with_lock maas/x1/ lib/python3. 6/site- packages/ maasserver/ utils/orm. py", line 756, in call_within_ transaction txn(*args, **kwargs) maas/x1/ lib/python3. 6/site- packages/ maasserver/ utils/orm. py", line 563, in retrier maas/x1/ usr/lib/ python3. 6/contextlib. py", line 52, in inner maas/x1/ lib/python3. 6/site- packages/ maasserver/ security. py", line 87, in get_shared_ secret_ txn in_db_hex = Config. objects. get_config( "rpc_shared_ secret" ) maas/x1/ lib/python3. 6/site- packages/ maasserver/ models/ config. py", line 151, in get_config name=name) .value maas/x1/ usr/lib/ python3/ dist-packages/ django/ db/models/ manager. py", line 85, in manager_method self.get_ queryset( ), name)(*args, **kwargs) maas/x1/ usr/lib/ python3/ dist-packages/ django/ db/models/ query.py" , line 374, in get maas/x1/ usr/lib/ python3/ dist-packages/ dj...
File "/snap/
yield security.
File "/snap/
result = inContext.theWork()
File "/snap/
inContext.
File "/snap/
return self.currentCon
File "/snap/
return func(*args,**kw)
File "/snap/
return func(*args, **kwargs)
File "/snap/
result = func(*args, **kwargs)
File "/snap/
return func(*args, **kwargs)
File "/snap/
return func(*args, **kwargs)
File "/snap/
return func_outside_
File "/snap/
return func(*args, **kwargs)
File "/snap/
return func(*args, **kwds)
File "/snap/
secret_
File "/snap/
return self.get(
File "/snap/
return getattr(
File "/snap/
num = len(clone)
File "/snap/