init fails for improperly configured settings.DATABASES
This bug report will be marked for expiration in 15 days if no further activity occurs. (find out why)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
I am attempting to initialize a region+rack controller from the cli with snap version/build 3.4.0-14320-
3.4.0~rc2-
Step to reproduce
$ sudo maas init region+rack --database-uri postgres:
Result
Failed to perfom migrations:ations
Traceback (most recent call last):
File "/snap/
sys.exit(run())
File "/snap/
run_
File "/snap/
management.
File "/snap/
utility.
File "/snap/
self.
File "/snap/
self.
File "/snap/
output = self.handle(*args, **options)
File "/snap/
conn.
File "/snap/
raise ImproperlyConfi
django.
I confirmed that the db string was valid by using it with psql:
$ psql postgres:
psql (14.10 (Ubuntu 14.10-0ubuntu0.
SSL connection (protocol: TLSv1.3, cipher: TLS_AES_
Type "help" for help.
maasdb=>
Changed in maas: | |
status: | Incomplete → New |
status: | New → Incomplete |
I'm not seeing the same error in my own attempts on 3.4.0~rc2- 14317-g. 15c0dc219.
Could you share the region config you're using? incorrect/ incomplete and is preventing the correct database settings being loaded.
It's possible it's malformed/