Comment 1 for bug 1926140

Revision history for this message
Björn Tillenius (bjornt) wrote :

The issue is that websocket handler (maasserver/websocket/handlers/config.py) tries to add the maas_url from regiond.conf to CONFIG_ITEMS. But the problem is that CONFIG_ITEMS only defines which config items are editable, it doesn't define the actual values.

So later on, the handler reads all the keys from CONFIG_ITEMS, but then reads the value from the database (which won't exist and return the default "localhost").

Eventually, we want to remove maas_url from regiond.conf and have it in the database, since maas_url is meant to specify the public URL to the MAAS deployment.

Deprecating maas_url in regiond.conf might be bit tricky, but for now we could have the region sync the value to the database. That would fix this bug, and then we can deal with deprecating maas_url in regiond.conf later.

Considering this should be an easy fix, let's try to get this done for 3.0.