MAAS WebUI crashes when installing maas-region-controller only
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Critical
|
Raphaël Badin | ||
maas (Ubuntu) |
Fix Released
|
Medium
|
Andres Rodriguez |
Bug Description
MAAS WebUI crashes when isntalling maas-region-
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] mod_wsgi (pid=7256): Target WSGI script '/usr/share/
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] mod_wsgi (pid=7256): Exception occurred processing WSGI script '/usr/share/
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] Traceback (most recent call last):
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] File "/usr/share/
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] start_up()
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] File "/usr/lib/
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] inner_start_up()
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] File "/usr/lib/
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] NodeGroup.
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] File "/usr/lib/
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] 'master', 'master', '127.0.0.1', dhcp_key=
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] File "/usr/lib/
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] key = run_repeated_
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] File "/usr/lib/
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] key_id = call_dnssec_
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] File "/usr/lib/
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] env=env)
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] File "/usr/lib/
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] process = Popen(stdout=PIPE, *popenargs, **kwargs)
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] File "/usr/lib/
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] errread, errwrite)
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] File "/usr/lib/
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] raise child_exception
[Tue Jan 22 16:49:58 2013] [error] [client 192.168.123.3] OSError: [Errno 2] No such file or directory
Installing maas-dns fixes the problem. However, this should not happen. This seems to be an issue of MAAS region controller trying to start DNS service when the cluster controller is not installed along with the region even when it has not being configured to do so.
Related branches
- Andres Rodriguez (community): Approve
- Launchpad code reviewers: Pending requested
-
Diff: 24 lines (+3/-0)2 files modifieddebian/changelog (+2/-0)
debian/control (+1/-0)
- Andres Rodriguez (community): Approve
-
Diff: 26 lines (+6/-0)2 files modifieddebian/changelog (+5/-0)
debian/control (+1/-0)
- Andres Rodriguez (community): Approve
-
Diff: 26 lines (+6/-0)2 files modifieddebian/changelog (+5/-0)
debian/control (+1/-0)
Changed in maas (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Andres Rodriguez (andreserl) |
description: | updated |
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Critical |
Changed in maas: | |
assignee: | nobody → Raphaël Badin (rvb) |
status: | Triaged → In Progress |
We've generating the omapi_key when the nodegroup objects are generated. For the master nodegroup (corresponding to the main cluster controller), this happens when the application starts up. If the maas-dns package is not installed, the tool to generate the key might not be installed (it's a dependency of maas-dns)… hence the error.
I suggest we refactor the code to generate the keys "on-demand" (i.e. when an action implying that maas-dns is installed is triggered) rather that in advance.