Merge ~ack/maas:1864201-supervisord-unix-socket-2.7 into maas:2.7

Proposed by Alberto Donato
Status: Merged
Approved by: Alberto Donato
Approved revision: 18a97cd285705808205f5c0862c9f13464203787
Merge reported by: MAAS Lander
Merged at revision: not available
Proposed branch: ~ack/maas:1864201-supervisord-unix-socket-2.7
Merge into: maas:2.7
Diff against target: 48 lines (+8/-9)
1 file modified
snap/local/tree/usr/share/maas/supervisord.conf.template (+8/-9)
Reviewer Review Type Date Requested Status
Alberto Donato (community) Approve
MAAS Lander unittests Pending
Review via email: mp+379638@code.launchpad.net

Commit message

LP:1864201 - make supervisord listen on unix socket

To post a comment you must log in.
Revision history for this message
Alberto Donato (ack) :
review: Approve
Revision history for this message
MAAS Lander (maas-lander) wrote :

LANDING
-b 1864201-supervisord-unix-socket-2.7 lp:~ack/maas/+git/maas into -b 2.7 lp:~maas-committers/maas

STATUS: FAILED BUILD
LOG: http://maas-ci-jenkins.internal:8080/job/maas/job/branch-tester/7154/consoleText

There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/snap/local/tree/usr/share/maas/supervisord.conf.template b/snap/local/tree/usr/share/maas/supervisord.conf.template
2index b6f88a2..d911830 100644
3--- a/snap/local/tree/usr/share/maas/supervisord.conf.template
4+++ b/snap/local/tree/usr/share/maas/supervisord.conf.template
5@@ -1,7 +1,7 @@
6-[inet_http_server]
7-port=127.0.0.1:9001
8-username=maas
9-password=maas
10+[unix_http_server]
11+file=%(ENV_SNAP_DATA)s/supervisord/sock
12+chown=root
13+chmod=600
14
15 [rpcinterface:supervisor]
16 supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface
17@@ -10,11 +10,10 @@ supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface
18 directory=%(here)s
19 logfile=%(here)s/supervisord.log
20 pidfile=%(here)s/supervisord.pid
21+user=root
22
23 [supervisorctl]
24-serverurl=http://localhost:9001
25-username=maas
26-password=maas
27+serverurl=unix://%(ENV_SNAP_DATA)s/supervisord/sock
28
29
30 {{if postgresql}}
31@@ -36,7 +35,7 @@ stopasgroup=true
32 killasgroup=true
33 redirect_stderr=true
34 stdout_logfile=%(ENV_SNAP_COMMON)s/log/regiond.log
35-serverurl=http://localhost:9001
36+serverurl=unix://%(ENV_SNAP_DATA)s/supervisord/sock
37 {{endif}}
38
39
40@@ -48,7 +47,7 @@ stopasgroup=true
41 killasgroup=true
42 redirect_stderr=true
43 stdout_logfile=%(ENV_SNAP_COMMON)s/log/rackd.log
44-serverurl=http://localhost:9001
45+serverurl=unix://%(ENV_SNAP_DATA)s/supervisord/sock
46
47 [program:dhcpd]
48 process_name=dhcpd

Subscribers

People subscribed via source and target branches