supervisord socket files should be in /var/run rather than /tmp

Bug #1582116 reported by Harish Kumar
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Won't Fix
Medium
Nikhil Bansal
R3.0
Fix Committed
Medium
Nikhil Bansal
R3.0.3.x
Fix Committed
Medium
Nikhil Bansal
Trunk
Fix Committed
Medium
Nikhil Bansal

Bug Description

Supervisord config files (supervisord_control.conf, supervisord_config.conf, supervisord_analytics.conf etc) have socket files configured under /tmp which can cause socket files got deleted by users as /tmp files is supposed to be for temporary files and in many environments, those files will get deleted either by operators or automatically by cleanup scripts.

Deleting the socket files cause supervisor to behave strange as the service is already running but socket file is missing.
These kind of files should be kept under /var/run.

Harish Kumar (hkumarmk)
description: updated
Changed in juniperopenstack:
importance: Undecided → Medium
tags: added: provisioning
Raj Reddy (rajreddy)
tags: added: analytics
Changed in juniperopenstack:
assignee: Harish Kumar (hkumarmk) → Nikhil Bansal (nikhilb-u)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/20556
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/20584
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/20588
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/20594
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/20595
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/20596
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/20599
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/20588
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/20599
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/20588
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/20584
Submitter: Nikhil Bansal (<email address hidden>)

Raj Reddy (rajreddy)
tags: added: releasenote
Revision history for this message
Raj Reddy (rajreddy) wrote :

Release-Note:
systemd has a new feature where it automatically cleans up file based on configuration. More is described in
man tmpfiles.d
man systemd-tmpfiles
With this it is possible that the unix domain socket files that are created in /tmp by various contrail supervisord processes will get deleted and commands like 'service supervisor-analytics ...' or 'service contrail-collector ...' etc will not work.

Workaround:
Make sure the /tmp/supervisord_*.sock files are excluded in the tmpfiles.d configuration files.

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/20594
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/20757
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/20758
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/20757
Committed: http://github.org/Juniper/contrail-packages/commit/4bcfbb26ea9545b0df67c920dd4b27c499324086
Submitter: Zuul
Branch: master

commit 4bcfbb26ea9545b0df67c920dd4b27c499324086
Author: Nikhil B <email address hidden>
Date: Mon May 30 13:43:23 2016 +0530

Moving the supervisord files from /tmp to /var/run

At present, supervisord socket files are created at /tmp which may get
deleted. Those socket files are being moved to /var/run instead
Partial-Bug: 1582116

Change-Id: I167ece07a4f9a4019cacc6b38fc6e89151757cdc

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/20758
Committed: http://github.org/Juniper/contrail-packaging/commit/cd5c74e4b87f0d59e7389bf1ebaa77b3ef47a3fa
Submitter: Zuul
Branch: master

commit cd5c74e4b87f0d59e7389bf1ebaa77b3ef47a3fa
Author: Nikhil B <email address hidden>
Date: Mon May 30 13:46:40 2016 +0530

Moving the supervisord files from /tmp to /var/run

At present, supervisord socket files are created at /tmp which may get
deleted. Those socket files are being moved to /var/run instead
Partial-Bug: 1582116

Change-Id: Idbcbfd0a07493e39d3d641e8e81d10e6f6d86fb3

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/20594
Committed: http://github.org/Juniper/contrail-provisioning/commit/9ec1480e9ca4482b09f28225022d933bbf3227d3
Submitter: Zuul
Branch: master

commit 9ec1480e9ca4482b09f28225022d933bbf3227d3
Author: Nikhil B <email address hidden>
Date: Wed May 25 11:43:17 2016 +0530

Moving the supervisord files from /tmp to /var/run

At present, supervisord socket files are created at /tmp which may get
deleted. Those socket files are being moved to /var/run instead
Partial-Bug: 1582116

Change-Id: I1113f25372d23136642025b1bb500644273c2b4d

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/20556
Committed: http://github.org/Juniper/contrail-controller/commit/75dd9c81cb97cc3b69e3e08086e497db94d2663c
Submitter: Zuul
Branch: master

commit 75dd9c81cb97cc3b69e3e08086e497db94d2663c
Author: Nikhil B <email address hidden>
Date: Tue May 24 10:40:14 2016 +0530

Moving the supervisord socket files

At present, supervisord socket files are created at /tmp which may get
deleted. Those socket files are being moved to /var/run instead
Partial-Bug: 1582116

Change-Id: Ib327d7e6dea7bffdc508fed5400c1a26c5bd24e4

no longer affects: juniperopenstack/r3.0.3.x
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0.3.x

Review in progress for https://review.opencontrail.org/27371
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/27371
Committed: http://github.org/Juniper/contrail-packages/commit/ec70a4e0cca5b3d75b45faa1fed3401589386168
Submitter: Zuul (<email address hidden>)
Branch: R3.0.3.x

commit ec70a4e0cca5b3d75b45faa1fed3401589386168
Author: Nikhil B <email address hidden>
Date: Mon May 30 13:43:23 2016 +0530

Moving the supervisord files from /tmp to /var/run

At present, supervisord socket files are created at /tmp which may get
deleted. Those socket files are being moved to /var/run instead
Partial-Bug: 1582116

Change-Id: I167ece07a4f9a4019cacc6b38fc6e89151757cdc
(cherry picked from commit 4bcfbb26ea9545b0df67c920dd4b27c499324086)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0.3.x

Review in progress for https://review.opencontrail.org/27395
Submitter: Raj Reddy (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/27395
Committed: http://github.org/Juniper/contrail-packaging/commit/7224212307f4e307880d8ce8e657f4a7a4b02151
Submitter: Zuul (<email address hidden>)
Branch: R3.0.3.x

commit 7224212307f4e307880d8ce8e657f4a7a4b02151
Author: Nikhil B <email address hidden>
Date: Mon May 30 13:46:40 2016 +0530

Moving the supervisord files from /tmp to /var/run

At present, supervisord socket files are created at /tmp which may get
deleted. Those socket files are being moved to /var/run instead
Partial-Bug: 1582116

Change-Id: Idbcbfd0a07493e39d3d641e8e81d10e6f6d86fb3
(cherry picked from commit cd5c74e4b87f0d59e7389bf1ebaa77b3ef47a3fa)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0.3.x

Review in progress for https://review.opencontrail.org/27400
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/27400
Committed: http://github.org/Juniper/contrail-provisioning/commit/7377fbeb78ec28da02af10e585dffdb95620ee9e
Submitter: Zuul (<email address hidden>)
Branch: R3.0.3.x

commit 7377fbeb78ec28da02af10e585dffdb95620ee9e
Author: Nikhil B <email address hidden>
Date: Wed May 25 11:43:17 2016 +0530

Moving the supervisord files from /tmp to /var/run

At present, supervisord socket files are created at /tmp which may get
deleted. Those socket files are being moved to /var/run instead
Partial-Bug: 1582116

Change-Id: I1113f25372d23136642025b1bb500644273c2b4d
(cherry picked from commit 9ec1480e9ca4482b09f28225022d933bbf3227d3)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0.3.x

Review in progress for https://review.opencontrail.org/27408
Submitter: Raj Reddy (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/27408
Committed: http://github.org/Juniper/contrail-provisioning/commit/a026e6b4205c1a4e2fe539f0e14aca23abd0f620
Submitter: Zuul (<email address hidden>)
Branch: R3.0.3.x

commit a026e6b4205c1a4e2fe539f0e14aca23abd0f620
Author: Raj Reddy <email address hidden>
Date: Mon Dec 19 10:36:53 2016 -0800

Revert "Moving the supervisord files from /tmp to /var/run"

This reverts commit 7377fbeb78ec28da02af10e585dffdb95620ee9e.

Change-Id: I2a3075766dd4fd8bb4d939920199052d041674bd
Partial-Bug: #1582116

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0.3.x

Review in progress for https://review.opencontrail.org/27409
Submitter: Raj Reddy (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/27409
Committed: http://github.org/Juniper/contrail-packaging/commit/8588ecc57012eb8ffd04966a013be080e1fb68b2
Submitter: Zuul (<email address hidden>)
Branch: R3.0.3.x

commit 8588ecc57012eb8ffd04966a013be080e1fb68b2
Author: Raj Reddy <email address hidden>
Date: Mon Dec 19 10:40:44 2016 -0800

Revert "Moving the supervisord files from /tmp to /var/run"

This reverts commit 7224212307f4e307880d8ce8e657f4a7a4b02151.

Change-Id: I71076d014f33319c5204e4714f604310d13fa50a
Partial-Bug: #1582116

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0.3.x

Review in progress for https://review.opencontrail.org/27410
Submitter: Raj Reddy (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/27410
Committed: http://github.org/Juniper/contrail-packages/commit/209d214d185b7aa4062deacc7c2274fad9b98e06
Submitter: Zuul (<email address hidden>)
Branch: R3.0.3.x

commit 209d214d185b7aa4062deacc7c2274fad9b98e06
Author: Raj Reddy <email address hidden>
Date: Mon Dec 19 10:43:53 2016 -0800

Revert "Moving the supervisord files from /tmp to /var/run"

This reverts commit ec70a4e0cca5b3d75b45faa1fed3401589386168.

Change-Id: I64cc1c84b7c1dc5c3b435d12902346439df7cc9d
Partial-Bug: #1582116

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0.3.x

Review in progress for https://review.opencontrail.org/27498
Submitter: Raj Reddy (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/27498
Committed: http://github.org/Juniper/contrail-packages/commit/ad2c431f345059ab086758bfad9deb3cf2db6a4b
Submitter: Zuul (<email address hidden>)
Branch: R3.0.3.x

commit ad2c431f345059ab086758bfad9deb3cf2db6a4b
Author: Raj Reddy <email address hidden>
Date: Wed Dec 21 14:21:36 2016 -0800

Revert "Revert "Moving the supervisord files from /tmp to /var/run""

This reverts commit 209d214d185b7aa4062deacc7c2274fad9b98e06.

Change-Id: I302aa816103ca9be626e5ed3eb36eea182290bcf
Partial-Bug: #1582116

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0.3.x

Review in progress for https://review.opencontrail.org/27499
Submitter: Raj Reddy (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/27499
Committed: http://github.org/Juniper/contrail-packaging/commit/7fa34d1b3ce9fcc3bc07cef16e21cdf20b32b912
Submitter: Zuul (<email address hidden>)
Branch: R3.0.3.x

commit 7fa34d1b3ce9fcc3bc07cef16e21cdf20b32b912
Author: Raj Reddy <email address hidden>
Date: Wed Dec 21 14:28:30 2016 -0800

Revert "Revert "Moving the supervisord files from /tmp to /var/run""

This reverts commit 8588ecc57012eb8ffd04966a013be080e1fb68b2.

Change-Id: Ic2727074beb6e98888c1cdb7cce74127b15f85df
Partial-Bug: #1582116

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0.3.x

Review in progress for https://review.opencontrail.org/27500
Submitter: Raj Reddy (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/27500
Committed: http://github.org/Juniper/contrail-provisioning/commit/eb5f3d36593c17023b31986a1b07fcfaeb5e9e88
Submitter: Zuul (<email address hidden>)
Branch: R3.0.3.x

commit eb5f3d36593c17023b31986a1b07fcfaeb5e9e88
Author: Raj Reddy <email address hidden>
Date: Wed Dec 21 14:30:31 2016 -0800

Revert "Revert "Moving the supervisord files from /tmp to /var/run""

This reverts commit a026e6b4205c1a4e2fe539f0e14aca23abd0f620.

Change-Id: Ia649b717345765e48eb8fabf688153826d4143c8
Partial-Bug: #1582116

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0.3.x

Review in progress for https://review.opencontrail.org/27501
Submitter: Raj Reddy (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/27557
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/27558
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/27501
Committed: http://github.org/Juniper/contrail-controller/commit/129f47d1729485c0ba2fc9cc0142e68e398d630e
Submitter: Zuul (<email address hidden>)
Branch: R3.0.3.x

commit 129f47d1729485c0ba2fc9cc0142e68e398d630e
Author: Nikhil B <email address hidden>
Date: Tue May 24 10:40:14 2016 +0530

Moving the supervisord socket files

At present, supervisord socket files are created at /tmp which may get
deleted. Those socket files are being moved to /var/run instead
Partial-Bug: 1582116

Conflicts:
 src/nodemgr/config_nodemgr/config_event_manager.py
 src/nodemgr/database_nodemgr/database_event_manager.py
 src/opserver/contrail-alarm-gen.initd.supervisord

Change-Id: Ib327d7e6dea7bffdc508fed5400c1a26c5bd24e4

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0.3.x

Review in progress for https://review.opencontrail.org/27559
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/27557
Committed: http://github.org/Juniper/contrail-packages/commit/e56ac6be58245425e6a4b159b3b63a310b28340d
Submitter: Zuul (<email address hidden>)
Branch: R3.0

commit e56ac6be58245425e6a4b159b3b63a310b28340d
Author: Nikhil B <email address hidden>
Date: Mon May 30 13:43:23 2016 +0530

Moving the supervisord files from /tmp to /var/run

At present, supervisord socket files are created at /tmp which may get
deleted. Those socket files are being moved to /var/run instead
Partial-Bug: 1582116

Change-Id: I167ece07a4f9a4019cacc6b38fc6e89151757cdc
(cherry picked from commit 4bcfbb26ea9545b0df67c920dd4b27c499324086)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/27566
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/27566
Committed: http://github.org/Juniper/contrail-packaging/commit/d7a7d9e7cfca57528dd48c9bb228636c474885d7
Submitter: Zuul (<email address hidden>)
Branch: R3.0

commit d7a7d9e7cfca57528dd48c9bb228636c474885d7
Author: Nikhil B <email address hidden>
Date: Mon May 30 13:46:40 2016 +0530

Moving the supervisord files from /tmp to /var/run

At present, supervisord socket files are created at /tmp which may get
deleted. Those socket files are being moved to /var/run instead
Partial-Bug: 1582116

Change-Id: Idbcbfd0a07493e39d3d641e8e81d10e6f6d86fb3
(cherry picked from commit cd5c74e4b87f0d59e7389bf1ebaa77b3ef47a3fa)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/20599
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/20599
Committed: http://github.org/Juniper/contrail-provisioning/commit/95282f55d3ad3eb2bc315a38fef08c445b657557
Submitter: Zuul (<email address hidden>)
Branch: R3.0

commit 95282f55d3ad3eb2bc315a38fef08c445b657557
Author: Nikhil B <email address hidden>
Date: Wed May 25 11:43:17 2016 +0530

Moving the supervisord files from /tmp to /var/run

At present, supervisord socket files are created at /tmp which may get
deleted. Those socket files are being moved to /var/run instead
Partial-Bug: 1582116

Change-Id: I1113f25372d23136642025b1bb500644273c2b4d
(cherry picked from commit 9ec1480e9ca4482b09f28225022d933bbf3227d3)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/20596
Submitter: Nikhil Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/20596
Committed: http://github.org/Juniper/contrail-controller/commit/d7530b981070975b0763fb8ba1c83b34dc7518f0
Submitter: Zuul (<email address hidden>)
Branch: R3.0

commit d7530b981070975b0763fb8ba1c83b34dc7518f0
Author: Nikhil B <email address hidden>
Date: Tue May 24 10:40:14 2016 +0530

Moving the supervisord socket files

At present, supervisord socket files are created at /tmp which may get
deleted. Those socket files are being moved to /var/run instead
Partial-Bug: 1582116

Conflicts:
 src/nodemgr/config_nodemgr/config_event_manager.py
 src/nodemgr/database_nodemgr/database_event_manager.py
 src/opserver/contrail-alarm-gen.initd.supervisord

Change-Id: Ib327d7e6dea7bffdc508fed5400c1a26c5bd24e4
(cherry picked from commit 75dd9c81cb97cc3b69e3e08086e497db94d2663c)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/27559
Committed: http://github.org/Juniper/contrail-puppet/commit/98cd0bd0a004ca5831f60fe91122e7bf1d8ef6d1
Submitter: Zuul (<email address hidden>)
Branch: R3.0.3.x

commit 98cd0bd0a004ca5831f60fe91122e7bf1d8ef6d1
Author: Nikhil B <email address hidden>
Date: Fri Dec 23 13:27:20 2016 +0530

Moving the supervisord files from /tmp to /var/run

At present, supervisord socket files are created at /tmp which may get
deleted. Those socket files are being moved to /var/run instead
Partial-Bug: #1582116

Change-Id: Id056ba30d2cadff1c8413bb0d3ea35d9bc9d62dd
(cherry picked from commit b72d122aa9ce4735fb3dcf58c38d4c9bc2dc61f2)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/27558
Committed: http://github.org/Juniper/contrail-puppet/commit/b72d122aa9ce4735fb3dcf58c38d4c9bc2dc61f2
Submitter: Zuul (<email address hidden>)
Branch: R3.0

commit b72d122aa9ce4735fb3dcf58c38d4c9bc2dc61f2
Author: Nikhil B <email address hidden>
Date: Fri Dec 23 13:27:20 2016 +0530

Moving the supervisord files from /tmp to /var/run

At present, supervisord socket files are created at /tmp which may get
deleted. Those socket files are being moved to /var/run instead
Partial-Bug: #1582116

Change-Id: Id056ba30d2cadff1c8413bb0d3ea35d9bc9d62dd

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.