Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Fixed incorrectt PID matching for neutron-*-agents
Browse files Browse the repository at this point in the history
Change-Id: I15ea6cce54135f9d91080c736ba496c3002aa182
Closes-bug: #1269334
  • Loading branch information
Sergey Vasilenko committed Jan 16, 2014
1 parent c8673bb commit c677020
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deployment/puppet/neutron/files/ocf/neutron-agent-dhcp
Expand Up @@ -201,7 +201,7 @@ END
}

get_worker_pid() {
pid=`pgrep -u ${OCF_RESKEY_user} -fnl ${OCF_RESKEY_binary} | grep -E "python\s+\/usr\/bin" | awk '{print $1}'`
pid=`pgrep -u ${OCF_RESKEY_user} -fol ${OCF_RESKEY_binary} | grep -E "python\s+\/usr\/bin" | awk '{print $1}'`
echo $pid
}

Expand Down
2 changes: 1 addition & 1 deletion deployment/puppet/neutron/files/ocf/neutron-agent-l3
Expand Up @@ -234,7 +234,7 @@ END
}

get_worker_pid() {
pid=`pgrep -u ${OCF_RESKEY_user} -fnl ${OCF_RESKEY_binary} | grep -E "python\s+\/usr\/bin" | awk '{print $1}'`
pid=`pgrep -u ${OCF_RESKEY_user} -fol ${OCF_RESKEY_binary} | grep -E "python\s+\/usr\/bin" | awk '{print $1}'`
echo $pid
}

Expand Down
2 changes: 1 addition & 1 deletion deployment/puppet/neutron/files/ocf/neutron-agent-metadata
Expand Up @@ -146,7 +146,7 @@ END
}

get_worker_pid() {
pid=`pgrep -u ${OCF_RESKEY_user} -fnl ${OCF_RESKEY_binary} | grep -E "python\s+\/usr\/bin" | awk '{print $1}'`
pid=`pgrep -u ${OCF_RESKEY_user} -fol ${OCF_RESKEY_binary} | grep -E "python\s+\/usr\/bin" | awk '{print $1}'`
echo $pid
}

Expand Down
2 changes: 1 addition & 1 deletion deployment/puppet/neutron/files/ocf/neutron-agent-ovs
Expand Up @@ -173,7 +173,7 @@ END
}

get_worker_pid() {
pid=`pgrep -u ${OCF_RESKEY_user} -fnl ${OCF_RESKEY_binary} | grep -E "python\s+\/usr\/bin" | awk '{print $1}'`
pid=`pgrep -u ${OCF_RESKEY_user} -fol ${OCF_RESKEY_binary} | grep -E "python\s+\/usr\/bin" | awk '{print $1}'`
echo $pid
}

Expand Down

0 comments on commit c677020

Please sign in to comment.