[LMA] heka puppet module fails to run when changing home directory of heka user

Bug #1493937 reported by Swann Croiset
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel Plugins
Fix Committed
Medium
Swann Croiset

Bug Description

Puppet.log:
2015-09-09 15:53:47 +0000 Puppet (debug): Executing '/usr/sbin/usermod -d /var/cache/lma_collector heka'
2015-09-09 15:53:47 +0000 Puppet (err): Could not set home on user[heka]: Execution of '/usr/sbin/usermod -d /var/cache/lma_collector heka' returned 8: usermod: user heka is currently used by process 9978

Env:
lma_collector 0.7.3
MOS 6.1

Diag:
the service heka start before the puppet module try to change user homedirectory. This looks like a random bug

The lma_collector master branch (0.8) can be impacted as well

Solution:
Add dependency to puppet resource to ensure the homedirectory is changed before heakd starts.

Tags: lma
Changed in fuel-plugins:
status: New → Incomplete
status: Incomplete → Triaged
importance: Undecided → Medium
assignee: nobody → LMA-Toolchain Fuel Plugins (mos-lma-toolchain)
Swann Croiset (swann-w)
Changed in fuel-plugins:
status: Triaged → Fix Committed
tags: added: lma
Changed in fuel-plugins:
assignee: LMA-Toolchain Fuel Plugins (mos-lma-toolchain) → Swann Croiset (swann-w)
milestone: none → 7.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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